/* ============================================================
   AKSIKON — Бюро переводов (Алматы)
   Единая дизайн-система лендинга. Mobile-first.
   Брейкпоинты: 480 / 640 / 960 / 1200
   ============================================================ */

/* ---------- 1. Токены / переменные ---------- */
:root {
  /* Палитра */
  --accent: #ff8562;
  --accent-hover: #f26a4a;
  --accent-soft: #fff1ec;
  --blue: #365da8;
  --blue-hover: #2c4d8c;
  --blue-soft: #eef3fb;
  --wa: #25d366;
  --wa-hover: #1eb457;
  --dark: #002432;
  --text: #333235;
  --muted: #6b6b70;
  --bg: #ffffff;
  --bg-alt: #fbfbfc;
  --bg-dark: #002432;
  --border: #e9e9ee;

  /* Типографика */
  --font: 'Montserrat', Arial, Helvetica, sans-serif;

  /* Радиусы */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(0, 36, 50, .06);
  --shadow: 0 8px 24px rgba(0, 36, 50, .08);
  --shadow-lg: 0 18px 48px rgba(0, 36, 50, .14);
  --shadow-accent: 0 10px 24px rgba(255, 133, 98, .32);

  /* Раскладка */
  --container: 1200px;
  --gutter: 16px;
  --header-h: 116px;   /* топ-бар + навигация (десктоп) */
  --section-y: clamp(2.75rem, 6vw, 5rem);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; color: var(--dark); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Раскладка: контейнер / секции ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: var(--section-y);
  background: var(--bg);
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #cfe0e6; }
.section--tight { padding-block: clamp(1.5rem, 4vw, 3rem); }

/* Смещение якоря под фиксированной шапкой */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(1.75rem, 4vw, 3rem);
}
.section__title {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--dark);
}
.section__title--accent { color: var(--accent); }
.section--dark .section__title { color: #fff; }

.section__subtitle {
  margin-top: .75rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  font-weight: 500;
}

/* декоративная подчёркивающая черта под заголовком */
.section__title--underline::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin: 1rem auto 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .15s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--wa { background: var(--wa); box-shadow: 0 10px 24px rgba(37, 211, 102, .3); }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }

.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--blue-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: #fff; }

.btn--dark { background: var(--dark); }
.btn--dark:hover { background: #013a4f; color: #fff; }

.btn--link {
  background: transparent; color: var(--accent);
  padding: 0; border-radius: 0; font-weight: 600;
  box-shadow: none;
}
.btn--link:hover { color: var(--accent-hover); transform: none; }

.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 1.05em 2.1em; font-size: 1.05rem; }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.btn__icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- 5. Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

/* верхняя полоса: логотип + контакты */
.top-bar {
  border-bottom: 1px solid var(--border);
}
.top-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: .6rem;
}
.top-bar__logo { display: flex; align-items: center; flex: none; margin-right: auto; }
.top-bar__logo img { height: 42px; width: auto; }

.top-bar__contacts {
  display: flex;
  align-items: center;
  gap: .9rem 1.4rem;
  flex-wrap: wrap;
}
.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text);
  font-weight: 500;
}
.top-bar__item img,
.top-bar__item .top-bar__ico { width: 20px; height: 20px; flex: none; object-fit: contain; }
.top-bar__item a { font-weight: 600; }
.top-bar__item--phone a { color: var(--dark); font-size: 1rem; }
.top-bar__wa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--wa);
}
.top-bar__wa img { width: 22px; height: 22px; filter: brightness(0) invert(1); }

/* нижняя полоса: навигация */
.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}
.main-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.3vw, 1.4rem);
  flex-wrap: wrap;
}
.main-nav__link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  padding: .4rem 0;
  position: relative;
  white-space: nowrap;
}
.main-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease);
}
.main-nav__link:hover,
.main-nav__link.is-active { color: var(--accent); }
.main-nav__link:hover::after,
.main-nav__link.is-active::after { width: 100%; }

.main-nav__cta { display: inline-flex; align-items: center; gap: 1rem; flex: none; }
.main-nav__phone { font-weight: 700; color: var(--dark); white-space: nowrap; }

/* бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--dark); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* распорка под фиксированную шапку (ставится сразу после header) */
.header-spacer { height: var(--header-h); }

/* ---------- 6. Герой ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(120% 120% at 100% 0, var(--accent-soft) 0, rgba(255,241,236,0) 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.hero__title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--dark);
}
.hero__title span { color: var(--accent); }
.hero__text {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
}
.hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__media { justify-self: center; }
.hero__media img { border-radius: var(--radius-lg); }

/* бейджи услуг в герое */
.hero__badges {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.75rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.badge img, .badge__icon { width: 26px; height: 26px; object-fit: contain; flex: none; }
.badge--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-hover); }

/* статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
}
.stat {
  text-align: center;
  padding: 1.1rem .5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat__num {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- 7. О нас / About: плавающая карточка внахлёст на герой ---------- */
.about { position: relative; z-index: 2; padding-top: 0; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.about-card {
  background: #fff;
  border-radius: var(--radius-lg, 24px);
  box-shadow: 0 30px 60px -20px rgba(20,30,60,.18), 0 2px 12px rgba(20,30,60,.06);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(-40px, -6vw, -90px);
}
.about-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.about-card__title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 1.1rem;
}
.about-card__title span { color: var(--blue, #365da8); }
.about-card__text { color: var(--muted); line-height: 1.65; }
.about-card__text + .about-card__text { margin-top: 1rem; }
.about-card__text strong { color: var(--text); font-weight: 700; }
.about-card__link { color: var(--blue, #365da8); font-weight: 700; text-decoration: underline; }
.about-card__link:hover { color: var(--dark); }

.about-card__stats {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.6rem;
  align-content: start;
}
.about-stat { display: flex; align-items: center; gap: .85rem; }
.about-stat__icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--wa-soft, #e8f9ef);
}
.about-stat__icon img { width: 26px; height: 26px; object-fit: contain; }
.about-stat__text { font-size: .96rem; line-height: 1.35; color: var(--text); overflow-wrap: break-word; min-width: 0; }
.about-stat__text b { font-weight: 800; }

.about-card__cta { margin-top: clamp(1.75rem, 4vw, 2.5rem); text-align: center; }
.about-card__cta .btn { text-transform: uppercase; }

/* ---------- 8. Услуги ---------- */
/* вкладки Письменные / Устные */
.services-tabs {
  display: inline-flex;
  gap: .35rem;
  padding: .35rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.services-tabs__wrap { display: flex; justify-content: center; }
.services-tab {
  padding: .7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.services-tab.is-active { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }

.services-panel[hidden] { display: none; }

/* сетка карточек услуг */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: 1.25rem 1.25rem 0;
  border-radius: 16px; background: var(--accent-soft);
}
.service-card__icon img { width: 34px; height: 34px; object-fit: contain; }
.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  gap: .5rem;
}
.service-card__title { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.service-card__desc { font-size: .92rem; color: var(--muted); flex: 1; }
.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
}
.service-card__price { font-weight: 700; color: var(--dark); }
.service-card__more {
  font-size: .9rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: .35rem;
}
.service-card__more:hover { color: var(--accent-hover); gap: .55rem; }

/* ---------- 9. Модальные окна ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 36, 50, .55);
  backdrop-filter: blur(3px);
}
.modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  animation: modal-in .3s var(--ease);
}
.modal__box--wide { max-width: 900px; }
.modal__box--narrow { max-width: 480px; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 1.4rem; line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--accent); color: #fff; }
.modal__title {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .5rem;
  padding-right: 2.5rem;
}
.modal__subtitle { color: var(--accent); font-weight: 600; margin-bottom: 1rem; }

/* Форматированный текст внутри модалки услуги */
.modal__content { color: var(--text); }
.modal__content h2, .modal__content h3, .modal__content h4 {
  color: var(--dark);
  margin: 1.4em 0 .5em;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.modal__content p { margin-bottom: 1em; color: var(--muted); }
.modal__content strong { color: var(--text); }
.modal__content ul, .modal__content ol { margin: 0 0 1em; padding-left: 1.25rem; }
.modal__content ul { list-style: none; padding-left: 0; }
.modal__content ul li {
  position: relative; padding-left: 1.5rem; margin-bottom: .5rem; color: var(--muted);
}
.modal__content ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.modal__content ol { list-style: decimal; }
.modal__content ol li { margin-bottom: .5rem; color: var(--muted); padding-left: .25rem; }
.modal__back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--muted); margin-bottom: 1rem;
}
.modal__back:hover { color: var(--accent); }
.modal__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* модалка-лайтбокс для изображений */
.modal--image .modal__box {
  background: transparent; box-shadow: none; padding: 0; max-width: min(90vw, 900px);
}
.modal--image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- 10. Этапы работы ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step__num {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}
.step__body { display: flex; flex-direction: column; gap: .3rem; }
.step__title { font-size: 1.02rem; font-weight: 700; color: var(--dark); }
.step__text { font-size: .9rem; color: var(--muted); }

/* ---------- 11. 10 преимуществ ---------- */
.features10 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon {
  flex: none;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
}
.feature__icon img { width: 32px; height: 32px; object-fit: contain; }
.feature__body { display: flex; flex-direction: column; gap: .3rem; }
.feature__title { font-size: 1.02rem; font-weight: 700; color: var(--dark); }
.feature__text { font-size: .9rem; color: var(--muted); }

/* ---------- 12. CTA-баннер (изображение-призыв) ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--accent-soft);
}
.cta-banner img { width: 100%; }
.cta-banner--link { display: block; transition: transform .25s var(--ease); }
.cta-banner--link:hover { transform: translateY(-3px); }

/* ---------- 13. Дополнительные услуги ---------- */
/* использует .service-grid + .service-card; отдельные модификаторы: */
.addservices { }
.addservice__foot .btn { white-space: nowrap; }

/* ---------- 14. Клиенты (сетка логотипов) ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.client-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.client-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- 15. Рекомендательные письма (сетка изображений) ---------- */
.letters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.letter {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.letter:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.letter img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

/* ---------- 16. FAQ (аккордеон) ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: .85rem; }
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--accent); }
.faq__icon {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  position: relative;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute;
  background: currentColor; border-radius: 2px;
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after  { width: 2px; height: 14px; transition: transform .25s var(--ease); }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq__a-inner { padding: 0 1.35rem 1.25rem; color: var(--muted); font-size: .95rem; }
.faq__a-inner p { white-space: pre-line; }
.faq__item.is-open .faq__a { max-height: 1200px; }

/* ---------- 17. Оплата ---------- */
.payment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.pay-method {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.pay-method img, .pay-method__icon { width: 28px; height: 28px; object-fit: contain; }

/* ---------- 18. Контакты ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
.contacts__list { display: grid; gap: 1.15rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item__icon {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
}
.contact-item__icon img { width: 26px; height: 26px; object-fit: contain; }
.contact-item__body { display: flex; flex-direction: column; gap: .15rem; }
.contact-item__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contact-item__value { font-size: 1rem; color: var(--text); font-weight: 500; }
.contact-item__value a { font-weight: 600; color: var(--dark); }
.contact-item__value a:hover { color: var(--accent); }
.contacts__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.contacts__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 320px;
  background: var(--bg-alt);
}
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- 19. Форма заявки ---------- */
.lead-form { display: grid; gap: 1rem; }
.lead-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.lead-form__field { display: flex; flex-direction: column; gap: .35rem; }
.lead-form__label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.lead-form__input,
.lead-form__select,
.lead-form__textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.lead-form__input::placeholder,
.lead-form__textarea::placeholder { color: #a3a3ab; }
.lead-form__input:focus,
.lead-form__select:focus,
.lead-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lead-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.lead-form__textarea { resize: vertical; min-height: 96px; }
.lead-form__submit { margin-top: .25rem; }
.lead-form__note { font-size: .8rem; color: var(--muted); text-align: center; }

/* Форма-заявка внутри тёмной секции/CTA */
.lead-cta {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, #013a4f 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.lead-cta__title { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; }
.lead-cta__text { color: #bcd0d8; margin-top: .75rem; }
.lead-cta .lead-form { background: #fff; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); }

/* ---------- 20. Подвал ---------- */
.site-footer {
  background: var(--dark);
  color: #9fb4bd;
  padding-block: clamp(2rem, 5vw, 3rem);
}
.site-footer a { color: #cfe0e6; }
.site-footer a:hover { color: var(--accent); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.site-footer__logo img { height: 44px; width: auto; }
.site-footer__col { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer__bottom {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .82rem; color: #7e97a1;
}

/* ---------- 21. Плавающая кнопка WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .2s var(--ease);
  animation: wa-pulse 2.4s infinite;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- 22. «Made on Tilda» ---------- */
.made-on {
  text-align: center;
  padding: 1rem;
  font-size: .8rem;
  color: var(--muted);
  background: var(--bg-alt);
}

/* ---------- 23. Утилиты ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.is-hidden { display: none !important; }

/* ============================================================
   Адаптив (mobile-first → расширяемся вверх)
   ============================================================ */

/* ≥ 480px */
@media (min-width: 480px) {
  .payment { gap: 1.25rem; }
}

/* ≥ 640px */
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features10 { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .letters { grid-template-columns: repeat(3, 1fr); }
  .lead-form__row--2 { grid-template-columns: 1fr 1fr; }
}

/* ≥ 960px */
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
  .about-card__grid { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .clients { grid-template-columns: repeat(5, 1fr); }
  .letters { grid-template-columns: repeat(3, 1fr); }
  .contacts__grid { grid-template-columns: 1fr 1.1fr; }
  .lead-cta { grid-template-columns: .9fr 1.1fr; }
}

/* ≥ 1200px */
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Мобильная навигация (< 960px) ---------- */
@media (max-width: 959.98px) {
  :root { --header-h: 72px; }

  .top-bar { display: none; }              /* контакты уезжают в мобильное меню */
  .burger { display: flex; }

  .main-nav__inner { min-height: 72px; }

  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.25rem clamp(16px, 4vw, 32px) 2rem;
    min-height: 0;
  }
  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav__link {
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .main-nav__link::after { display: none; }
  .main-nav__cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
    gap: .85rem;
  }
  .main-nav__cta .btn { width: 100%; }

  /* мобильные контакты внутри меню (опционально выводятся сборщиком) */
  .main-nav__contacts {
    display: flex; flex-direction: column; gap: .75rem;
    margin-top: 1.25rem; padding-top: 1.25rem;
    border-top: 1px solid var(--border);
  }
}

/* На десктопе мобильные контакты в меню не нужны */
@media (min-width: 960px) {
  .main-nav__contacts { display: none; }
}

/* ---------- Уважение к prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---- Фиксы полноты 1:1: hero-декор, баннер (секция 17), карта 2ГИС ---- */
.hero__media { position: relative; }
.hero__img { display: block; width: 100%; height: auto; }
.hero__decor { position: absolute; pointer-events: none; }
.hero__decor--sign { width: 64px; top: 6%; right: -14px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.12)); }
.hero__decor--badge { width: 76px; bottom: 8%; right: -18px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.12)); }
.hero__decor--illus { width: 40%; max-width: 200px; bottom: -6%; left: -22px; border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
@media (max-width: 640px) {
  .hero__decor--sign, .hero__decor--badge, .hero__decor--illus { display: none; }
}

/* Декоративный баннер (секция 17) */
.banner { padding: 0; }
.banner__inner {
  background: var(--blue, #365da8);
  border-radius: var(--radius-lg, 18px);
  margin: 28px 0;
  padding: 22px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.banner__img { max-width: 100%; height: auto; max-height: 220px; object-fit: contain; }

/* Карточка адреса/карты 2ГИС в контактах */
.contacts__map-card {
  display: flex; gap: 16px; align-items: center;
  min-height: 320px; height: 100%;
  background: var(--bg-alt, #fbfbfc);
  border: 1px solid var(--border, #e9e9ee);
  border-radius: var(--radius-lg, 18px);
  padding: 28px; text-decoration: none; color: var(--text, #333235);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.contacts__map-card:hover { box-shadow: 0 12px 30px rgba(54,93,168,.15); transform: translateY(-2px); border-color: var(--blue, #365da8); }
.contacts__map-pin img { width: 54px; height: auto; }
.contacts__map-text { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.contacts__map-text b { font-size: 17px; }
.contacts__map-link { color: var(--blue, #365da8); font-weight: 600; margin-top: 4px; }

/* ==================================================================
   РЕДИЗАЙН ХЕДЕРА И ГЕРОЯ ПОД ОРИГИНАЛ (навбар-карточка + бургер, герой)
   ================================================================== */

/* ---------- Шапка: плавающая белая карточка ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; background: transparent; box-shadow: none; padding: 16px 0; }
.site-header__bar {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 6px 30px rgba(60,70,120,.10);
  padding: 12px 18px 12px 24px;
}
.site-header__logo { flex: none; display: inline-flex; }
.site-header__logo img { height: 46px; width: auto; display: block; }
.site-header__contacts { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.hcontact { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text, #2e2e2e); }
.hcontact__ic { width: 26px; height: 26px; object-fit: contain; flex: none; }
.hcontact__ic--wa { width: 34px; height: 34px; }
.hcontact__text { font-size: 14px; line-height: 1.3; color: #4a4a4f; }
.hcontact--phone .hcontact__text { font-size: 19px; font-weight: 700; color: #2e2e2e; white-space: nowrap; }
.burger {
  flex: none; width: 54px; height: 54px; border: 0; cursor: pointer;
  background: #eef1f6; border-radius: 12px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background .2s;
}
.burger:hover { background: #e4e8f0; }
.burger span { display: block; width: 24px; height: 2.5px; border-radius: 3px; background: #2e2e2e; transition: .25s; }
.header-spacer { height: 0; }

/* ---------- Навигация: оверлей справа ---------- */
.main-nav {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,20,40,.5); backdrop-filter: blur(2px);
  display: flex; justify-content: flex-end;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.main-nav.is-open { opacity: 1; visibility: visible; }
.main-nav__panel {
  position: relative; background: #fff; width: min(380px, 88vw); height: 100%;
  padding: 76px 26px 28px; overflow-y: auto;
  transform: translateX(24px); transition: transform .25s;
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
}
.main-nav.is-open .main-nav__panel { transform: none; }
.main-nav__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; font-size: 34px; line-height: 1; color: #999; cursor: pointer; }
.main-nav__close:hover { color: #2e2e2e; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.main-nav__link { display: block; padding: 12px 10px; color: #2e2e2e; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 10px; transition: background .15s, color .15s; }
.main-nav__link:hover { background: #f2f5fb; color: var(--blue, #365da8); }
.main-nav__cta { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border, #e9e9ee); display: flex; flex-direction: column; gap: 14px; }
.main-nav__phone { font-size: 20px; font-weight: 700; color: #2e2e2e; text-decoration: none; }

/* ---------- Кнопка синяя ---------- */
.btn--blue { background: var(--blue, #365da8); color: #fff; text-transform: uppercase; letter-spacing: .04em; border-radius: 40px; box-shadow: 0 12px 26px rgba(54,93,168,.30); }
.btn--blue:hover { background: #2c4d8c; box-shadow: 0 14px 30px rgba(54,93,168,.40); }

/* ---------- Герой ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg,#f2f9fc 0%,#fbfdff 100%); padding: 120px 0 60px; }
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .22; z-index: 0; pointer-events: none; user-select: none; }
.hero .container { position: relative; z-index: 1; }
.hero__grid { position: relative; display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 16px; align-items: center; min-height: 600px; }

.hero__title { font-size: clamp(36px, 4.4vw, 58px); font-weight: 800; color: #2e2e2e; line-height: 1.06; letter-spacing: -.015em; margin: 0 0 30px; }
.hero__stats { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hero__stat { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #2e2e2e; }
.hero__stat img { width: 30px; height: 30px; flex: none; }
.hero__cta { font-size: 17px; padding: 17px 40px; }

/* правая часть: фото студентки (левее) + зелёные карточки по правому краю */
.hero__media { position: relative; min-height: 600px; display: flex; align-items: flex-end; justify-content: flex-start; }
.hero__photo { position: relative; z-index: 1; display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; margin-left: -8%; }
.hero__cards { position: absolute; top: 50%; right: 0; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 16px; }
.hero-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--wa, #37cb79); color: #fff; text-decoration: none;
  border-radius: 16px; padding: 14px 24px 14px 16px; min-width: 236px;
  box-shadow: 0 14px 30px rgba(55,203,121,.35);
  font-weight: 700; font-size: 18px; line-height: 1.15;
  transition: transform .2s, box-shadow .2s;
}
.hero-card:hover { transform: translateX(-5px); box-shadow: 0 18px 36px rgba(55,203,121,.48); }
.hero-card__ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(255,255,255,.20); border-radius: 12px; }
.hero-card__ic img { width: 26px; height: 26px; object-fit: contain; }

/* стрелка-скролл */
.hero__scroll { position: absolute; right: 8px; bottom: -18px; width: 48px; height: 48px; border: 1.5px solid var(--blue, #365da8); border-radius: 50%; display: grid; place-items: center; z-index: 3; background: rgba(255,255,255,.6); transition: transform .2s; }
.hero__scroll:hover { transform: translateY(4px); }
.hero__scroll img { width: 20px; height: 20px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .hero-card { min-width: 200px; font-size: 16px; }
  .hcontact__text { font-size: 13px; }
  .hcontact--phone .hcontact__text { font-size: 17px; }
}
@media (max-width: 960px) {
  .site-header__contacts { gap: 16px; }
  .hcontact:not(.hcontact--phone) { display: none; }   /* на планшете оставляем телефон */
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: auto; flex-direction: column; align-items: center; justify-content: center; }
  .hero__photo { max-height: 420px; margin-left: 0; }
  .hero__cards { position: static; transform: none; right: auto; flex-direction: column; gap: 12px; margin: 18px auto 0; width: 100%; max-width: 460px; }
  .hero-card { min-width: 0; width: 100%; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) {
  /* Шапка: телефон + email в столбик рядом с WhatsApp (как в оригинале) */
  .site-header { padding: 12px 0; }
  .site-header__bar { padding: 9px 10px 9px 14px; gap: 10px; }
  .site-header__logo img { height: 36px; }
  .site-header__contacts { flex-direction: column; align-items: flex-start; gap: 1px; margin-left: auto; }
  .hcontact--phone { order: 1; }
  .hcontact--phone .hcontact__text { display: inline; font-size: 15px; }
  .hcontact--phone .hcontact__ic--wa { width: 30px; height: 30px; }
  a.hcontact[href^="mailto"] { display: inline-flex; order: 2; padding-left: 40px; }
  a.hcontact[href^="mailto"] .hcontact__ic { display: none; }
  a.hcontact[href^="mailto"] .hcontact__text { font-size: 13px; color: #5a5a60; }
  .burger { width: 44px; height: 44px; }

  /* Герой: фото справа, зелёные карточки слева поверх фото (как в оригинале) */
  .hero { padding-top: 122px; padding-bottom: 40px; }
  .hero__title { margin-bottom: 22px; }
  .hero__stat { font-size: 14px; }
  .hero__stats { flex-direction: column-reverse; }   /* порядок как в оригинале: 50000 → 14 лет → 38 */
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "content" "stage"; gap: 0; min-height: 0; }
  .hero__content { grid-area: content; }
  .hero__media { grid-area: stage; justify-self: end; align-self: start; display: block; min-height: 0; margin: -50px -16px 0 0; }
  .hero__photo { max-height: 530px; margin-left: 0; width: auto; }
  .hero__cards {
    grid-area: stage; justify-self: start; align-self: start; margin: 92px 0 0;
    position: static; transform: none; right: auto; z-index: 3;
    flex-direction: column; gap: 9px; width: min(64%, 244px);
  }
  .hero-card { width: 100%; min-width: 0; padding: 11px 12px; font-size: 14px; gap: 10px; border-radius: 14px; }
  .hero-card__ic { width: 38px; height: 38px; }
  .hero-card__ic img { width: 22px; height: 22px; }

  /* О нас: карточка на мобиле — компактнее иконки/зазоры */
  .about-card { padding: 1.5rem 1.1rem; }
  .about-card__stats { gap: 1.2rem .9rem; }
  .about-stat { gap: .6rem; align-items: flex-start; }
  .about-stat__icon { width: 38px; height: 38px; }
  .about-stat__icon img { width: 22px; height: 22px; }
  .about-stat__text { font-size: .88rem; }
}
