/* Layout idea: the page reads like a well-made official document — ruled fields, numbered sections,
   one "рапорт" card in the hero that answers the visitor's situation. Everything else stays quiet. */
/* Layout idea: a calm legal "document" page in warm beige, ruled fields and numbered sections;
   one interactive "situation" card in the hero; plum-burgundy as the single accent, bronze for small details. */
:root {
  --paper: #f6f1e8;
  --card: #fcfaf5;
  --ink: #241a1f;
  --muted: #6e6164;
  --rule: #e0d5c3;
  --accent: #511a3c;
  --accent-ink: #fdf8f0;
  --bronze: #8a6a3d;
  --font-display: "Geologica", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1518; --card: #241c20; --ink: #f0e8dd; --muted: #b4a79b;
    --rule: #3b2f33; --accent: #d7a3c0; --accent-ink: #1b1518; --bronze: #c9a571; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b1518; --card: #241c20; --ink: #f0e8dd; --muted: #b4a79b;
  --rule: #3b2f33; --accent: #d7a3c0; --accent-ink: #1b1518; --bronze: #c9a571; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; color: var(--muted); }

/* header */
header { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.etym { margin: 22px 0 0; font-style: italic; font-size: 14px; color: var(--muted); max-width: 32em; }
.etym b { font-style: normal; font-weight: 600; color: var(--ink); }
nav { display: flex; gap: 22px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 6px;
  font: 600 15px var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid var(--accent); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }
@media (max-width: 760px) { nav .link { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; align-items: start; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; } }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 20px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* рапорт card */
.raport { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 22px 22px 26px; position: relative; }
.raport-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.chip { font: 500 14px var(--font-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--rule); background: transparent;
  color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.field { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.field:last-of-type { border-bottom: 0; }
.field .mono { padding-top: 3px; }
.field div { font-size: 16px; }
@media (max-width: 420px) { .field { grid-template-columns: 1fr; gap: 2px; } }
.stamp { margin-top: 18px; display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 2px solid var(--accent);
  border-radius: 6px; color: var(--accent); transform: rotate(-2deg); }
.stamp b { font-family: var(--font-display); font-size: 18px; }
.stamp span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin-bottom: 32px; }
.sec-head .num { font-family: var(--font-mono); color: var(--bronze); font-size: 14px; padding-top: 8px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.sec-head p { color: var(--muted); margin: 10px 0 0; max-width: 40em; }
@media (max-width: 600px) { .sec-head { grid-template-columns: 1fr; gap: 4px; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.grid-3 > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--rule); }
.grid-3 h3 { font-size: 19px; margin-bottom: 8px; }
.grid-3 p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prices th { font: 500 13px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 0; }
.prices td:first-child { font-weight: 600; }
.prices td .sub { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: "0" counter(s); font-family: var(--font-mono); color: var(--bronze); font-size: 14px; display: block; margin-bottom: 6px; }
.steps b { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--ink); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.principles div { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; }
.principles h3 { font-size: 18px; margin-bottom: 6px; }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); max-width: 46em; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.reach { display: grid; gap: 12px; align-content: start; }
.reach svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.reach-card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; }
.reach-label { display: block; color: var(--bronze); text-transform: uppercase; letter-spacing: .08em; font: 400 11.5px var(--font-mono); }
.reach-num { display: inline-block; margin: 8px 0 18px; font: 700 clamp(1.6rem, 4.2vw, 2rem)/1.1 var(--font-display); color: var(--ink);
  text-decoration: none; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reach-ways { display: flex; flex-wrap: wrap; gap: 10px; }
/* кнопки зв'язку: одразу виглядають натисканими (рамка й колір акценту), при наведенні чи дотику заповнюються кольором */
.way, .reach-mail { -webkit-tap-highlight-color: transparent; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.way { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1.5px solid var(--accent); border-radius: 999px;
  color: var(--accent); text-decoration: none; font: 600 15px var(--font-body); background: var(--card); cursor: pointer; }
.way em { font-style: normal; font: 400 13px var(--font-mono); opacity: .8; }
.way:hover, .way:focus-visible, .way:active { background: var(--accent); color: var(--accent-ink); }
.way:active, .reach-mail:active { transform: scale(.97); }
.reach-mail { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--card); color: var(--ink); text-decoration: none; }
.reach-mail svg { color: var(--accent); }
.reach-mail .mono { margin-right: auto; }
.reach-mail span:last-child { color: var(--accent); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.reach-mail:hover, .reach-mail:focus-visible, .reach-mail:active { border-color: var(--accent); }
form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
input, select, textarea { font: 400 16px var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule);
  border-radius: 6px; padding: 11px 12px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.phone { display: flex; align-items: stretch; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.phone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.phone-prefix { display: flex; align-items: center; padding-left: 12px; font: 400 16px var(--font-body); color: var(--ink); }
.phone input { border: 0; background: transparent; padding-left: 6px; letter-spacing: .02em; }
.phone input:focus-visible { outline: none; }
.phone.bad { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.phone.bad + .hint { color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.check input { width: auto; margin-top: 3px; }
.result { display: none; border: 1px solid var(--accent); border-radius: 8px; padding: 16px; background: var(--paper); }
.result.show { display: block; }
#lead.sent > :not(.result) { display: none; }
#f-error a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 8px; }

/* плаваюча кнопка дзвінка: на телефоні кругла з іконкою, на комп'ютері — з номером */
.call-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 22px 0 18px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 600 16px var(--font-body);
  letter-spacing: .01em; box-shadow: 0 8px 24px rgba(36, 26, 31, .28); -webkit-tap-highlight-color: transparent; transition: transform .12s, filter .15s; }
.call-fab svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.call-fab:hover { filter: brightness(1.12); }
.call-fab:active { transform: scale(.94); }
@media (max-width: 860px) { .call-fab { width: 58px; padding: 0; } .call-fab-num { display: none; } }
body { padding-bottom: 84px; }

.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.area { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 22px 22px 18px; }
.area h3 { font-size: 20px; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.area h3 span { font-family: var(--font-mono); font-size: 13px; color: var(--bronze); font-weight: 400; }
.area ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.area li { padding-left: 16px; position: relative; color: var(--muted); font-size: 16px; }
.area li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1.5px; background: var(--bronze); }
@media (max-width: 640px) { .areas { grid-template-columns: 1fr; } }
.prices tr.group th { font: 600 13px var(--font-mono); color: var(--bronze); text-transform: uppercase; letter-spacing: .06em; padding-top: 26px; text-align: left; }


/* reviews: real screenshots */
.shots { column-count: 3; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; }
.shot-open { display: block; width: 100%; padding: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--card); cursor: zoom-in; }
.shot-open img { display: block; width: 100%; height: auto; }
.shot figcaption { font-family: var(--font-mono); font-size: 12.5px; color: var(--bronze); margin-top: 7px; letter-spacing: .03em; }
@media (max-width: 860px) { .shots { column-count: 2; } }
@media (max-width: 560px) {
  .shots { column-count: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .shot { flex: 0 0 82%; scroll-snap-align: center; margin: 0; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 12, 16, .82); }
.lightbox img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.lightbox button { position: fixed; top: 14px; right: 14px; }
/* cookie notice */
.consent { position: fixed; left: 16px; right: 16px; bottom: 88px; z-index: 30; max-width: 560px; margin-left: auto;
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(36, 26, 31, .14);
  display: none; gap: 12px; }
.consent.show { display: grid; }
.consent p { margin: 0; font-size: 14.5px; color: var(--ink); }
.consent .row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .consent { bottom: 86px; left: 10px; right: 10px; } }

.hero-brand { display: flex; align-items: center; gap: 18px; margin: 4px 0 0; font: inherit; }
.hero-mark { width: 84px; height: 84px; flex: none; }
.hero-words { display: grid; line-height: 1; }
.hero-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.2rem, 8vw, 5.2rem); letter-spacing: -.03em; color: var(--accent); }
.hero-sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.hero .etym { margin: 14px 0 0; }
.tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25; margin: 26px 0 0; text-wrap: balance; color: var(--ink); }
.hero p.lead { margin-top: 12px; }
.pack-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) { .hero-mark { width: 64px; height: 64px; } .hero-brand { gap: 14px; } }

/* сторінки окремих послуг */
.svc-hero { padding-top: 40px; padding-bottom: 56px; }
.svc-hero > * { max-width: 760px; }
.crumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; margin: 0 0 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.svc-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.015em; margin: 12px 0 0; color: var(--ink); }
.svc-hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 18px 0 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
.ticks li { padding: 14px 0 14px 30px; border-top: 1px solid var(--rule); position: relative; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 21px; width: 11px; height: 6px; border-left: 2px solid var(--bronze); border-bottom: 2px solid var(--bronze); transform: rotate(-45deg); }
@media (max-width: 700px) { .ticks { grid-template-columns: 1fr; } }
.docs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.docs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.docs li { padding-left: 18px; position: relative; font-size: 17px; }
.docs li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1.5px; background: var(--bronze); }
.docs .aside { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } }
.principles.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .principles.two { grid-template-columns: 1fr; } }
.area li a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; max-width: 980px; }
.nums div { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 18px 16px; }
.nums b { display: block; font: 700 clamp(1.35rem, 3vw, 1.7rem)/1.1 var(--font-display); color: var(--accent); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nums span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (max-width: 700px) { .nums { grid-template-columns: 1fr; } }
.prose { max-width: 44em; }
.prose p { margin: 0 0 14px; font-size: 17.5px; }
.callout { margin: 22px 0 0; max-width: 44em; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; font-size: 17.5px; }
.callout b { font-family: var(--font-display); }
.bigsum { font: 700 clamp(2.2rem, 7vw, 3.6rem)/1.05 var(--font-display); color: var(--accent); letter-spacing: -.02em; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.bigsum small { display: block; font: 400 15px var(--font-mono); color: var(--bronze); letter-spacing: .04em; margin-bottom: 8px; text-transform: uppercase; }
