:root {
  color-scheme: light;
  --green: #173f35;
  --green-2: #237153;
  --green-soft: #eaf2ed;
  --yellow: #f5cf3d;
  --ink: #17211d;
  --muted: #68726c;
  --line: #dce4de;
  --paper: #fff;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #f2f5f1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-weight: 950; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--yellow); }
.brand__mark svg { width: 23px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand__copy { display: grid; gap: 1px; }
.brand__copy small { color: var(--green-2); font-size: 8px; letter-spacing: .18em; }
.brand__copy strong { font-size: 17px; letter-spacing: -.04em; }

.page { padding: 34px 0 64px; }
.hero { overflow: hidden; position: relative; padding: clamp(32px, 7vw, 66px); border-radius: 34px; background: var(--green); color: #fff; }
.hero::after { position: absolute; right: -70px; bottom: -120px; width: 330px; height: 330px; border: 58px solid rgb(245 207 61 / 14%); border-radius: 50%; content: ""; }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 13px; color: #a8dcc5; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-size: clamp(38px, 6.5vw, 70px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 760px; margin: 20px 0 0; color: #dbe9e2; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.55; }

.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.doc-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; min-height: 228px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.doc-card:hover { border-color: #b6c9bc; box-shadow: 0 16px 40px rgb(22 61 47 / 8%); transform: translateY(-2px); }
.doc-card__number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--green-soft); color: var(--green-2); font-size: 12px; font-weight: 900; }
.doc-card h2 { margin: 0; font-size: 24px; line-height: 1.08; letter-spacing: -.03em; }
.doc-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.doc-card__link { margin-top: auto; color: var(--green-2); font-size: 13px; font-weight: 900; }

.document-layout { display: block; }
.document { width: 100%; max-width: 920px; min-width: 0; margin: 0 auto; padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: 30px; background: var(--paper); }
.document__head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.document__head h1 { color: var(--ink); font-size: clamp(34px, 5vw, 56px); }
.document__date { margin-top: 18px !important; color: var(--muted) !important; font-size: 12px !important; }
.document section { padding-top: 30px; }
.document h2 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 29px); line-height: 1.1; letter-spacing: -.025em; }
.document h3 { margin: 22px 0 9px; font-size: 17px; }
.document p, .document li { color: #35413b; font-size: 14px; line-height: 1.7; }
.document p { margin: 0 0 12px; }
.document ul, .document ol { margin: 10px 0 0; padding-left: 22px; }
.document li + li { margin-top: 6px; }
.document strong { color: var(--ink); }
.page-footer { width: 100%; max-width: 920px; display: flex; gap: 18px; margin: 0 auto; padding: 22px 2px 0; color: var(--muted); font-size: 11px; }

.analytics-consent { position: fixed; z-index: 20; right: 20px; bottom: 20px; width: min(450px, calc(100% - 40px)); display: grid; gap: 14px; padding: 17px; border: 1px solid rgb(220 228 222 / 94%); border-radius: 18px; background: #fff; box-shadow: 0 22px 70px rgb(18 46 35 / 22%); }
.analytics-consent[hidden] { display: none; }
.analytics-consent__copy strong { display: block; font-size: 14px; line-height: 1.25; }
.analytics-consent__copy p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.analytics-consent__copy a { color: var(--green-2); font-weight: 800; }
.analytics-consent__actions { display: flex; gap: 7px; }
.analytics-consent__actions button { min-width: 0; min-height: 39px; flex: 1; padding: 0 13px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 850; }
.analytics-consent__accept { border: 0; background: var(--green); color: #fff; }
.analytics-consent__reject { border: 1px solid var(--line); background: #fff; color: var(--green); }
.analytics-consent__accept:hover { background: #0f352b; }
.analytics-consent__reject:hover { background: var(--green-soft); }

.footer-preview-note { margin-top: 18px; padding: 28px 2px 8px; }
.footer-preview-note .eyebrow { color: var(--green-2); }
.footer-preview-note h2 { max-width: 720px; margin: 0; font-size: clamp(29px, 4.2vw, 46px); line-height: 1.04; letter-spacing: -.045em; }
.footer-preview-note > p:last-child { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.final-site-footer { border-top: 1px solid #ccd8d0; background: #e7ede8; color: var(--green); }
.final-footer-grid { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(200px, .8fr) minmax(260px, 1fr); gap: clamp(28px, 5vw, 70px); padding-block: 38px 30px; }
.final-footer-identity, .final-footer-column { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.final-footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.final-footer-identity p { margin: 12px 0 18px; color: var(--muted); font-size: 12px; }
.final-footer-links { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.final-footer-links a, .final-footer-column a { color: var(--green); font-size: 12px; font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.final-footer-links a:hover, .final-footer-column a:hover { color: var(--green-2); }
.final-footer-label { margin-bottom: 11px; color: var(--green-2); font-size: 9px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.final-footer-phone { margin-bottom: 7px; font-size: 18px !important; text-decoration: none !important; }
.final-footer-column small { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.final-footer-requisites strong { max-width: 280px; font-size: 13px; line-height: 1.45; }
.final-footer-requisites small + small { margin-top: 2px; }
.final-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 15px 22px; border-top: 1px solid rgb(23 63 53 / 10%); color: var(--muted); font-size: 9px; }

@media (max-width: 820px) {
  .final-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-footer-identity { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 20px, 560px); }
  .topbar { min-height: 68px; }
  .brand__copy strong { font-size: 14px; }
  .hero { padding: 34px 22px; border-radius: 26px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card { min-height: 0; padding: 20px; border-radius: 21px; }
  .document { padding: 25px 20px; border-radius: 24px; }
  .page-footer { flex-direction: column; gap: 5px; }
  .analytics-consent { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); gap: 13px; padding: 16px; border-radius: 19px; }
  .footer-preview-note { padding-top: 20px; }
  .final-footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 30px 26px; }
  .final-footer-identity { grid-column: auto; }
  .final-footer-bottom { flex-direction: column; gap: 5px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

@media print {
  :root { background: #fff; }
  .topbar, .page-footer, .footer-preview-note, .final-site-footer { display: none !important; }
  .page { padding: 0; }
  .shell { width: 100%; }
  .document-layout { display: block; }
  .document { padding: 0; border: 0; }
}
