/* ==========================================================================
   Лендинг вакансии «Мастер по ремонту кофемашин»
   Светлая тёплая база + кофейные акценты.
   Порядок: токены → база → утилиты → секции сверху вниз → адаптив.
   ========================================================================== */

/* --- Токены ------------------------------------------------------------- */
:root {
  /* Поверхности: тёплый off-white, чтобы страница не выглядела «больнично» */
  --bg:          #FDFBF7;
  --bg-warm:     #F6F0E7;
  --surface:     #FFFFFF;

  /* Текст */
  --ink:         #191310;
  --ink-2:       #574C45;
  --ink-3:       #8A7D74;
  --on-dark:     #F6EFE7;
  --on-dark-2:   #B0A198;

  /* Линии */
  --line:        #E9E1D6;
  --line-strong: #D8CCBC;

  /* Акценты */
  --accent:      #E2611B;  /* «крема» — основной CTA */
  --accent-dark: #B84A0F;
  --accent-soft: #FCEDE2;
  --espresso:    #1F1410;  /* тёмная секция */
  --espresso-2:  #2E1F18;
  --money:       #0E7A4E;  /* всё, что про деньги */
  --money-soft:  #E5F4EC;

  /* Зелёный кнопки звонка - systemGreen из iOS, узнаётся как «позвонить» */
  --ios-green:      #34C759;
  --ios-green-dark: #2AA84A;

  /* Высота кнопок в липкой полосе; от неё же диаметр круглой кнопки звонка */
  --sticky-h: 54px;

  /* Геометрия */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --maxw: 1180px;
  --gut:  24px;

  /* Тени — мягкие и тёплые, не серые */
  --sh-1: 0 1px 2px rgba(31,20,16,.05), 0 2px 8px rgba(31,20,16,.04);
  --sh-2: 0 2px 4px rgba(31,20,16,.06), 0 12px 32px rgba(31,20,16,.08);
  --sh-cta: 0 2px 8px rgba(226,97,27,.28), 0 10px 24px rgba(226,97,27,.22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* --- База --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -.022em; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(27px, 4.2vw, 46px); letter-spacing: -.028em; }
h2 { font-size: clamp(23px, 3vw, 35px); letter-spacing: -.024em; }
h3 { font-size: clamp(19px, 2vw, 22px); letter-spacing: -.018em; line-height: 1.25; }
p  { margin: 0; }

/* Числа везде табличные — иначе суммы «прыгают» при пересчёте */
.num, .calc-out b, .stat-v { font-variant-numeric: tabular-nums; }

/* --- Утилиты ------------------------------------------------------------ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--warm { background: var(--bg-warm); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--accent); }

.lead { font-size: clamp(17px, 1.7vw, 19.5px); color: var(--ink-2); line-height: 1.55; }

.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.head p { margin-top: 16px; }

/* Плейсхолдеры — подчёркнуты пунктиром, чтобы их было видно и легко грепать */
.ph {
  border-bottom: 1.5px dashed var(--accent);
  color: var(--accent-dark);
  font-style: normal;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--sh-cta); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { border-color: var(--ink-3); }

.btn--on-dark { background: rgba(255,255,255,.08); color: var(--on-dark); border: 1.5px solid rgba(255,255,255,.2); }
.btn--on-dark:hover { background: rgba(255,255,255,.14); }

.btn--lg { padding: 19px 40px; font-size: 18px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Карточка */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}

/* --- Шапка -------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253,251,247,.86);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(31,20,16,.05); }

.hdr__in { display: flex; align-items: center; gap: 20px; height: 72px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo__mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: var(--espresso);
  color: var(--accent);
  display: grid; place-items: center;
}
.logo__mark svg { width: 19px; height: 19px; }

.hdr__spacer { flex: 1; }

.hdr__contacts { display: flex; align-items: center; gap: 22px; }
.hdr__tel { font-weight: 700; text-decoration: none; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.hdr__tel:hover { color: var(--accent-dark); }
.hdr__mail { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.hdr__mail:hover { color: var(--ink); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 96px);
}
/* Тёплое пятно «крема» за первым экраном */
.hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -180px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(226,97,27,.13) 0%, rgba(226,97,27,0) 65%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero__h1 { margin: 22px 0 20px; }
/* Каждая строка - отдельный блок: перенос задан вёрсткой, а не шириной
   контейнера, поэтому заголовок ломается одинаково на любом экране. */
.hero__h1-line { display: block; }
.hero__h1-line + .hero__h1-line { margin-top: .12em; }
.hero__h1 .hl {
  color: var(--accent-dark);
  background: linear-gradient(transparent 62%, rgba(226,97,27,.18) 62%);
  /* Фон-подчёркивание должен облегать текст, а не всю ширину строки-блока */
  display: inline-block;
}
.hero__h1-money { color: var(--money); }

.hero__sub { max-width: 560px; }

.hero__bullets {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  max-width: 560px;
}
.hero__bullets li {
  position: relative;
  padding-left: 30px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.hero__bullets li + li { margin-top: 12px; }
.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: .52em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero__bullets b { color: var(--ink); font-weight: 700; }

.hero__cta { margin-top: 34px; }

/* Фото первого экрана */
.hero__media { position: relative; }
.shot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Плашка-«чек» поверх фото */
.paycard {
  position: absolute;
  left: -26px; bottom: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  box-shadow: var(--sh-2);
  min-width: 216px;
}
.paycard__k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.paycard__v { margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--money); }

/* --- Полоса «без чего» -------------------------------------------------- */
.nots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.not { display: flex; gap: 13px; align-items: flex-start; }
.not__x {
  flex: none; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
}
.not__t { font-weight: 700; letter-spacing: -.012em; line-height: 1.3; }
.not__d { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }

/* --- Калькулятор -------------------------------------------------------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-2); background: var(--surface); }
.calc__ctrls { padding: clamp(28px, 3.6vw, 44px); }
.calc__res {
  padding: clamp(28px, 3.6vw, 44px);
  background: var(--espresso);
  color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center;
}

.ctrl + .ctrl { margin-top: 34px; }
.ctrl__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ctrl__lab { font-weight: 700; letter-spacing: -.012em; }
.ctrl__val { font-size: 22px; font-weight: 800; letter-spacing: -.025em; color: var(--accent-dark); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(226,97,27,.4);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(226,97,27,.4);
  cursor: grab;
}
input[type="range"]:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 4px; }
.ctrl__scale { display: flex; justify-content: space-between; margin-top: 9px; font-size: 13px; color: var(--ink-3); }

.calc__rate { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.calc__rate b { color: var(--ink); }

.calc-out__k { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.calc-out__big {
  margin: 12px 0 4px;
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}
.calc-out__big span { font-size: .55em; font-weight: 700; letter-spacing: -.02em; margin-left: 6px; color: var(--on-dark-2); }
.calc-out__sub { font-size: 15px; color: var(--on-dark-2); }

.calc-out__real {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(226,97,27,.14);
  border: 1px solid rgba(226,97,27,.3);
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-dark);
}

.calc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 32px; background: rgba(255,255,255,.12); border-radius: var(--r-sm); overflow: hidden; }
.calc-split div { background: var(--espresso-2); padding: 16px 18px; }
.calc-split .k { font-size: 13px; color: var(--on-dark-2); }
.calc-split .v { margin-top: 3px; font-size: 21px; font-weight: 800; letter-spacing: -.025em; color: #fff; }

.calc__cta { margin-top: 32px; }

/* --- Преимущества ------------------------------------------------------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk { padding: 28px 26px 30px; }
.perk__ico {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.perk__ico svg { width: 24px; height: 24px; }
.perk h3 { margin-bottom: 9px; }
.perk p { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }

/* --- Тёмная секция ------------------------------------------------------ */
.section--dark { background: var(--espresso); color: var(--on-dark); }
.section--dark h2 { color: #fff; }
.section--dark .lead { color: var(--on-dark-2); }

.duties { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 22px; }
.dcard {
  background: var(--espresso-2);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r);
  padding: 30px 28px;
}
.dcard--accent { background: linear-gradient(160deg, #34211a, #251710); border-color: rgba(226,97,27,.28); }
.dcard__k { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.dcard p { font-size: 15.5px; line-height: 1.6; color: var(--on-dark); }
.dcard p + p { margin-top: 12px; }

.ul { list-style: none; margin: 0; padding: 0; }
.ul li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.5; color: var(--on-dark); }
.ul li + li { margin-top: 13px; }
.ul li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.ul li b { color: #fff; }

.dark-cta { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.dark-cta__note { font-size: 14.5px; color: var(--on-dark-2); }

/* --- График ------------------------------------------------------------- */
.sched { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.sched-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { padding: 26px 24px; text-align: left; }
.tile__v { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.035em; color: var(--accent-dark); }
.tile__k { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* --- Шаги --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 28px; counter-increment: s; }
.step::before {
  content: counter(s);
  position: absolute; top: 26px; right: 24px;
  font-size: 46px; font-weight: 800; letter-spacing: -.04em;
  color: var(--bg-warm);
  line-height: 1;
}
.step h3 { position: relative; margin-bottom: 9px; padding-right: 40px; }
.step p { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.step__meta { display: inline-block; margin-top: 14px; padding: 4px 11px; border-radius: 999px; background: var(--money-soft); color: var(--money); font-size: 13px; font-weight: 700; }

/* --- Кому подойдёт ------------------------------------------------------ */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fitcard { padding: 32px 30px; }
.fitcard--yes { border-color: rgba(14,122,78,.28); background: linear-gradient(170deg, #F3FAF6, #fff 60%); }
.fitcard--no  { background: var(--bg-warm); border-color: var(--line-strong); }
.fitcard h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.fitcard h3 i {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 800;
}
.fitcard--yes h3 i { background: var(--money); color: #fff; }
.fitcard--no  h3 i { background: var(--line-strong); color: var(--ink-2); }
.fitlist { list-style: none; margin: 0; padding: 0; }
.fitlist li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.fitlist li + li { margin-top: 13px; }
.fitlist li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.fitcard--yes .fitlist li::before { background: var(--money); }

/* --- Галерея ------------------------------------------------------------ */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal figure { margin: 0; }
.gal .frame {
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--line);
}
.gal .frame img { width: 100%; height: 100%; object-fit: cover; }
.gal figcaption { margin-top: 11px; font-size: 14.5px; color: var(--ink-3); }
.gal figure:nth-child(odd) .frame { aspect-ratio: 3 / 4; }
.gal figure:nth-child(even) .frame { aspect-ratio: 3 / 4; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 860px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa__q {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-size: clamp(17px, 1.9vw, 19px); font-weight: 700; letter-spacing: -.015em; line-height: 1.35;
  list-style: none;
}
/* Нативные маркеры <summary> в Safari и Chrome убираются по-разному */
.qa__q::-webkit-details-marker { display: none; }
.qa__q::marker { content: ""; }
.qa__q:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-radius: 6px; }
.qa__q:hover { color: var(--accent-dark); }
.qa__ico {
  position: relative;
  flex: none; width: 28px; height: 28px; margin-top: 1px;
  border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
}
.qa__ico::before, .qa__ico::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
}
.qa__ico::before { width: 11px; height: 2px; }
.qa__ico::after  { width: 2px; height: 11px; transition: opacity .22s ease; }
.qa[open] .qa__ico { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(90deg); }
.qa[open] .qa__ico::after { opacity: 0; }
.qa__a { padding: 0 60px 26px 4px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.qa__a p + p { margin-top: 12px; }

/* --- Форма / финальный CTA ---------------------------------------------- */
.apply { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.apply__pitch h2 { margin-bottom: 20px; }
.apply__pitch .lead + .lead { margin-top: 14px; }

.trust { margin-top: 32px; display: grid; gap: 16px; }
.trust li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.trust li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--money); }

.form { padding: clamp(28px, 3.4vw, 40px); }
.form h3 { margin-bottom: 6px; }
.form__note { font-size: 14.5px; color: var(--ink-3); margin-bottom: 26px; }

.field + .field { margin-top: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select {
  width: 100%;
  padding: 15px 16px;
  font: inherit; font-size: 16.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238A7D74' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 42px;
}
.field input:focus, .field select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input::placeholder { color: var(--ink-3); }
.field.is-bad input, .field.is-bad select { border-color: #C0362B; }
.field__err { display: none; margin-top: 6px; font-size: 13.5px; color: #C0362B; }
.field.is-bad .field__err { display: block; }

.consent { margin-top: 20px; display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.consent a { color: var(--ink-2); }

.form .btn { margin-top: 24px; }
.form__alt { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
.form__alt a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.form__alt a:hover { text-decoration: underline; }

.form__ok { display: none; text-align: center; padding: 26px 8px; }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__ok { display: block; }
.form__ok .tick {
  width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--money-soft); color: var(--money);
  display: grid; place-items: center;
}
.form__ok .tick svg { width: 30px; height: 30px; }
.form__ok h3 { margin-bottom: 10px; }
.form__ok p { color: var(--ink-2); font-size: 15.5px; }

/* --- Карта / адрес ------------------------------------------------------ */
.office { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 48px); align-items: stretch; }
.office__info { display: flex; flex-direction: column; justify-content: center; }
.office__rows { margin-top: 28px; display: grid; gap: 20px; }
.orow__k { font-size: 12.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.orow__v { font-size: 17.5px; font-weight: 600; letter-spacing: -.015em; }
.orow__v a { text-decoration: none; }
.orow__v a:hover { color: var(--accent-dark); }

.office__map {
  min-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-warm);
  box-shadow: var(--sh-1);
}
.office__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-stub { height: 100%; min-height: 380px; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--ink-3); font-size: 15px; }

/* --- Футер -------------------------------------------------------------- */
.ftr { background: var(--espresso); color: var(--on-dark-2); padding: clamp(48px, 6vw, 72px) 0 34px; }
.ftr a { color: var(--on-dark-2); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
.ftr .logo { color: #fff; }
.ftr .logo__mark { background: rgba(255,255,255,.1); }
.ftr__about { margin-top: 16px; font-size: 14.5px; line-height: 1.55; max-width: 280px; }
.ftr__k { font-size: 12.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.ftr__bot { margin-top: clamp(36px, 5vw, 56px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.11); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13.5px; }

/* --- Липкая полоса на мобильных ----------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  gap: 10px;
  padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom));
  background: rgba(253,251,247,.94);
  backdrop-filter: saturate(1.6) blur(12px);
  border-top: 1px solid var(--line);
  /* Уезжает вниз, пока класс не поставит app.js (после трёх экранов прокрутки).
     Через transform, а не display, чтобы появление было плавным и не дёргало
     макет - место под полосу зарезервировано padding-bottom у body. */
  transform: translateY(115%);
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.sticky-cta.is-on { transform: translateY(0); }
/* Высота задана явно и одна на обе кнопки: только так «Позвонить» получается
   ровным кругом (width = height при border-radius 999px), а не овалом. */
.sticky-cta .btn {
  height: var(--sticky-h);
  padding: 0 18px;
  font-size: 16px;
}
.sticky-cta .btn--primary { flex: 1 1 auto; min-width: 0; }
.sticky-cta .btn--call {
  flex: 0 0 var(--sticky-h);
  width: var(--sticky-h);
  padding: 0;
  background: var(--ios-green);
  color: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(52,199,89,.3), 0 10px 24px rgba(52,199,89,.22);
}
.sticky-cta .btn--call:hover { background: var(--ios-green-dark); }
.sticky-cta .btn--call svg { width: 23px; height: 23px; }

/* --- Адаптив ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .perks, .steps, .gal { grid-template-columns: repeat(2, 1fr); }
  .nots { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .duties { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .hero__in { grid-template-columns: 1fr; }
  /* Фото и плашка с суммой на узких экранах убраны: они отжимали заголовок
     и первый CTA за пределы первого экрана. Сумма есть в заголовке,
     ставка - в .hero__bullets. */
  .hero__media { display: none; }
  .calc { grid-template-columns: 1fr; }
  .sched, .apply, .office, .fit { grid-template-columns: 1fr; }
  .office__map { min-height: 300px; }
  .hdr__contacts .hdr__mail { display: none; }
}

@media (max-width: 720px) {
  :root { --gut: 18px; }
  .hdr__in { height: 62px; }
  .hdr .btn { display: none; }
  .sched-tiles { grid-template-columns: 1fr 1fr; }
  .qa__a { padding-right: 8px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 84px; }
  .gal { grid-template-columns: 1fr 1fr; gap: 12px; }
  .calc-split { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .perks, .steps { grid-template-columns: 1fr; }
  .nots { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .sticky-cta .btn--primary { width: auto; }
  .btn-row { flex-direction: column; align-items: stretch; }
}
