/* ============================================================
   HEATRIDE — design system
   1. Tokens      5. Sections
   2. Reset       6. Components
   3. Utilities   7. Forms
   4. Chrome      8. Motion / responsive
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --heat-1: #ff3d00;
  --heat-2: #ff7a00;
  --heat-3: #ffc531;
  --ice-1: #5ef2ff;
  --ice-2: #00a3ff;
  /* accent for small TEXT — must stay readable against --bg in both themes */
  --heat-ink: #ff8a1f;

  --grad-heat: linear-gradient(120deg, var(--heat-1), var(--heat-2) 55%, var(--heat-3));
  --grad-ice: linear-gradient(120deg, var(--ice-1), var(--ice-2));

  /* surfaces — dark (default) */
  --bg: #08090c;
  --bg-2: #0c0e12;
  --surface: #12151b;
  --surface-2: #171b23;
  --line: #232833;
  --line-soft: #1a1e26;

  /* text */
  --fg: #f2f5f9;
  --fg-2: #a8b2c1;
  --fg-3: #6f7889;

  /* effects */
  --glow: 0 0 60px -12px rgba(255, 122, 0, .55);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, .75);
  --shadow-3: 0 40px 90px -30px rgba(0, 0, 0, .85);
  --blur: saturate(180%) blur(20px);

  /* geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);

  /* type */
  --font-display: 'Space Grotesk', 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* motion */
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html[data-theme='light'] {
  --heat-ink: #c2470a;
  --bg: #f6f7f9;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --line: #e0e4ea;
  --line-soft: #eceff3;
  --fg: #0b0d11;
  --fg-2: #4c5566;
  --fg-3: #7d8798;
  --shadow-2: 0 18px 40px -20px rgba(12, 16, 24, .18);
  --shadow-3: 0 40px 90px -34px rgba(12, 16, 24, .26);
  --glow: 0 0 60px -14px rgba(255, 122, 0, .38);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--e-io), color .5s var(--e-io);
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
/* our display rules on .btn would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p { text-wrap: pretty; }

::selection { background: var(--heat-2); color: #0a0b0d; }

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

/* scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--heat-2); }

/* ---------- 3. Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.heat-text {
  background: var(--grad-heat);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ice-text {
  background: var(--grad-ice);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--grad-heat);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--fg-2);
  max-width: 62ch;
}

.section-head { margin-bottom: clamp(40px, 6vw, 68px); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.divider { height: 1px; background: var(--line-soft); border: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. Chrome: preloader, cursor, nav ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: grid;
  place-items: center;
  gap: 26px;
  grid-auto-flow: row;
  transition: opacity .7s var(--e-io), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__mark { width: 74px; animation: floaty 2.4s var(--e-io) infinite; }
.preloader__bar {
  width: min(220px, 50vw);
  height: 2px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-heat);
  transition: width .3s linear;
}
.preloader__pct {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--fg-3);
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 900;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--heat-2);
  border-radius: 50%;
  pointer-events: none;
  translate: -50% -50%;
  transition: width .28s var(--e-out), height .28s var(--e-out),
              background .28s, opacity .3s, border-color .28s;
  will-change: transform;
}
.cursor.grow {
  width: 58px;
  height: 58px;
  background: rgba(255, 122, 0, .12);
  border-color: var(--heat-3);
}
.cursor.hide { opacity: 0; }
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 901;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--heat-2);
  pointer-events: none;
  translate: -50% -50%;
  will-change: transform;
}

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  height: 2px;
  width: 0;
  background: var(--grad-heat);
  box-shadow: 0 0 14px rgba(255, 122, 0, .8);
}

/* header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: padding .4s var(--e-out), background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom-color: var(--line-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; transition: transform .5s var(--e-spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }

/* the wordmark is light-on-dark, so light mode needs its own file */
html[data-theme='light'] .logo-dark { display: none; }
html:not([data-theme='light']) .logo-light { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 99px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--fg-2);
  transition: color .3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: var(--grad-heat);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--e-out);
}
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--fg-2);
  transition: color .3s, border-color .3s, transform .3s var(--e-spring), background .3s;
}
.icon-btn:hover {
  color: var(--heat-3);
  border-color: var(--heat-2);
  transform: translateY(-2px) rotate(12deg);
}
.icon-btn svg { width: 19px; height: 19px; }
html[data-theme='light'] .icon-btn .i-moon { display: none; }
html:not([data-theme='light']) .icon-btn .i-sun { display: none; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.8px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .4s var(--e-out), opacity .3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: grid;
  place-content: center;
  gap: 6px;
  padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--e-io);
  pointer-events: none;
}
.drawer.open { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }
.drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  padding-block: 8px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--e-out), transform .5s var(--e-out), color .3s;
}
.drawer.open a { opacity: 1; transform: none; }
.drawer a:hover { color: var(--heat-2); }
.drawer__meta {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--fg-3);
}

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--e-out), box-shadow .35s var(--e-out), color .3s, border-color .3s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform .35s var(--e-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--grad-heat); color: #0a0b0d; }
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--heat-3), var(--heat-1));
  opacity: 0;
  transition: opacity .4s;
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.btn--primary:hover::before { opacity: 1; }

.btn--ghost { border: 1px solid var(--line); color: var(--fg); }
.btn--ghost:hover {
  border-color: var(--heat-2);
  color: var(--heat-3);
  transform: translateY(-3px);
}

.btn--ice { background: var(--grad-ice); color: #04121a; }
.btn--ice:hover { transform: translateY(-3px); box-shadow: 0 0 60px -14px rgba(0, 163, 255, .6); }

.btn--lg { padding: 18px 38px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: 150px 90px;
  overflow: hidden;
}
#heat-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .85;
}
/* the additive orange glows read as dust on a pale background */
html[data-theme='light'] #heat-canvas { opacity: .3; }
.hero__aura {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}
.hero__aura--a {
  width: 46vw; height: 46vw;
  top: -12%; right: -8%;
  background: radial-gradient(circle, rgba(255, 90, 0, .38), transparent 68%);
}
.hero__aura--b {
  width: 40vw; height: 40vw;
  bottom: -18%; left: -10%;
  background: radial-gradient(circle, rgba(0, 140, 255, .3), transparent 68%);
}
html[data-theme='light'] .hero__aura--a { background: radial-gradient(circle, rgba(255, 120, 0, .28), transparent 68%); }
html[data-theme='light'] .hero__aura--b { background: radial-gradient(circle, rgba(0, 140, 255, .18), transparent 68%); }

.hero__inner { position: relative; z-index: 2; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__grid > * { min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(10px);
  font-size: .8rem;
  font-weight: 500;
  color: var(--fg-2);
  margin-bottom: 26px;
}
.badge b { color: var(--fg); font-weight: 600; }
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #29d97c;
  box-shadow: 0 0 0 0 rgba(41, 217, 124, .8);
  animation: pulse 2s infinite;
  flex-shrink: 0;
  margin-left: 5px;
}

.hero h1 { margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: riseIn 1.1s var(--e-out) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .28s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .41s; }

.hero__lead { margin-bottom: 34px; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__num span { background: var(--grad-heat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label {
  font-size: .78rem;
  color: var(--fg-3);
  letter-spacing: .04em;
  margin-top: 6px;
}

/* hero visual: thermal grip */
.thermal {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(255, 122, 0, .16), transparent 55%),
    color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 34px;
}
.thermal::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 122, 0, .22), transparent 40%);
  animation: spin 9s linear infinite;
}
.thermal__ring {
  position: absolute;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  inset: 12%;
}
.thermal__ring:nth-of-type(2) { inset: 24%; border-color: rgba(255, 122, 0, .18); }
.thermal__ring:nth-of-type(3) { inset: 36%; border-color: rgba(0, 163, 255, .16); }

/* the decorative rings sit on the centre of the card, so the gauge has to sit
   there too — otherwise the button row below pushes it off and the circles
   are no longer concentric. Both share one grid cell instead of stacking. */
.thermal > .gauge, .thermal > .levels { grid-area: 1 / 1; }
.thermal > .gauge { align-self: center; }
.thermal > .levels { align-self: end; margin-top: 0; }

.gauge { position: relative; z-index: 2; text-align: center; }
/* the global reset makes svg display:block, so text-align on .gauge
   would not centre it — the auto margins have to do the work */
.gauge__svg { display: block; width: min(240px, 46vw); margin-inline: auto; }
.gauge__track { fill: none; stroke: var(--line); stroke-width: 8; }

/* How full the gauge is, 0–1. Registered so it can be transitioned —
   a plain custom property would jump instead of sweeping. */
@property --gauge-pct {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* The fill is a conic gradient, not an SVG stroke: an SVG linear gradient
   maps colour to a direction across the box, so the cold end landed wherever
   the diagonal happened to point. Conic maps colour to the angle, so the
   scale really does run cold → hot along the arc. */
.gauge__arc {
  position: absolute;
  inset: 5.5%;              /* matches the track: r 85 + half of stroke 8, of 200 */
  --gauge-pct: 0;
  transition: --gauge-pct 1.1s var(--e-out);
  filter: drop-shadow(0 0 10px rgba(255, 122, 0, .6));
}
/* the mask has to sit on its own element — filter is applied before mask,
   so a glow on the masked element would be cut away with it */
.gauge__arc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* cold blue only at the very start, then straight into the brand heat ramp —
     a long blue→orange blend would desaturate most of the ring */
  background: conic-gradient(from 0deg,
    #00a3ff 0deg,
    #2f9fe6 52deg,
    #ff9a2e 104deg,
    #ff7a00 210deg,
    #ff3d00 331deg,
    #ff3d00 360deg);
  -webkit-mask:
    conic-gradient(from 0deg, #000 0 calc(var(--gauge-pct) * 1turn), #0000 0),
    radial-gradient(closest-side, #0000 calc(100% - 9%), #000 0);
  -webkit-mask-composite: source-in;
  mask:
    conic-gradient(from 0deg, #000 0 calc(var(--gauge-pct) * 1turn), #0000 0),
    radial-gradient(closest-side, #0000 calc(100% - 9%), #000 0);
  mask-composite: intersect;
}
.gauge__readout {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
}
.gauge__temp {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.gauge__unit { font-size: .5em; color: var(--fg-3); }
.gauge__mode {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  /* trailing letter-space would otherwise push the text off optical centre */
  margin-right: -.14em;
  text-transform: uppercase;
  color: var(--heat-ink);
}

/* pět tlačítek v řadě je na telefonu širších než karta a roztlačila by ji —
   nechat je zalomit je jediné, co udrží .thermal v jeho sloupci */
.levels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; position: relative; z-index: 2; }
.levels button {
  padding: 9px 15px;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--fg-3);
  transition: all .3s var(--e-out);
}
.levels button:hover { color: var(--fg); border-color: var(--fg-3); }
.levels button.on {
  background: var(--grad-heat);
  border-color: transparent;
  color: #0a0b0d;
  font-weight: 600;
  box-shadow: var(--glow);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.scroll-hint i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--heat-2), transparent);
  animation: drop 2s var(--e-io) infinite;
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding-block: 20px;
  overflow: hidden;
  display: flex;
  gap: 0;
  position: relative;
  z-index: 3;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 52px;
  flex-shrink: 0;
  padding-right: 52px;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--fg-3);
  white-space: nowrap;
  transition: color .3s;
}
.marquee__item:hover { color: var(--fg); }
.marquee__item i {
  width: 6px; height: 6px;
  background: var(--heat-2);
  rotate: 45deg;
  flex-shrink: 0;
}

/* ---------- 7. Services ---------- */
.svc-grid {
  display: grid;
  /* min() kvůli úzkým telefonům: samotné minmax(290px…) drží sloupec na 290 px
     i na 320px displeji, takže karty vylezou z gridu ven */
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 18px;
}
.card {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--e-out), border-color .4s, box-shadow .5s var(--e-out);
  transform-style: preserve-3d;
  /* column so the price row can sit flush at the bottom of every card */
  display: flex;
  flex-direction: column;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 0, .13), transparent 62%);
  opacity: 0;
  transition: opacity .45s;
}
.card:hover { transform: translateY(-7px); border-color: rgba(255, 122, 0, .34); box-shadow: var(--shadow-2); }
.card:hover::before { opacity: 1; }

.card--wide { grid-column: span 2; }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--heat-2) 12%, transparent);
  border: 1px solid rgba(255, 122, 0, .24);
  color: var(--heat-2);
  margin-bottom: 22px;
  transition: transform .5s var(--e-spring), background .4s;
}
.card:hover .card__icon { transform: translateY(-3px) rotate(-8deg) scale(1.08); }
.card__icon svg { width: 25px; height: 25px; }
.card--ice .card__icon {
  background: color-mix(in srgb, var(--ice-2) 12%, transparent);
  border-color: rgba(0, 163, 255, .26);
  color: var(--ice-1);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-2); font-size: .95rem; }

.card__price {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card__price b {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.card__price small { font-size: .74rem; color: var(--fg-3); font-family: var(--font-mono); letter-spacing: .06em; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--fg-3);
  transition: all .3s;
}
.card:hover .tag { border-color: var(--line); color: var(--fg-2); }

.card__num {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--fg-3);
  opacity: .5;
}

/* ---------- 8. Process ---------- */
.steps { position: relative; display: grid; gap: 0; }
.steps::before {
  content: '';
  position: absolute;
  left: 27px; top: 40px; bottom: 40px;
  width: 1px;
  background: var(--line);
}
.steps__fill {
  position: absolute;
  left: 27px; top: 40px;
  width: 1px;
  height: 0;
  background: var(--grad-heat);
  box-shadow: 0 0 12px rgba(255, 122, 0, .7);
  transition: height .2s linear;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  align-items: start;
  padding-block: 26px;
  position: relative;
}
.step__dot {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--fg-3);
  transition: all .5s var(--e-out);
  z-index: 1;
}
.step.lit .step__dot {
  border-color: transparent;
  background: var(--grad-heat);
  color: #0a0b0d;
  font-weight: 700;
  box-shadow: var(--glow);
  scale: 1.06;
}
.step h3 { margin-bottom: 8px; transition: color .4s; }
.step p { color: var(--fg-2); font-size: .95rem; max-width: 60ch; }
.step__time {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--heat-ink);
  text-transform: uppercase;
  margin-top: 10px;
  display: block;
}

/* ---------- 9. Configurator ---------- */
.config {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}
/* grid items mají min-width:auto, takže je obsah dokáže roztlačit přes
   šířku sloupce — bez tohohle panel i souhrn na telefonu přetečou */
.config > * { min-width: 0; }
.config__panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(24px, 3vw, 38px);
}
.config__group + .config__group { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.config__group > h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.opts { display: grid; gap: 10px; }
/* 150px stačilo na dva sloupce i na telefonu, jenže popisku pak zbylo
   přes 90 px a lámal se po slabikách — 220 je práh, kde to sjede pod sebe */
.opts--2 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.opt {
  position: relative;
  display: flex;
  /* na úzkých telefonech se cena vedle popisku nevejde a roztlačila by
     celý panel — takhle sjede na vlastní řádek */
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .3s var(--e-out);
  background: var(--bg-2);
}
.opt:hover { border-color: var(--fg-3); transform: translateX(3px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .3s var(--e-spring);
}
.opt input[type='radio'] ~ .opt__box { border-radius: 50%; }
.opt__box svg { width: 12px; height: 12px; color: #0a0b0d; opacity: 0; scale: .4; transition: all .3s var(--e-spring); }
.opt:has(input:checked) { border-color: var(--heat-2); background: color-mix(in srgb, var(--heat-2) 7%, var(--bg-2)); transform: translateX(3px); }
.opt:has(input:checked) .opt__box { background: var(--grad-heat); border-color: transparent; }
.opt:has(input:checked) .opt__box svg { opacity: 1; scale: 1; }
.opt__text { flex: 1; min-width: 0; }
.opt__text b { display: block; font-size: .94rem; font-weight: 600; }
.opt__text small { display: block; font-size: .78rem; color: var(--fg-3); }
.opt__price {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--fg-2);
  white-space: nowrap;
  /* drží cenu vpravo, a když zalomí, tak i na vlastním řádku */
  margin-left: auto;
}

.summary {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 122, 0, .1), transparent 60%),
    var(--surface);
  padding: 30px 26px;
  position: sticky;
  top: 96px;
}
.summary h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.summary__list { display: grid; gap: 9px; min-height: 56px; margin-bottom: 20px; }
.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .88rem;
  color: var(--fg-2);
  animation: fadeUp .4s var(--e-out) both;
}
.summary__row span:last-child { font-family: var(--font-mono); color: var(--fg); white-space: nowrap; }
.summary__empty { font-size: .88rem; color: var(--fg-3); font-style: italic; }
.summary__total {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.summary__total small { font-size: .8rem; color: var(--fg-3); }
.summary__total b {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
}
.summary__note { font-size: .74rem; color: var(--fg-3); margin-bottom: 20px; line-height: 1.5; }

/* ---------- 10. Gallery ---------- */
.gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gal__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 210px;
  cursor: pointer;
  transition: transform .55s var(--e-out), border-color .4s;
  display: grid;
  align-content: end;
  padding: 22px;
  isolation: isolate;
}
.gal__item:nth-child(1) { grid-column: span 2; grid-row: span 2; min-height: 434px; }
.gal__item:nth-child(6) { grid-column: span 2; }
.gal__item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg-2);
  transition: transform .8s var(--e-out);
}
.gal__item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 5, 8, .92) 8%, rgba(4, 5, 8, .28) 55%, transparent);
  transition: opacity .4s;
}
.gal__item:hover { transform: translateY(-5px); border-color: rgba(255, 122, 0, .4); }
.gal__item:hover::before { transform: scale(1.07); }
.gal__item b {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}
.gal__item small {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.gal__item .pill {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(10, 11, 13, .6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--heat-3);
}

/* thermal-ish generated backdrops */
.bg-a::before { background: radial-gradient(90% 80% at 25% 25%, #ff9a1f, #ff3d00 38%, #6d1200 66%, #120406); }
.bg-b::before { background: linear-gradient(150deg, #0b2b3d, #0f5f7a 45%, #16b7c9 90%); }
.bg-c::before { background: radial-gradient(80% 70% at 70% 30%, #ffd54a, #ff6a00 45%, #2a0d02); }
.bg-d::before { background: linear-gradient(135deg, #14181f, #2a3240 55%, #4b5566); }
.bg-e::before { background: radial-gradient(70% 90% at 40% 70%, #00c2ff, #0050a8 55%, #04121f); }
.bg-f::before { background: linear-gradient(120deg, #2b0f00, #ff4d00 60%, #ffb300); }
.bg-g::before { background: radial-gradient(85% 85% at 60% 40%, #7a2bff, #2a0a5e 60%, #0a0418); }

/* ---------- 11. Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
}
.feat-list { display: grid; gap: 4px; margin-top: 30px; }
.feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.feat:last-child { border-bottom: 0; }
.feat__tick {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--heat-2) 14%, transparent);
  color: var(--heat-2);
  flex-shrink: 0;
  margin-top: 2px;
}
.feat__tick svg { width: 13px; height: 13px; }
.feat b { display: block; font-size: .98rem; font-weight: 600; }
.feat p { font-size: .9rem; color: var(--fg-2); }

/* compare slider */
.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
/* each side anchors its label to its own edge, otherwise the two
   labels stack on top of each other and become unreadable */
.compare__side {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 clamp(18px, 5%, 40px);
}
.compare__cold {
  background: linear-gradient(150deg, #071b2a, #0d3a52 50%, #124c63);
  justify-items: start;
  text-align: left;
}
.compare__hot { justify-items: end; text-align: right; }
.compare__hot {
  background: radial-gradient(90% 90% at 50% 60%, #ffc531, #ff5100 42%, #7d1a00 78%, #200600);
  clip-path: inset(0 0 0 var(--split, 50%));
}
.compare__label {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.compare__sub {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: #fff;
  translate: -50%;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(255, 255, 255, .6);
}
.compare__handle::after {
  content: '⇄';
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #0a0b0d;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
.compare__hint {
  position: absolute;
  bottom: 14px; left: 50%;
  translate: -50%;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  background: rgba(10, 11, 13, .45);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 99px;
  pointer-events: none;
  transition: opacity .4s;
}
.compare.touched .compare__hint { opacity: 0; }

/* ---------- 12. Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}
.quote {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: grid;
  gap: 18px;
  transition: transform .5s var(--e-out), border-color .4s;
}
.quote:hover { transform: translateY(-6px); border-color: rgba(255, 122, 0, .3); }
.quote__stars { display: flex; gap: 3px; color: var(--heat-3); }
.quote__stars svg { width: 15px; height: 15px; }
.quote p { font-size: .96rem; color: var(--fg); line-height: 1.6; }
.quote__who { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: #0a0b0d;
  background: var(--grad-heat);
  flex-shrink: 0;
}
.quote__who b { display: block; font-size: .9rem; }
.quote__who small { font-size: .76rem; color: var(--fg-3); }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 860px; margin-inline: auto; }
.q { border-bottom: 1px solid var(--line-soft); }
.q__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 600;
  transition: color .3s;
}
.q__head:hover { color: var(--heat-2); }
.q__plus {
  position: relative;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .4s var(--e-out);
}
.q__plus::before, .q__plus::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: currentColor;
  transition: transform .4s var(--e-out), opacity .3s;
}
.q__plus::before { width: 12px; height: 1.6px; }
.q__plus::after { width: 1.6px; height: 12px; }
.q.open .q__plus { background: var(--grad-heat); border-color: transparent; color: #0a0b0d; rotate: 180deg; }
.q.open .q__plus::after { opacity: 0; }
.q__body { overflow: hidden; height: 0; transition: height .45s var(--e-io); }
.q__body p { padding: 0 60px 26px 4px; color: var(--fg-2); font-size: .95rem; }

/* ---------- 14. CTA band ---------- */
.band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(44px, 7vw, 82px);
  text-align: center;
  border: 1px solid var(--line);
  background: var(--bg-2);
  isolation: isolate;
}
.band::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(255, 122, 0, .3), rgba(0, 163, 255, .18), transparent 55%);
  animation: spin 14s linear infinite;
}
.band::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--r-xl) - 1px);
  background: var(--bg-2);
}
.band h2 { margin-bottom: 16px; }
.band .lead { margin-inline: auto; margin-bottom: 30px; }
.band__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 15. Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }

.info-list { display: grid; gap: 14px; margin-top: 32px; }
.info {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: all .35s var(--e-out);
}
.info:hover { border-color: rgba(255, 122, 0, .34); transform: translateX(4px); }
.info__ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--heat-2) 12%, transparent);
  color: var(--heat-2);
  flex-shrink: 0;
}
.info__ico svg { width: 19px; height: 19px; }
.info small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); font-family: var(--font-mono); }
.info b { font-size: .98rem; font-weight: 600; }

.form {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(24px, 3.4vw, 40px);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; position: relative; }
.field > label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.field > label .req { color: var(--heat-1); }

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: .95rem;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.input::placeholder { color: var(--fg-3); }
.input:focus {
  outline: 0;
  border-color: var(--heat-2);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, .14);
}
textarea.input { resize: vertical; min-height: 122px; }
select.input { appearance: none; cursor: pointer; padding-right: 42px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--fg-3);
  border-bottom: 1.5px solid var(--fg-3);
  translate: 0 -70%;
  rotate: 45deg;
  pointer-events: none;
}
.input.invalid { border-color: #ff4646; box-shadow: 0 0 0 3px rgba(255, 70, 70, .12); }
.err {
  display: block;
  font-size: .76rem;
  color: #ff6a6a;
  margin-top: 6px;
  height: 0;
  overflow: hidden;
  transition: height .25s var(--e-out);
}
.err.show { height: 20px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .84rem;
  color: var(--fg-2);
  margin-bottom: 22px;
  cursor: pointer;
  line-height: 1.5;
}
.consent input { position: absolute; opacity: 0; }
.consent .opt__box { margin-top: 2px; }
.consent:has(input:checked) .opt__box { background: var(--grad-heat); border-color: transparent; }
.consent:has(input:checked) .opt__box svg { opacity: 1; scale: 1; }
.consent a { color: var(--heat-ink); text-decoration: underline; text-underline-offset: 3px; }

.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: .78rem; color: var(--fg-3); }

.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  z-index: 400;
  translate: -50% 140%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 24px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  font-size: .92rem;
  transition: translate .6s var(--e-spring);
  max-width: calc(100vw - 32px);
}
.toast.show { translate: -50% 0; }
.toast__ico {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #29d97c;
  color: #05130b;
  flex-shrink: 0;
}
.toast.err .toast__ico { background: #ff5252; color: #1a0303; }
.toast__ico svg { width: 14px; height: 14px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(10, 11, 13, .3);
  border-top-color: #0a0b0d;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ---------- 16. Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding-block: clamp(48px, 6vw, 76px) 30px;
  position: relative;
  z-index: 3;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px 30px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__grid h5 {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: .9rem; color: var(--fg-2); transition: color .3s, transform .3s; display: inline-block; }
.footer__links a:hover { color: var(--heat-2); transform: translateX(3px); }
.footer__brand img { height: 46px; margin-bottom: 18px; }
.footer__brand p { font-size: .9rem; color: var(--fg-2); max-width: 38ch; }
.socials { display: flex; gap: 9px; margin-top: 22px; }
.socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-2);
  transition: all .35s var(--e-out);
}
.socials a:hover { color: #0a0b0d; background: var(--grad-heat); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.footer__bar {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--fg-3);
}
.footer__bar a:hover { color: var(--heat-2); }
.footer__bar nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 17. Cookies ---------- */
.cookie {
  position: fixed;
  left: 50%; bottom: 20px;
  z-index: 500;
  width: min(720px, calc(100vw - 32px));
  translate: -50% 200%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-3);
  padding: 26px;
  transition: translate .75s var(--e-spring);
}
.cookie.show { translate: -50% 0; }
.cookie__top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.cookie__ico {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--heat-2) 14%, transparent);
  color: var(--heat-2);
  flex-shrink: 0;
}
.cookie h4 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; margin-bottom: 5px; }
.cookie p { font-size: .87rem; color: var(--fg-2); }
.cookie p a { color: var(--heat-ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__btns .btn { padding: 12px 22px; font-size: .89rem; }
.cookie__prefs { display: none; margin-bottom: 18px; gap: 10px; }
.cookie__prefs.open { display: grid; animation: fadeUp .4s var(--e-out); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); cursor: pointer; }
.switch b { display: block; font-size: .88rem; }
.switch small { display: block; font-size: .76rem; color: var(--fg-3); }
.switch input { position: absolute; opacity: 0; }
.switch__track {
  width: 42px; height: 24px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  flex-shrink: 0;
  transition: background .3s;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--fg-3);
  transition: transform .3s var(--e-spring), background .3s;
}
.switch:has(input:checked) .switch__track { background: var(--heat-2); }
.switch:has(input:checked) .switch__track::after { transform: translateX(18px); background: #0a0b0d; }
.switch:has(input:disabled) { opacity: .65; cursor: not-allowed; }

/* ---------- 18. Legal pages ---------- */
.legal { padding-block: 150px 90px; }
.legal__wrap { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.legal__meta { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; color: var(--fg-3); margin-bottom: 44px; }
.legal h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 46px 0 14px; }
.legal h3 { font-size: 1.06rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--fg-2); font-size: .96rem; margin-bottom: 12px; }
.legal ul { list-style: none; }
.legal ul li { padding-left: 22px; position: relative; }
.legal ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: .68em;
  width: 6px; height: 6px;
  background: var(--heat-2);
  rotate: 45deg;
}
.legal strong { color: var(--fg); font-weight: 600; }
/* buttons and the back arrow bring their own colour — without the exclusion
   this rule outranks .btn--primary and paints the label orange on orange */
.legal a:not(.btn):not(.back) { color: var(--heat-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: .88rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; }
.legal td code { font-family: var(--font-mono); font-size: .84em; color: var(--heat-3); }
.toc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.toc h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.toc ol { counter-reset: t; display: grid; gap: 8px; }
.toc li { counter-increment: t; font-size: .9rem; margin: 0; padding-left: 26px; position: relative; }
.toc li::before {
  content: counter(t, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--heat-2);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 26px;
  transition: color .3s, gap .3s;
}
.back:hover { color: var(--heat-2); gap: 14px; }
.back svg { width: 15px; height: 15px; }

/* ---------- 19. Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--e-out), transform .9s var(--e-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d='1'] { transition-delay: .08s; }
.reveal[data-d='2'] { transition-delay: .16s; }
.reveal[data-d='3'] { transition-delay: .24s; }
.reveal[data-d='4'] { transition-delay: .32s; }
.reveal[data-d='5'] { transition-delay: .4s; }
.reveal[data-d='6'] { transition-delay: .48s; }

.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--e-out), transform 1s var(--e-out); }
.reveal-scale.in { opacity: 1; transform: none; }

@keyframes riseIn { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes slide { to { transform: translateX(-100%); } }
@keyframes floaty { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }
@keyframes drop { 0% { opacity: 0; transform: scaleY(0); transform-origin: top; } 40% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1) translateY(20px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(41, 217, 124, .7); }
  70% { box-shadow: 0 0 0 11px rgba(41, 217, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 217, 124, 0); }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .cursor, .cursor-dot { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .thermal { max-width: 460px; margin-inline: auto; }
  .config { grid-template-columns: 1fr; }
  .summary { position: static; }
  .split, .contact { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal__item:nth-child(1) { grid-row: span 1; min-height: 240px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 1; }
}

/* narrow phones: the header CTA would push the burger off screen —
   the drawer carries it instead */
@media (max-width: 800px) {
  .header__actions > .btn { display: none; }
  .brand img { height: 38px; }
}

@media (max-width: 520px) {
  /* pět stupňů se na úzkém telefonu jinak zalomí a MAX zůstane sám na řádku */
  .thermal { padding: 24px; }
  .levels { gap: 6px; }
  .levels button { padding: 8px 10px; font-size: .68rem; letter-spacing: .06em; }

  /* cena vedle popisku mu ukrojí tolik místa, že se název láme po slabikách —
     na telefonu jde na vlastní řádek, odsazená pod text */
  .opt__price { flex-basis: 100%; margin-left: 0; padding-left: 34px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .row { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr; }
  /* nth-child musí být vyjmenované: má vyšší specificitu než .gal__item
     a media query specificitu nezvyšuje. Bez toho si šestá dlaždice drží
     span 2, vynutí si implicitní druhý sloupec a rozhodí celou galerii. */
  .gal__item,
  .gal__item:nth-child(1),
  .gal__item:nth-child(6) { grid-column: span 1; grid-row: span 1; min-height: 220px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .step { grid-template-columns: 44px 1fr; gap: 18px; }
  .step__dot { width: 44px; height: 44px; }
  .steps::before, .steps__fill { left: 21px; }
  .cookie { padding: 20px; }
  .cookie__btns .btn { flex: 1 1 100%; }
  .q__body p { padding-right: 10px; }
  .btn { padding: 14px 24px; }

  /* a pill radius turns into a blob once the text wraps */
  .toast {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    border-radius: var(--r-md);
    translate: 0 200%;
    padding: 15px 18px;
  }
  .toast.show { translate: 0 0; }
}

/* ---------- kalkulačka: číslované sekce ---------- */
.config__group > h4 { display: flex; align-items: center; gap: 10px; }
.config__group > h4 i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: .62rem;
  letter-spacing: 0;
  color: var(--heat-ink);
}

/* oddělovač mezi hotovými sestavami a vlastní konfigurací */
.config__or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 4px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.config__or::before, .config__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

/* ---------- plovoucí souhrn na telefonu ---------- */
.sumbar { display: none; }
@media (max-width: 1080px) {
  .sumbar {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-3);
    translate: 0 160%;
    opacity: 0;
    transition: translate .45s var(--e-out), opacity .3s;
  }
  .sumbar.show { translate: 0 0; opacity: 1; }
  .sumbar__price small {
    display: block;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-3);
  }
  .sumbar__price b {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: -.02em;
  }
  .sumbar .btn { padding: 11px 18px; font-size: .88rem; white-space: nowrap; }
  /* ať poslední sekce nekončí pod lištou */
  .config { padding-bottom: 76px; }
}
@media (max-width: 420px) {
  .sumbar .btn svg { display: none; }
}

/* ---------- Zvýhodněné balíčky ---------- */
.pkg__hint { font-size: .84rem; color: var(--fg-3); margin: -6px 0 14px; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.pkg {
  position: relative;
  text-align: left;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  display: grid;
  gap: 4px;
  transition: border-color .3s, background .3s, transform .3s var(--e-out);
}
.pkg:hover { border-color: var(--fg-3); transform: translateY(-2px); }
.pkg.on { border-color: var(--heat-2); background: color-mix(in srgb, var(--heat-2) 8%, var(--bg-2)); }
.pkg b { font-size: .95rem; font-weight: 600; color: var(--fg); }
.pkg b span {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0a0b0d;
  background: var(--grad-heat);
  border-radius: 99px;
  padding: 2px 7px;
  margin-left: 7px;
  vertical-align: middle;
}
.pkg small { font-size: .8rem; color: var(--fg-3); line-height: 1.45; }
.pkg i {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heat-ink);
  margin-top: 4px;
}
.pkg i s { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--fg-3); margin-left: 6px; }

/* příplatek k nadřazené položce — odsazený, ať je vidět, k čemu patří */
.opt--addon { margin-left: 22px; }
.opt--locked { opacity: .45; cursor: not-allowed; }
.opt--locked:hover { border-color: var(--line); transform: none; }

/* ---------- doprava podle kilometrů ---------- */
.km { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.km > label { display: block; font-size: .88rem; color: var(--fg-2); margin-bottom: 8px; }
.km__input { display: flex; align-items: center; gap: 10px; max-width: 190px; }
.km__input .input { text-align: right; }
.km__input span { font-family: var(--font-mono); font-size: .84rem; color: var(--fg-3); }
.km small { display: block; margin-top: 9px; font-size: .8rem; color: var(--fg-3); line-height: 1.5; }

/* ---------- Turnstile ---------- */
/* Widget běží neviditelně, takže kontejner nesmí zabírat místo — jinak by
   ve formuláři zůstala nevysvětlitelná mezera. Odsazení se zapne jen tehdy,
   kdyby se režim přepnul na viditelný a Cloudflare vložil iframe. */
.turnstile { margin: 0; }
.turnstile:has(iframe) { margin: 4px 0 18px; }
.turnstile iframe { max-width: 100%; }

/* ---------- 20. Subpage header ---------- */
.page-hero {
  position: relative;
  padding-block: 150px 0;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -220px; right: -120px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, .16), transparent 62%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero__inner { max-width: 820px; padding-block: clamp(28px, 5vw, 54px); }
/* .back is inline-flex, so without this the eyebrow tucks in beside it */
.page-hero__inner .back { display: flex; width: fit-content; margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.page-hero .lead { max-width: 680px; }

/* breadcrumb reuses the .back arrow styling but points one level up */
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }

/* the current page in the nav — the scroll spy only owns in-page anchors */
.nav a[aria-current='page'] { color: var(--fg); }
.nav a[aria-current='page']::after { transform: scaleX(1); }
.drawer a[aria-current='page'] { color: var(--heat-ink); }

/* section link under a teaser block on the home page */
.more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }

@media (max-width: 620px) {
  .page-hero { padding-block: 122px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}
