/* ==========================================================================
   «Маша и Медведь» — курьерская артель
   Оформление в духе русских народных сказок: береста, мёд, лес, рушник.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены оформления
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --birch:        #f8f3e6;   /* фон «береста» */
  --birch-deep:   #f0e7d3;
  --paper:        #fffdf7;   /* карточки */
  --ink:          #2e2419;   /* основной текст */
  --ink-soft:     #6b5b48;   /* второстепенный текст */
  --line:         #e4d9c3;
  --line-strong:  #cdbd9c;

  --honey:        #e8a33d;   /* мёд */
  --honey-deep:   #c8791a;
  --honey-soft:   #fdf0d8;

  --forest:       #2f5d3a;   /* лес */
  --forest-deep:  #1f4227;
  --forest-soft:  #e6efe4;

  --berry:        #a62b2b;   /* рушник */
  --berry-deep:   #7d1f1f;

  --focus:        #1f6feb;

  --font-display: 'Ruslan Display', 'Georgia', 'Times New Roman', serif;
  --font-head:    'Podkova', 'Georgia', serif;
  --font-body:    'PT Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius:       16px;
  --radius-sm:    10px;
  --shadow-sm:    0 1px 2px rgba(74, 58, 42, .06), 0 2px 8px rgba(74, 58, 42, .06);
  --shadow:       0 2px 4px rgba(74, 58, 42, .07), 0 10px 28px rgba(74, 58, 42, .10);
  --shadow-lg:    0 4px 8px rgba(74, 58, 42, .08), 0 20px 48px rgba(74, 58, 42, .14);

  --wrap:         1180px;
  --strip-h:      14px;
}

/* Орнаментальная полоса — ромбы «рушник» */
.strip {
  height: var(--strip-h);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M9 1l8 6-8 6-8-6z' fill='%23a62b2b'/%3E%3Cpath d='M27 1l8 6-8 6-8-6z' fill='%23e8a33d'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 36px 14px;
}

/* --------------------------------------------------------------------------
   2. Сброс и база
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--birch);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-family: var(--font-display); font-weight: 400; }
p { margin: 0 0 1em; }
a { color: var(--forest); text-decoration-color: rgba(47, 93, 58, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img, svg { max-width: 100%; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em;
       background: var(--honey-soft); padding: .1em .4em; border-radius: 5px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; flex: none; }

/* --------------------------------------------------------------------------
   3. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--forest); color: #fff;
  box-shadow: 0 2px 0 var(--forest-deep), var(--shadow-sm);
}
.btn-primary:hover { background: var(--forest-deep); box-shadow: 0 2px 0 #16301c, var(--shadow); }

.btn-ghost {
  background: transparent; color: var(--forest); border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--forest); }

.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* --------------------------------------------------------------------------
   4. Шапка
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, .93);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .strip { position: absolute; left: 0; right: 0; bottom: -1px; opacity: .9; }

.header-inner {
  display: flex; align-items: center; gap: 22px;
  padding-top: 12px; padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: .2px; }
.brand-text small { color: var(--ink-soft); font-size: 12.5px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 15.5px;
  padding: 9px 13px; border-radius: 999px; transition: background-color .15s ease;
}
.site-nav a:hover { background: var(--honey-soft); }
.site-nav .nav-cta {
  color: var(--berry-deep); font-weight: 700; background: #fbeaea;
}
.site-nav .nav-cta:hover { background: #f6dcdc; }

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; flex: none; }
.header-contacts .phone { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.header-contacts .phone:hover { color: var(--forest); }
.header-contacts .phone-note { font-size: 12px; color: var(--ink-soft); }

.burger {
  display: none; margin-left: auto;
  width: 46px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); cursor: pointer; padding: 10px 11px;
  flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Первый экран
   -------------------------------------------------------------------------- */
.hero { padding: 56px 0 64px; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 52px; align-items: center;
}

.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 7px 16px;
  background: var(--honey-soft); border: 1px solid #efd9ad; border-radius: 999px;
  color: var(--honey-deep); font-size: 14px; font-weight: 700;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 20px; color: var(--forest-deep);
  text-shadow: 0 1px 0 #fff;
}
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px 24px; margin: 0; padding-top: 26px; border-top: 2px dashed var(--line-strong);
}
.stats div { margin: 0; }
.stats dt { font-family: var(--font-head); font-weight: 700; font-size: 27px; color: var(--berry); line-height: 1.1; }
.stats dd { margin: 3px 0 0; font-size: 14px; color: var(--ink-soft); }

.hero-art-wrap { position: relative; }
.hero-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(74, 58, 42, .16)); }
.art-carpet { animation: float 5.5s ease-in-out infinite; }
.art-sun { transform-origin: 518px 84px; animation: spin 42s linear infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   6. Секции
   -------------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section-alt {
  background: var(--paper);
  border-top: var(--strip-h) solid transparent;
  border-bottom: var(--strip-h) solid transparent;
  background-clip: padding-box;
  position: relative;
}
.section-alt::before, .section-alt::after {
  content: ''; position: absolute; left: 0; right: 0; height: var(--strip-h);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M9 1l8 6-8 6-8-6z' fill='%23e4d9c3'/%3E%3Cpath d='M27 1l8 6-8 6-8-6z' fill='%23e8a33d'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 36px 14px;
}
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

.section-head { max-width: 66ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(27px, 3.4vw, 38px); color: var(--forest-deep); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 17.5px; margin: 0; }

/* --------------------------------------------------------------------------
   7. Карточки служб
   -------------------------------------------------------------------------- */
.cards {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card::after {
  content: ''; position: absolute; inset: 6px; border-radius: 11px;
  border: 1px dashed rgba(166, 43, 43, .18); pointer-events: none;
}
.card-icon {
  width: 54px; height: 54px; margin-bottom: 16px; color: var(--berry);
  background: var(--honey-soft); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.card h3 { font-size: 22px; margin-bottom: 6px; color: var(--forest-deep); }
.card .tagline { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; flex: 1; }
.card-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.card-price { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--berry); }
.card-price small { display: block; font-family: var(--font-body); font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }
.card-speed { font-size: 13.5px; color: var(--ink-soft); text-align: right; }
.card-speed b { display: block; color: var(--ink); font-size: 15px; }

.extras {
  background: var(--honey-soft); border: 1px solid #efd9ad;
  border-radius: var(--radius); padding: 28px 28px 20px;
}
.extras h3 { font-size: 21px; color: var(--honey-deep); margin-bottom: 18px; }
.extras-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 30px;
}
.extras-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.extras-list .icon { color: var(--forest); font-size: 17px; margin-top: 3px; }
.extras-list b { display: block; }
.extras-list span { color: var(--ink-soft); font-size: 14px; }

/* --------------------------------------------------------------------------
   8. Калькулятор
   -------------------------------------------------------------------------- */
.section-calc { background: linear-gradient(180deg, var(--birch) 0%, var(--birch-deep) 100%); padding-bottom: 84px; }

.calc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px; box-shadow: var(--shadow);
}
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 34px; }

.calc-block { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-block legend {
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  color: var(--forest-deep); padding: 0 0 14px; display: block; width: 100%;
  border-bottom: 2px solid var(--forest-soft); margin-bottom: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field label { font-weight: 700; font-size: 14.5px; }
.field .opt { font-weight: 400; color: var(--ink-soft); font-size: 12.5px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; line-height: 1.5; }
input:hover, textarea:hover { border-color: #b8a67f; }
input:focus, textarea:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 93, 58, .15);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--berry); background: #fdf4f4; }
.field-hint { margin: 0; font-size: 13px; color: var(--ink-soft); }

.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.route .field { margin-bottom: 0; }
.swap {
  width: 46px; height: 46px; margin-bottom: 1px; font-size: 20px;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  background: var(--honey-soft); color: var(--honey-deep); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background-color .15s ease;
}
.swap:hover { background: #fbe4bd; transform: rotate(180deg); }

/* Выбор службы */
.tariff-picker { display: grid; gap: 10px; }
.tariff-option { position: relative; display: block; cursor: pointer; }
.tariff-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tariff-option .box {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 14px 16px; background: var(--paper);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.tariff-option .box:hover { border-color: var(--honey-deep); background: #fffbf2; }
.tariff-option .icon { font-size: 26px; color: var(--berry); margin-top: 2px; }
.tariff-option b { display: block; font-size: 16px; }
.tariff-option em { font-style: normal; font-size: 13.5px; color: var(--ink-soft); display: block; }
.tariff-option .from { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.tariff-option input:checked + .box {
  border-color: var(--forest); background: var(--forest-soft);
  box-shadow: inset 0 0 0 1px var(--forest);
}
.tariff-option input:checked + .box b { color: var(--forest-deep); }
.tariff-option input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Дополнительные услуги */
.options { display: grid; gap: 10px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15.5px; }
.checkbox input { width: 21px; height: 21px; margin: 2px 0 0; accent-color: var(--forest); flex: none; cursor: pointer; }
.checkbox .opt-text { display: flex; flex-direction: column; }
.checkbox .opt-text span { font-size: 13.5px; color: var(--ink-soft); }
.checkbox .opt-price { margin-left: auto; font-weight: 700; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }

.calc-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 30px; padding-top: 26px; border-top: 2px dashed var(--line-strong);
}
.calc-note { margin: 0; font-size: 13.5px; color: var(--ink-soft); flex: 1 1 240px; }

/* Результат */
.result { margin-top: 28px; }
.result:empty { display: none; }
.result-card {
  background: var(--paper); border: 2px solid var(--forest); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-lg);
  animation: appear .28s ease both;
}
@keyframes appear { from { opacity: 0; transform: translateY(10px); } }
.result-head {
  background: var(--forest); color: #fff; padding: 24px 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
}
.result-head .route-line { font-family: var(--font-head); font-size: 21px; font-weight: 700; }
.result-head .route-sub { font-size: 14px; opacity: .85; }
.result-total { margin-left: auto; text-align: right; }
.result-total .sum { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; display: block; }
.result-total .term { font-size: 14px; opacity: .9; }

.result-body { padding: 24px 28px; }
.lines { list-style: none; margin: 0 0 20px; padding: 0; }
.lines li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.lines li:last-child { border-bottom: 0; }
.lines .line-label { font-weight: 700; }
.lines .line-hint { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); }
.lines .line-amount { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines .line-total {
  border-top: 2px solid var(--line-strong); border-bottom: 0;
  margin-top: 6px; padding-top: 16px; font-size: 19px;
}
.lines .line-total .line-label { font-family: var(--font-head); }
.lines .line-total .line-amount { color: var(--berry); font-size: 24px; font-family: var(--font-head); }

.result-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.result-facts li {
  background: var(--honey-soft); border: 1px solid #efd9ad; border-radius: 999px;
  padding: 7px 15px; font-size: 14px;
}
.result-facts b { color: var(--honey-deep); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 12px; font-size: 15px;
}
.notice .icon { font-size: 19px; margin-top: 2px; flex: none; }
.notice-info { background: var(--forest-soft); color: #23482c; }
.notice-info .icon { color: var(--forest); }
.notice-warn { background: #fdf0e6; color: #7a4318; }
.notice-warn .icon { color: var(--honey-deep); }
.notice-error { background: #fbeaea; color: var(--berry-deep); }
.notice-error .icon { color: var(--berry); }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.result-empty { padding: 22px 26px; }

/* --------------------------------------------------------------------------
   9. Шаги
   -------------------------------------------------------------------------- */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
}
.steps li {
  position: relative; background: var(--birch); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 22px;
}
.steps li::before {
  content: ''; position: absolute; left: 22px; right: -22px; top: 40px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 15px);
}
.steps li:last-child::before { display: none; }
.step-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  background: var(--berry); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 19px;
  box-shadow: 0 0 0 5px var(--birch);
}
.steps h3 { font-size: 19px; margin-bottom: 6px; color: var(--forest-deep); }
.steps p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   10. География
   -------------------------------------------------------------------------- */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.zone {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--zone-color, var(--honey));
  border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.zone-num { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .06em;
            text-transform: uppercase; color: var(--zone-color, var(--honey-deep)); }
.zone h3 { font-size: 19px; margin: 4px 0 8px; }
.zone p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-soft); }
.zone .zone-meta { font-size: 13.5px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; }
.zone .zone-meta b { color: var(--ink); }
/* Цвет зоны задаётся классом, а не инлайновым стилем — так работает строгий CSP */
.zone-1 { --zone-color: #7fae74; }
.zone-2 { --zone-color: #a8c46b; }
.zone-3 { --zone-color: #e8a33d; }
.zone-4 { --zone-color: #d98430; }
.zone-5 { --zone-color: #c8791a; }
.zone-6 { --zone-color: #a62b2b; }
.zones-note { margin: 24px 0 0; font-size: 14px; color: var(--ink-soft); max-width: 80ch; }

/* --------------------------------------------------------------------------
   11. Отзывы
   -------------------------------------------------------------------------- */
.reviews { list-style: none; margin: 0; padding: 0;
           columns: 3; column-gap: 20px; }
.reviews li {
  break-inside: avoid; background: var(--birch); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px;
}
.reviews blockquote { margin: 0 0 14px; font-size: 15.5px; }
.reviews blockquote::before { content: '«'; color: var(--honey); font-family: var(--font-display); font-size: 26px; line-height: 0; }
.reviews .author { margin: 0; display: flex; flex-direction: column; }
.reviews .author strong { color: var(--forest-deep); }
.reviews .author span { font-size: 13.5px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   12. Заявка
   -------------------------------------------------------------------------- */
.order-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.order-copy h2 { font-size: clamp(27px, 3.4vw, 38px); color: var(--forest-deep); }
.order-copy p { color: var(--ink-soft); font-size: 17.5px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.ticks .icon { color: var(--forest); font-size: 18px; margin-top: 3px; flex: none; }

.order-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; box-shadow: var(--shadow);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 6px 0 20px; font-size: 14.5px; }
.form-note { margin: 14px 0 0; font-size: 14.5px; min-height: 1.4em; }
.form-note.ok { color: var(--forest); font-weight: 700; }
.form-note.err { color: var(--berry); font-weight: 700; }

/* --------------------------------------------------------------------------
   13. Отслеживание
   -------------------------------------------------------------------------- */
.track-wrap { max-width: 820px; }
.track-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.track-form input { flex: 1 1 260px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
                    letter-spacing: .04em; text-transform: uppercase; }

.track-card { background: var(--birch); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.track-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; margin-bottom: 20px; }
.track-head .num { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; font-size: 19px; }
.track-head .status { margin-left: auto; background: var(--forest); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; padding-bottom: 20px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: 14px; top: 26px; bottom: 0; width: 2px; background: var(--line-strong);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--line-strong); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 1;
}
.timeline li.done .dot { background: var(--forest); border-color: var(--forest); color: #fff; }
.timeline li.current .dot { background: var(--honey); border-color: var(--honey-deep); color: #fff; box-shadow: 0 0 0 4px var(--honey-soft); }
.timeline .tl-title { font-weight: 700; }
.timeline li:not(.done):not(.current) .tl-title { color: var(--ink-soft); font-weight: 400; }
.timeline .tl-desc { font-size: 14px; color: var(--ink-soft); }
.timeline .tl-date { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.track-meta { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong);
              display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; font-size: 14.5px; }
.track-meta dt { color: var(--ink-soft); font-size: 13px; }
.track-meta dd { margin: 2px 0 0; font-weight: 700; }

/* --------------------------------------------------------------------------
   14. Вопросы
   -------------------------------------------------------------------------- */
.faq { max-width: 880px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16.5px;
  list-style: none; display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-left: auto; font-family: var(--font-head); font-size: 24px;
  color: var(--honey-deep); line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--honey-soft); }
.faq details > p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   15. Подвал
   -------------------------------------------------------------------------- */
.site-footer { background: var(--forest-deep); color: #dfe8dc; margin-top: 0; }
.strip-footer { opacity: .5; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding-top: 52px; padding-bottom: 40px;
}
.footer-brand strong { font-family: var(--font-display); font-weight: 400; font-size: 25px; color: #fff; display: block; margin-bottom: 10px; }
.footer-brand p { color: #a9bfa5; font-size: 15px; max-width: 34ch; }
.footer-col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .07em; color: var(--honey); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #cfdccb; text-decoration: none; font-size: 15px; margin: 0 0 9px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; padding-bottom: 32px;
  display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between;
}
.footer-bottom p { margin: 0; font-size: 13px; color: #93ac8f; }

.noscript {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--berry); color: #fff; padding: 14px 20px; text-align: center; font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. Адаптивность
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .reviews { columns: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .burger { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 14px; border-radius: var(--radius-sm); font-size: 17px; }
  .header-contacts { display: none; }

  .hero { padding: 36px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-art-wrap { order: -1; max-width: 620px; }

  .calc-grid { grid-template-columns: 1fr; gap: 26px; }
  .order-wrap { grid-template-columns: 1fr; gap: 32px; }
  .steps li::before { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .calc { padding: 22px 18px; border-radius: 18px; }
  .result-head, .result-body { padding: 20px 18px; }
  .result-total { margin-left: 0; text-align: left; width: 100%; }
  .result-total .sum { font-size: 34px; }
  .order-form { padding: 22px 18px; border-radius: 18px; }
  .reviews { columns: 1; }
  .brand-text small { display: none; }
  .track-head .status { margin-left: 0; }
  .timeline li { grid-template-columns: 30px 1fr; }
  .timeline .tl-date { grid-column: 2; }
}

@media (max-width: 460px) {
  .route { grid-template-columns: 1fr; }
  .swap { margin: 0 auto; transform: rotate(90deg); }
  .swap:hover { transform: rotate(270deg); }
  .btn { padding: 14px 20px; width: 100%; }
  .hero-actions, .calc-actions, .result-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .calc-actions .btn, .result-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   17. Страница ошибки 404 (отдаётся сервером)
   -------------------------------------------------------------------------- */
.error-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; text-align: center; }
.error-box { padding: 32px; }
.error-code { font-family: var(--font-display); font-size: 84px; color: var(--berry); margin: 0 0 8px; line-height: 1; }
.error-text { font-size: 19px; color: var(--ink-soft); margin: 0 0 24px; }

@media print {
  .site-header, .site-footer, .calc-actions, .result-actions, .hero-art-wrap, .burger { display: none !important; }
  body { background: #fff; }
  .result-card, .calc { box-shadow: none; border-color: #999; }
}
