:root {
  --bg: #fafaf9; --surface: #ffffff; --text: #111827; --muted: #4b5563; --line: #e5e7eb;
  --accent: #0f766e; --accent-ink: #ffffff; --accent-soft: #ccfbf1; --warn: #b45309; --danger: #b91c1c;
  --radius: 14px; --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0f0e; --surface: #121816; --text: #ecfdf5; --muted: #a3b3ad; --line: #24302c;
    --accent: #2dd4bf; --accent-ink: #042f2e; --accent-soft: #134e4a; --warn: #fbbf24; --danger: #f87171;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header / footer */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-weight: 700; letter-spacing: -.01em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .top nav a.hide-sm { display: none; } }
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot a { color: var(--muted); }

/* type */
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: 600 16px/1 var(--font);
  transition: transform .15s ease, filter .2s ease; }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* sections */
section { padding: 72px 0; }
.hero { padding: 72px 0 40px; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.week { margin: 0; padding: 20px; }
.week table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.week td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.week td:first-child { font-weight: 600; width: 44px; } .week td:nth-child(2) { color: var(--muted); } .week td:last-child { text-align: right; font-family: var(--mono); }
.week-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.week-sum b { display: block; color: var(--text); font: 700 20px/1.2 var(--mono); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card svg.icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 12px; }
.shots { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 245px)); justify-content: center; align-items: start; }
.shot { margin: 0; } .shot img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.price { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.price .card.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price .card { display: flex; flex-direction: column; } .price .card .btn { margin-top: auto; align-self: flex-start; }
.price .amount { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.price ul { padding-left: 20px; margin: 12px 0 20px; color: var(--muted); }
.badge { display: inline-block; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; } details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 28px); }
.settings { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
input, select { font: 17px/1.2 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; width: 100%; }
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
input:disabled { opacity: .45; }
.seg-h span { font-size: 13px; color: var(--muted); font-weight: 500; padding-left: 2px; }
.seg-h { margin-bottom: -4px; }
.print-only { display: none; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text); }
.check input { width: 22px; min-height: 22px; height: 22px; accent-color: var(--accent); }
.week-h { margin: 22px 0 4px; font-size: 17px; color: var(--accent); }
.day { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 10px; grid-template-columns: 110px 1fr auto; align-items: start; }
.day-name { font-weight: 600; padding-top: 12px; }
.segs { display: grid; gap: 8px; }
.seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.seg input { min-width: 0; padding-inline: 8px; font-size: 16px; }
.seg input::-webkit-calendar-picker-indicator { margin-left: 0; padding: 0; }
@media (max-width: 380px) { .seg input::-webkit-calendar-picker-indicator { display: none; } }
.day-side { display: grid; gap: 8px; justify-items: end; min-width: 120px; }
.day-total { font: 600 17px/1 var(--mono); padding-top: 13px; }
.day-total .ot { color: var(--warn); font-size: 13px; display: block; margin-top: 4px; font-family: var(--font); }
.brk { width: 110px; }
.icon-btn { width: 44px; height: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.add-seg { background: none; border: none; color: var(--accent); font: 600 15px var(--font); cursor: pointer; padding: 8px 0; justify-self: start; min-height: 44px; }
@media (max-width: 640px) {
  .day { grid-template-columns: minmax(0, 1fr); }
  .day-name { padding-top: 0; }
  .day-side { display: flex; justify-content: space-between; align-items: end; min-width: 0; }
  .day-side .f { grid-template-columns: auto 90px; align-items: center; gap: 10px; }
  .brk { width: 90px; }
  .day-total { padding-top: 0; text-align: right; }
}
.daily { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.daily .row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; align-items: center; }
.daily .row .check { justify-content: center; border: 1px solid var(--line); border-radius: 10px; min-height: 46px; background: var(--bg); }
.results { margin-top: 24px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font: 700 26px/1.1 var(--mono); letter-spacing: -.02em; margin-top: 4px; }
.stat.pay { background: var(--accent-soft); border-color: transparent; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.err { color: var(--danger); font-size: 14px; margin: 8px 0 0; }
.cta-band { margin-top: 28px; border-radius: 20px; padding: 24px; background: var(--accent-soft); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; max-width: 34em; }
.prose h2 { margin-top: 40px; } .prose p, .prose li { color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; } .prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }

/* reveal (off when reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media print {
  .top, .foot, .tools, .cta-band, .add-seg, .icon-btn, .no-print, .demo, .hero .eyebrow, .hero h1, .hero .lead, section:has(.prose) { display: none !important; }
  .print-only { display: block; } .hero { padding: 0; }
  body { background: #fff; color: #000; } .calc { box-shadow: none; border: none; padding: 0; }
  input { border: none; padding: 0; min-height: 0; background: none; }
}

/* hero: анимация приложения (М-25, 2026-09-28) — настоящие экраны, 432×1007; при «уменьшить движение» — неподвижный кадр отчёта */
.demo { margin: 0; justify-self: center; text-align: center; }
.demo img { display: block; width: min(280px, 70vw); height: auto; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.demo figcaption { margin-top: 12px; max-width: 280px; }
.hero-week { margin-top: 40px; max-width: 640px; }
@media (max-width: 900px) { .demo { order: 2; } .hero-week { margin-top: 32px; } }
