/* ==========================================================================
   BARVA-STAV s.r.o.
   Design tokens, layout and components.

   Radius rule (applied everywhere):
     --r1  10px  buttons, inputs, chips, small markers
     --r2  18px  cards, media, panels
   Accent rule: one blue (#1449e6) across the whole page, in both themes.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Fonts */

/* Space Grotesk Variable - display */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Geist Variable - body / UI */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* -------------------------------------------------------------- 2. Tokens */

:root {
  color-scheme: light dark;

  /* radius */
  --r1: 10px;
  --r2: 18px;

  /* accent - identical in both themes */
  --accent: #1449e6;
  --accent-hover: #0f3bc4;
  --accent-on: #ffffff;

  /* ink: the permanent dark brand surface (hero, CTA band, footer) */
  --ink: #080d18;
  --ink-2: #0e1729;
  --ink-text: #f3f6fc;
  --ink-text-2: #9aa8c0;
  --ink-border: rgba(255, 255, 255, 0.11);
  --ink-accent-text: #7aa2ff;

  /* light theme surfaces */
  --bg: #ffffff;
  --bg-alt: #f1f4fa;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --text: #0b1220;
  --text-2: #4b5768;
  --border: #dee4ee;
  --border-strong: #c6d0e0;
  --accent-text: #1449e6;
  --accent-soft: #e8eefe;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.05), 0 12px 32px -12px rgba(11, 18, 32, 0.16);
  --shadow-lift: 0 2px 4px rgba(11, 18, 32, 0.06), 0 28px 56px -20px rgba(20, 73, 230, 0.26);

  /* rhythm */
  --pad-x: clamp(20px, 5vw, 48px);
  --sec-y: clamp(72px, 9vw, 128px);
  --wrap: 1240px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale */
  --z-nav: 100;
  --z-menu: 110;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a0f1a;
    --bg-alt: #0e1625;
    --surface: #111a2b;
    --surface-2: #0e1625;
    --text: #e9eef7;
    --text-2: #9dabc1;
    --border: #1f2b3f;
    --border-strong: #2b3a52;
    --accent-text: #7aa2ff;
    --accent-soft: #132244;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 28px 56px -20px rgba(20, 73, 230, 0.45);
  }
}

:root[data-theme='dark'] {
  --bg: #0a0f1a;
  --bg-alt: #0e1625;
  --surface: #111a2b;
  --surface-2: #0e1625;
  --text: #e9eef7;
  --text-2: #9dabc1;
  --border: #1f2b3f;
  --border-strong: #2b3a52;
  --accent-text: #7aa2ff;
  --accent-soft: #132244;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 28px 56px -20px rgba(20, 73, 230, 0.45);
}

/* --------------------------------------------------------------- 3. Reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, figure { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Geist', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.ink :focus-visible { outline-color: var(--ink-accent-text); }

::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r1) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

.u-hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- 4. Helpers */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--sec-y); }
.section--alt { background: var(--bg-alt); }

.ink {
  background: var(--ink);
  color: var(--ink-text);
  position: relative;
  isolation: isolate;
}

/* soft brand wash on the dark surfaces, no neon */
.ink::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 8%, rgba(20, 73, 230, 0.30), transparent 62%),
    radial-gradient(48% 60% at 6% 96%, rgba(20, 73, 230, 0.14), transparent 60%);
  pointer-events: none;
}

.ink h1, .ink h2, .ink h3 { color: var(--ink-text); }
.ink .lead, .ink p { color: var(--ink-text-2); }

.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

.h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.lead {
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.65;
  max-width: 62ch;
}

.sec-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lead { margin-top: 18px; }

/* ------------------------------------------------------------- 5. Buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-on);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r1);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 550;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .ico { font-size: 1.15em; transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: none;
}

.ink .btn--ghost {
  --btn-fg: var(--ink-text);
  border-color: var(--ink-border);
  background: rgba(255, 255, 255, 0.04);
}
.ink .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
  color: var(--ink-text);
}

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-text);
  font-weight: 550;
  text-decoration: none;
  font-size: 0.95rem;
}
.link-arrow .ico { transition: transform 0.3s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover .ico { transform: translate(3px, -3px); }
.ink .link-arrow { color: var(--ink-accent-text); }

/* ---------------------------------------------------------------- 6. Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-stuck {
  background: rgba(8, 13, 24, 0.94);
  border-bottom-color: var(--ink-border);
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.is-stuck { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav__in {
  height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.045em;
  color: var(--ink-text);
  margin-right: auto;
}
.brand b { font-weight: 700; color: var(--ink-accent-text); }

.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }

.nav__links a {
  position: relative;
  color: var(--ink-text-2);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 450;
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ink-accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink-text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-text);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.nav__tel:hover { color: var(--ink-accent-text); }
.nav__tel .ico { font-size: 1.1em; color: var(--ink-accent-text); }

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--ink-border);
  border-radius: var(--r1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-text);
  cursor: pointer;
  font-size: 1.25rem;
}

.nav__panel { display: contents; }

@media (max-width: 1024px) {
  .nav__burger { display: inline-flex; }
  .nav__panel {
    display: block;
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: var(--z-menu);
    background: var(--ink);
    border-bottom: 1px solid var(--ink-border);
    padding: 20px var(--pad-x) 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__panel.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--ink-border); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__panel .nav__tel { padding: 18px 0 14px; font-size: 1.05rem; }
  .nav__panel .btn { width: 100%; }
}

/* ---------------------------------------------------------------- 7. Hero */

.hero { padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 112px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  max-width: 14ch;
  text-wrap: pretty;
}
.hero h1 em {
  font-style: normal;
  color: var(--ink-accent-text);
  white-space: nowrap;
}

.hero .lead {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
}

/* ------------------------------------------------- 8. Image slots (shots) */

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ink .shot { background: var(--ink-2); border-color: var(--ink-border); }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}

.shot--hero { aspect-ratio: 4 / 3; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8); }

/* placeholder shown until the real photo exists in /img */
.shot.is-empty img { opacity: 0; }
.shot.is-empty::after {
  content: attr(data-slot);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
  white-space: pre-line;
  background-image:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 7%, transparent) 0 2px,
      transparent 2px 12px);
}
.ink .shot.is-empty::after { color: var(--ink-text-2); }

/* ------------------------------------------------------------ 9. Fact bar */

.facts {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-inline: 1px solid var(--border);
}
.fact {
  background: var(--bg);
  padding: clamp(26px, 3.4vw, 40px) clamp(18px, 2.4vw, 32px);
}
.fact__n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.fact__l {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ 10. Service bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r2);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(26px, 2.8vw, 40px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow);
}

.card__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r1);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 1.45rem;
  margin-bottom: 22px;
}

.card h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
.card p { margin-top: 12px; color: var(--text-2); font-size: 0.97rem; }

.card__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-2);
}
.card__list .ico { color: var(--accent-text); font-size: 1.05rem; margin-top: 0.18em; }

.card--a { grid-column: span 7; }
.card--b { grid-column: span 5; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.card--c { grid-column: span 5; }
.card--d { grid-column: span 7; background: var(--surface-2); }

.card--a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 auto;
  width: 62%; height: 64%;
  background-image:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 13%, transparent) 0 2px,
      transparent 2px 14px);
  mask-image: linear-gradient(315deg, #000 8%, transparent 62%);
  -webkit-mask-image: linear-gradient(315deg, #000 8%, transparent 62%);
  pointer-events: none;
}
.card > *:not(.card__ico) { position: relative; z-index: 1; }

.card--e {
  grid-column: span 12;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}
.card--e .card__list { margin-top: 0; }
.card--e p { max-width: 42ch; }

@media (max-width: 900px) {
  .card--e { grid-template-columns: 1fr; gap: 0; }
  .card--e .card__list { margin-top: 22px; }
}

.card--d::after {
  content: '';
  position: absolute;
  inset: auto -60px -80px auto;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .card--a, .card--b, .card--c, .card--d { grid-column: span 12; }
}

/* ----------------------------------------------------------- 11. Process */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 19px;
  height: 1px;
  background: var(--border);
}
.step { position: relative; padding-top: 58px; }
.step__dot {
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r1);
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1.12rem; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 0.94rem; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 19px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { padding: 0 0 34px 62px; }
  .step:last-child { padding-bottom: 0; }
}

/* ----------------------------------------------------------- 12. Gallery */

/* Galerie realizací: řádek = jedna široká (work--lead, span 4) plus jedna
   užší na výšku (work--side, span 2). Sudé řádky mají pořadí obrácené.
   Chceš-li přidat další, zkopíruj celý <figure> a drž střídání. */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}
.work { margin: 0; }
.work--lead { grid-column: span 4; }
.work--side { grid-column: span 2; }

.work--lead .shot { aspect-ratio: 3 / 2; }
.work--side .shot { aspect-ratio: 3 / 4; }

/* třetí a čtvrtá fotka prohodí strany, ať to není dva stejné řádky pod sebou */
.work:nth-of-type(3) { grid-column: 1 / span 2; }
.work:nth-of-type(4) { grid-column: 3 / span 4; }

@media (max-width: 760px) {
  .work:nth-of-type(3), .work:nth-of-type(4) { grid-column: span 1; }
}

.work:hover .shot img { transform: scale(1.045); }

.work__cap {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.work__cap b { font-weight: 550; font-size: 0.96rem; letter-spacing: -0.01em; }
.work__cap span { font-size: 0.88rem; color: var(--text-2); }

.gallery__note {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 56ch;
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--text-2);
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .work--lead, .work--side { grid-column: span 1; }
  .work--side .shot { aspect-ratio: 3 / 2; }
}

/* -------------------------------------------------------- 13. Testimonials */

.quotes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.quote {
  border-radius: var(--r2);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(26px, 2.8vw, 38px);
  display: flex;
  flex-direction: column;
}
.quote__mark { color: var(--accent-text); font-size: 1.7rem; margin-bottom: 16px; opacity: 0.55; }
.quote blockquote {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  line-height: 1.48;
  letter-spacing: -0.018em;
}
.quote__by {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quote__by b { font-weight: 550; font-size: 0.95rem; }
.quote__by span { font-size: 0.87rem; color: var(--text-2); }

.quote--lead { grid-column: span 7; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.quote--lead blockquote { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.34; }
.quote--b { grid-column: span 5; }
.quote--c { grid-column: span 5; }
.quote--d { grid-column: span 7; }

.stars { display: inline-flex; gap: 3px; color: var(--accent-text); font-size: 0.95rem; margin-bottom: 14px; }

@media (max-width: 900px) {
  .quote--lead, .quote--b, .quote--c, .quote--d { grid-column: span 12; }
}

/* ----------------------------------------------------------- 14. CTA band */

.band { padding-block: clamp(64px, 7.5vw, 104px); }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 18ch; }
.band .lead { margin-top: 16px; max-width: 48ch; }

.band__cta { margin: 0; flex-direction: column; align-items: stretch; }
.band__cta .btn { width: 100%; }

@media (max-width: 860px) {
  .band__cta { flex-direction: row; align-items: center; }
  .band__cta .btn { width: auto; }
}

.band__points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.band__points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  color: var(--ink-text);
}
.band__points .ico { color: var(--ink-accent-text); font-size: 1.15rem; }

@media (max-width: 860px) {
  .band__grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- 15. Contact */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > label { font-size: 0.9rem; font-weight: 550; letter-spacing: -0.005em; }
.field small { font-size: 0.82rem; color: var(--text-2); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r1);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); opacity: 0.85; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field .err {
  display: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: #c01c35;
  align-items: center;
  gap: 6px;
}
:root[data-theme='dark'] .field .err { color: #ff8095; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .field .err { color: #ff8095; }
}
.field.is-bad input, .field.is-bad textarea { border-color: currentColor; }
.field.is-bad .err { display: flex; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__note { font-size: 0.84rem; color: var(--text-2); max-width: 40ch; }

.form__status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--r1);
  font-size: 0.93rem;
  border: 1px solid;
}
.form__status.is-on { display: flex; }
.form__status[data-kind='ok'] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
}
.form__status[data-kind='bad'] {
  background: color-mix(in srgb, #c01c35 10%, transparent);
  border-color: color-mix(in srgb, #c01c35 35%, transparent);
  color: var(--text);
}
.form__status .ico { font-size: 1.2rem; flex: none; margin-top: 0.1em; }

.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.info {
  border-radius: var(--r2);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: clamp(26px, 3vw, 40px);
}
.info__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info__rows li { display: flex; gap: 15px; }
.info__rows .ico { font-size: 1.3rem; color: var(--accent-text); margin-top: 0.15em; flex: none; }
.info__rows b { display: block; font-size: 0.82rem; font-weight: 550; color: var(--text-2); margin-bottom: 3px; }
.info__rows a { text-decoration: none; font-weight: 550; letter-spacing: -0.01em; }
.info__rows a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }

.info__legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
}

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ 16. Footer */

.foot { padding-block: clamp(52px, 6vw, 80px) 32px; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.foot .brand { font-size: 1.35rem; margin: 0 0 16px; }
.foot p { max-width: 38ch; font-size: 0.94rem; }
.foot h4 {
  font-family: 'Geist', sans-serif;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-text-2);
  margin: 0 0 16px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot ul a { color: var(--ink-text); text-decoration: none; font-size: 0.94rem; }
.foot ul a:hover { color: var(--ink-accent-text); }

.foot__bar {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--ink-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--ink-text-2);
}

@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- 17. Theme toggle button */

.tt {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r1);
  border: 1px solid var(--ink-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-text);
  cursor: pointer;
  font-size: 1.05rem;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.tt:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }

/* ----------------------------------------------------------- 18. Motion */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }

  .rise {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.9s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 80ms);
  }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .hero .shot--hero {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    animation: shotIn 1.1s var(--ease) 0.24s forwards;
  }
  @keyframes shotIn { to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, .btn, .card { transition: none !important; }
}

/* ------------------------------------------------------------- 19. Print */

@media print {
  .nav, .band, .form, .tt { display: none; }
  body { background: #fff; color: #000; }
}
