/* Tokens */
:root {
  --c-bg: #F1F4EE;
  --c-surface: #FBFCF9;
  --c-text: #1C2A20;
  --c-muted: #4E5E52;
  --c-accent: #2F6B45;
  --c-accent-text: #FBFCF9;
  --c-plate: #1C2A20;
  --c-plate-text: #F1F4EE;
  --c-line: #DDE4DA;
  --c-focus: #1C2A20;
  --f-head: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-body: Charter, 'Bitstream Charter', 'Sitika Text', Cambria, Georgia, serif;
  --r-card: 14px;
  --r-btn: 10px;
  --sh-soft: 0 1px 2px rgb(28 42 32 / .06), 0 12px 32px rgb(28 42 32 / .08);
  --sh-mat: 0 0 0 8px var(--c-surface), 0 0 0 9px var(--c-line), 0 16px 40px rgb(28 42 32 / .12);
  --pad: clamp(16px, 4vw, 40px);
  --band-gap: clamp(64px, 9vw, 128px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.4rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 2.9rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 0.6vw + 0.9rem, 1.5rem); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: #24523a; }
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
ul { padding-left: 1.25em; }

.skipway {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-plate);
  color: var(--c-plate-text);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-btn) 0;
  font-family: var(--f-head);
  text-decoration: none;
}
.skipway:focus { left: 0; color: var(--c-plate-text); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.band { padding-block: clamp(64px, 8vw, 96px); margin: 0; }
.band__title { margin-bottom: 12px; }
.band__intro { color: var(--c-muted); font-size: 1.05em; margin-bottom: 32px; max-width: 46ch; text-wrap: pretty; }

/* Background layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(140% 90% at 15% 0%, rgb(251 252 249 / .9) 0%, rgb(251 252 249 / 0) 55%),
    linear-gradient(165deg, var(--c-surface) 0%, var(--c-bg) 60%, #E6ECDF 100%);
  background-attachment: local;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-conic-gradient(rgb(28 42 32 / .022) 0% 25%, transparent 0% 50%);
  background-size: 5px 5px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 12px var(--pad);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.topbar.is-stuck {
  background-color: rgb(251 252 249 / .94);
  box-shadow: 0 1px 0 var(--c-line), 0 8px 24px rgb(28 42 32 / .06);
  backdrop-filter: blur(8px);
}
.topbar__brand {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--c-accent);
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.01em;
}
.topbar__brand:hover { color: #24523a; }
.topbar__side { display: flex; align-items: center; }
.topbar__side:last-child { justify-content: flex-end; }
.topbar__burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.topbar__burger:hover { background: #EEF2E9; transform: translateY(-1px); }
.topbar__burger:active { transform: none; box-shadow: none; }
.topbar__burgerbox { display: inline-flex; flex-direction: column; gap: 4px; }
.topbar__burgerbar {
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.navsheet--open ~ * .topbar__burgerbar,
.topbar__burger[aria-expanded="true"] .topbar__burgerbar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] .topbar__burgerbar:nth-child(2) { opacity: 0; }
.topbar__burger[aria-expanded="true"] .topbar__burgerbar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav overlay */
.navsheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--c-plate);
  color: var(--c-plate-text);
  display: flex;
  align-items: center;
  padding: 96px var(--pad) 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.navsheet--open { opacity: 1; visibility: visible; transform: none; }
.navsheet__cols {
  display: grid;
  gap: 40px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.navsheet__pages { display: flex; flex-direction: column; gap: 4px; }
.navsheet__hint {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 600;
  color: #B7C4B4;
  margin: 0 0 8px;
}
.navsheet__contacts { display: flex; flex-direction: column; gap: 4px; }
.navsheet__link {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 650;
  font-size: clamp(1.15rem, 1vw + 0.8rem, 1.5rem);
  color: var(--c-plate-text);
  text-decoration: none;
  padding: 10px 14px;
  margin-left: -14px;
  border-radius: var(--r-btn);
  transition: background-color .25s ease, color .25s ease;
}
.navsheet__link:hover,
.navsheet__link:focus-visible {
  background: #33503B;
  color: var(--c-plate-text);
}
.navsheet__link[aria-current="page"] { color: #A8D3B6; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 32px;
  font-size: 17px;
  border: none;
  border-radius: var(--r-btn);
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  color: var(--c-accent-text);
  background: linear-gradient(135deg, #35774D 0%, var(--c-accent) 55%, #286040 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 2px 6px rgb(28 42 32 / .18);
  transition: background-position .3s ease, transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
  background-position: 100% 50%;
  filter: brightness(.96);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
.btn:active {
  transform: none;
  box-shadow: none;
  filter: brightness(.9);
}
.btn--ghost {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
}
.btn--ghost:hover { background: #E7EEE4; color: #24523a; }
.btn--ghost:active { background: #DBE5D7; box-shadow: none; }

/* Hero */
.band--hero { padding-top: clamp(32px, 6vw, 72px); }
.hero {
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 0;
  align-items: stretch;
  min-height: min(72vh, 640px);
}
.hero__intro {
  position: relative;
  z-index: 2;
  padding: 64px 72px;
  border-radius: var(--r-card);
  margin-right: -120px;
  box-shadow: 0 24px 56px rgb(28 42 32 / .25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__title { margin-bottom: 20px; }
.hero__lead { color: #C8D4C6; font-size: 1.08em; margin-bottom: 28px; }
.hero__photo { margin: 0; }
.hero__photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--sh-mat);
}
.hero__cta { margin-top: 40px; width: fit-content; }
.hero__title { text-wrap: balance; }

/* Plate & accent */
.inkboard a { color: #A8D3B6; }
.inkboard a:hover { color: #C9E8D4; }
.inkboard {
  background: var(--c-plate);
  color: var(--c-plate-text);
  border-radius: var(--r-card);
}
.inkboard .band__title { color: var(--c-plate-text); }
.inkboard .band__intro { color: #C8D4C6; }
.inkboard .btn { margin-top: 8px; }
.leadtype {
  display: block;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(2.8rem, 5.4vw + 0.8rem, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #8FCBA3;
  margin: 0.05em 0 0.1em;
}

/* Steps */
.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.steps__item {
  counter-increment: step;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 28px 28px 24px;
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.steps__item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--c-accent);
  display: block;
  margin-bottom: 8px;
}
.steps__head { margin-bottom: 6px; }
.steps__text { color: var(--c-muted); margin: 0; }
.steps__item:hover { border-color: var(--c-accent); box-shadow: var(--sh-soft); }

/* Offers */
.offers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.offer {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.offer:hover {
  border-color: var(--c-accent);
  box-shadow: var(--sh-soft);
  transform: translateY(-3px);
}
.offer__photo { margin: 0; }
.offer__photo img { width: 100%; aspect-ratio: 4 / 3; }
.offer__title, .offer__text { padding: 0 26px; }
.offer__title { margin: 22px 28px 8px; padding: 0; }
.offer__text { color: var(--c-muted); margin: 0 28px 28px; padding: 0; text-wrap: pretty; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.offer__text a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Stats */
.statline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--c-plate);
  color: var(--c-plate-text);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 8px;
}
.statline__num {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw + 0.8rem, 4rem);
  line-height: 1.05;
  color: #8FCBA3;
  display: block;
}
.statline__label { color: #C8D4C6; margin: 8px 0 0; }

/* FAQ */
.queries__list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-inline: auto; }
.queries__item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 4px 22px;
  transition: border-color .3s ease;
}
.queries__item[open] { border-color: var(--c-accent); }
.queries__item summary {
  cursor: pointer;
  font-family: var(--f-head);
  font-weight: 650;
  font-size: 1.05rem;
  padding: 16px 0;
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.queries__item summary::-webkit-details-marker { display: none; }
.queries__item summary::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--c-accent);
  border-bottom: 2.5px solid var(--c-accent);
  transform: rotate(45deg);
  flex: none;
  transition: transform .25s ease;
  margin-top: -5px;
}
.queries__item[open] summary::after { transform: rotate(225deg); margin-top: 5px; }
.queries__item p { color: var(--c-muted); padding-bottom: 18px; margin: 0; }

/* Magazine column */
.column__flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.column__text { max-width: 48ch; display: flex; flex-direction: column; justify-content: center; }
.column__head { margin-top: 28px; }
.column__head:first-child { margin-top: 0; }
.column__media { margin: 0; }
.column__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  box-shadow: var(--sh-mat);
}

/* Page head for inner pages */
.pagehead { padding-top: clamp(48px, 7vw, 88px); }
.pagehead h1 { max-width: 22ch; }
.pagehead__lead { color: var(--c-muted); font-size: 1.1em; max-width: 62ch; }

/* Prose for policies */
.column {
  font-size: 1rem;
}
.column h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); margin-top: 40px; }
.column h3 { margin-top: 28px; }
.column ul, .column ol { color: var(--c-text); margin: 0 0 1.2em; }
.column li { margin-bottom: 0.4em; }
.column table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border-radius: var(--r-card);
  overflow: hidden;
  font-size: .95rem;
}
.column th, .column td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
}
.column th {
  font-family: var(--f-head);
  font-weight: 650;
  background: #EEF2E9;
}
.column tr:last-child td { border-bottom: none; }
.column--narrow { max-width: 760px; }

/* Form */
.briefform {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3.5vw, 40px);
  max-width: 760px;
  box-shadow: var(--sh-soft);
}
.briefform__row { margin-bottom: 20px; }
.briefform__tag {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 6px;
}
.briefform__line {
  width: 100%;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-btn);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color .25s ease, background-color .25s ease;
}
.briefform__line::placeholder { color: #5C6B60; opacity: 1; }
.briefform__line:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px rgb(47 107 69 / .18);
}
.briefform__area { min-height: 130px; resize: vertical; }
.is-invalid { border-color: #A33B2E; background: #FBF3F1; }
.is-invalid:focus { border-color: #A33B2E; box-shadow: 0 0 0 3px rgb(163 59 46 / .18); }
.briefform__agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--c-muted);
  margin: 24px 0;
}
.briefform__agree input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--c-accent);
}
.briefform__agree label { max-width: 60ch; }
.briefform__aside {
  font-size: .88rem;
  color: var(--c-muted);
  margin: 18px 0 22px;
}
.briefform.is-locked .briefform__submit {
  pointer-events: none;
  filter: grayscale(.4) brightness(.9);
}

/* Guarantee */
.guarantee {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 5px solid var(--c-accent);
  border-radius: var(--r-card);
  padding: 26px 28px;
  margin-top: 24px;
}
.guarantee__title { margin-bottom: 8px; }
.guarantee__text { color: var(--c-muted); margin: 0; }

/* Contacts block */
.contactcard {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3.5vw, 40px);
  max-width: 760px;
}
.contactcard address {
  font-style: normal;
  line-height: 1.7;
}
.contactcard address p { margin: 0 0 4px; }
.contactcard ul { list-style: none; margin: 0; padding: 0; }
.contactcard li { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.contactcard li:last-child { border-bottom: none; }

/* Thanks / 404 */
.plainnote { padding-top: clamp(48px, 7vw, 96px); }
.plainnote .inkboard { padding: clamp(32px, 5vw, 64px); }
.plainnote__links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.plainnote__links a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #44604C;
  border-radius: var(--r-btn);
  color: var(--c-plate-text);
  text-decoration: none;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .95rem;
  transition: background-color .25s ease;
}
.plainnote__links a:hover { background: #33503B; color: var(--c-plate-text); }

/* Footer */
.basement {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding: clamp(40px, 6vw, 72px) 0 24px;
  margin-top: var(--band-gap);
}
.basement__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.basement__brand {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c-accent);
  margin: 0 0 8px;
}
.basement__note { color: var(--c-muted); font-size: .95rem; max-width: 40ch; }
.basement__heading {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--c-muted);
  margin: 0 0 12px;
}
.basement__col { display: flex; flex-direction: column; gap: 8px; }
.basement__link {
  color: var(--c-text);
  text-decoration: none;
  font-size: .98rem;
  width: fit-content;
  border-radius: 6px;
  padding: 3px 8px;
  margin-left: -8px;
  transition: background-color .25s ease, color .25s ease;
}
.basement__link:hover { background: #E7EEE4; color: var(--c-accent); }
.basement__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.basement__copy { color: var(--c-muted); font-size: .88rem; margin: 0; }

/* Reveal */
html.is-live .band--hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
html.is-live .band--hidden.is-shown {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (min-width: 480px) {
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .statline { grid-template-columns: repeat(3, 1fr); }
  .basement__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  .offers__grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .column__flow { grid-template-columns: 1fr 1fr; }
  .column__flow > .column__text { grid-column: 1 / -1; }
  .band__intro { text-wrap: balance; hyphens: auto; }
}

@media (min-width: 768px) {
  .navsheet__cols { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .basement__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .plainnote__links { gap: 16px; }
}

@media (min-width: 1024px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .offers__grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .column__flow { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; }
  .column__flow > .column__text { grid-column: auto; max-width: 40ch; }
}

@media (min-width: 1280px) {
  .wrap { max-width: 1200px; }
}

@media (max-width: 639px) {
  .hero { grid-template-columns: 1fr; }
  .hero__intro { margin-right: 0; order: 1; padding: 28px 24px; }
  .hero__photo { order: 2; margin-bottom: 0; }
  .hero__photo img { min-height: 0; aspect-ratio: 4 / 3; }
  .hero__title { font-size: clamp(32px, 9vw, 44px); line-height: 1.1; }
  .hero__cta { margin-top: 24px; min-height: 52px; }
  .steps__list { gap: 16px; }
  .steps__item { padding: 24px 20px; }
  .steps__item::before { margin-bottom: 12px; display: block; }
  .topbar__burgertext { display: none; }
}

@media (max-height: 600px) and (min-width: 640px) {
  .band--hero { padding-top: 16px; }
  .hero { min-height: auto; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-live .band--hidden {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .hero__intro { padding: 40px 44px; margin-right: -40px; }
}
