/* ДоброДелом — один файл стилей. Mobile-first, 12 колонок, max-width 1160px.
   Палитра из четырёх цветов (бриф § 4); оттенки — только прозрачностью этих цветов.
   Золото не используется для текста на светлом фоне: контраст ниже AA. */

@font-face { font-family: "PT Sans"; src: url("/fonts/pt-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("/fonts/pt-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("/fonts/pt-serif-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #12264A;
  --gold: #D6AA4E;
  --paper: #F6F4EE;
  --ink: #1B1B1B;
  --line: rgba(18, 38, 74, .16);
  --tint: rgba(18, 38, 74, .05);
  --muted: rgba(27, 27, 27, .72);
  --gut: 16px;
  --r: 6px;
  --sans: "PT Sans", "Segoe UI", Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 6.4vw, 46px); }
h2 { font-size: clamp(23px, 4.6vw, 32px); }
h3 { font-size: 20px; }
p, ul, ol, dl, table, figure { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
strong { font-weight: 700; }
[hidden] { display: none; }

.visually-hidden, .hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--navy); color: var(--paper); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 8px; }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* сетка */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.wrap.narrow { max-width: calc(760px + 2 * var(--gut)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.grid > * { grid-column: span 12; min-width: 0; }
@media (min-width: 768px) {
  :root { --gut: 24px; }
  .two > .col { grid-column: span 6; }
  .hero__text { grid-column: span 7; }
  .hero__card { grid-column: span 5; }
  .lead-sec__text { grid-column: span 5; }
  .lead { grid-column: span 7; }
}

/* шапка */
.hdr { background: var(--paper); border-bottom: 1px solid var(--line); }
/* Связь с основным сайтом на каждой странице — требование Google к сайтам, работающим от имени бренда (Safe Browsing, «social engineering») */
.official { background: var(--navy); color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1.4; padding: 6px 0; }
.official a { color: var(--gold); }
.hdr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__mark { width: 44px; height: 44px; flex: none; }
.logo__text { display: flex; flex-direction: column; }
.logo__word { font: 700 23px/1.1 var(--serif); color: var(--navy); }
.logo__sub { font-size: 13px; color: var(--muted); }
.cities { display: flex; gap: 4px; order: 3; width: 100%; }
.cities a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; text-decoration: none; }
.cities a[aria-current] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.hdr__phone { display: none; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--navy); border-radius: var(--r); font-weight: 700; color: var(--navy); }
.menu > summary::-webkit-details-marker { display: none; }
.menu__list { list-style: none; margin: 0; padding: 8px 0; }
.menu__list a { display: block; padding: 10px 4px; text-decoration: none; font-size: 18px; }
.menu__list a[aria-current] { font-weight: 700; text-decoration: underline; }
.menu[open] > nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(300px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; box-shadow: 0 8px 24px rgba(18, 38, 74, .15); }
@media (min-width: 600px) {
  .cities { order: 0; width: auto; }
  .hdr__phone { display: inline-flex; }
}
@media (min-width: 1024px) {
  .menu > summary { display: none; }
  .menu[open] > nav { position: static; width: auto; border: 0; box-shadow: none; padding: 0; background: none; }
  .menu__list { display: flex; gap: 16px; padding: 0; }
  .menu__list a { font-size: 16px; padding: 4px 0; }
  .menu { order: 5; width: 100%; }
}

/* плашка ст. 28.1: светлый блок, тонкая золотая рамка, высота ≥ 10 % экрана */
.plashka { background: var(--paper); }
.plashka--top { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plashka__in { display: flex; align-items: center; gap: 12px; min-height: 11vh; min-height: 11svh; border: 1px solid var(--gold); border-radius: var(--r); padding: 10px 14px; max-width: calc(1160px - 2 * var(--gut)); }
.plashka--top .plashka__in, .plashka--footer .plashka__in { margin: 0 auto; }
.plashka__mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--paper); font: 700 17px/1 var(--serif); }
.plashka__text { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 700; color: var(--ink); }
.plashka-inline { margin: 2em 0 0; padding: 12px 14px; border: 1px solid var(--gold); border-radius: var(--r); font-size: 15px; font-weight: 700; background: var(--paper); }
@media (min-width: 768px) { .plashka__text { font-size: 16px; } .plashka__in { padding: 12px 20px; } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 12px auto 0; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; }

/* первый экран */
.hero { background: var(--navy); color: var(--paper); padding: 32px 0 40px; }
.hero h1 { color: var(--paper); }
.hero a:not(.btn) { color: var(--paper); }
.hero--short { padding: 28px 0 24px; margin-top: 12px; }
.hero .eyebrow { color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero__card { background: rgba(246, 244, 238, .07); border: 1px solid rgba(214, 170, 78, .6); border-radius: var(--r); padding: 20px; align-self: start; }
.hero__card p { margin-bottom: .5em; }
.hero__card-h { font: 700 20px/1.2 var(--serif); color: var(--gold); }
.hero__card a { font-weight: 700; font-size: 20px; }
.lead-p { font-size: 19px; line-height: 1.5; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); margin-bottom: .5em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 2px solid var(--gold); border-radius: var(--r); background: var(--gold); color: var(--navy); font: 700 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.hero .btn:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn--ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--ghost-light { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* секции */
.sec { padding: 40px 0; }
.sec--alt { background: var(--tint); }
@media (min-width: 768px) { .sec { padding: 64px 0; } }
.col h3 { display: flex; align-items: center; gap: 8px; }
.list { padding-left: 1.2em; }
.list li { margin-bottom: .5em; }
.list--num { padding-left: 1.4em; }
.ticks { list-style: none; padding: 0; }
.ticks li { display: flex; gap: 10px; margin-bottom: .6em; }
.ticks .ico { color: var(--gold); margin-top: .25em; }
.ticks--dark .ico { color: var(--navy); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 18px; height: 18px; border: 2px solid var(--navy); border-radius: 3px; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.muted { color: var(--muted); font-size: 15px; }
.prose h2 { margin-top: 1.6em; }
.prose h1 + .lead-p, .prose .lead-p { margin-bottom: 1.4em; }
.sample { margin: 0 0 1em; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--tint); font-style: italic; }
.sample p { margin: 0; }

/* факты, таблицы, шаги */
.facts { display: grid; gap: 16px; }
.facts > div { border-top: 2px solid var(--navy); padding-top: 10px; }
.facts dt { font: 700 19px/1.3 var(--serif); color: var(--navy); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.facts dd { margin: 0; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; } .facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .prose .facts { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; padding: 12px 14px 4px; font-size: 14px; color: var(--muted); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: var(--paper); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
.compare { min-width: 560px; }
.cases { min-width: 600px; }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps--plain { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--paper); }
.step__n { display: inline-block; font: 700 15px/1 var(--serif); color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 4px; margin-bottom: 10px; }
.step h3 { font-size: 19px; }
.step p { margin: 0; }

/* услуги, блог */
.services, .posts { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .services, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.service { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.service__ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 22px; }
.service h2 { font-size: 22px; }
.post { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.post h2 { font-size: 22px; }
.post__meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq > summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; font-size: 18px; color: var(--navy); list-style: none; position: relative; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 700 24px/1 var(--serif); }
.faq[open] > summary::after { content: "−"; }
.faq > div { padding-bottom: 8px; }

/* офис и карта */
.office { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--paper); }
.office__city { display: flex; align-items: center; gap: 8px; }
.office__phone { font-weight: 700; font-size: 21px; text-decoration: none; }
.office__hours { display: flex; gap: 8px; align-items: center; }
.map { min-height: 280px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; border: 1px dashed var(--navy); border-radius: var(--r); background: var(--tint); text-align: center; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--r); }
.map.is-loaded { padding: 0; border-style: solid; }
.map__note { font-size: 14px; color: var(--muted); max-width: 360px; margin: 0; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; border-radius: var(--r); background: var(--tint); }
.photo figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* форма заявки */
.lead-sec { background: var(--navy); color: var(--paper); padding: 40px 0; }
.lead-sec h2 { color: var(--paper); }
.lead-sec a { color: var(--paper); }
.lead-sec .muted { color: rgba(246, 244, 238, .8); }
.lead { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; }
.lead a { color: var(--navy); }
.lead .muted { color: var(--muted); }
.field { display: grid; gap: 6px; font-weight: 700; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid rgba(18, 38, 74, .5); border-radius: var(--r); padding: 12px; min-height: 48px; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field [aria-invalid="true"] { border: 2px solid var(--ink); }
.radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0 16px 8px 0; min-height: 32px; cursor: pointer; }
.radio input, .consent input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.form-status { margin: 0; font-weight: 700; min-height: 1em; }
.form-fallback { margin: 0; padding: 12px; border: 1px solid var(--gold); border-radius: var(--r); }
@media (min-width: 768px) { .lead-sec { padding: 64px 0; } .lead { padding: 28px; } }

/* квиз */
.quiz__q { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 16px; background: var(--paper); min-width: 0; }
.quiz__q legend { font-weight: 700; font-size: 18px; color: var(--navy); padding: 0 6px; display: flex; gap: 8px; align-items: baseline; }
.quiz__q .radio { display: flex; margin: 0 0 6px; }
.quiz__q .muted { margin: 6px 0 0; }
.quiz__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: 15px; flex: none; }
.quiz__q.is-missing { border: 2px solid var(--ink); }
.quiz__out { margin-top: 24px; padding: 20px; border: 2px solid var(--navy); border-radius: var(--r); }
.quiz__note { border-top: 1px solid var(--line); padding-top: 10px; }

/* подвал */
.ftr { background: var(--navy); color: var(--paper); padding: 40px 0 24px; margin-top: 0; font-size: 15px; }
.ftr a { color: var(--paper); }
.ftr .muted { color: rgba(246, 244, 238, .8); }
.ftr__grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.ftr__brand { font: 700 22px/1.2 var(--serif); color: var(--gold); }
.ftr__h { font-weight: 700; color: var(--gold); margin-bottom: .3em; }
.ftr__nav { list-style: none; padding: 0; }
.ftr__nav li { margin-bottom: .4em; }
.ftr .plashka { background: transparent; margin: 16px 0; }
.ftr .plashka__text { color: var(--paper); }
.ftr .plashka__mark { background: var(--gold); color: var(--navy); }
.ftr__legal { font-size: 14px; color: rgba(246, 244, 238, .8); }
.copy { font: 700 14px/1 var(--sans); padding: 8px 10px; min-height: 32px; border: 1px solid currentColor; border-radius: var(--r); background: transparent; color: inherit; cursor: pointer; }

/* мобильный sticky-бар */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); border-top: 2px solid var(--gold); padding-bottom: env(safe-area-inset-bottom); }
.stickybar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; color: var(--paper); font-weight: 700; text-decoration: none; }
.stickybar__btn--max { background: var(--gold); color: var(--navy); }
body { padding-bottom: 56px; }
@media (min-width: 768px) { .stickybar { display: none; } body { padding-bottom: 0; } }
.toast { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 32px); background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r); font-size: 15px; }

/* печать: чек-лист документов и тексты */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; padding: 0; }
  .hdr, .crumbs, .stickybar, .lead-sec, .ftr__grid, .ftr__legal, .no-print, .map, .skip, .toast { display: none; }
  .ftr, .hero { background: none; color: #000; padding: 0; }
  .hero h1, .ftr .plashka__text { color: #000; }
  .plashka--top { display: none; }
  .sec { padding: 0; }
  a { color: #000; text-decoration: none; }
  .checklist li { break-inside: avoid; }
}
