/* СНТ «Сапегино-28». Mobile-first, designed for older readers: large type, strong contrast, big touch targets.
   Colors from the SNT logo: sky-blue orbit + graphite lettering. */
:root {
  --bg: #f2f6f9;
  --surface: #ffffff;
  --ink: #14202a;
  --muted: #3c4d59;          /* dark enough for AA on white and on --bg */
  --line: #c9d6df;
  --blue: #0b78c2;           /* logo blue, darkened for white text contrast */
  --blue-ink: #075a92;
  --blue-soft: #e1f0fb;
  --navy: #0f2a3d;
  --green: #1f7a45;
  --green-soft: #ddf1e5;
  --amber: #a86d00;
  --amber-soft: #fcf0d4;
  --coral: #b63b24;
  --coral-soft: #fbe4de;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(15 42 61 / .08), 0 12px 30px -16px rgb(15 42 61 / .32);
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1120px, 100% - 32px);
  --header-h: 68px;
  --tap: 56px;
  color-scheme: light;
}
/* reader-chosen text size (A, A+, A++) */
html { font-size: 100%; }
html[data-size="1"] { font-size: 112.5%; }
html[data-size="2"] { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); interpolate-size: allow-keywords; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1875rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 4px solid #f2a900; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
small { font-size: 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; }
.skip:focus { top: 12px; }
.lead { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.35rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* header */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px -14px rgb(15 42 61 / .4); }
.header__in { height: 100%; display: flex; align-items: center; gap: 12px; }
.logo { flex: none; }
.logo img { height: 48px; width: auto; }
.nav { display: none; }
.header__right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.tbtn { min-width: 48px; height: 48px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy); font: 800 1rem var(--font-display); cursor: pointer; text-decoration: none; }
.tbtn svg { width: 22px; height: 22px; }
.tbtn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.tbtn--blue:hover { color: #fff; }
.tbtn .lbl { display: none; }
@media (min-width: 420px) { .tbtn .lbl { display: inline; font-size: .95rem; } }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); padding: 14px 16px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; display: none; }
.menu.is-open { display: block; }
.menu a { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 6px; border-bottom: 1px solid var(--line); font: 700 1.3rem var(--font-display); color: var(--navy); text-decoration: none; }
.menu a svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
body.menu-open { overflow: hidden; }
@media (min-width: 1080px) {
  :root { --header-h: 78px; }
  .logo img { height: 56px; }
  .burger, .menu { display: none !important; }
  .nav { display: flex; gap: 2px; margin-left: 16px; }
  .nav a { padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 1.02rem; text-decoration: none; color: var(--ink); }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); }
}

/* buttons */
.btn { --b: var(--navy); --c: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 0 24px; border-radius: 14px; border: 2px solid var(--b); background: var(--b); color: var(--c); font: 800 1.1rem var(--font-display); text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--c); filter: brightness(1.08); }
.btn--blue { --b: var(--blue); }
.btn--green { --b: var(--green); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { color: var(--navy); background: var(--blue-soft); }
.btn--light { --b: #fff; --c: var(--navy); }
.btn svg { width: 22px; height: 22px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 560px) { .actions .btn { width: 100%; } }

/* hero */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 42 61 / .72) 0%, rgb(15 42 61 / .86) 60%, rgb(15 42 61 / .95) 100%); }
.hero__in { padding: clamp(32px, 7vw, 88px) 0 clamp(52px, 8vw, 96px); }
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero h1 span { color: #8fd6ff; }
.hero p { color: #fff; max-width: 52ch; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .3); font-size: 1rem; margin-bottom: 16px; }

/* quick tiles: big, labelled, one tap */
.tiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: -34px; position: relative; z-index: 2; }
.tile { display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: 14px; padding: 16px 18px; min-height: 84px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.tile:hover { border-color: var(--blue); color: var(--navy); }
.tile .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; }
.tile .ic svg { width: 28px; height: 28px; }
.tile b { display: block; font: 800 1.2rem/1.2 var(--font-display); }
.tile small { display: block; color: var(--muted); font-size: 1rem; line-height: 1.35; margin-top: 2px; }
.tile .go { color: var(--blue); } .tile .go svg { width: 24px; height: 24px; }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1080px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.c-blue { background: var(--blue-soft); color: var(--blue-ink); }
.c-green { background: var(--green-soft); color: var(--green); }
.c-amber { background: var(--amber-soft); color: var(--amber); }
.c-coral { background: var(--coral-soft); color: var(--coral); }
.c-navy { background: #e2e9ef; color: var(--navy); }

/* sections */
.section { padding-block: clamp(40px, 6vw, 84px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }
.head { display: grid; gap: 10px; margin-bottom: clamp(18px, 3vw, 32px); max-width: 760px; }
.head h2, .head p { margin: 0; }
.grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin-bottom: 8px; }
.card > :last-child { margin-bottom: 0; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 26px; height: 26px; }
.note { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--amber-soft); border-left: 6px solid var(--amber); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 1rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: inherit; }
.phead { padding-block: clamp(24px, 4vw, 44px) clamp(8px, 2vw, 20px); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 14px 0 24px; background: #fff; }
.prose ol, .prose ul { padding-left: 1.3em; } .prose li { margin-bottom: .5em; }

/* news */
.news { display: grid; gap: 12px; }
.news a { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news a:hover { border-color: var(--blue); }
.news time { font-size: 1rem; color: var(--muted); }
.news b { font: 800 1.2rem var(--font-display); color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* documents */
.docs { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.doc:hover { border-color: var(--blue); color: var(--ink); }
.doc .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); font: 800 .85rem var(--font-display); }
.doc b { display: block; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; color: var(--blue-ink); }
.doc small { color: var(--muted); }

/* requisites + pay */
.req { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
.req dt { color: var(--muted); margin-top: 8px; } .req dd { margin: 0; font-weight: 700; word-break: break-word; font-size: 1.1rem; }
@media (min-width: 600px) { .req { grid-template-columns: auto 1fr; } .req dt { margin-top: 0; } }
.pay { display: grid; gap: 18px; }
@media (min-width: 900px) { .pay { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.pay-result { text-align: center; }
#pay-qr svg { width: min(300px, 100%); height: auto; margin: 0 auto 14px; background: #fff; border-radius: 12px; }
.pay-result p { font-weight: 700; }

/* team */
.team { display: grid; gap: 12px; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(2, 1fr); } }
.person { padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.person .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); font: 800 1.1rem var(--font-display); }
.person b { display: block; font: 800 1.15rem var(--font-display); color: var(--navy); }
.person span { color: var(--muted); }

/* phones */
.phones { display: grid; grid-template-columns: 1fr; gap: 10px; }
.phones a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 72px; }
.phones b { font: 800 1.6rem var(--font-display); color: var(--navy); }
.phones span { color: var(--muted); grid-column: 1; }
.phones svg { grid-row: 1 / span 2; grid-column: 2; width: 30px; height: 30px; color: var(--green); }
@media (min-width: 760px) { .phones { grid-template-columns: repeat(2, 1fr); } }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 60px 18px 20px; position: relative; font-weight: 700; font-size: 1.15rem; min-height: var(--tap); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 1.4rem/1 var(--font-body); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 20px; }

/* forms */
.fcard { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); }
.f { display: grid; gap: 22px; }
.fg { display: grid; gap: 18px; }
@media (min-width: 720px) { .fg--2 { grid-template-columns: 1fr 1fr; } }
.fl { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fl > span, .fl legend { font-weight: 700; font-size: 1.1rem; padding: 0; }
.fl i, .fc i { color: var(--coral); font-style: normal; }
.fl small { color: var(--muted); }
.f input:not([type=radio]):not([type=checkbox]):not([type=file]), .f textarea, .f select { width: 100%; font: inherit; font-size: 1.15rem; color: var(--ink); background: #fff; border: 2px solid #9fb3c1; border-radius: 12px; padding: 12px 14px; min-height: var(--tap); }
.f textarea { min-height: 140px; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 10px 18px; border-radius: 12px; border: 2px solid #9fb3c1; background: #fff; font-size: 1.1rem; }
.chip span::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #7f95a5; flex: none; }
.chip input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); font-weight: 700; }
.chip input:checked + span::before { border-color: var(--blue); background: radial-gradient(var(--blue) 45%, transparent 50%); }
.chip input:focus-visible + span { outline: 4px solid #f2a900; outline-offset: 2px; }
.drop { position: relative; display: grid; place-items: center; gap: 8px; padding: 26px 18px; border: 2px dashed #7f95a5; border-radius: var(--radius-sm); background: #f7fbfd; text-align: center; cursor: pointer; font-weight: 600; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 34px; height: 34px; color: var(--blue); }
.drop-list { color: var(--green); font-weight: 700; }
.fc { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 1.05rem; }
.fc input { width: 28px; height: 28px; margin: 0; accent-color: var(--blue); flex: none; }
.err { display: block; margin: 0; color: #a3170a; font-weight: 600; } .err:empty { display: none; }
.has-error input, .has-error textarea, .has-error select { border-color: #c4210f !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.f-status { margin: 0; font-weight: 600; }
.f button[disabled] { opacity: .6; cursor: progress; }
.done { text-align: center; padding: 32px 12px; }
.done .ic { width: 72px; height: 72px; border-radius: 20px; display: inline-grid; place-items: center; margin-bottom: 14px; background: var(--green-soft); color: var(--green); }
.done .ic svg { width: 36px; height: 36px; }
@media (max-width: 719px) { .f-actions .btn { width: 100%; } }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { position: relative; padding: 18px 18px 18px 72px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 800 1.05rem var(--font-display); }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }

/* footer & action bar */
.footer { margin-top: clamp(40px, 6vw, 84px); background: var(--navy); color: #dce7ee; padding-block: 44px calc(28px + env(safe-area-inset-bottom)); }
.footer a { color: #fff; } .footer a:hover { color: #8fd6ff; }
.footer__grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h3 { color: #a9c6d8; font: 700 .95rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__logo { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-block; }
.footer__logo img { height: 44px; width: auto; }
.footer__bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .16); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.actionbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 18px; background: var(--navy); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .5); }
.actionbar .btn { min-height: 54px; font-size: 1.05rem; padding: 0 8px; }
.actionbar .btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
@media (min-width: 1080px) { .actionbar { display: none; } }
@media (max-width: 1079px) { .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .header, .actionbar, .footer, .menu { display: none !important; } body { background: #fff; } }
