/* Сатео v3 – „Разбираме Ви“
   Design system taken from the logo: square tiles, black outline, warm grey, one rubric colour per page,
   hard offset "tile behind" shadows, the bent (Огънато) quarter-circle corner as the only curve.
   Type: Montserrat for everything, Bad Script for the human voice (slogan, highlights, quotes, stickers). */
@property --c { syntax: "<color>"; inherits: true; initial-value: #00AAD2; }
@property --c-deep { syntax: "<color>"; inherits: true; initial-value: #00708C; }
@property --c-soft { syntax: "<color>"; inherits: true; initial-value: #E5F6FB; }
@property --on-c { syntax: "<color>"; inherits: true; initial-value: #000000; }

:root {
  --c: #00AAD2; --c-deep: #00708C; --c-soft: #E5F6FB; --on-c: #000000;
  --ink: #111111; --ink-2: #3A3A36; --muted: #6B6B63; --grey: #A0A096; --line: #DADAD3;
  --paper: #FFFFFF; --paper-2: #F4F4F0;
  --f: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --hand: "Bad Script", "Segoe Script", "Snell Roundhand", cursive;
  --b: 2px;            /* outline weight, like the logo's outlined tiles */
  --r-lg: 24px; --r: 16px; --r-sm: 12px;   /* rounded, humanist containers (as in version 1) */
  --gap: 18px;         /* tile gap, ~ the logo's gap-to-tile ratio */
  --wrap: 1200px; --gut: 24px;
  color-scheme: light;
  transition: --c .6s ease, --c-deep .6s ease, --c-soft .6s ease, --on-c .6s ease;
}
html[data-theme="uslugi"]   { --c: #0050FF; --c-deep: #0040CC; --c-soft: #E8EEFF; --on-c: #FFFFFF; }
html[data-theme="ceni"]     { --c: #FAC800; --c-deep: #806500; --c-soft: #FFF6D1; --on-c: #000000; }
html[data-theme="za-nas"]   { --c: #00A000; --c-deep: #007300; --c-soft: #E6F5E6; --on-c: #000000; }
html[data-theme="kontakti"] { --c: #F01E28; --c-deep: #C4121B; --c-soft: #FDE8E9; --on-c: #000000; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
/* Standard Cyrillic letterforms: with lang="bg" Montserrat would switch to the Bulgarian cursive-like forms (т → m, д → g),
   which makes „Сатео“ read as “Cameo”. */
*, *::before, *::after { font-feature-settings: "locl" 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 16.5px; line-height: 1.65; font-weight: 450; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--c-deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.3vw, 44px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0; }
h2 .hand, h3 .hand { color: var(--c-deep); font-size: 1.2em; line-height: .9; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
@media (max-width: 560px) { :root { --gut: 16px; } body { font-size: 16px; } }
:focus-visible { outline: 3px solid var(--c-deep); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- prototype strip ---------- */
.proto { background: var(--ink); color: #D9D9D2; font-size: 12px; font-weight: 600; text-align: center; padding: 6px var(--gut); }
.proto b { color: #fff; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: var(--b) solid var(--ink); }
.top-in { height: 78px; display: flex; align-items: center; gap: 22px; }
.nav { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.nav a { --nc: var(--grey); display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 9px 12px; white-space: nowrap; border: var(--b) solid transparent; transition: background-color .2s, border-color .2s; }
.nav a::before { content: ""; width: 9px; height: 9px; background: var(--nc); flex: none; }
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--nc) 16%, #fff); border-color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: var(--b) solid var(--ink); border-radius: 0; background: var(--c); color: var(--on-c); font: 650 15px/1 var(--f); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .6s, color .6s; white-space: nowrap; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost, .btn.light { background: #fff; color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.cta { min-height: 48px; }   /* takes the colour of the current rubric */
.brand { order: -1; position: relative; align-self: flex-start; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; background: #fff; border: var(--b) solid var(--ink); text-decoration: none; color: var(--ink); box-shadow: 6px 6px 0 var(--c); transition: box-shadow .6s; }
.brand svg { width: 58px; height: 58px; flex: none; overflow: visible; }
.brand b { display: block; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; line-height: 1; }
.brand small { display: block; white-space: nowrap; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.burger { display: none; width: 48px; height: 48px; border: var(--b) solid var(--ink); background: #fff; cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
@media (max-width: 1080px) { .nav { display: none; } .burger { display: inline-flex; margin-left: auto; } .top .btn.cta { display: none; } }
@media (max-width: 560px) {
  .top-in { height: 66px; gap: 12px; }
  .brand { margin-top: 10px; padding: 7px 12px 7px 8px; gap: 9px; box-shadow: 4px 4px 0 var(--c); }
  .brand svg { width: 44px; height: 44px; } .brand b { font-size: 18px; } .brand small { font-size: 10.5px; }
}
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 66px 0 auto 0; z-index: 49; background: #fff; border-bottom: var(--b) solid var(--ink); padding: 12px var(--gut) 20px; display: grid; gap: 4px; }
.drawer a { --nc: var(--grey); padding: 13px 12px; text-decoration: none; color: var(--ink); font-weight: 650; display: flex; align-items: center; gap: 12px; border: var(--b) solid transparent; }
.drawer a::before { content: ""; width: 11px; height: 11px; background: var(--nc); }
.drawer a.btn::before { display: none; }
.drawer a.btn { color: var(--on-c); border-color: var(--ink); justify-content: center; }
.drawer a:hover { border-color: var(--ink); }
.drawer .btn { margin-top: 8px; }
@media (min-width: 561px) { .drawer { top: 78px; } }
@media (min-width: 1081px) { .drawer { display: none !important; } }

/* language switch БГ | EN */
.lang-sw { display: flex; flex: none; border: var(--b) solid var(--ink); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.lang-sw a { display: grid; place-items: center; min-width: 42px; min-height: 44px; padding: 0 9px; font-weight: 750; font-size: 13px; letter-spacing: .04em; color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s; }
.lang-sw a + a { border-left: var(--b) solid var(--ink); }
.lang-sw a:hover { background: var(--c-soft); }
.lang-sw a[aria-current] { background: var(--ink); color: #fff; }
@media (max-width: 1240px) { .top-in { gap: 14px; } .nav a { padding: 9px 9px; } }
@media (max-width: 1080px) { .lang-sw { margin-left: auto; order: 1; } .burger { order: 2; margin-left: 0 !important; } }
@media (max-width: 560px) { .lang-sw a { min-width: 38px; min-height: 42px; padding: 0 7px; } }
.burger { flex: none; }
@media (max-width: 420px) {
  .brand small { display: none; }
  .brand { padding: 6px 12px 6px 7px; }
  .brand svg { width: 40px; height: 40px; }
  .lang-sw a { min-width: 34px; padding: 0 5px; font-size: 12.5px; }
  .burger { width: 44px; height: 44px; }
}

/* ---------- sticker (small framed label) ---------- */
.sticker, .pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; background: #fff; border: var(--b) solid var(--ink); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.2; }
.sticker::before, .pill::before { content: ""; width: 10px; height: 10px; background: var(--c); flex: none; transition: background-color .6s; }

/* ---------- hero (logo-led) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 96px); background: var(--paper); }
.hero::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 38%; background: var(--c-soft); border-left: var(--b) solid var(--ink); transition: background-color .6s; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(50px, 7vw, 98px); line-height: 1.02; letter-spacing: 0; color: var(--ink); }
html:not([data-theme="nachalo"]) .hero h1 { font-size: clamp(44px, 5.4vw, 78px); }
html[data-theme="nachalo"] .hero h1:lang(en) { font-size: clamp(46px, 6vw, 84px); }
.hero h1 em { font-style: normal; color: var(--c-deep); display: block; transition: color .6s; }
.hero .lead { font-size: clamp(16.5px, 1.4vw, 19px); color: var(--ink-2); max-width: 46ch; font-weight: 500; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-art { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; justify-self: end; }
.art-photo { position: absolute; left: 0; top: 0; width: 76%; aspect-ratio: 1 / 1; overflow: hidden; border: var(--b) solid var(--ink); border-radius: var(--r-lg); background: var(--paper-2); }
.art-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.art-photo.ph { border-style: dashed; }
.art-mark { position: absolute; right: 2%; bottom: 2%; width: 54%; aspect-ratio: 1 / 1; background: #fff; border: var(--b) solid var(--ink); box-shadow: 12px 12px 0 var(--c); display: grid; place-items: center; transition: box-shadow .6s; }
.art-mark svg { width: 74%; height: 74%; overflow: visible; cursor: pointer; }
.hero-art.solo .art-mark { left: 8%; top: 8%; right: auto; bottom: auto; width: 78%; }
.say { position: absolute; left: -2%; bottom: 13%; z-index: 2; background: #fff; border: var(--b) solid var(--ink); padding: 10px 16px 12px; transform: rotate(-4deg); min-width: 46%; max-width: 62%; }
.hero-art.solo .say { left: auto; right: -2%; bottom: 4%; }
.say small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.say b { display: block; font-family: var(--hand); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; transition: opacity .35s; }
.say.swap b, .say.swap small { opacity: 0; }
@media (max-width: 900px) {
  .hero::before { width: 100%; top: auto; height: 34%; border-left: 0; border-top: var(--b) solid var(--ink); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; max-width: 420px; }
}
/* legacy WordPress hero (v0.1/v0.2 pages): canvas + glass card */
.hero > canvas { display: none; }
.glass { position: relative; max-width: 720px; padding: clamp(24px, 4vw, 44px); background: #fff; border: var(--b) solid var(--ink); box-shadow: 12px 12px 0 var(--c); display: grid; gap: 16px; justify-items: start; }
.glass h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 1.04; }
.glass p { color: var(--ink-2); font-weight: 500; max-width: 50ch; }
.scroll-cue { display: none; }

/* ---------- sections ---------- */
.page[hidden] { display: none !important; }
.sec { padding-block: clamp(64px, 8vw, 112px); }
.sec.tint { background: var(--paper-2); border-block: var(--b) solid var(--ink); }
.sec.soft { background: var(--c-soft); border-block: var(--b) solid var(--ink); transition: background-color .6s; }
.head { display: grid; gap: 14px; max-width: 780px; margin-bottom: clamp(30px, 4vw, 52px); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; background: var(--c); transition: background-color .6s; }
.lead { font-size: clamp(16.5px, 1.35vw, 18.5px); color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--muted); }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: var(--b) solid var(--ink); padding: 28px; min-width: 0; }
.frame { box-shadow: 10px 10px 0 var(--c); transition: box-shadow .6s; }

/* rubric tiles (home): outlined square that fills with its colour, like the logo's tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { --pc: var(--c); --pon: #000; position: relative; display: flex; flex-direction: column; gap: 12px; aspect-ratio: 1 / 1; padding: 26px; background: #fff; border: var(--b) solid var(--ink); text-decoration: none; color: var(--ink); transition: background-color .25s, color .25s, transform .2s, box-shadow .2s; min-width: 0; }
.tile:hover, .tile:focus-visible { transform: translate(-5px, -5px); box-shadow: 10px 10px 0 var(--pc); }
.tile:hover .go, .tile:focus-visible .go { text-decoration: underline; text-decoration-color: var(--pc); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tile svg.mini { width: 92px; height: 92px; overflow: visible; }
.tile h3 { font-size: 23px; margin-top: auto; }
.tile p { font-size: 15px; line-height: 1.5; opacity: .9; }
.tile .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.tile .go svg { width: 18px; height: 18px; transition: transform .2s; }
.tile:hover .go svg { transform: translateX(4px); }
.tile.call { background: var(--ink); color: #fff; }
.tile.call:hover { transform: none; box-shadow: none; }
.tile.call .hand { font-size: 34px; line-height: 1.1; color: #fff; }
.tile.call a { color: #fff; font-weight: 750; font-size: 22px; text-decoration: none; }
.tile.call .num { display: grid; gap: 4px; margin-top: auto; }
@media (max-width: 600px) { .tile { aspect-ratio: auto; min-height: 220px; } }

/* human section */
.human { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .human { grid-template-columns: minmax(0, 1fr); } }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 30px; }
@media (max-width: 640px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.pillar { border: var(--b) solid var(--ink); background: #fff; padding: 20px; display: grid; gap: 8px; align-content: start; }
.pillar b { font-family: var(--hand); font-weight: 400; font-size: 28px; line-height: 1; color: var(--c-deep); }
.pillar span { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* photos & placeholders */
.photo { position: relative; margin: 0; border: var(--b) solid var(--ink); background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; filter: grayscale(1) contrast(1.05); }
.photo.bent { overflow: hidden; }   /* the photos are plain (rounded) squares like every other container */
.photo figcaption { position: absolute; left: 12px; bottom: 12px; background: #fff; border: var(--b) solid var(--ink); padding: 5px 11px; font-size: 12.5px; font-weight: 700; }
.ph { display: grid; place-items: center; text-align: center; padding: 22px; background: repeating-linear-gradient(45deg, #EEEEE9 0 14px, #F7F7F3 14px 28px); color: var(--muted); }
.ph span { display: grid; gap: 6px; max-width: 26ch; font-size: 13px; font-weight: 600; line-height: 1.4; }
.ph span::before { content: "Място за снимка"; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.photo.ph { aspect-ratio: 4 / 3; border-style: dashed; }
.ph span:lang(en)::before { content: "Photo placeholder"; }

/* about / stats / checks */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 30px; }
.stat { padding: 18px; border: var(--b) solid var(--ink); background: #fff; }
.stat b { display: block; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
.stat b::after { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--c); margin-left: 6px; vertical-align: 6px; }
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 550; line-height: 1.35; }
@media (max-width: 460px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: var(--b) solid var(--ink); background: #fff; }
.checks li svg { width: 24px; height: 24px; flex: none; color: var(--c-deep); margin-top: 1px; }
.checks b { display: block; font-weight: 700; }
.checks span { display: block; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* steps & timeline */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; padding: 24px; background: #fff; border: var(--b) solid var(--ink); }
.step .n { width: 44px; height: 44px; display: grid; place-items: center; font-weight: 800; background: var(--c); color: var(--on-c); border: var(--b) solid var(--ink); margin-bottom: 16px; transition: background-color .6s, color .6s; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 4px; width: 0; border-left: var(--b) dashed var(--grey); }
.timeline li:last-child::before { display: none; }
.timeline .n { width: 56px; height: 56px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: #fff; color: var(--ink); border: var(--b) solid var(--ink); box-shadow: 4px 4px 0 var(--c); }
.timeline h3 { margin-top: 6px; }
.timeline p { margin-top: 6px; color: var(--ink-2); font-size: 15px; max-width: 70ch; }

/* languages – every language looks the same */
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span, .langs span.top { padding: 9px 14px; background: #fff; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; gap: 10px; width: max-content; animation: slide 70s linear infinite; }
.marquee .track span, .marquee .track span:nth-child(3n) { padding: 12px 18px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 650; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; flex-wrap: wrap; width: auto; } }

/* testimonials – handwritten, like notes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 980px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.quote { position: relative; margin: 0; background: #fff; border: var(--b) solid var(--ink); box-shadow: 10px 10px 0 var(--c); transition: box-shadow .6s; padding: 56px 26px 22px; display: flex; flex-direction: column; gap: 18px; }
.quote p { font-family: var(--hand); font-size: 21px; line-height: 1.4; color: var(--ink); }
.quote::before { content: "“"; position: absolute; top: 8px; left: 22px; font-family: var(--f); font-weight: 800; font-size: 64px; line-height: 1; color: var(--c); }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.who i { width: 40px; height: 40px; display: grid; place-items: center; font-style: normal; font-weight: 750; background: var(--c); color: var(--on-c); border: var(--b) solid var(--ink); }
.who b { display: block; font-size: 14.5px; } .who span { display: block; font-size: 13px; color: var(--muted); }
.note-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); border: 1.5px dashed var(--grey); padding: 4px 10px; }

/* CTA band */
.band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(28px, 5vw, 56px); background: var(--c); color: var(--on-c); border: var(--b) solid var(--ink); box-shadow: 12px 12px 0 var(--ink); transition: background-color .6s, color .6s; }
.band h2 { color: inherit; }
.band h2 .hand { color: inherit; }
.band p { margin-top: 10px; max-width: 56ch; font-weight: 500; }
.band .acts { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.band .btn { background: #fff; color: var(--ink); }
.band .btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.band svg.deco { position: absolute; right: -50px; bottom: -70px; width: 260px; height: 260px; opacity: .14; pointer-events: none; }
@media (max-width: 760px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* services */
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 760px) { .svc { grid-template-columns: minmax(0, 1fr); } }
.svc .card { display: grid; gap: 12px; align-content: start; }
.svc .ic { width: 54px; height: 54px; display: grid; place-items: center; background: var(--c-soft); color: var(--ink); border: var(--b) solid var(--ink); }
.svc .ic svg { width: 26px; height: 26px; }
.svc ul { margin: 4px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.svc li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.svc li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; background: var(--c); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 14px; color: var(--ink-2); max-width: 66ch; }
.prose h2, .prose h3 { color: var(--ink); }
.prose h3 { margin-top: 10px; }
.callout { padding: 28px; background: var(--c-soft); border: var(--b) solid var(--ink); box-shadow: 10px 10px 0 var(--c); display: grid; gap: 12px; transition: background-color .6s, box-shadow .6s; }
.callout h3 { color: var(--ink); }
.callout .checks li { border-width: 1.5px; }
.acc { border: var(--b) solid var(--ink); background: #fff; }
.acc details { border-top: 1.5px solid var(--ink); }
.acc details:first-child { border-top: 0; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 14px; font-weight: 700; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; background: var(--c); color: var(--on-c); border: var(--b) solid var(--ink); flex: none; transition: transform .25s, background-color .6s; }
.acc details[open] summary .plus { transform: rotate(45deg); }
.acc .body { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; max-width: 80ch; }
.acc .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.warn { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: var(--b) solid var(--ink); background: #FFF6D1; color: var(--ink); font-size: 14.5px; font-weight: 550; }

/* prices */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); border: var(--b) solid var(--ink); background: #fff; box-shadow: 12px 12px 0 var(--ink); }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc form { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.calc .out { padding: clamp(22px, 3vw, 36px); background: var(--c); color: var(--on-c); border-left: var(--b) solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .calc .out { border-left: 0; border-top: var(--b) solid var(--ink); } }
.calc .out .big { font-size: clamp(46px, 5.6vw, 66px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc .out .btn { margin-top: auto; background: var(--ink); color: #fff; }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-weight: 700; font-size: 14px; }
.field .hint, .hint { font-size: 13px; color: var(--muted); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea { width: 100%; font: 500 15.5px/1.4 var(--f); color: var(--ink); background: #fff; border: var(--b) solid var(--ink); border-radius: 0; padding: 13px 14px; transition: box-shadow .2s; }
select:focus, input:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--c); }
textarea { min-height: 110px; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: var(--b) solid var(--ink); font-weight: 700; font-size: 14.5px; background: #fff; transition: background-color .2s; }
.seg span small { font-weight: 500; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.seg input:checked + span { background: var(--c-soft); box-shadow: inset 0 0 0 2px var(--ink), 4px 4px 0 var(--c); }
.seg input:focus-visible + span { outline: 3px solid var(--c-deep); outline-offset: 2px; }
@media (max-width: 520px) { .seg { grid-template-columns: minmax(0, 1fr); } .seg.seg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 48px; height: 48px; border: var(--b) solid var(--ink); background: #fff; font: 700 20px/1 var(--f); cursor: pointer; color: var(--ink); }
.stepper input { text-align: center; max-width: 110px; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.tbl-wrap { overflow-x: auto; border: var(--b) solid var(--ink); background: #fff; }
table.prices { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
table.prices th, table.prices td { padding: 16px 20px; text-align: left; border-bottom: 1.5px solid var(--line); }
table.prices thead th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 750; background: var(--paper-2); border-bottom: var(--b) solid var(--ink); }
table.prices tbody tr:last-child td, table.prices tbody tr:last-child th { border-bottom: 0; }
table.prices tbody th { font-weight: 700; }
table.prices td { font-weight: 700; font-size: 17px; }
table.prices td small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
table.prices tr.hl { background: var(--c-soft); }
/* phones: each language group becomes a small card with its three prices */
@media (max-width: 620px) {
  table.prices { min-width: 0; }
  table.prices thead { display: none; }
  table.prices tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1.5px solid var(--line); }
  table.prices tbody tr:last-child { border-bottom: 0; }
  table.prices tbody th { grid-column: 1 / -1; padding: 14px 16px 4px; border: 0; font-size: 14.5px; }
  table.prices td { padding: 6px 16px 14px; border: 0; font-size: 16px; }
  table.prices td::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  table.prices td small { display: block; }
}
.groups .card h3 { display: flex; align-items: center; gap: 10px; }
.groups .card h3 i { font-style: normal; width: 36px; height: 36px; display: grid; place-items: center; background: var(--c); color: var(--on-c); border: var(--b) solid var(--ink); font-weight: 800; flex: none; }
.groups .card p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }

/* order form */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .order { grid-template-columns: minmax(0, 1fr); } }
.order form { display: grid; gap: 22px; }
fieldset { margin: 0; border: var(--b) solid var(--ink); padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; background: #fff; min-width: 0; }
legend { padding: 0 10px; margin-left: -10px; font-weight: 750; font-size: 18px; display: flex; align-items: center; gap: 10px; background: #fff; }
legend i { font-style: normal; width: 32px; height: 32px; display: grid; place-items: center; background: var(--c); color: var(--on-c); border: var(--b) solid var(--ink); font-size: 14px; font-weight: 800; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .two { grid-template-columns: minmax(0, 1fr); } }
.drop { border: var(--b) dashed var(--ink); padding: 30px 20px; text-align: center; background: var(--c-soft); cursor: pointer; transition: background-color .2s; display: grid; gap: 8px; justify-items: center; }
.drop.over { background: color-mix(in srgb, var(--c) 25%, #fff); }
.drop svg { width: 40px; height: 40px; color: var(--ink); }
.drop b { font-size: 16px; } .drop span { font-size: 13.5px; color: var(--muted); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--ink); font-size: 14px; }
.files li .nm { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li .sz { color: var(--muted); margin-left: auto; white-space: nowrap; }
.files li button { border: 1.5px solid var(--ink); background: #fff; width: 30px; height: 30px; cursor: pointer; font-size: 16px; color: var(--ink); flex: none; }
.err { color: #B3111A; font-size: 13px; font-weight: 600; }
.invalid { box-shadow: 4px 4px 0 #F01E28 !important; }
.aside { position: sticky; top: 104px; display: grid; gap: 18px; }
.summary { padding: 24px; background: var(--c-soft); border: var(--b) solid var(--ink); box-shadow: 10px 10px 0 var(--c); display: grid; gap: 14px; transition: background-color .6s; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; }
.summary dt { color: var(--ink-2); } .summary dd { margin: 0; font-weight: 700; text-align: right; }
.done { text-align: center; display: grid; gap: 14px; justify-items: center; padding: clamp(28px, 5vw, 56px); background: #fff; border: var(--b) solid var(--ink); box-shadow: 12px 12px 0 var(--c); }
.done svg.mini { width: 104px; height: 104px; overflow: visible; }
.done h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(36px, 4.4vw, 54px); }

/* contacts */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 760px) { .offices { grid-template-columns: minmax(0, 1fr); } }
.office { display: grid; gap: 16px; align-content: start; }
.office .pin, .pin { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.office h3 { font-size: 22px; }
.office ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.office li { display: flex; gap: 12px; align-items: center; }
.office li svg { width: 20px; height: 20px; color: var(--c-deep); flex: none; }
.office li a { color: var(--ink); font-weight: 650; text-decoration: none; }
.office li a:hover { text-decoration: underline; }
.mails { margin-top: var(--gap); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.mails a { font-weight: 700; color: var(--ink); text-decoration: none; }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .links { grid-template-columns: minmax(0, 1fr); } }
.links a { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: var(--b) solid var(--ink); background: #fff; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 14.5px; transition: box-shadow .2s, transform .2s; }
.links a:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--c); }
.links a small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.links a svg { width: 18px; height: 18px; margin-left: auto; color: var(--ink); flex: none; }

/* footer – the black tile */
footer { background: var(--ink); color: #D9D9D2; padding-block: 64px 32px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot-say { font-family: var(--hand); font-size: clamp(40px, 6vw, 76px); line-height: 1; color: #fff; margin-bottom: 44px; }
.foot-say em { font-style: normal; color: var(--c); transition: color .6s; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot { grid-template-columns: minmax(0, 1fr); } }
.foot h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); font-weight: 700; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot .fb { display: flex; gap: 14px; align-items: center; }
.foot .fb svg { width: 66px; height: 66px; background: #fff; padding: 6px; overflow: visible; }
.foot .fb b { color: #fff; font-size: 22px; font-weight: 750; display: block; }
.foot p { font-size: 14px; margin-top: 16px; color: #B8B8B0; max-width: 36ch; }
.legal { margin-top: 48px; padding-top: 22px; border-top: 1.5px solid #34342F; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--grey); }

/* ---------- rounded, humanist containers ---------- */
.card, .tile, .quote, .band, .callout, .acc, .calc, .tbl-wrap, fieldset, .summary, .done, .glass, .art-mark, .step { border-radius: var(--r-lg); }
.acc, .calc, .tbl-wrap, .photo { overflow: hidden; }
.photo, .ph, .photo.ph { border-radius: var(--r-lg); }
.checks li, .stat, .pillar, .links a, .warn, .drop, .brand, .say, .timeline .n, .foot .fb svg { border-radius: var(--r); }
.btn, .burger, .stepper button, .seg span, .files li, .drawer a, .who i, .step .n, .svc .ic, .sticker, .pill, .photo figcaption,
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea { border-radius: var(--r-sm); }
.nav a, legend i, .groups .card h3 i, .acc summary .plus, .note-tag, .files li button { border-radius: 9px; }
.langs span, .marquee .track span { border-radius: 999px; }
.seg input:checked + span { box-shadow: inset 0 0 0 2px var(--ink), 4px 4px 0 var(--c); }
@media (max-width: 560px) { .brand { border-radius: 14px; } }

/* mobile sticky CTA */
.mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: none; }
.mbar .btn { width: 100%; min-height: 56px; box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 760px) { .mbar { display: block; } html[data-theme="poruchka"] .mbar { display: none; } body { padding-bottom: 80px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } html { scroll-behavior: auto; } }
