:root {
  --paper: #f6efe4;
  --surface: #fffaf2;
  --ink: #263229;
  --muted: #657066;
  --line: rgba(38, 50, 41, .17);
  --accent: #9f6a43;
  --calm: #7b9461;
  --gold: #d9b66a;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(30, 36, 32, .12);
}
.theme-diabetes { --paper:#f7f3e8; --surface:#fffdf7; --ink:#26352e; --muted:#65736d; --accent:#b65445; --calm:#688f77; --gold:#d3a53e; }
.theme-pressure { --paper:#f2f7f5; --surface:#ffffff; --ink:#1f3137; --muted:#607074; --accent:#bd443e; --calm:#6a9a83; --gold:#d8c478; }
.theme-mens { --paper:#f5f1ea; --surface:#fffaf4; --ink:#202a2d; --muted:#626d6b; --accent:#a66b3f; --calm:#6f877b; --gold:#c9a348; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.56;
}
body[data-lang="ru"] .lang-en, body[data-lang="en"] .lang-ru { display: none; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 46px);
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { font-weight: 900; text-decoration: none; }
nav { display: flex; justify-content: center; gap: clamp(10px, 2vw, 24px); font-size: 14px; }
nav a, .text-link { text-decoration: none; border-bottom: 1px solid transparent; }
nav a:hover, .text-link:hover { border-color: currentColor; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(330px, .75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(38px, 7vw, 86px) clamp(16px, 5vw, 72px) 34px;
}
.hero-copy { max-width: 840px; }
.eyebrow, .kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, p, li, a, button, label { overflow-wrap: anywhere; letter-spacing: 0; }
h1 {
  margin: 0;
  max-width: 940px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6.7vw, 88px);
  line-height: .98;
}
h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.04;
}
.lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 30px; }
.button, form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, form button:hover { background: color-mix(in srgb, var(--ink) 82%, var(--accent)); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 56%, white);
  outline-offset: 3px;
}
.hero-visual img, .gallery img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
figure { margin: 0; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.safety, .section {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.safety {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.section {
  padding: clamp(58px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--line);
}
.feature, .tool, .recipe, .list-panel, .contact {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(310px, .72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}
.feature p, .section-head p, .note p, .sources p, .contact p, .list-panel p { color: var(--muted); font-size: 18px; }
.feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.feature li {
  padding: 18px 0 18px 24px;
  border-bottom: 1px solid var(--line);
  border-left: 6px solid var(--accent);
}
.toolbox, .pressure-tool, form {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.toolbox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toolbox button {
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.toolbox button.active { color: #fff; background: var(--accent); border-color: var(--accent); }
output {
  display: block;
  grid-column: 1 / -1;
  min-height: 74px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}
.pressure-tool label, form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}
.pressure-tool input, form input, form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery figure { background: var(--surface); border: 1px solid var(--line); }
.gallery img { aspect-ratio: 4 / 3; box-shadow: none; border: 0; }
.gallery figcaption { display: grid; gap: 4px; padding: 14px; }
.gallery span { color: var(--muted); }
.step-list {
  display: grid;
  gap: 14px;
}
.step-list article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step-list b { color: var(--accent); font-size: 30px; }
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.recipe-grid article {
  min-height: 140px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--surface);
}
th, td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}
th { width: 34%; background: color-mix(in srgb, var(--calm) 18%, white); }
.checks { display: grid; gap: 12px; }
.checks label, .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 750;
}
.redflags .checks label { border-left: 6px solid var(--accent); }
.note {
  padding-left: clamp(18px, 4vw, 44px);
  border-left: 10px solid var(--accent);
}
.timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: day;
  display: grid;
  gap: 12px;
}
.timeline li {
  counter-increment: day;
  padding: 18px 18px 18px 72px;
  min-height: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.timeline li::before {
  content: counter(day);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}
.faq > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
details {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
summary { cursor: pointer; font-weight: 900; }
details p { color: var(--muted); }
.sources ul {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.sources li { padding: 10px 0; border-bottom: 1px solid var(--line); }
footer { padding: 26px clamp(16px, 5vw, 72px); color: var(--muted); }
.success-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.success-card {
  width: min(680px, 100%);
  padding: clamp(26px, 6vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.success-card h1 { font-size: clamp(42px, 8vw, 76px); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .hero, .feature, .tool, .recipe, .list-panel, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .gallery-grid, .faq > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .safety, .step-list article, .gallery-grid, .recipe-grid, .faq > div { grid-template-columns: 1fr; }
  .toolbox { grid-template-columns: 1fr; }
  th, td { display: block; width: 100%; }
  .hero-actions { align-items: stretch; }
  .button, .text-link { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}