/* 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;
}

.hero__img {
  width: 100%;
  aspect-ratio: 21 / 8;
  min-height: 360px;
  max-height: 560px;
  object-fit: cover;
  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: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.solution-card {
  display: flex;
  width: calc(50% - 12px);
  min-height: 240px;
  overflow: hidden;
  color: #fff;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.solution-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 55%;
  padding: 36px 32px;
}

.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__media {
  flex: 0 0 45%;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.15);
}

.solution-card__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.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; }

/* Contact */
.contact {
  padding: 80px 0;
  background: #f3f3f3;
}

.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  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: 1 1 340px;
  max-width: 460px;
}

.contact__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  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) {
  .solution-card {
    width: 100%;
  }

  .contact__inner {
    flex-direction: column;
  }

  .contact__info,
  .contact__form-wrap,
  .contact__media {
    max-width: none;
    width: 100%;
  }

  .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: 480px;
  }

  .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;
    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 {
    display: block;
  }

  .about {
    padding: 56px 0 28px;
  }

  .about__title {
    font-size: 28px;
  }

  .solutions__title {
    font-size: 22px;
  }

  .solution-card {
    flex-direction: column;
  }

  .solution-card__media {
    flex: none;
  }

  .solution-card__media img {
    min-height: 180px;
  }

  .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;
  }
}

/* About page */
.about-page {
  padding: 80px 0 60px;
}

.about-page__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.about-page__content {
  flex: 1 1 420px;
}

.about-page__title {
  margin: 0 0 28px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2c2c2c;
}

.about-page__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #444;
}

.about-page__media {
  flex: 1 1 360px;
  max-width: 520px;
}

.about-page__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #d9d9d9;
}

.about-blocks {
  padding: 40px 0 100px;
}

.about-blocks__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}

.about-block {
  flex: 1 1 280px;
  max-width: 560px;
}

.about-block__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: #2c2c2c;
}

.about-block__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 768px) {
  .about-page__title {
    font-size: 28px;
  }

  .about-page__inner {
    flex-direction: column;
  }

  .about-page__media {
    max-width: none;
  }
}
