:root {
  color-scheme: light;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  --ink: #22211d;
  --muted: #5d574a;
  --paper: #fffdf7;
  --surface: #fff;
  --wash: #f7f3e8;
  --line: #e5ded0;
  --yellow: #ffd23f;
  --yellow-hover: #f4bf29;
  --hero-yellow: #ffdc50;
  --yellow-soft: #fff2bf;
  --yellow-wash: #fff7da;
  --yellow-line: #eadeae;
  --radius: 6px;
  --site-header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: var(--site-header-height);
  scrollbar-gutter: stable;
}
body, h1, h2, h3, h4, p, ol { margin: 0; }
body { line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="tabpanel"]:focus-visible {
  outline: 3px solid #245ad2;
  outline-offset: 4px;
}

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

:is(p, .prose li, .checklist li, .home-footer-credits li) a:where(:not(.button)),
a:is(.text-link, .journal-calculator-link) {
  color: var(--ink);
  font-weight: 750;
}

@media (hover: hover) and (pointer: fine) {
  :is(p, .prose li, .checklist li, .home-footer-credits li) a:where(:not(.button)):hover,
  a:is(.text-link, .journal-calculator-link):hover {
    color: #735514;
  }

  :is(.breadcrumbs, .footer, .home-footer-nav) a:hover,
  :is(.home-footer-credits summary, .home-footer-top, .journal-all, .tile h3 a):hover {
    border-radius: 4px;
    background-color: var(--yellow-wash);
    box-shadow: 0 0 0 4px var(--yellow-wash);
  }
}

.shell {
  width: min(1140px, calc(100% - clamp(40px, 8vw, 96px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 6;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transform: translateY(calc(-100% - 12px));
}
.skip-link:focus { transform: none; }

.header.shell {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  width: 100%;
  min-height: var(--site-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(calc((100% - 1140px) / 2), clamp(20px, 4vw, 48px));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 4px 14px rgb(34 33 29 / 5%);
}
.header > nav { min-width: 0; }
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.15;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: url("/courier-brand-mark.png?v=header20261116") center / contain no-repeat;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(12px, 2.3vw, 30px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding-block: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.menu-toggle, .nav-referral { display: none; }

.header-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}
.site-city-trigger {
  display: inline-flex;
  max-width: 160px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: #230f0a;
  font: 700 .875rem/20px Manrope, system-ui, sans-serif;
  cursor: pointer;
}
.site-city-trigger[hidden] { display: none; }
.site-city-trigger:hover { background: var(--yellow-wash); }
.site-city-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-city-pin {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: translateY(-1px) rotate(-45deg);
}
.site-city-pin::after {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.site-city-dialog {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #ded6cf;
  border-radius: 24px;
  background: #fffaf5;
  color: #230f0a;
  box-shadow: 0 24px 64px rgb(35 15 10 / 18%);
  font-family: Manrope, system-ui, sans-serif;
}
.site-city-dialog:not([open]), .site-city-dialog [hidden] { display: none; }
.site-city-dialog::backdrop { background: rgb(35 15 10 / 38%); }
html:has(.site-city-dialog[open]) { overflow: hidden; }
.site-city-panel { padding: 24px; }
.site-city-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.site-city-heading h2 { font-size: 1.875rem; line-height: 36px; font-weight: 800; }
.site-city-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f5f0eb;
  color: inherit;
  font: 500 1.5rem/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}
.site-city-close:hover { background: #f0ebe6; }
.site-city-search {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #d9d0c9;
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 1rem;
}
.site-city-search:focus-visible { outline: 2px solid #230f0a; outline-offset: 2px; }
.site-city-status { margin-top: 16px; color: #736660; font-size: .875rem; }
.site-city-options {
  display: grid;
  gap: 4px;
  max-height: min(340px, 48dvh);
  margin: 12px 0 0;
  padding: 4px 8px 4px 4px;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.site-city-options:empty { display: none; }
.site-city-options button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: 650 1rem/24px Manrope, system-ui, sans-serif;
  text-align: start;
  cursor: pointer;
}
.site-city-options button:hover { background: #f5f0eb; }
.site-city-options button[aria-current="true"] { background: #fff0b2; }
.site-city-options button[aria-current="true"]::after { float: right; content: '✓'; }
.site-city-options button:focus-visible { outline-offset: -2px; }

@media (min-width: 751px) and (max-width: 1080px) {
  .header.shell { gap: 12px; }
  .header-identity { gap: 8px; }
  .header .nav { flex-wrap: nowrap; gap: 12px; }
  .site-city-trigger { max-width: 120px; }
}
@media (max-width: 750px) {
  .menu-enhanced .header:has(.site-city-trigger:not([hidden])) { gap: 8px; }
  .menu-enhanced .header-identity { flex: 1 1 auto; justify-content: space-between; gap: 8px; }
  .site-city-trigger { max-width: 128px; padding-inline: 8px; }
}
@media (max-width: 520px) {
  .site-city-dialog { width: calc(100% - 24px); margin-block-end: max(12px, env(safe-area-inset-bottom)); }
  .site-city-panel { padding: 16px; }
  .site-city-heading h2 { font-size: 1.5rem; line-height: 32px; }
}
@media (max-width: 359px) {
  .menu-enhanced .header-identity { gap: 4px; }
  .header-identity .brand { gap: 8px; font-size: 18px; }
  .header-identity .brand-mark { width: 32px; height: 32px; }
  .site-city-trigger { justify-content: center; padding-inline: 0; }
  .site-city-label { display: none; }
}

h1, h2, h3 { line-height: 1.14; letter-spacing: -.038em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 67px); line-height: 1.04; letter-spacing: -.055em; }
h2 { font-size: clamp(27px, 3.3vw, 44px); }
h3 { font-size: clamp(19px, 2vw, 26px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  margin-top: clamp(15px, 2vw, 27px);
  border-radius: 30px;
  background: var(--hero-yellow);
}
.hero-copy {
  min-width: 0;
  padding: clamp(33px, 5.2vw, 59px) clamp(24px, 4vw, 48px);
}
.hero-copy h1 {
  font-size: clamp(41px, 5.1vw, 60px);
  font-weight: 780;
  line-height: .99;
  letter-spacing: -.064em;
}
.hero-copy h1 span { display: block; }
.hero-copy p {
  max-width: 35ch;
  margin-top: 18px;
  color: #4a3d20;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.45;
}
.hero-photo {
  position: relative;
  width: calc(100% - 12px);
  min-width: 0;
  min-height: clamp(330px, 37vw, 510px);
  align-self: stretch;
  margin: 12px 12px 12px 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--yellow-soft);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 55%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 17px;
  margin-top: 24px;
}
.hero-actions { gap: 8px 16px; }
.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.button-primary { background: var(--ink); color: var(--surface); }
.button-primary:hover { background: #423c32; }
.button-secondary { border-color: var(--line); background: transparent; }
.button-secondary:hover { border-color: #bcb4a5; background: var(--wash); }
.button-arrow { font-size: 18px; line-height: 1; }
.hero-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding-inline: 10px;
  margin-inline: -10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
}

@media (hover: hover) and (pointer: fine) {
  .hero-secondary:hover { background-color: var(--yellow-wash); }
}

.section, .page-section { scroll-margin-top: 22px; }
.section { margin-top: clamp(42px, 7vw, 86px); }
.page-section { margin-top: clamp(33px, 5vw, 66px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px 24px;
  margin-bottom: clamp(15px, 2.25vw, 25px);
}
.section-head p { max-width: 52ch; color: var(--muted); }
.section-head .text-link { margin: 0; }

@font-face {
  font-family: Manrope;
  src: url('/manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url('/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.format-guide {
  --format-line: #e5e5e5;
  --format-muted: #535353;
  --format-wash: #f4f4f4;
  --format-selected: #fff3ca;
  --format-selected-border: #ecd286;
  container-type: inline-size;
  scroll-margin-top: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.5 Manrope, system-ui, sans-serif;
}

.format-guide .format-inner {
  width: min(1140px, calc(100% - 48px));
  padding-block: 64px 72px;
  border-top: 1px solid var(--format-line);
}

.format-heading h2 {
  font-size: clamp(36px, 4.1cqw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.format-heading p,
.format-summary p {
  color: var(--format-muted);
  text-wrap: pretty;
}

.format-heading p {
  max-width: 68ch;
  margin-top: 12px;
}

.format-tabs {
  display: grid;
  width: min(100%, 612px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin: 28px 0 32px;
  border-radius: 12px;
  background: var(--format-wash);
}

.format-tabs [role="tab"] {
  display: grid;
  min-width: 0;
  min-height: 56px;
  align-content: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 700 16px/1.2 Manrope, system-ui, sans-serif;
  text-align: start;
  cursor: pointer;
}

.format-tabs small {
  margin-top: 4px;
  color: var(--format-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.format-tabs [aria-selected="true"] {
  border-color: var(--format-selected-border);
  background: var(--format-selected);
  font-weight: 800;
}

.format-tabs [aria-selected="false"]:hover { background: var(--surface); }
.format-tabs [role="tab"]:focus-visible { outline-offset: -3px; }

.format-tabs [role="tab"],
.format-actions a {
  scroll-margin-block: 8px;
  touch-action: manipulation;
}

.format-panels { display: grid; gap: 40px; }
.format-tabs[hidden] + .format-panels { margin-top: 32px; }

.format-panel {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "summary photo" "prep photo" "links photo";
  gap: 24px 48px;
  scroll-margin-top: 16px;
}

.format-tabs[hidden],
.format-panel[hidden] { display: none; }

.format-panel:not([role]):target {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.format-summary {
  grid-area: summary;
  min-width: 0;
  padding-top: 4px;
}

.format-summary h3 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.format-summary p { max-width: 46ch; margin-top: 10px; }

.format-media {
  position: relative;
  grid-area: photo;
  min-width: 0;
  min-height: 392px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--format-wash);
}

.format-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

#walk .format-media img { object-position: center 35%; }
#bike .format-media img { object-position: 90% 78%; }

.format-checklist {
  grid-area: prep;
  padding-top: 20px;
  border-top: 1px solid var(--format-line);
}

.format-checklist h4 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.format-checklist ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.format-checklist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--format-muted);
  font-size: 15px;
  line-height: 1.45;
}

.format-checklist svg {
  display: block;
  margin-top: 1px;
  color: var(--ink);
}

.format-actions {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.format-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.format-actions svg { flex: 0 0 auto; }

.format-next {
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
}

.format-next:hover { background: var(--yellow-hover); }

.format-actions .text-link {
  padding-inline: 10px;
  margin: 0;
  border-radius: 8px;
  background-color: transparent;
}

@container (max-width: 920px) {
  .format-guide .format-inner { padding-block: 48px 56px; }

  .format-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .format-summary h3 { font-size: 30px; }
  .format-media { min-height: 370px; }
}

@media (max-width: 760px) {
  .format-guide .format-inner { width: calc(100% - 32px); }
}

@container (max-width: 700px) {
  .format-guide .format-inner { padding-block: 40px 48px; }
  .format-tabs { margin: 24px 0; }

  .format-tabs [role="tab"] {
    min-height: 48px;
    justify-items: center;
    padding: 8px 4px;
    font-size: 14px;
    text-align: center;
  }

  .format-tabs small { display: none; }
  .format-tabs[hidden] + .format-panels { margin-top: 24px; }

  .format-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "summary" "photo" "prep" "links";
    gap: 20px;
  }

  .format-summary { padding-top: 0; }
  .format-media { min-height: 0; aspect-ratio: 16 / 10; }
  .format-checklist { padding-top: 16px; }

  .format-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@container (max-width: 360px) {
  .format-heading h2 { font-size: 30px; }
  .format-summary h3 { font-size: 27px; }
}

.perks-section {
  --perks-muted: #4f4c45;
  --perks-line: #e5e3dd;
  --perks-panel: #f6f5f1;
  --perks-highlight: #fff3ca;
  container-type: inline-size;
  scroll-margin-top: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.5 Manrope, system-ui, sans-serif;
}

.perks-section .perks-inner {
  width: min(1140px, calc(100% - 48px));
  padding-block: 64px 72px;
  border-top: 1px solid var(--perks-line);
}

.perks-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.perks-heading h2 {
  font-size: clamp(36px, 4.1cqw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.perks-heading p {
  margin-top: 10px;
  color: var(--perks-muted);
  text-wrap: pretty;
}

.perks-section a {
  scroll-margin-block: 8px;
  touch-action: manipulation;
}

.perks-source {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--perks-line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.perks-source:hover { border-color: var(--ink); }
.perks-source svg { flex: 0 0 auto; }

.perks-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.48fr);
  gap: 16px;
}

.perks-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.perk-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--perks-line);
  border-radius: 16px;
  background: var(--perks-panel);
}

.perk-card--main {
  grid-template-rows: minmax(240px, 1fr) auto;
  border-color: #ebdb9d;
  background: var(--perks-highlight);
}

.perk-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 2.16;
  background: #ece8dc;
}

.perk-card--main .perk-media { aspect-ratio: auto; }

.perk-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perk-value {
  position: absolute;
  inset: auto auto 12px 12px;
  display: block;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.perk-value small {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.perk-card--main .perk-value {
  inset: auto auto 20px 20px;
  padding: 10px 14px;
  background: var(--yellow);
  font-size: clamp(44px, 5.7cqw, 78px);
  line-height: 1;
  letter-spacing: -.065em;
}

.perk-copy {
  min-width: 0;
  padding: 16px 16px 18px;
}

.perk-copy h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.perk-copy p {
  max-width: 40ch;
  margin-top: 5px;
  color: var(--perks-muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.perk-copy a {
  color: var(--ink);
  font-weight: 750;
}

.perk-card--main .perk-copy { padding: 22px 24px 26px; }
.perk-card--main .perk-copy h3 { font-size: 25px; }

.perk-card--main .perk-copy p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
}

@container (max-width: 1000px) {
  .perks-section .perks-inner { padding-block: 48px 56px; }

  .perks-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    margin-bottom: 24px;
  }

  .perks-source { justify-self: start; }
  .perks-grid { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); }
  .perks-grid, .perks-list { gap: 12px; }
  .perk-copy { padding: 14px; }
  .perk-copy h3 { font-size: 18px; }
  .perk-value { font-size: 21px; }
}

@media (max-width: 760px) {
  .perks-section .perks-inner { width: calc(100% - 32px); }
}

@container (max-width: 680px) {
  .perks-section .perks-inner { padding-block: 40px 48px; }
  .perks-grid, .perks-list { grid-template-columns: minmax(0, 1fr); }
  .perk-card--main { grid-template-rows: auto auto; }
  .perk-card--main .perk-media { aspect-ratio: 1.7; }

  .perk-card--main .perk-value {
    inset: auto auto 14px 14px;
    font-size: 48px;
  }

  .perk-card--main .perk-copy { padding: 16px 16px 19px; }
  .perk-card--main .perk-copy h3 { font-size: 21px; }

  .perks-list .perk-card {
    min-height: 100px;
    grid-template-columns: clamp(100px, 31cqw, 168px) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .perks-list .perk-media { aspect-ratio: auto; }
  .perk-copy { padding: 12px 12px 14px; }
  .perk-copy h3 { font-size: 17px; }
  .perk-copy p { font-size: 13px; }

  .perk-value {
    inset: auto 5px 6px 6px;
    width: fit-content;
    max-width: calc(100% - 11px);
    padding: 5px 6px;
    font-size: 19px;
  }

  .perk-value small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
  }

  .perk-card--plus .perk-value {
    font-size: 14px;
    letter-spacing: -.025em;
  }
}

@container (max-width: 360px) {
  .perks-heading h2 { font-size: 30px; }
  .perk-card--main .perk-copy h3 { font-size: 19px; }
  .perk-copy h3 { font-size: 16px; }
}

:is(.home-faq-band, .home-page-end) {
  --page-end-muted: #535353;
  --page-end-line: #e5e5e5;
  --page-end-highlight: #fff3ca;
  container-type: inline-size;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.5 Manrope, system-ui, sans-serif;
}

:is(.home-faq-band, .home-page-end) :is(a, summary) {
  scroll-margin-block: 8px;
  touch-action: manipulation;
}

.home-faq-band .home-faq,
.home-page-end .home-footer-inner {
  width: min(1140px, calc(100% - 48px));
}

.home-faq {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 32px 56px;
  padding-block: 64px 56px;
  border-top: 1px solid var(--page-end-line);
  scroll-margin-top: 8px;
}

.home-faq h2 {
  font-size: clamp(36px, 4.1cqw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.faq-answers { border-top: 1px solid var(--page-end-line); }
.faq-answers details { border-bottom: 1px solid var(--page-end-line); }

.faq-answers summary,
.home-footer-credits summary {
  list-style: none;
  cursor: pointer;
}

.faq-answers summary::-webkit-details-marker,
.home-footer-credits summary::-webkit-details-marker { display: none; }

.faq-answers summary {
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.faq-answers summary:focus-visible { outline-offset: -3px; }

.faq-toggle-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--page-end-line);
  border-radius: 50%;
  background: var(--surface);
}

.faq-answers summary:hover .faq-toggle-icon { border-color: #a7a49b; }

.faq-answers details[open] .faq-toggle-icon {
  border-color: #e9d589;
  background: var(--page-end-highlight);
}

.faq-answers details[open] .faq-toggle-stem { display: none; }

.faq-answers details p {
  max-width: 65ch;
  padding: 0 52px 22px 0;
  color: var(--page-end-muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.home-page-end { padding-bottom: 32px; }

.home-final-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 32px;
  padding: 32px 36px;
  border-radius: 16px;
  background: var(--yellow);
}

.home-final-panel h2 {
  font-size: clamp(30px, 3.4cqw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.05em;
}

.home-final-panel p {
  margin-top: 8px;
  font-size: 15px;
  text-wrap: pretty;
}

.home-final-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.home-final-link:hover { background: #454039; }
.home-final-link svg { flex: 0 0 auto; }

.home-footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px 32px;
  padding-block: 32px 24px;
}

.home-footer-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.home-footer-brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.home-footer-site-note {
  margin-top: 6px;
  color: var(--page-end-muted);
  font-size: 14px;
}

.home-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 24px;
}

.home-footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.home-footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--page-end-line);
}

.home-page-end .home-footer-credits {
  min-width: 0;
  margin-top: 0;
  color: var(--page-end-muted);
}

.home-footer-credits summary,
.home-footer-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  font-weight: 750;
  text-decoration: none;
}

.home-footer-credits[open] summary svg { transform: rotate(180deg); }
.home-page-end .home-footer-credits ul { padding-left: 19px; }
.home-footer-credits p { margin-top: 6px; }
.home-footer-top { font-size: 14px; }

@container (max-width: 920px) {
  .home-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 48px;
  }

  .home-footer-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .home-faq-band .home-faq,
  .home-page-end .home-footer-inner { width: calc(100% - 32px); }
}

@container (max-width: 620px) {
  .home-faq { padding-block: 40px 32px; }

  .faq-answers summary {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 12px;
    font-size: 17px;
  }

  .faq-toggle-icon { width: 34px; height: 34px; }
  .faq-answers details p { padding: 0 18px 18px 0; font-size: 14px; }

  .home-final-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
  }

  .home-final-link { width: 100%; padding-inline: 12px; }
  .home-footer-row { padding-block: 24px 14px; }

  .home-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .home-footer-bottom { padding-top: 4px; }
}

@container (max-width: 360px) {
  .home-faq h2 { font-size: 30px; }
  .home-final-panel h2 { font-size: 28px; }
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  gap: 24px clamp(26px, 5vw, 67px);
  padding-top: clamp(20px, 3vw, 33px);
  border-top: 1px solid var(--line);
}
.onboarding {
  --onboarding-muted: #535353;
  --onboarding-line: #e5e5e5;
  --onboarding-panel: #f4f4f4;
  container-type: inline-size;
  scroll-margin-top: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.5 Manrope, system-ui, sans-serif;
}

.onboarding .onboarding-inner {
  display: grid;
  width: min(1140px, calc(100% - 48px));
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro action" "steps action";
  align-items: start;
  gap: 32px 56px;
  padding-block: 64px 72px;
  border-top: 1px solid var(--onboarding-line);
}

.onboarding-intro {
  grid-area: intro;
  min-width: 0;
}

.onboarding-intro h2 {
  font-size: clamp(36px, 4.1cqw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.onboarding-intro p {
  max-width: 54ch;
  margin-top: 12px;
  color: var(--onboarding-muted);
  text-wrap: pretty;
}

.onboarding-action {
  display: grid;
  min-width: 0;
  grid-area: action;
  grid-template-rows: minmax(296px, 1fr) auto;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--onboarding-line);
  border-radius: 16px;
  background: var(--onboarding-panel);
}

.onboarding-photo {
  position: relative;
  min-width: 0;
  background: #d5b797;
}

.onboarding-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding-action-copy {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  text-align: center;
}

.onboarding .onboarding-cta {
  min-height: 48px;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  background: var(--yellow);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.onboarding-cta:hover { background: var(--yellow-hover); }
.onboarding-cta svg { flex: 0 0 auto; }

.onboarding-action-copy p {
  color: var(--onboarding-muted);
  font-size: 13px;
  line-height: 1.45;
}

.onboarding a {
  scroll-margin-block: 8px;
  touch-action: manipulation;
}

.onboarding .steps {
  display: grid;
  grid-area: steps;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.onboarding .step {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 53px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.onboarding .step:not(:last-child)::after {
  position: absolute;
  inset: 42px auto -13px 19px;
  width: 1px;
  background: var(--onboarding-line);
  content: '';
}

.onboarding .step:focus-visible {
  outline: 3px solid #245ad2;
  outline-offset: 4px;
}

.onboarding .step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--onboarding-line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.onboarding #anketa-step .step-number {
  border-color: #ead78c;
  background: #fff3ca;
}

.onboarding .step h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.onboarding .step p {
  margin-top: 5px;
  color: var(--onboarding-muted);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}

.onboarding .step a { color: var(--ink); }

@container (max-width: 920px) {
  .onboarding .onboarding-inner {
    gap: 24px 28px;
    padding-block: 48px 56px;
  }

  .onboarding .step p { font-size: 14px; }
}

@media (max-width: 760px) {
  .onboarding .onboarding-inner { width: calc(100% - 32px); }
}

@container (max-width: 680px) {
  .onboarding .onboarding-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "intro" "action" "steps";
    gap: 24px;
    padding-block: 40px 48px;
  }

  .onboarding-action { grid-template-rows: auto auto; }
  .onboarding-photo { aspect-ratio: 4 / 3; }
  .onboarding-action-copy { padding: 12px; }
  .onboarding .steps { gap: 16px; }
  .onboarding .step { gap: 12px; }
  .onboarding .step h3 { font-size: 18px; }
}

@container (max-width: 360px) {
  .onboarding-intro h2 { font-size: 30px; }
}

.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { flex-shrink: 0; content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions details p { max-width: 61ch; padding: 0 22px 14px 0; color: var(--muted); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 19px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; }
.breadcrumbs a { font-weight: 650; }
.page-hero {
  padding: clamp(21px, 3.6vw, 38px) clamp(18px, 4vw, 43px);
  border: 1px solid var(--yellow-line);
  border-radius: 22px;
  background: var(--yellow-wash);
}
.page-hero-copy { max-width: 800px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 58px); }
.page-hero p {
  max-width: 58ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(17px, 1.9vw, 20px);
}
.eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.page-hero p.eyebrow { margin-top: 0; font-size: 13px; }

.home-resources-band {
  --resources-muted: #535353;
  --resources-line: #e5e5e5;
  --resources-panel: #f4f4f4;
  --resources-warm: #fff3ca;
  container-type: inline-size;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.5 Manrope, system-ui, sans-serif;
}

.home-resources-band .home-resources {
  display: grid;
  width: min(1140px, calc(100% - 48px));
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 40px;
  padding-block: 64px 72px;
  border-top: 1px solid var(--resources-line);
}

.home-resource {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  gap: 24px;
  scroll-margin-top: 8px;
}

.home-resource a {
  scroll-margin-block: 8px;
  touch-action: manipulation;
}

.home-resource-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.home-resource h2 {
  font-size: clamp(36px, 4.1cqw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.home-resource--tools { align-self: start; }

.tool-cards {
  display: grid;
  min-width: 0;
  min-height: 319px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-resource-card {
  min-width: 0;
  border: 1px solid var(--resources-line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}

.tool-card {
  display: grid;
  min-height: 144px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--resources-panel);
}

.tool-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 12px;
  background: var(--resources-warm);
}

.tool-card:nth-child(2) .tool-icon {
  border: 1px solid var(--resources-line);
  background: var(--surface);
}

.resource-copy { min-width: 0; }

.resource-copy h3 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.resource-copy p {
  margin-top: 6px;
  color: var(--resources-muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.resource-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--resources-line);
  border-radius: 50%;
  background: var(--surface);
}

.home-resource-card:hover .resource-arrow {
  border-color: var(--yellow);
  background: var(--yellow);
}

.journal-masthead { position: relative; }

.journal-masthead::after {
  position: absolute;
  inset: auto 0 -12px;
  height: 2px;
  background: var(--ink);
  content: '';
}

.journal-all {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.journal-picks {
  display: grid;
  grid-template-columns: minmax(0, 1.84fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.journal-main-story,
.journal-side-story {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.journal-story-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.86;
  border-radius: 10px;
  background: var(--resources-panel);
}

.journal-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-main-story h3 {
  margin-top: 12px;
  font-size: clamp(27px, 2.4cqw, 34px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.journal-main-story p,
.journal-side-story p {
  margin-top: 8px;
  color: var(--resources-muted);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.journal-side {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--resources-line);
}

.journal-side-story .journal-story-photo { aspect-ratio: 1.84; }

.journal-side-story h3 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.journal-guide-entry {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--resources-line);
  text-decoration: none;
}

.journal-guide-entry h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.journal-guide-entry svg { flex: 0 0 auto; }

@media (hover: hover) and (pointer: fine) {
  :is(.journal-main-story, .journal-side-story):hover .journal-story-photo {
    box-shadow: 0 0 0 2px var(--yellow);
  }

  .journal-guide-entry:hover { background-color: var(--yellow-wash); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .journal-story-photo img { transition: transform .22s ease-out; }
  .journal-main-story:hover img, .journal-side-story:hover img { transform: scale(1.03); }
}

@container (max-width: 1040px) {
  .home-resources-band .home-resources {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 48px 56px;
  }

  .home-resource--tools { gap: 16px; }

  .tool-cards {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .tool-card { min-height: 108px; }
  .tool-icon { width: 56px; height: 56px; }
  .tool-icon svg { width: 28px; height: 28px; }
}

@media (max-width: 760px) {
  .home-resources-band .home-resources { width: calc(100% - 32px); }
}

@container (max-width: 640px) {
  .home-resources-band .home-resources { padding-block: 40px 48px; }
  .tool-cards { grid-template-columns: minmax(0, 1fr); }

  .tool-card {
    min-height: 100px;
    gap: 12px;
    padding: 12px;
  }

  .home-resource-head {
    min-height: 44px;
    flex-wrap: wrap;
  }

  .resource-copy h3 { font-size: 18px; overflow-wrap: break-word; }
  .resource-arrow svg { width: 16px; height: 16px; }

  .journal-picks {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .journal-masthead::after { bottom: -10px; }

  .journal-main-story h3 {
    margin-top: 9px;
    font-size: 27px;
  }

  .journal-side {
    padding: 14px 0 0;
    border-top: 1px solid var(--resources-line);
    border-left: 0;
  }

  .journal-side-story {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .journal-side-story .journal-story-photo { aspect-ratio: 1.28; }

  .journal-side-story h3 {
    margin-top: 0;
    font-size: 18px;
  }

  .journal-side-story p { margin-top: 5px; }
}

@container (max-width: 360px) {
  .home-resource h2 { font-size: 30px; }
}

.link-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 15px;
  min-height: 53px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}
a.link-row { text-decoration: none; }
a.link-row:focus-visible { position: relative; z-index: 1; outline-offset: 2px; }
.link-row :is(h3, .link-row-title) { display: block; font-size: clamp(17px, 1.9vw, 22px); font-weight: 720; line-height: 1.25; }
.link-row :is(p, .link-row-description) { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.link-row :is(.link-arrow, .link-row-arrow) { color: var(--muted); font-size: 19px; line-height: 1; }
.link-row .text-link { margin-top: 6px; font-size: 14px; }

.home-page #goroda { margin-top: clamp(24px, 4.3vw, 52px); }
.cities-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--yellow-line);
  border-radius: 20px;
  background: var(--yellow-soft);
}
.cities-list .link-row {
  min-width: 0;
  min-height: 103px;
  align-items: start;
  padding: 16px clamp(12px, 1.8vw, 23px);
  border-bottom: 0;
  border-radius: 18px;
}
.cities-list .link-row + .link-row { border-left: 1px solid var(--yellow-line); }
.cities-list .link-row:focus-visible { outline-offset: -4px; }

@media (hover: hover) and (pointer: fine) {
  a.link-row:hover { background-color: var(--yellow-wash); }
  .cities-list a.link-row:hover { background-color: var(--yellow); }
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 16px clamp(17px, 3.2vw, 38px);
}
.tile, .panel { min-width: 0; padding-block: 18px; border-top: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; align-items: flex-start; }
.tile > p { max-width: 48ch; margin-top: 7px; color: var(--muted); }
.text-link { display: inline-block; margin-top: 11px; font-weight: 650; }

.notice { padding: 12px 16px; border-left: 2px solid #a39886; background: var(--wash); }
.notice h2, .notice h3 { font-size: clamp(21px, 2.7vw, 32px); }
.notice p + p, .notice h2 + p, .notice h3 + p { margin-top: 8px; }
.prose { max-width: 77ch; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: clamp(24px, 3.2vw, 36px); }
.prose h3 { font-size: clamp(19px, 2.5vw, 26px); }
.prose h2:not(:first-child), .prose h3:not(:first-child) { margin-top: 24px; }
.prose p + p, .prose h2 + p, .prose h3 + p, .prose .notice { margin-top: 10px; }
.prose ul, .prose ol, .checklist { padding-left: 1.3em; }
.checklist li + li, .prose li + li { margin-top: 6px; }

.calc-layout .calc-form, .calc-layout .calc-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.calc-layout .calc-result { background: var(--wash); }
.calc-layout .calc-result dl div { border-top-color: var(--line); }
.calc-layout .calc-field input { border-color: var(--line); border-radius: var(--radius); background: var(--paper); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 10px 16px;
  margin-top: clamp(45px, 6vw, 72px);
  padding: 19px 0 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer a { font-weight: 650; text-decoration: none; }

.button-referral, .button-primary[data-referral] { flex-shrink: 0; background: var(--yellow); color: var(--ink); }
.button-referral:hover, .button-primary[data-referral]:hover { background: var(--yellow-hover); }
.home-page .hero .button-primary[data-referral] { background: var(--ink); color: var(--surface); }
.home-page .hero .button-primary[data-referral]:hover { background: #494433; }
.referral-header { min-height: 43px; white-space: nowrap; }
.header .referral-header {
  border-color: var(--line);
  border-radius: 24px;
  background: transparent;
}
.header .referral-header:hover { background: var(--yellow-wash); }
.referral-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin-top: clamp(22px, 3.6vw, 42px); }
.referral-inline p { max-width: 46ch; color: var(--muted); font-size: 15px; }
#anketa-step { scroll-margin-top: 24px; }
#anketa-step:target h3 { background-color: var(--yellow-wash); }
.referral-bar, .referral-bar[hidden] { display: none; }

@media (max-width: 950px) {
  .referral-header { display: none; }
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(69px + env(safe-area-inset-bottom, 0px)); }
  .referral-bar:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 5;
    inset-inline: 0;
    bottom: 0;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .referral-bar .button { width: 100%; min-height: 48px; }
  body:has([data-referral-clearance]:focus-within) .referral-bar { visibility: hidden; }
}
@media (max-width: 880px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 750px) {
  .hero { grid-template-columns: minmax(0, 1fr); border-radius: 25px; }
  .hero-copy { padding: 26px clamp(17px, 5vw, 36px) 17px; }
  .hero-photo {
    width: calc(100% - 18px);
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin: 0 9px 9px;
    border-radius: 17px;
  }
  .cities-list { grid-template-columns: minmax(0, 1fr); }
  .cities-list .link-row { min-height: 0; padding: 13px 15px; border-radius: 0; }
  .cities-list .link-row:first-child { border-radius: 19px 19px 0 0; }
  .cities-list .link-row:last-child { border-radius: 0 0 19px 19px; }
  .cities-list .link-row + .link-row { border-top: 1px solid var(--yellow-line); border-left: 0; }
}
@media (max-width: 670px) {
  .nav { gap: 0 13px; }
}
@media (max-width: 640px) {
  :root { --site-header-height: 88px; }
  .header.shell {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 7px 0;
  }
  .header > nav { width: 100%; }
  .nav { justify-content: space-between; gap: 0 8px; }
  .nav a { padding-block: 10px; font-size: 13px; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .header.shell { padding-inline: 14px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 34px; height: 34px; }
  h1 { font-size: clamp(34px, 9.1vw, 50px); }
  .hero-copy h1 { font-size: clamp(34px, 9.35vw, 49px); }
  .hero-copy p, .page-hero p { margin-top: 12px; }
  .actions { gap: 6px 13px; margin-top: 19px; }
  .hero-actions { gap: 4px 11px; margin-top: 16px; }
  .hero-secondary { font-size: 14px; }
  .button { min-height: 44px; padding: 9px 13px; font-size: 14px; }
}
@media (max-width: 750px) {
  .menu-enhanced { --site-header-height: 64px; }
  .menu-enhanced .header.shell {
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 8px;
  }
  .menu-toggle:not([hidden]) {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle[aria-expanded="true"] {
    border-color: var(--yellow-line);
    background: var(--yellow-soft);
  }
  .menu-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
    background: linear-gradient(currentColor, currentColor) center / 20px 2px no-repeat;
  }
  .menu-toggle-icon::before, .menu-toggle-icon::after {
    position: absolute;
    inset: 9px 0 auto;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: '';
    transition: transform .18s ease;
  }
  .menu-toggle-icon::before { transform: translateY(-5px); }
  .menu-toggle-icon::after { transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: rotate(-45deg); }
  .menu-enhanced .site-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(14px, 4vw, 30px);
    width: min(360px, calc(100% - 28px));
    max-height: calc(100vh - var(--site-header-height) - 16px);
    max-height: calc(100dvh - var(--site-header-height) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 34px rgb(34 33 29 / 16%);
    animation: menu-appear .18s ease-out;
  }
  .menu-enhanced .menu-toggle[aria-expanded="false"] + .site-navigation { display: none; }
  .menu-enhanced .nav { display: grid; justify-content: stretch; gap: 2px; }
  .menu-enhanced .nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 16px;
  }
  .menu-enhanced .nav-referral {
    display: block;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .menu-enhanced .nav-referral .button { justify-content: space-between; text-decoration: none; }
  .menu-enhanced:has(.menu-toggle[aria-expanded="true"]) .referral-bar { visibility: hidden; }
}
@keyframes menu-appear {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .menu-toggle-icon::before, .menu-toggle-icon::after { transition: none; }
  .menu-enhanced .site-navigation { animation: none; }
}

