/* ==========================================================================
   SCOUT — Landing page styles
   ========================================================================== */

@font-face {
  font-family: "Google Sans";
  src: url("../fonts/static/GoogleSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/static/GoogleSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/static/GoogleSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/static/GoogleSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #f5f5f5;
  --white: #fff;
  --dark: #1a1a1a;
  --black: #000;

  --text-heading: #252525;
  --text-body: #111;
  --text-body-2: #222;
  --text-muted: #a5a5a5;
  --text-muted-50: rgba(0, 0, 0, .5);
  --text-muted-81: rgba(0, 0, 0, .81);

  --border-light: #e2e2e2;
  --border-mid: #d4d4d4;
  --border-dark: #b1b1b1;

  --quiz-dark: #0c131d;
  --quiz-track: #e5e6e9;
  --quiz-grey: #848f9d;

  --radius-card: 16px;
  --radius-lg: 13px;
  --container: 1920px;
  --gutter: clamp(16px, 3vw, 40px);

  --ff: "Google Sans", "Helvetica Neue", Arial, sans-serif;
  --ff-alt: "Montserrat", var(--ff);
  --ff-btn: "Inter", var(--ff);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 96px; }
.section--tight { padding-block: 56px; }

.eyebrow {
  font-size: 20px;
  color: var(--text-body);
}

.h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.lede {
  font-size: 20px;
  line-height: 1.51;
  color: var(--text-body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 55px;
  padding: 0 28px;
  border-radius: 57px;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid transparent;
  background: none;
  white-space: nowrap;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { opacity: .85; }
.btn--outline { border-color: var(--border-mid); color: var(--black); }
.btn--outline:hover { border-color: var(--black); }
.btn--outline-soft { border-color: var(--border-dark); color: var(--black); }
.btn--outline-soft:hover { border-color: var(--black); }
.btn--dark { background: var(--quiz-dark); color: var(--white); height: 44px; padding: 0 24px; font-family: var(--ff-btn); font-weight: 600; font-size: 15px; border-radius: 32px; }
.btn--dark:hover { opacity: .9; }
.btn--dark:disabled { opacity: .4; cursor: not-allowed; }
.btn--ghost { background: none; color: var(--quiz-grey); font-size: 14px; height: auto; padding: 0; border: none; }

/* ---------- Header ---------- */
.header {
  background: var(--bg);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  padding-inline: var(--gutter);
}
.header__logo { display: flex; align-items: center; padding-block: 20px; margin-right: 28px; flex-shrink: 0; }
.header__logo img { width: 84px; }
.header__menu { display: contents; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-block: 18px;
}
.header__nav > a { font-weight: 500; font-size: 14px; white-space: nowrap; }
.header__nav > a:hover { opacity: .7; }

.header__utility {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}
.header__secondary {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-left: 1px solid rgba(255, 255, 255, .05);
}
.dropdown { display: flex; align-items: center; gap: 5px; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; }
.dropdown img { width: 8px; }
.header__secondary > a { font-weight: 500; font-size: 14px; white-space: nowrap; }
.header__secondary > a:hover, .dropdown:hover { opacity: .7; }

.header__contact {
  display: flex;
  align-items: center;
  padding: 16px 0 16px 20px;
  border-left: 1px solid rgba(0, 0, 0, .05);
  flex-wrap: wrap;
}
.header__contact a { font-weight: 500; font-size: 14px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 8px;
}
.hero__card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 78%);
}
.hero__top { position: relative; z-index: 1; display: flex; align-items: flex-start; }
.hero__title {
  font-family: var(--ff);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 700px;
  min-width: 0;
  flex: 1 1 auto;
}

.hero__badges {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: auto;
  padding-bottom: 32px;
}
.hero__badges img { height: 44px; width: auto; display: block; }
.hero__badge-skolkovo { filter: brightness(0) invert(1); }
.hero__bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Direction cards ---------- */
.directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 20px;
}
.direction-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 28px;
  cursor: pointer;
  color: var(--white);
}
.direction-card__media { position: absolute; inset: 0; z-index: 0; }
.direction-card__media img { width: 100%; height: 100%; object-fit: cover; }
.direction-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(107deg, rgba(0,0,0,.82) 8%, rgba(0,0,0,.4) 36%, rgba(0,0,0,0) 55%);
}
.direction-card__head { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.direction-card__head h3 { font-size: clamp(19px, 1.8vw, 26px); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.2; }
.direction-card__head p { font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.78); }

.direction-card__usp {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
  max-width: 340px;
}
.direction-card__usp li {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.direction-card__arrow {
  position: relative; z-index: 1;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
  margin-top: auto;
}
.direction-card__arrow img { width: 16px; }

/* ---------- Catalog slider ---------- */
.catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.catalog__title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text-heading); }
.catalog__head-actions { display: flex; align-items: center; gap: 24px; }

.catalog__viewport { position: relative; }
.catalog__track-wrap { overflow: hidden; }
.catalog__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.catalog__track::-webkit-scrollbar { display: none; }

.catalog__arrow {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-mid);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.catalog__arrow img { width: 18px; }
.catalog__arrow--prev { left: 12px; }
.catalog__arrow--next { right: 12px; }
.catalog__arrow--next img { transform: rotate(180deg); }
.catalog__arrow:hover { border-color: var(--text-heading); }
.catalog__arrow:disabled { opacity: .35; cursor: default; pointer-events: none; }

.product-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  padding-bottom: 20px;
}
.product-card__media {
  height: clamp(180px, 16vw, 230px);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__name { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text-body); min-height: 42px; padding: 0 20px; }
.product-card__price { font-size: 18px; font-weight: 700; color: var(--text-heading); margin-top: auto; padding: 0 20px; }

.catalog__dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.catalog__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-mid); border: none; padding: 0;
  cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.catalog__dot:hover { background: var(--border-dark); }
.catalog__dot.is-active { background: var(--text-heading); transform: scale(1.2); }

/* ---------- Spare parts CTA ---------- */
.parts__card {
  display: block;
  background: #F2F2F2;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.parts__card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- About ---------- */
.about__body { display: flex; align-items: stretch; gap: 48px; }
.about__lead { flex: 1 1 0; display: flex; flex-direction: column; gap: 48px; justify-content: center; }
.about__title { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-heading); }
.about__text { font-size: 20px; line-height: 1.51; color: var(--text-body); display: flex; flex-direction: column; gap: 16px; }
.about__text ul { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; }
.about__text li { list-style: disc; }
.about__photo { flex: 1 1 0; border-radius: 15px; overflow: hidden; min-height: 420px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Trust logos ---------- */
.trust__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 60px; flex-wrap: wrap; }
.trust__head--partners { margin-top: 72px; }
.trust__title { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.02em; color: var(--text-heading); }

.trust__ministries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 17px;
}
.ministry-card {
  border-radius: 16px;
  background: #E1F27A;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  min-height: 220px;
  padding: 28px;
}
.ministry-card__title { font-size: 16px; font-weight: 700; line-height: 1.3; text-transform: uppercase; color: #1a1a1a; }
.ministry-card img { max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; display: block; }

.trust__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.trust__logo {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.trust__logo img { max-height: 120px; width: auto; max-width: 80%; mix-blend-mode: multiply; }

/* ---------- Partnerships ---------- */
.partners__head { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 40px; margin-bottom: 48px; }
.partners__title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text-heading); }
.partners__lede { font-size: 20px; line-height: 1.51; color: var(--text-muted-81); max-width: 570px; }
.accordion { display: flex; flex-direction: column; gap: 18px; }
.accordion-item { background: var(--white); border-radius: 16px; overflow: hidden; }
.accordion-item__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 44px;
  background: none;
  border: none;
  text-align: left;
}
.accordion-item__index { font-size: 20px; color: var(--text-body); flex-shrink: 0; }
.accordion-item__title-row { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: space-between; }
.accordion-item__title { font-size: clamp(20px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.01em; color: var(--text-body); }
.accordion-item__chevron { width: 32px; height: 32px; flex-shrink: 0; transition: transform .25s ease; }
.accordion-item.is-open .accordion-item__chevron { transform: rotate(90deg); }
.accordion-item__panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-item.is-open .accordion-item__panel { max-height: 900px; }
.accordion-item__panel-inner {
  padding: 0 44px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.accordion-item__logo { max-height: 60px; margin-bottom: 24px; mix-blend-mode: multiply; }
.accordion-item__image { border-radius: 10px; overflow: hidden; height: 380px; }
.accordion-item__image img { width: 100%; height: 100%; object-fit: cover; }
.accordion-item__copy { display: flex; flex-direction: column; gap: 32px; }
.accordion-item__copy p { font-size: 18px; line-height: 1.5; color: var(--text-muted-81); }

/* ---------- News ---------- */
.news__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 60px; }
.news__title { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.02em; color: var(--text-heading); }
.news__tabs { display: flex; gap: 20px; flex-wrap: wrap; }
.news__tabs button {
  background: none; border: none; font-size: 18px; padding: 0 0 12px;
  color: rgba(0,0,0,.5); border-bottom: 2px solid transparent;
}
.news__tabs button.is-active { color: var(--black); border-color: var(--black); }
.news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 48px; }
.news-card { cursor: pointer; }
.news-card__media { border-radius: 16px; overflow: hidden; height: 220px; margin-bottom: 16px; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.news-card__tag { background: var(--black); color: var(--white); font-size: 14px; padding: 6px 14px; border-radius: 40px; }
.news-card__date { font-size: 15px; color: var(--text-body-2); opacity: .7; }
.news-card__title {
  font-size: 22px; line-height: 1.25; color: var(--text-body-2);
}
.news-card__desc {
  font-size: 14px; line-height: 1.5; color: var(--text-muted-81); margin-top: 12px;
}
.news__more { display: flex; justify-content: center; }

/* ---------- Contact CTA ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 520px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text-heading); white-space: pre-line; }
.contact__text { font-size: 20px; line-height: 1.51; color: var(--text-body); }
.contact__phone { font-size: clamp(24px, 3vw, 48px); font-weight: 500; letter-spacing: -0.02em; color: var(--text-body); }
.contact__form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Finance modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(17,17,17,.55); }
.modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 40px);
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-mid); background: var(--white);
  font-size: 22px; line-height: 1; color: var(--text-heading);
  cursor: pointer;
}
.modal__title { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--text-heading); margin: 12px 0 8px; }
.modal__text { font-size: 15px; line-height: 1.5; color: var(--text-muted-81); margin-bottom: 24px; }
.modal__form[hidden] { display: none; }
.modal__form { display: flex; flex-direction: column; gap: 16px; }
.modal__field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-heading); }
.modal__field input {
  height: 48px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border-mid); font-size: 15px; font-family: inherit; color: var(--text-body);
}
.modal__field input:focus { outline: none; border-color: var(--text-heading); }
.modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted-81);
  cursor: pointer;
}
.modal__checkbox input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--black); }
.modal__checkbox a { color: var(--text-heading); text-decoration: underline; }
.modal__submit { width: 100%; height: 48px; margin-top: 4px; }
.modal__submit:disabled { opacity: .5; cursor: not-allowed; }
.modal__success[hidden] { display: none; }
.modal__success { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 64px var(--gutter) 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(140px, 260px) minmax(160px, 220px) minmax(160px, 220px);
  gap: 32px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}
.footer__brand { display: flex; flex-direction: column; gap: 24px; }
.footer__brand img { width: 115px; }
.footer__socials { display: flex; gap: 12px; }
.footer__socials img { width: 48px; height: 48px; }
.footer__contacts { display: flex; flex-direction: column; gap: 13px; font-family: var(--ff-alt); font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
.footer__contacts a { opacity: .7; }
.footer__col h4 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.footer__col ul { display: flex; flex-direction: column; gap: 16px; }
.footer__col a, .footer__col li { font-family: var(--ff-alt); font-weight: 500; font-size: 16px; letter-spacing: -0.02em; opacity: .7; }
.footer__col a:hover { opacity: 1; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--ff-alt); font-weight: 500; font-size: 16px; letter-spacing: -0.02em; opacity: .7;
  position: relative;
  z-index: 1;
}
.footer__bottom a:hover { opacity: 1; }

.footer__mark {
  line-height: 1;
  text-align: center;
  margin: 0 -40px -0.08em;
  user-select: none;
  pointer-events: none;
}
.footer__mark img {
  width: 100%;
  height: auto;
  display: inline-block;
  filter: brightness(0) invert(1);
  -webkit-mask-image: linear-gradient(182deg, rgba(0,0,0,.35) 25%, rgba(0,0,0,0) 86%);
  mask-image: linear-gradient(182deg, rgba(0,0,0,.35) 25%, rgba(0,0,0,0) 86%);
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header__utility {
    flex-basis: 100%;
    justify-content: space-between;
    margin-left: 0;
    border-top: 1px solid rgba(0, 0, 0, .05);
  }
  .header__secondary { padding-left: 0; border-left: none; }
}

@media (max-width: 1280px) {
  .about__body { flex-direction: column; }
  .about__photo { min-height: 320px; }
  .partners__head { grid-template-columns: 1fr; }
  .accordion-item__panel-inner { grid-template-columns: 1fr; }
  .accordion-item__image { order: -1; height: 280px; }
  .contact { grid-template-columns: 1fr; }
  .product-card { flex-basis: calc((100% - 36px) / 3); }
}

@media (max-width: 1080px) {
  .header__secondary, .header__contact { border-left: none; padding-left: 0; }
  .header__utility { margin-left: 0; }
  .directions { grid-template-columns: 1fr; }
  .direction-card { aspect-ratio: auto; min-height: 320px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .product-card { flex-basis: calc((100% - 18px) / 2); }
  .trust__row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .trust__row { grid-template-columns: repeat(2, 1fr); }
  .trust__logo img { max-height: 144px; max-width: 96%; }

  /* ---------- Typography system ---------- */
  .hero__title {
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .catalog__title,
  .trust__title,
  .partners__title,
  .news__title,
  .contact__title {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
  }
  .about__title { font-size: 24px; line-height: 30px; }

  .direction-card__head h3,
  .accordion-item__title {
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
  }

  .footer__col h4 { font-size: 18px; line-height: 24px; font-weight: 600; margin-bottom: 16px; }

  .about__text,
  .contact__text,
  .partners__lede {
    font-size: 18px;
    line-height: 27px;
  }

  .product-card__name { line-height: 24px; }
  .accordion-item__copy p { font-size: 16px; line-height: 24px; }

  .direction-card__head p,
  .direction-card__usp li,
  .news-card__desc {
    font-size: 14px;
    line-height: 20px;
  }

  .eyebrow,
  .news-card__date {
    font-size: 12px;
    line-height: 16px;
  }

  .btn { height: 45px; padding: 0 22px; font-size: 16px; font-weight: 600; }
  .btn--dark { height: 45px; font-size: 16px; }

  .header__nav > a,
  .header__secondary > a,
  .dropdown,
  .header__contact a {
    font-size: 16px;
    line-height: 22px;
  }

  /* ---------- Section rhythm: 50px gap between blocks ---------- */
  .section, .section--tight { padding-block: 0; }
  main > section { margin-top: 50px; }
  main > section:first-child { margin-top: 20px; }
  .directions { padding-top: 0; }
  .footer { padding-top: 60px; }
  .news__grid { gap: 30px; }

  /* ---------- Header ---------- */
  .header {
    height: 56px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding-inline: 0;
    padding-block: 0;
    position: relative;
    z-index: 100;
  }
  .header__logo { padding-block: 0; margin-left: 16px; margin-right: 0; }
  .header__logo img { width: 60px; }

  .header__utility {
    margin-left: 0;
    align-items: stretch;
    flex-wrap: nowrap;
    height: 56px;
  }
  .header__contact {
    border-left: none;
    padding: 0 16px;
    display: flex;
    align-items: center;
  }
  .header__contact a { white-space: nowrap; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 56px;
    height: 56px;
    background: var(--black);
    border: none;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header__menu {
    display: block;
    position: fixed;
    inset: 56px 0 0 0;
    background: var(--white);
    padding: 8px 16px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .header__menu.is-open { transform: translateX(0); }

  .header__nav, .header__secondary {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0;
  }
  .header__nav > a,
  .header__secondary > a,
  .dropdown {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
  }
  .header__secondary { border-top: 8px solid var(--bg); margin-top: 8px; padding-top: 0; }

  body.nav-open { overflow: hidden; }

  /* ---------- Hero: full viewport height minus header ---------- */
  .hero { padding-top: 0; }
  .hero__card {
    padding: 24px;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
  }
  .hero__badges { position: static; margin: 16px 0 0; gap: 20px; }
  .hero__badges img { height: 30px; }

  .footer__top { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .partners__head { gap: 16px; }
  .accordion-item__header { padding: 28px 24px; flex-wrap: wrap; }
  .accordion-item__panel-inner { padding: 0 24px 32px; }
  .news__head { flex-direction: column; }
  .catalog__arrow { width: 40px; height: 40px; top: 34%; }
  .catalog__arrow img { width: 14px; }
  .catalog__arrow--prev { left: 6px; }
  .catalog__arrow--next { right: 6px; }
  .product-card { flex-basis: 82%; }
}

/* Форма заявки: поле-ловушка для ботов и сообщение об ошибке */
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.form-error{margin:12px 0 0;color:#c0392b;font-size:14px;line-height:1.4}
