:root {
  --bg: #f5f8f2;
  --paper: #ffffff;
  --ink: #1e2b22;
  --muted: #56655a;
  --green: #2f5d3a;
  --green-2: #4f8a5b;
  --sage: #dce8d6;
  --red: #b83f48;
  --rose: #f7e3e1;
  --water: #bfdde6;
  --line: #d3dfcf;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(245, 248, 242, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.3rem/1 var(--serif); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--red); }

/* Hero */
.hero { position: relative; max-width: 1400px; margin: 0 auto; padding: 20px 20px 0; }
.hero__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 28px 28px 28px 4px; }
.hero__panel {
  position: relative; margin: -120px 0 0 clamp(0px, 4vw, 60px);
  max-width: 720px; background: var(--paper);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 4px 24px 24px 24px;
  border-top: 6px solid var(--red);
  box-shadow: 0 18px 50px -24px rgba(47, 93, 58, .45);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.meta { font-size: .9rem; color: var(--green-2); }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #9c3139; color: #fff; }
.btn--ghost { border: 2px solid var(--green); color: var(--green); }
.btn--ghost:hover { background: var(--sage); color: var(--green); }

/* Article */
.article { max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; }
.block { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.block > p, .block > h2 { max-width: 68ch; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px 56px; align-items: start; }
.intro h2, .intro p { grid-column: 1; }
.note { grid-column: 2; grid-row: 1 / span 3; background: var(--rose); border-radius: 20px; padding: 24px; border-left: 4px solid var(--red); }
.note p { margin: 0; }

/* Zones diagram */
.zones { margin: 32px 0 36px; }
.zones__row { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr 1.6fr .9fr; border-radius: 18px; overflow: hidden; min-height: 150px; }
.z { padding: 18px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.z__name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.z__w { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.z--water { background: linear-gradient(135deg, #a9d1dd, #d3e9ef); }
.z--shore { background: #f1e6c9; }
.z--guard { background: #cfe2c6; }
.z--zone { background: #e5efdf; }
.z--free { background: var(--paper); border: 1px dashed var(--line); }
.z--shore .z__w { color: var(--red); }
.zones figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; max-width: 80ch; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols p { color: var(--muted); }

/* Keywords block */
.keywords { border-top: 0; }
.keywords strong { font-weight: 600; color: var(--green); }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 0 64px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff; font: 700 1.2rem/1 var(--serif);
}
.steps li:nth-child(3)::before { background: var(--red); }
.steps p { color: var(--muted); margin: 0; }

/* Gallery */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.grid figure { margin: 0; }
.grid img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.grid figcaption { font-size: .95rem; color: var(--muted); margin-top: 10px; }
.grid figcaption strong { color: var(--ink); }

/* Table */
.table-wrap { overflow-x: auto; margin-top: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sage); font-weight: 600; }
thead th:nth-child(3) { background: var(--rose); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }

.trust p { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.8rem/1 var(--sans); color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }
.faq .block, .faq { border-bottom: 0; }

/* Footer */
.foot { background: var(--green); color: #e6efe3; }
.foot__inner { max-width: 1180px; margin: 0 auto; padding: 40px 20px calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__brand { font: 700 1.4rem/1 var(--serif); color: #fff; }
.foot p { margin: 0 0 .5em; }
.foot .small { font-size: .85rem; opacity: .8; }
.foot__links { display: flex; flex-direction: column; gap: 10px; }
.foot a { color: #fff; }
.foot a:hover { color: #ffc9cc; }

/* Responsive */
@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; }
  .note { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .cols { grid-template-columns: 1fr; gap: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .zones__row { grid-template-columns: 1fr 1fr; }
  .z--water { grid-column: 1 / -1; min-height: 70px; }
  .z--free { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .nav { display: none; }
  .hero { padding: 12px 12px 0; }
  .hero__img { aspect-ratio: 4 / 3; border-radius: 20px 20px 20px 4px; }
  .hero__panel { margin: -48px 8px 0; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .zones__row { grid-template-columns: 1fr; }
  .z { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .z--water { min-height: 0; }
}
