/* index.css — главная страница SGT */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #2b2b2b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header {
  position: relative;
  z-index: 100;
  background: #fff;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 48px;
  gap: 32px;
}

.header__logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
  white-space: nowrap;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
}

.header__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__link {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #5a5a5a;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header__link:hover,
.header__link--active {
  color: #1a1a1a;
}

.header__item--dropdown {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 220px;
  padding: 12px 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

.header__item--dropdown.is-open .header__dropdown,
.header__item--dropdown:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  color: #444;
}

.header__dropdown-link:hover {
  background: #f5f5f5;
  color: #111;
}

/* Hero — full bleed */
.hero {
  padding: 0;
  width: 100%;
}

.hero__media {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero__img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 8;
  min-height: 360px;
  max-height: 560px;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #d9d9d9;
}

/* About */
.about {
  padding: 90px 0 50px;
  text-align: center;
}

.about__title {
  margin: 0 0 32px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2c2c2c;
}

.about__text {
  margin: 0 auto;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.75;
  color: #444;
}

/* Solutions */
.solutions {
  padding: 50px 0 100px;
  text-align: center;
}

.solutions__title {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2c2c2c;
}

.solutions__intro {
  margin: 0 auto 56px;
  max-width: 960px;
  font-size: 17px;
  line-height: 1.75;
  color: #555;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.solution-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 320px;
  overflow: hidden;
  color: #fff;
  text-align: left;
  transition: background-color 0.2s ease;
}

.solution-card:hover {
  filter: brightness(1.03);
}

.solution-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 55%;
  padding: 36px 32px;
  box-sizing: border-box;
}

.solution-card__title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
}

.solution-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.95;
}

.solution-card__more {
  display: inline-block;
  margin-top: 18px;
  opacity: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.25s ease;
}

.solution-card:hover .solution-card__more {
  opacity: 1;
}

.solution-card__media {
  flex: 0 0 45%;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

.solution-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.solution-card--rustng { background: #105581; }
.solution-card--sgt { background: #a64030; }
.solution-card--sonata { background: #848482; }
.solution-card--payport { background: #467252; }
.solution-card--gost { background: #a98b6d; }
.solution-card--hrs { background: #488899; }

/* ТС ПиОТ promo */
.piot-promo {
  padding: 70px 0;
  text-align: center;
  background: #cccccc;
}

.piot-promo__title {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #333;
}

.piot-promo__subtitle {
  margin: 0 auto 20px;
  max-width: 900px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
}

.piot-promo__text {
  margin: 0 auto 28px;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.75;
  color: #444;
}

.piot-promo .btn {
  margin-top: 8px;
}

/* Contact */
.contact {
  padding: 80px 0;
  background: #f3f3f3;
}

.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px 56px;
  max-width: 1280px;
}

.contact__info {
  flex: 1 1 260px;
  max-width: 340px;
}

.contact__title {
  margin: 0 0 24px;
  font-size: 34px;
  font-weight: 700;
  color: #2c2c2c;
}

.contact__company,
.contact__line {
  margin: 0 0 10px;
  font-size: 17px;
  color: #444;
}

.contact__link:hover {
  text-decoration: underline;
}

.contact__form-wrap {
  flex: 1 1 300px;
  max-width: 360px;
}

.contact-form__field {
  margin-bottom: 18px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #9a9a9a;
  background: transparent;
  color: #333;
  outline: none;
  resize: vertical;
  font-size: 16px;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-bottom-color: #3a8dbc;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #888;
}

.contact-form__submit {
  margin-top: 12px;
  padding: 14px 36px;
  border: 0;
  background: #3a8dbc;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form__submit:hover {
  background: #2f7aa5;
}

.contact__media {
  flex: 0 1 280px;
  max-width: 300px;
  min-height: 0;
  overflow: hidden;
  align-self: stretch;
}

.contact__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  background: #d9d9d9;
}

/* CTA */
.cta {
  padding: 90px 0 60px;
  text-align: center;
}

.cta__text {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 600;
  color: #2c2c2c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: #3a8dbc;
  color: #fff;
}

.btn--primary:hover {
  background: #2f7aa5;
}

.btn--dark {
  background: #1a3c54;
  color: #fff;
}

.btn--dark:hover {
  background: #143044;
}

/* Footer */
.footer {
  padding: 24px 0 48px;
  text-align: center;
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: #9a9a9a;
}

/* Responsive */
@media (max-width: 1100px) {
  .container {
    padding: 0 28px;
  }

  .header__inner {
    padding: 24px 28px;
  }
}

@media (max-width: 900px) {
  .piot-promo {
    padding: 50px 0;
  }

  .piot-promo__title {
    font-size: 26px;
  }

  .piot-promo__subtitle {
    font-size: 18px;
  }

  .solutions__grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .solution-card__body {
    flex: 1 1 auto;
  }

  .solution-card__media {
    flex: none;
    width: 100%;
    height: 220px;
    overflow: hidden;
  }

  .solution-card__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }

  .contact__inner {
    flex-direction: column;
  }

  .contact__info,
  .contact__form-wrap,
  .contact__media {
    max-width: none;
    width: 100%;
  }

  .contact__media {
    max-width: 320px;
    align-self: flex-start;
  }

  .contact__img {
    min-height: 360px;
  }

  .hero__img {
    min-height: 260px;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header.is-menu-open .header__nav {
    max-height: min(80vh, 640px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .header__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
  }

  .header__item {
    width: 100%;
  }

  .header__link {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: left;
  }

  .header__dropdown {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
    padding: 0 0 8px 12px;
  }

  .header__item--dropdown.is-open .header__dropdown,
  .header__item--dropdown:hover .header__dropdown {
    display: block;
    position: static;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .about {
    padding: 56px 0 28px;
  }

  .about__title {
    font-size: 28px;
  }

  .solutions__title {
    font-size: 22px;
  }

  .solution-card__media {
    height: 200px;
  }

  .cta__text {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header__inner {
    padding: 16px;
  }

  .header__logo {
    font-size: 16px;
  }

  .hero__img {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
}
