/* =============================================================================
   FF IDEAL — Marketing & Auth Landing Styles
   =============================================================================
   Стили для auth_form.php (лендинг + модальные окна авторизации).
   Берёт токены из ../colors_and_type.css.
   Источник вёрстки: ui_kits/marketing/index.html (FF IDEAL Design System).
   ========================================================================== */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--fg-1); }

/* ===== Background (полноэкранный фотофон с цветовым washed-overlay) ===== */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background-color: #0E1F3A;
  background-image:
    linear-gradient(135deg, rgba(14, 31, 58, 0.78), rgba(31, 153, 84, 0.62)),
    url('https://images.pexels.com/photos/4484069/pexels-photo-4484069.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
}

/* ===== Navigation (sticky glassy) ===== */
.nav {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 50;
}
.nav-in {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.wm { display: flex; align-items: baseline; gap: 8px; }
.wm .n {
  font-weight: 800; font-size: 20px;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}
.wm .s {
  font-weight: 500; color: var(--fg-2); font-size: 13px;
}
.nav-links { display: flex; gap: 4px; }
.nl {
  padding: 8px 14px; border-radius: 8px;
  color: var(--fg-1); text-decoration: none;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.nl:hover { background: var(--bg-3); }
.nav-cta { display: flex; gap: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 8px;
  font: 500 14px/1 var(--font-sans);
  cursor: pointer; border: 1px solid transparent;
  transition: all 150ms;
  text-decoration: none; color: inherit;
}
.btn-ghost { border-color: var(--border); background: #fff; color: var(--fg-1); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-pri { background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-pri:hover { background: var(--brand-primary-dark); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-copy {
  background: linear-gradient(135deg, rgba(14, 31, 58, 0.74), rgba(14, 31, 58, 0.48));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 40px 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; color: #fff; margin: 0;
}
.hero .lede {
  font-size: 18px; color: rgba(255, 255, 255, 0.92);
  margin-top: 18px; line-height: 1.5; max-width: 52ch;
}
.hero .bullets {
  margin: 22px 0 28px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.hero .bullets li {
  color: rgba(255, 255, 255, 0.9); font-size: 14.5px;
  display: flex; gap: 10px; align-items: center;
}
.hero .bullets i { color: #6ee7b7; font-size: 12px; }
.hero .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-xl);
}
.glass h3 {
  font-size: 18px; font-weight: 600;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.glass .kv {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.glass .kv:last-of-type { border-bottom: none; }
.glass .kv .k { color: var(--fg-2); }
.glass .kv .v { font-weight: 600; }
.glass .empty {
  padding: 14px 0; color: var(--fg-3); font-size: 14px; text-align: center;
}
.mp-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mp-chip {
  padding: 6px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 700;
}
.mp-chip.wb { background: var(--mp-wb-soft); color: var(--mp-wb); }
.mp-chip.oz { background: var(--mp-ozon-soft); color: var(--mp-ozon); }
.mp-chip.ym { background: var(--mp-yam-soft); color: #947200; }

/* TEMP: Яндекс пока скрыт по запросу пользователя — удалить эту секцию при возврате */
.mp-chip.ym, .t-mp.ym { display: none !important; }

/* ===== About ===== */
.about { background: #fff; padding: 80px 24px; }
.about-in {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.about-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  grid-column: span 2;
}
.about-row.rev { direction: rtl; }
.about-row.rev > * { direction: ltr; }
.about-text { padding: 36px; }
.about-text .em { font-size: 30px; display: block; margin-bottom: 10px; }
.about-text h3 {
  font-size: 22px; font-weight: 700;
  margin: 0 0 12px; letter-spacing: -0.01em;
}
.about-text p {
  color: var(--fg-2); font-size: 15px;
  line-height: 1.6; margin: 0;
}
.about-text .summary {
  margin-top: 14px; padding: 14px;
  background: var(--brand-primary-softer);
  border-radius: 10px;
  font-size: 13.5px; color: var(--fg-1);
}
.about-img {
  width: 100%; height: 100%;
  min-height: 240px; object-fit: cover; display: block;
}
.about-h2 { grid-column: span 2; text-align: center; margin: 0 0 8px; }
.about-h2 h2 {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.s-kicker {
  font-size: 12px; font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 10px;
}

/* ===== Services ===== */
.services { background: var(--bg-2); padding: 80px 24px; }
.s-in { max-width: 1200px; margin: 0 auto; }
.s-head { text-align: center; margin-bottom: 44px; }
.s-head h2 {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.s-head p {
  margin-top: 12px; color: var(--fg-2); font-size: 16px;
  max-width: 56ch; margin-left: auto; margin-right: auto;
}
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.s-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all 200ms;
}
.s-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.s-emoji { font-size: 36px; margin-bottom: 16px; display: block; }
.s-card h4 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.s-card p { font-size: 14px; color: var(--fg-2); line-height: 1.6; margin: 0; }
.s-card ul { margin-top: 14px; padding: 0; list-style: none; }
.s-card li {
  padding: 6px 0; font-size: 13px; color: var(--fg-1);
  display: flex; gap: 8px; align-items: flex-start;
}
.s-card li i { color: var(--brand-primary); font-size: 12px; margin-top: 3px; }

/* ===== Tariffs ===== */
.tariffs { background: var(--bg-2); padding: 80px 24px; }
.t-in { max-width: 1100px; margin: 0 auto; }
.t-head { text-align: center; margin-bottom: 36px; }
.t-head h2 {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.t-head p {
  margin-top: 12px; color: var(--fg-2);
  max-width: 60ch; margin-left: auto; margin-right: auto;
}
.t-badges {
  margin-top: 14px; display: flex; flex-wrap: wrap;
  gap: 6px; justify-content: center;
}
.t-badge {
  padding: 5px 12px; border-radius: 9999px;
  border: 1px solid var(--border); background: #fff;
  font-size: 12.5px; color: var(--fg-2);
}
.t-table-wrap {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.t-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-table thead { background: var(--bg-2); }
.t-table th {
  font-size: 11px; font-weight: 700;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.t-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.t-table tr:last-child td { border-bottom: none; }
.t-table tr:hover td { background: var(--bg-2); }
.t-name { font-weight: 600; color: var(--fg-1); }
.t-region { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.t-price { font-weight: 700; color: var(--fg-1); font-size: 15px; }
.t-mp {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 9999px;
  font-size: 10.5px; font-weight: 700;
  margin-left: 6px; vertical-align: middle;
}
.t-mp.wb { background: var(--mp-wb-soft); color: var(--mp-wb); }
.t-mp.oz { background: var(--mp-ozon-soft); color: var(--mp-ozon); }
.t-mp.ym { background: var(--mp-yam-soft); color: #947200; }
.t-foot { margin-top: 18px; text-align: center; color: var(--fg-3); font-size: 13px; }
.t-foot a { color: var(--brand-primary); font-weight: 500; text-decoration: none; }
.t-foot a:hover { text-decoration: underline; }

/* ===== Offices ===== */
.offices { background: #fff; padding: 80px 24px; }
.o-in { max-width: 1200px; margin: 0 auto; }
.o-head { text-align: center; margin-bottom: 36px; }
.o-head h2 {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.o-head p { margin-top: 12px; color: var(--fg-2); }
.o-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.o-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  transition: all 200ms;
  display: flex; flex-direction: column; gap: 6px;
}
.o-card.main {
  background: linear-gradient(135deg, var(--brand-primary), #1ea65c);
  color: #fff; border-color: transparent;
}
.o-card.main .o-tag { background: rgba(255, 255, 255, 0.2); color: #fff; }
.o-card.main .o-city,
.o-card.main .o-addr,
.o-card.main .o-meta { color: #fff; }
.o-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.o-tag {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 9999px;
  background: var(--brand-primary-softer); color: var(--brand-primary);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.o-city {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em; margin: 0;
}
.o-addr { font-size: 13px; color: var(--fg-1); line-height: 1.5; }
.o-meta {
  font-size: 12.5px; color: var(--fg-2);
  display: flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 8px;
}
.o-meta i { font-size: 11px; width: 14px; }

/* ===== Contacts ===== */
.contacts { background: var(--bg-2); padding: 80px 24px; }
.c-in { max-width: 1200px; margin: 0 auto; }
.c-head { text-align: center; margin-bottom: 36px; }
.c-head h2 {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.c-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.c-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  text-align: center;
  transition: all 200ms;
}
.c-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.c-em { font-size: 30px; margin-bottom: 10px; display: block; }
.c-card h4 {
  font-size: 13px; font-weight: 600;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.07em;
  margin: 0 0 8px;
}
.c-card a, .c-card p {
  font-size: 15.5px; font-weight: 600;
  color: var(--fg-1); text-decoration: none;
  line-height: 1.5; margin: 0;
}
.c-card a:hover { color: var(--brand-primary); }

/* ===== CTA Band ===== */
.cta-band { background: var(--bg-2); padding: 60px 24px; text-align: center; }
.cta-band h2 { font-size: 28px; font-weight: 700; margin: 0 0 10px; }
.cta-band p { color: var(--fg-2); margin: 0 0 24px; }
.cta-row-c { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
footer {
  padding: 48px 24px 28px;
  background: #0f1729;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
}
.foot-in {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-col h4 {
  color: #fff; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; margin: 0 0 14px;
}
.foot-col a, .foot-col p {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none; line-height: 1.7;
  margin: 0; font-size: 13.5px;
}
.foot-col a:hover { color: #fff; }
.foot-brand .n {
  font-weight: 800; color: #fff; font-size: 18px;
  letter-spacing: -0.02em;
}
.foot-brand .s {
  color: var(--brand-primary); font-weight: 600;
  margin-left: 6px; font-size: 13px;
}
.foot-brand p { margin-top: 10px; max-width: 36ch; }
.foot-bottom {
  max-width: 1200px; margin: 20px auto 0;
  display: flex; justify-content: space-between;
  color: rgba(255, 255, 255, 0.45); font-size: 12.5px;
  flex-wrap: wrap; gap: 8px;
}

/* ===== Smooth scroll ===== */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* =============================================================================
   AUTH MODAL
   ========================================================================== */

.scrim {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms;
}
.scrim.show { opacity: 1; pointer-events: auto; }

.am {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: 101;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: #fff; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms, transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.am.show {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.mh {
  padding: 24px 28px 8px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.mh .wm { gap: 6px; }
.mh .wm .n { font-size: 18px; }
.mclose {
  width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; cursor: pointer;
  color: var(--fg-2); font-size: 13px;
}
.mclose:hover { background: var(--bg-3); }

.mtabs {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 4px 28px 0;
  background: var(--bg-3); border-radius: 10px;
  padding: 3px; flex-shrink: 0;
}
.mtab {
  padding: 9px 12px; text-align: center;
  border-radius: 7px;
  font: 600 13px var(--font-sans);
  color: var(--fg-2); cursor: pointer;
  transition: all 150ms;
  border: none; background: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mtab i { font-size: 12px; }
.mtab.active {
  background: #fff; color: var(--fg-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.am-scroll { overflow-y: auto; flex: 1; }
.mbody { padding: 20px 28px 8px; }
.mbody h3 {
  font-size: 20px; font-weight: 700;
  margin: 0 0 4px; letter-spacing: -0.01em;
}
.mbody .sub { color: var(--fg-2); font-size: 13px; margin: 0 0 16px; }

/* Login mode toggle (Пароль / Код из email) */
.mode-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; background: var(--bg-3);
  padding: 4px; border-radius: 10px;
  margin-bottom: 14px;
}
.mode-opt {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px;
  background: none; border: none;
  border-radius: 7px;
  color: var(--fg-2);
  font: 600 12.5px var(--font-sans);
  cursor: pointer; transition: all 150ms;
}
.mode-opt i { font-size: 11px; }
.mode-opt.active {
  background: #fff; color: var(--fg-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Field */
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 11.5px; font-weight: 600;
  color: var(--fg-2); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.field input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font: 400 14px/1.4 var(--font-sans);
  background: #fff;
  /* Явный цвет текста + color-scheme: light, чтобы браузер с системной dark-темой
     не перекрашивал input в белый текст на белом фоне (классический WebKit-баг). */
  color: var(--fg-1);
  color-scheme: light;
  outline: none;
  box-sizing: border-box;
  transition: all 150ms;
  -webkit-text-fill-color: var(--fg-1); /* Safari: дублёр для color (защищает от автозаполнения) */
}
.field input::placeholder {
  color: var(--fg-3);
  opacity: 1;
}
.field input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-softer);
}
.field .hint {
  font-size: 11.5px; color: var(--fg-3);
  margin-top: 5px;
  display: flex; gap: 6px; align-items: center;
}
.field .hint i { color: var(--brand-primary); }

/* Подсветка проблемного поля при ошибке валидации регистрации */
.field.field--invalid label { color: var(--color-error); }
.field.field--invalid input {
  border-color: var(--color-error);
  background: rgba(220, 38, 38, 0.04);
}
.field.field--invalid input:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}
.field.field--invalid .hint,
.field.field--invalid .hint i { color: var(--color-error); }
.field-pw { position: relative; }
.field-pw .eye {
  position: absolute; right: 10px; top: 30px;
  background: none; border: none;
  color: var(--fg-3); cursor: pointer;
}
.field-code input {
  letter-spacing: 0.3em;
  font-weight: 600; text-align: center;
}
.field-inline { margin-top: 8px; }
.flink {
  background: none; border: none; padding: 0;
  color: var(--brand-primary);
  font: 500 13px var(--font-sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.flink:hover { text-decoration: underline; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 16px; font-size: 13px;
}
.row label {
  display: flex; align-items: center; gap: 8px;
  color: var(--fg-2); cursor: pointer;
}
.row label input { width: 15px; height: 15px; accent-color: var(--brand-primary); }
.row a {
  color: var(--brand-primary); text-decoration: none;
  font-weight: 500; cursor: pointer;
}
.row a:hover { text-decoration: underline; }

.mfoot { padding: 0 28px 22px; flex-shrink: 0; background: #fff; }
.mfoot .btn { width: 100%; height: 44px; font-weight: 600; }
.terms {
  text-align: center;
  font-size: 11.5px; color: var(--fg-3);
  margin-top: 12px; line-height: 1.5;
}
.terms a { color: var(--fg-2); text-decoration: underline; }

/* Pane + mode toggles */
.pane { display: none; }
.pane.active { display: block; }
.mode-pw .mode-code-field { display: none; }
.mode-code .mode-pw-field { display: none; }

/* Alerts in modal */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px; font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert.error { background: var(--color-error-soft); color: var(--color-error); }
.alert.success { background: var(--color-success-soft); color: var(--color-success); }
.alert.info { background: var(--color-info-soft); color: var(--color-info); }

/* ===== Loading state for submit button ===== */
.btn .btn-loader { display: none; }
.btn.loading .btn-text { opacity: 0.6; }
.btn.loading .btn-loader {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ===== Mobile (modal-open lock-scroll) ===== */
body.modal-open { overflow: hidden; position: fixed; width: 100%; }

/* =============================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 16px 40px; gap: 24px;
  }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 16px; }
  .hero-copy { padding: 24px 22px; min-width: 0; }
  .services, .tariffs, .offices, .contacts, .about { padding: 56px 16px; }
  .s-head h2, .t-head h2, .o-head h2, .c-head h2, .about-h2 h2 { font-size: 26px; }
  .s-grid { grid-template-columns: 1fr; gap: 14px; }
  .s-card { padding: 22px; }
  .cta-band { padding: 44px 16px; }
  .cta-band h2 { font-size: 22px; }
  .about-in, .about-row { grid-template-columns: 1fr; }
  .about-row.rev { direction: ltr; }
  .about-h2 { grid-column: auto; }
  .about-text { padding: 24px; }
  .about-img { min-height: 200px; max-height: 240px; }
  .o-grid { grid-template-columns: 1fr 1fr; }
  .c-grid { grid-template-columns: 1fr 1fr; }
  .t-table th, .t-table td { padding: 12px 14px; }
  .t-table-wrap { overflow-x: auto; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .o-grid { grid-template-columns: 1fr; }
  .c-grid { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
  .nav-in { padding: 0 14px; height: 60px; }
  .wm .n { font-size: 17px; }
  .wm .s { font-size: 12px; }
  .nav-cta .btn { padding: 0 12px; height: 36px; font-size: 13px; }
  .nav-cta .btn i { display: none; }
  .hero h1 { font-size: 26px; line-height: 1.12; }
  .hero .lede { font-size: 15px; margin-top: 14px; }
  .hero .bullets li { font-size: 13.5px; }
  .hero-copy { padding: 22px 18px; border-radius: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .glass { padding: 22px 18px; border-radius: 16px; }
  .am {
    /* Отступы по бокам 12px, сверху/снизу 20px (с учётом safe-area для iPhone notch). */
    width: calc(100vw - 24px);
    max-height: calc(100vh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
  }
  .mh { padding: 18px 18px 6px; }
  .mtabs { margin: 4px 18px 0; }
  .mbody { padding: 16px 18px 6px; }
  .mbody h3 { font-size: 18px; }
  .mfoot { padding: 0 18px 18px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .field input { font-size: 16px; }  /* avoid iOS zoom-on-focus */
}
