/* ==========================================================================
   Лендинг ремонта iPhone
   Палитра взята из образца: бирюза + фуксия на тёмно-синей подложке.
   Картинок нет — фон собран на градиентах, иконки инлайновые SVG.
   ========================================================================== */

:root {
  --teal: #54d8a3;
  --teal-dark: #2fa87a;
  --teal-deep: #1c6b4e;
  --pink: #d92e7f;
  --pink-dark: #a62778;
  --purple: #af4d8c;

  --ink: #0f1d2e;
  --ink-soft: #1b2c42;
  --text: #22303f;
  --text-mute: #64748b;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-muted: #f5f8fa;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 29, 46, .06);
  --shadow: 0 10px 30px rgba(15, 29, 46, .10);
  --shadow-lg: 0 24px 60px rgba(15, 29, 46, .18);

  --gap: 24px;
  --section-y: clamp(48px, 7vw, 96px);

  --font: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Open Sans', Arial, sans-serif;
}

/* ── база ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 820px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.icon {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--sm { width: 18px; height: 18px; }

/* ── кнопки ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #06301f;
  box-shadow: 0 10px 24px rgba(47, 168, 122, .35);
}
.btn--accent {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 46, 127, .32);
}
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: rgba(84, 216, 163, .12); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--wide { width: 100%; max-width: 380px; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pink);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ── секции ──────────────────────────────────────────────────────────────── */

.section { padding: var(--section-y) 0; }
.section--muted { background: var(--bg-muted); }

.section__title {
  margin-bottom: 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
}
.section__title--left { text-align: left; }

.section__lead {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--text-mute);
}
.section__lead--left { margin-left: 0; text-align: left; }

/* ── шапка ───────────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 29, 46, .96);
  color: #fff;
  backdrop-filter: blur(8px);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 74px;
}

.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo:hover { text-decoration: none; }
/* Знак логотипа — картинка на белом фоне: у исходного файла фон белый,
   поэтому подложка того же цвета, иначе на тёмной шапке видны углы. */
.logo__mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  flex: none;
}
.logo__text { font-size: 17px; font-weight: 700; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 22px; }
.nav__list a {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}
.nav__list a:hover { color: var(--teal); text-decoration: none; }

.header__contact {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__phone {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.header__phone:hover { color: var(--teal); text-decoration: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 6vw, 96px);
  background:
    radial-gradient(900px 500px at 88% 8%, rgba(217, 46, 127, .30), transparent 60%),
    radial-gradient(760px 460px at 6% 92%, rgba(84, 216, 163, .26), transparent 62%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.hero__subtitle {
  margin-top: 10px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--teal);
}
.hero__lead {
  max-width: 520px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .82);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__fact dt {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero__fact dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--teal);
}

/* Заглушка вместо фото: силуэт телефона на градиенте */
.hero__media { display: grid; place-items: center; }
.hero__phone-mock {
  position: relative;
  width: min(260px, 60vw);
  aspect-ratio: 9 / 18.5;
  border: 3px solid rgba(255, 255, 255, .28);
  border-radius: 36px;
  background: linear-gradient(150deg, rgba(84, 216, 163, .30), rgba(217, 46, 127, .30));
  box-shadow: var(--shadow-lg);
}
.hero__phone-mock span {
  position: absolute;
  top: 14px; left: 50%;
  width: 62px; height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
}

/* ── бегущая строка ──────────────────────────────────────────────────────── */

.ticker {
  overflow: hidden;
  padding: 16px 0;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-dark));
  color: #fff;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker__list {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}
.ticker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.ticker__icon { width: 20px; height: 20px; color: #bff6df; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker:hover .ticker__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
}

/* ── прайс ───────────────────────────────────────────────────────────────── */

.prices__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.prices__tab {
  padding: 11px 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.prices__tab:hover { border-color: var(--teal); }
.prices__tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #06301f;
}

.prices__panel { max-width: 860px; margin: 0 auto; }
.prices__panel:not(.is-active) { display: none; }

.prices__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.prices__table thead th {
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
}
.prices__table thead th:last-child { text-align: right; }
.prices__table tbody tr:nth-child(even) { background: var(--bg-muted); }

.prices__service {
  padding: 13px 20px;
  font-weight: 400;
  text-align: left;
}
.prices__price {
  padding: 13px 20px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
  color: var(--ink);
}

.prices__missing {
  margin-top: 18px;
  text-align: center;
  color: var(--text-mute);
}
.prices__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 24px;
  color: var(--text-mute);
  font-size: 15px;
  text-align: center;
}
.prices .btn--wide { margin: 0 auto; display: flex; }

/* ── карточки ────────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: var(--gap);
}
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(84, 216, 163, .16);
  color: var(--teal-deep);
}
.card__icon--accent {
  background: rgba(217, 46, 127, .12);
  color: var(--pink-dark);
}
.card__title {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}
.card__text { color: var(--text-mute); font-size: 16px; }

/* ── полоса «нашли дешевле» ──────────────────────────────────────────────── */

.band {
  padding: clamp(40px, 5vw, 68px) 0;
  background:
    radial-gradient(700px 400px at 12% 20%, rgba(217, 46, 127, .34), transparent 60%),
    linear-gradient(135deg, var(--pink-dark), var(--purple));
  color: #fff;
}
.band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.band__title {
  margin-bottom: 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
}
.band__text p { color: rgba(255, 255, 255, .88); }

/* ── отзывы ──────────────────────────────────────────────────────────────── */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.review__title {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--ink);
}
.review__quote { margin: 0; color: var(--text-mute); }
.review__quote p::before { content: '«'; }
.review__quote p::after { content: '»'; }
.review__author {
  margin-top: auto;
  color: var(--pink);
  font-weight: 700;
  font-size: 15px;
}

/* ── прокачаем / подарки ─────────────────────────────────────────────────── */

.upgrade {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.checklist { display: grid; gap: 12px; margin: 24px 0 30px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}
.checklist .icon { margin-top: 4px; color: var(--teal-dark); }
.checklist--tight { margin: 16px 0 0; }

.upgrade__gift {
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink), var(--ink-soft));
  color: #fff;
  box-shadow: var(--shadow);
}
.upgrade__gift h3 { font-size: 20px; line-height: 1.3; }
.upgrade__gift-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(217, 46, 127, .22);
  color: #fff;
}
.upgrade__gift .checklist li { color: rgba(255, 255, 255, .9); }
.upgrade__gift .checklist .icon { color: var(--teal); }

/* ── шаги ────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  counter-reset: step;
}
.step {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #06301f;
  font-size: 19px;
  font-weight: 700;
}
.step__title { margin-bottom: 8px; font-size: 19px; color: var(--ink); }
.step__text { color: var(--text-mute); }

/* ── форма заявки ────────────────────────────────────────────────────────── */

.cta {
  background:
    radial-gradient(800px 460px at 90% 12%, rgba(84, 216, 163, .22), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--ink-soft));
  color: #fff;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.cta .section__title, .cta .section__lead { color: #fff; }
.cta .section__lead { color: rgba(255, 255, 255, .82); }
.cta .checklist li { color: rgba(255, 255, 255, .9); }
.cta .checklist .icon { color: var(--teal); }
.cta__phone { margin-top: 24px; color: rgba(255, 255, 255, .8); }
.cta__phone a { color: var(--teal); font-size: 20px; font-weight: 700; }

.cta__form {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.form { display: grid; gap: 16px; }
.form--inline {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}

.field { display: grid; gap: 6px; }
.field__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.form--inline .field__label { color: #fff; }
.field__opt { font-weight: 400; color: var(--text-mute); }
.form--inline .field__opt { color: rgba(255, 255, 255, .7); }

.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* меньше 16px — iOS зумит страницу при фокусе */
  transition: border-color .15s ease;
}
.field__input:focus { border-color: var(--teal); outline: none; }
.field__input--area { resize: vertical; min-height: 92px; }

.field.is-invalid .field__input { border-color: #e2445c; }
.field__error {
  display: none;
  color: #e2445c;
  font-size: 14px;
}
.field.is-invalid .field__error { display: block; }
.form--inline .field__error { color: #ffd7de; }

.form__policy {
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.45;
}
.form--inline .form__policy { color: rgba(255, 255, 255, .75); }

.form__status { font-size: 15px; font-weight: 700; }
.form__status:empty { display: none; }
.form.is-error .form__status { color: #e2445c; }
.form--inline.is-error .form__status { color: #ffd7de; }

.form.is-sent {
  place-items: center;
  padding: 34px 24px;
  text-align: center;
}
.form.is-sent > *:not(.form__sent) { display: none; }
.form__sent { display: grid; gap: 10px; justify-items: center; }
.form__sent-icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(84, 216, 163, .18);
  color: var(--teal-deep);
}
.form__sent-title { font-size: 21px; color: var(--ink); }
.form--inline .form__sent-title { color: #fff; }
.form__sent-text { color: var(--text-mute); }
.form--inline .form__sent-text { color: rgba(255, 255, 255, .85); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  flex: none;
  font-size: 24px;
  font-weight: 400;
  color: var(--teal-dark);
  transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--text-mute); }

/* ── юридический текст (политика) ────────────────────────────────────────── */

.legal h2 {
  margin: 32px 0 10px;
  font-size: 21px;
  color: var(--ink);
}
.legal p { margin-bottom: 14px; color: var(--text); }
.legal .btn { margin-top: 22px; }
.legal__date { color: var(--text-mute); font-size: 15px; }

/* ── подвал ──────────────────────────────────────────────────────────────── */

.footer {
  padding: clamp(44px, 5vw, 72px) 0 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.footer__title { margin-bottom: 14px; font-size: 22px; color: #fff; }
.footer__subtitle { margin-bottom: 12px; font-size: 16px; color: #fff; }
.footer__phone a { color: #fff; font-size: 26px; font-weight: 700; }
.footer__phone { margin-bottom: 8px; }
.footer__col a { color: var(--teal); }
.footer__col .btn { margin-top: 16px; color: var(--teal); }
.footer__address { font-style: normal; line-height: 1.7; }

.socials { display: grid; gap: 10px; }
.social { display: flex; align-items: center; gap: 10px; color: var(--teal); }
.social__icon { width: 22px; height: 22px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
}
.footer__bottom a { color: rgba(255, 255, 255, .7); }

/* ── модальное окно ──────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 46, .72);
  backdrop-filter: blur(3px);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute;
  top: 10px; right: 14px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--text-mute);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.modal__title { margin-bottom: 8px; font-size: 24px; color: var(--ink); }
.modal__text { margin-bottom: 20px; color: var(--text-mute); }

body.is-locked { overflow: hidden; }

/* ── липкая панель действий на мобильных ─────────────────────────────────── */

/* На телефоне номер в шапке уезжает при скролле, а звонок — основное действие
   на таком лендинге. Панель держит «Позвонить» в зоне большого пальца. */
.mobile-bar { display: none; }

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 29, 46, .97);
    box-shadow: 0 -6px 24px rgba(15, 29, 46, .28);
    backdrop-filter: blur(8px);
  }
  .mobile-bar .btn {
    padding: 13px 10px;
    font-size: 15px;
  }
  /* иначе панель перекрывает подвал и политику */
  body { padding-bottom: 78px; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ── тост ────────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  text-align: center;
}
.toast[hidden] { display: none; }

/* ── адаптив ─────────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero__inner,
  .band__inner,
  .upgrade,
  .cta__inner { grid-template-columns: 1fr; }

  .hero__media { order: -1; }
  .hero__phone-mock { width: min(190px, 46vw); }

  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 20px 20px;
    background: var(--ink);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 16px;
  }

  .header__inner { position: relative; }
  .header__contact { order: 3; }
  .header__contact .btn { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .header__phone { font-size: 16px; }
  .logo__text { font-size: 15px; }

  .hero__facts { gap: 12px 24px; }
  .hero__fact dd { font-size: 20px; }
  .hero__actions .btn { width: 100%; }

  .prices__tab { padding: 9px 15px; font-size: 14px; }
  .prices__service, .prices__price { padding: 11px 13px; font-size: 15px; }
  .prices__table thead th { padding: 11px 13px; }

  .card, .step, .review { padding: 24px 20px; }
  .cta__form, .modal__dialog { padding: 24px 20px; }
  .btn--wide { max-width: none; }
}

/* ── печать ──────────────────────────────────────────────────────────────── */

@media print {
  .header, .ticker, .modal, .toast, .band, .cta, .btn { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .prices__panel { display: block !important; }
  .prices__panel[hidden] { display: block !important; }
}
