:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --heading: #0b1f3a;
  --text: #22324a;
  --muted: #4f5f74;
  --line: #d9e1ea;
  --accent: #0171d0;
  --accent-text: #0a5fb8;
  --on-accent: #ffffff;
  --success: #10b34c;
  --band: #0b1f3a;
  --band-text: #c9d6e6;
  --glass: rgba(243, 246, 250, 0.72);
  --glass-solid: #f3f6fa;
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 1px 0 rgba(11, 31, 58, 0.06), 0 8px 24px rgba(11, 31, 58, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d18;
    --surface: #0f1828;
    --heading: #f2f6fb;
    --text: #d3dce8;
    --muted: #9eabbd;
    --line: #1d2a3d;
    --accent: #1f8fe6;
    --accent-text: #5cb0f2;
    --on-accent: #03111f;
    --band: #0c1a30;
    --band-text: #b7c5d8;
    --glass: rgba(7, 13, 24, 0.68);
    --glass-solid: #0b1422;
    --glass-edge: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #070d18;
  --surface: #0f1828;
  --heading: #f2f6fb;
  --text: #d3dce8;
  --muted: #9eabbd;
  --line: #1d2a3d;
  --accent: #1f8fe6;
  --accent-text: #5cb0f2;
  --on-accent: #03111f;
  --band: #0c1a30;
  --band-text: #b7c5d8;
  --glass: rgba(7, 13, 24, 0.68);
  --glass-solid: #0b1422;
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-text); text-underline-offset: 3px; }

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 7.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }

p { margin: 0 0 16px; max-width: 62ch; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Controls layer: Liquid Glass */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a, .lang {
  color: var(--heading); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav a:hover, .lang:hover { color: var(--accent-text); }
.lang {
  border: 1px solid var(--line); border-radius: 9px; padding: 4px 10px; font-size: 14px;
}
@media (max-width: 760px) { .nav a:not(.nav-contact) { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1), filter 0.2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn.quiet { background: transparent; color: var(--heading); border: 1px solid var(--line); }

/* Sections */
main section { padding: 72px 0; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); }

.split { display: grid; gap: 28px; align-items: end; }
.split .scene { order: -1; }
.split .copy { padding-bottom: 0; }
.scene svg { width: 100%; height: auto; overflow: visible; }

@media (min-width: 860px) {
  main section { padding: 104px 0; }
  .split { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .split .scene { order: 0; }
  .split .copy { padding-bottom: 48px; }
  .split.flip .scene { order: -1; }
  .split.flip { grid-template-columns: 1fr 1.05fr; }
}

.hero { padding-top: 48px; }
.hero h1 { max-width: 15ch; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.hero .actions .phone { color: var(--muted); font-size: 16px; }
.hero .actions .phone a { color: var(--heading); font-weight: 600; text-decoration: none; }

.spot { display: inline-block; height: 0.8em; width: auto; vertical-align: -0.06em; margin-left: 0.25em; overflow: visible; }

/* Services list */
.services-head { display: grid; gap: 8px; margin-bottom: 36px; }
@media (min-width: 860px) { .services-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; } }
.services { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.services li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.services p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .services li { grid-template-columns: 220px 1fr; gap: 20px; align-items: baseline; }
}

/* Dark band */
.band { background: var(--band); color: var(--band-text); }
.band h2 { color: #f2f6fb; }
.band .lede, .band p { color: var(--band-text); }
.band a { color: #7cc0f5; }

/* Deliverables */
.hand-over, .contact-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .hand-over, .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.hand-over ul { margin: 0; padding: 0; list-style: none; }
.hand-over li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.hand-over li::before {
  content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg);
}
.note {
  margin-top: 24px; padding: 18px 20px; background: var(--surface); border-radius: 16px;
  border: 1px solid var(--line); color: var(--text); max-width: none;
}

/* Process */
.process { display: grid; gap: 24px; }
@media (min-width: 860px) { .process { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.steps { margin: 0; padding: 0 0 0 1.4em; }
.steps li { padding: 0 0 22px 6px; }
.steps li::marker { color: var(--accent-text); font-weight: 700; }
.steps strong { color: var(--heading); display: block; font-size: 18px; }
.steps span { color: var(--muted); }

/* About and contact */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list small { color: var(--muted); font-size: 14px; }
.contact-list a { font-size: 20px; font-weight: 600; color: var(--heading); text-decoration: none; }
.contact-list a:hover { color: var(--accent-text); }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a, .site-footer button {
  color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none;
}
.site-footer a:hover, .site-footer button:hover { color: var(--heading); text-decoration: underline; }
.site-footer p { margin: 0; max-width: none; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 6vw, 48px); }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { max-width: none; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .todo { background: #fff3c4; color: #5c4400; padding: 1px 6px; border-radius: 5px; font-size: 0.92em; }
@media (max-width: 560px) {
  .legal table, .legal tbody, .legal tr, .legal td, .legal th { display: block; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .legal td { border: 0; padding: 2px 0; }
}

/* Cookie banner: controls layer */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  max-width: 560px; margin: 0 auto; padding: 20px; border-radius: 22px;
  color: var(--text); border: 1px solid var(--glass-edge);
  animation: consent-in 0.35s cubic-bezier(0.25, 1.3, 0.5, 1);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.consent p { font-size: 15px; margin: 0 0 14px; }
.consent .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent .row .wide { grid-column: 1 / -1; }
.consent .btn { min-height: 44px; font-size: 15px; }
.consent fieldset[hidden] { display: none; }
.consent fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent label small { display: block; color: var(--muted); font-size: 13px; }
.consent input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
@keyframes consent-in { from { transform: translateY(16px); opacity: 0; } }

/* Illustrations */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) main section:not(.band) svg [fill="#fff"] { fill: #0f1828; }
  :root:not([data-theme="light"]) main section:not(.band) svg text[fill="#0b1f3a"] { fill: #f2f6fb; }
  :root:not([data-theme="light"]) main section:not(.band) svg text[fill="#4f5f74"] { fill: #9eabbd; }
  :root:not([data-theme="light"]) main section:not(.band) svg [fill="#e3f0fc"] { fill: #12304f; }
  :root:not([data-theme="light"]) main section:not(.band) svg text[fill="#0a5fb8"] { fill: #8cc8f7; }
  :root:not([data-theme="light"]) main svg [stroke="#c9d3df"] { stroke: #2a3a50; }
  :root:not([data-theme="light"]) main svg [fill="#c9d3df"] { fill: #2a3a50; }
  :root:not([data-theme="light"]) main svg [fill="#9aa9bb"] { fill: #3b4c63; }
}
:root[data-theme="dark"] main section:not(.band) svg [fill="#fff"] { fill: #0f1828; }
:root[data-theme="dark"] main section:not(.band) svg text[fill="#0b1f3a"] { fill: #f2f6fb; }
:root[data-theme="dark"] main section:not(.band) svg text[fill="#4f5f74"] { fill: #9eabbd; }
:root[data-theme="dark"] main section:not(.band) svg [fill="#e3f0fc"] { fill: #12304f; }
:root[data-theme="dark"] main section:not(.band) svg text[fill="#0a5fb8"] { fill: #8cc8f7; }
:root[data-theme="dark"] main svg [stroke="#c9d3df"] { stroke: #2a3a50; }
:root[data-theme="dark"] main svg [fill="#c9d3df"] { fill: #2a3a50; }
:root[data-theme="dark"] main svg [fill="#9aa9bb"] { fill: #3b4c63; }

svg text { font-family: var(--font); }

.a-pop { animation: pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; transform-box: fill-box; transform-origin: center; }
.a-float { animation: float 6s ease-in-out infinite; }
.a-float-2 { animation: float 7.5s ease-in-out -2s infinite; }
.a-bob { animation: bob 4s ease-in-out infinite; }
.a-nod { animation: nod 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.a-wink { animation: wink 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.a-tap { animation: tap 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 20% 100%; }
.a-wave { animation: wave 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 10% 10%; }
.a-dash { animation: dash 1.4s linear infinite; }
.a-steam { animation: steam 3s ease-in-out infinite; }
.a-steam-2 { animation: steam 3s ease-in-out -1.5s infinite; }
.a-pulse { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.a-draw { stroke-dasharray: 60; animation: draw 4s ease-in-out infinite; }
.a-blink { animation: blink 3s ease-in-out infinite; }

@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes nod { 50% { transform: rotate(-4deg); } }
@keyframes wink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes tap { 0%, 60%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } }
@keyframes wave { 50% { transform: rotate(-7deg); } }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 0.8; } 100% { transform: translateY(-9px); opacity: 0; } }
@keyframes pulse { 50% { transform: scale(1.05); } }
@keyframes draw { 0% { stroke-dashoffset: 60; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -60; } }
@keyframes blink { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.a-late { animation-delay: 0.25s; }
