/* =========================================================
   Webtes — redesign
   ========================================================= */

/* ---------- Písma (uložená přímo u webu — nic se nenačítá z Googlu) ---------- */
@font-face{ font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/bricolage-cs-ext.woff2') format('woff2'); unicode-range: U+0100-017F, U+02C7, U+02DD, U+0304, U+0308, U+0329, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face{ font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/bricolage-latin.woff2') format('woff2'); 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; }
@font-face{ font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-italic-cs-ext.woff2') format('woff2'); unicode-range: U+0100-017F, U+02C7, U+02DD, U+0304, U+0308, U+0329, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face{ font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-italic-latin.woff2') format('woff2'); 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; }
@font-face{ font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/inter-cs-ext.woff2') format('woff2'); unicode-range: U+0100-017F, U+02C7, U+02DD, U+0304, U+0308, U+0329, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face{ font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); 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; }
/* Záložní písma se stejnou šířkou jako webová (změřeno na textech webu). Než se webové písmo stáhne,
   text se zalomí stejně, takže po jeho načtení nic neposkočí (CLS). Arial = Liberation Sans/Arimo (Linux),
   Times New Roman = Liberation Serif/Tinos, Roboto a Noto Serif pro Android. unicode-range = přesně znaky,
   které webové písmo má — ostatní znaky (→ ✓ ✦) se kreslí systémovým písmem stejně jako dřív. */
@font-face{ font-family: 'Bricolage Fallback'; font-style: normal; font-weight: 100 500; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Arimo'), local('Helvetica'); size-adjust: 109.54%; ascent-override: 84.90%; descent-override: 24.65%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-00A3, U+00A5-00AC, U+00AE-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+0168-017E, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A1, U+20A4, U+20A6, U+20A8-20A9, U+20AB-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212; }
@font-face{ font-family: 'Bricolage Fallback'; font-style: normal; font-weight: 600; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Helvetica Bold'); size-adjust: 100.72%; ascent-override: 92.34%; descent-override: 26.81%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-00A3, U+00A5-00AC, U+00AE-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+0168-017E, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A1, U+20A4, U+20A6, U+20A8-20A9, U+20AB-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212; }
@font-face{ font-family: 'Bricolage Fallback'; font-style: normal; font-weight: 700 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Helvetica Bold'); size-adjust: 101.96%; ascent-override: 91.21%; descent-override: 26.48%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-00A3, U+00A5-00AC, U+00AE-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+0168-017E, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A1, U+20A4, U+20A6, U+20A8-20A9, U+20AB-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212; }
@font-face{ font-family: 'Bricolage Fallback R'; font-style: normal; font-weight: 100 500; src: local('Roboto'), local('Roboto-Regular'); size-adjust: 107.09%; ascent-override: 86.84%; descent-override: 25.21%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-00A3, U+00A5-00AC, U+00AE-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+0168-017E, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A1, U+20A4, U+20A6, U+20A8-20A9, U+20AB-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212; }
@font-face{ font-family: 'Bricolage Fallback R'; font-style: normal; font-weight: 600; src: local('Roboto Bold'), local('Roboto-Bold'); size-adjust: 106.98%; ascent-override: 86.93%; descent-override: 25.24%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-00A3, U+00A5-00AC, U+00AE-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+0168-017E, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A1, U+20A4, U+20A6, U+20A8-20A9, U+20AB-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212; }
@font-face{ font-family: 'Bricolage Fallback R'; font-style: normal; font-weight: 700 900; src: local('Roboto Bold'), local('Roboto-Bold'); size-adjust: 108.72%; ascent-override: 85.54%; descent-override: 24.83%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-00A3, U+00A5-00AC, U+00AE-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+0168-017E, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A1, U+20A4, U+20A6, U+20A8-20A9, U+20AB-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212; }
@font-face{ font-family: 'Inter Fallback'; font-style: normal; font-weight: 100 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Arimo'), local('Helvetica'); size-adjust: 106.11%; ascent-override: 91.41%; descent-override: 22.62%; line-gap-override: 0%; unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-0148, U+014A-017F, U+02BB-02BC, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A0-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face{ font-family: 'Inter Fallback'; font-style: normal; font-weight: 500; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Arimo'), local('Helvetica'); size-adjust: 107.66%; ascent-override: 90.10%; descent-override: 22.29%; line-gap-override: 0%; unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-0148, U+014A-017F, U+02BB-02BC, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A0-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face{ font-family: 'Inter Fallback'; font-style: normal; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Helvetica Bold'); size-adjust: 101.69%; ascent-override: 95.39%; descent-override: 23.60%; line-gap-override: 0%; unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-0148, U+014A-017F, U+02BB-02BC, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A0-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face{ font-family: 'Inter Fallback R'; font-style: normal; font-weight: 100 400; src: local('Roboto'), local('Roboto-Regular'); size-adjust: 107.28%; ascent-override: 90.42%; descent-override: 22.37%; line-gap-override: 0%; unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-0148, U+014A-017F, U+02BB-02BC, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A0-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face{ font-family: 'Inter Fallback R'; font-style: normal; font-weight: 500; src: local('Roboto Medium'), local('Roboto-Medium'); size-adjust: 105.43%; ascent-override: 92.00%; descent-override: 22.76%; line-gap-override: 0%; unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-0148, U+014A-017F, U+02BB-02BC, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A0-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face{ font-family: 'Inter Fallback R'; font-style: normal; font-weight: 600 900; src: local('Roboto Bold'), local('Roboto-Bold'); size-adjust: 107.87%; ascent-override: 89.92%; descent-override: 22.25%; line-gap-override: 0%; unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-0148, U+014A-017F, U+02BB-02BC, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20A0-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20BF, U+2113, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face{ font-family: 'Instrument Fallback'; font-style: italic; font-weight: 400; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Liberation Serif Italic'), local('LiberationSerif-Italic'), local('Tinos Italic'), local('Times Italic'); size-adjust: 89.44%; ascent-override: 110.69%; descent-override: 34.66%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B4, U+00B6-00B8, U+00BA-00BB, U+00BF-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122, U+2212; }
@font-face{ font-family: 'Instrument Fallback N'; font-style: italic; font-weight: 400; src: local('Noto Serif Italic'), local('NotoSerif-Italic'); size-adjust: 77.38%; ascent-override: 127.94%; descent-override: 40.06%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B4, U+00B6-00B8, U+00BA-00BB, U+00BF-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+02C6-02C7, U+02DA, U+02DC-02DD, U+0304, U+0308, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122, U+2212; }

:root{
  --bg: #09080d;
  --bg-2: #100e16;
  --surface: rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.16);
  --text: #f4f2f7;
  --muted: #a19cae;
  --dim: #8a8598; /* ≥ 4.5:1 contrast on --bg for small text */

  --c-indigo: #7c83e0;
  --c-rose: #d0476a;
  --c-peach: #fca369;
  --c-cyan: #78dde9;
  --c-blue: #2f8fd8;

  --grad: linear-gradient(120deg, var(--c-indigo) 0%, var(--c-rose) 50%, var(--c-peach) 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,131,224,.18), rgba(208,71,106,.14), rgba(252,163,105,.14));

  --f-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Bricolage Fallback R', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', 'Instrument Fallback', 'Instrument Fallback N', Georgia, serif;
  --f-body: 'Inter', 'Inter Fallback', 'Inter Fallback R', system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --container: 75%; /* šířka obsahu sekcí, menu i patičky = 75 % šířky stránky */
  --ease: cubic-bezier(.2,.8,.2,1);
}

*,*::before,*::after{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; scroll-padding-top: 100px; }
html:has(dialog[open]){ overflow: hidden; }
body{
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::after{
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,h2,h3,h4{ font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; height: auto; }
ul,ol{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; color: inherit; }
::selection{ background: var(--c-rose); color: #fff; }

.container{ width: var(--container); margin-inline: auto; }
/* Every italic serif accent carries the brand gradient. */
.serif{
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.grad{ background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

.eyebrow{
  font-family: var(--f-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.lead{ color: var(--muted); font-size: 1.05rem; max-width: 520px; margin-top: 20px; }

/* ---------- Aurora background ---------- */
.aurora{ position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Soft radial gradients instead of filter: blur() — same look, no per-frame blur cost. */
.aurora-blob{
  position: absolute;
  width: 75vmax; height: 75vmax;
  border-radius: 50%;
  opacity: .28;
  will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}
.b1{ background: radial-gradient(closest-side, #7c83e0 0 30%, rgba(124,131,224,.55) 60%, transparent); top: -35vmax; left: -25vmax; }
.b2{ background: radial-gradient(closest-side, #d0476a 0 30%, rgba(208,71,106,.55) 60%, transparent); top: -20vmax; right: -35vmax; animation-delay: -8s; opacity: .24; }
.b3{ background: radial-gradient(closest-side, #fca369 0 30%, rgba(252,163,105,.55) 60%, transparent); bottom: -45vmax; left: 10vw; animation-delay: -16s; opacity: .14; }
@keyframes drift{
  to{ transform: translate(8vmax, 6vmax) scale(1.15); }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn span{ transition: transform .25s var(--ease); }
.btn:hover span{ transform: translateX(4px); }
.btn:active{ transform: scale(.97); }
.btn-grad{
  background: var(--grad);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: 0 10px 40px -10px rgba(208,71,106,.6);
  transition: background-position .5s var(--ease), transform .25s var(--ease), box-shadow .25s;
}
.btn-grad:hover{ background-position: 100% 0; box-shadow: 0 14px 50px -8px rgba(208,71,106,.75); }
.btn-ghost{ border-color: var(--line-2); background: var(--surface); }
.btn-ghost:hover{ border-color: rgba(255,255,255,.35); background: var(--surface-2); }
.btn-light{ background: var(--text); color: var(--bg); }
.btn-light:hover{ background: #fff; }
.btn-sm{ padding: 10px 18px; font-size: .9rem; }
.btn-block{ width: 100%; }
.btn:disabled{ opacity: .6; cursor: wait; }
.btn:focus-visible, a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--c-peach);
  outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.nav-wrap{
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 50;
}
.nav{
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16,14,22,.45);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav-wrap.scrolled .nav{
  background: rgba(16,14,22,.75);
  border-color: var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.logo{ display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; margin-right: auto; }
.logo em{ font-style: normal; font-weight: 500; color: var(--muted); }
.logo-img{ height: 36px; width: auto; flex-shrink: 0; }
.nav-links{ display: flex; gap: 4px; }
.nav-link{
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-link:hover{ color: var(--text); }
.nav-link.active{ color: var(--text); background: var(--surface-2); }
.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle span{
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child{ top: 16px; }
.nav-toggle span:last-child{ top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child{ top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child{ top: 20px; transform: rotate(-45deg); }

/* ---------- Reveal ---------- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: none; }
/* Úvod stránky: obsah je vidět hned (bez průhlednosti) a jen jemně dojede na místo — rychlejší LCP,
   nečeká se na skript jako u .reveal */
.intro{ animation: introUp .8s var(--ease) both; }
.intro:nth-child(2){ animation-delay: .06s; }
.intro:nth-child(3){ animation-delay: .12s; }
.intro:nth-child(4){ animation-delay: .18s; }
.intro:nth-child(5){ animation-delay: .24s; }
.intro:nth-child(6){ animation-delay: .3s; }
@keyframes introUp{ from{ transform: translateY(18px); } }

/* ---------- Hero ---------- */
.hero{ padding: 150px 0 80px; min-height: 100svh; display: flex; align-items: center; }
.hero-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.badge{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: .85rem; color: var(--muted);
  margin-bottom: 28px;
}
/* Pulzující tečka: vlnu tvoří ::after animovaný jen přes transform a opacity (bez neustálého překreslování) */
.dot{ position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.dot::after{ content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(74,222,128,.35); animation: pulse 2s infinite; will-change: transform, opacity; }
@keyframes pulse{ from{ transform: scale(.6); opacity: .9; } to{ transform: scale(1.8); opacity: 0; } }
.hero h1{ font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 700; }
.hero h1 .serif{ font-size: 1.08em; }
.hero-sub{ margin-top: 26px; font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof{ display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-proof li{ font-size: .88rem; color: var(--muted); }
.hero-proof strong{ display: block; font-family: var(--f-display); font-size: 1.6rem; color: var(--text); letter-spacing: -0.02em; }

.hero-visual{ position: relative; aspect-ratio: 4 / 5; max-height: 640px; justify-self: center; width: 100%; }
.hero-frame{
  position: absolute; inset: 0;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(208,71,106,.45);
}
.hero-frame img{ width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.hero-visual:hover .hero-frame img{ transform: scale(1.02); }
.hero-frame::after{ content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(9,8,13,.55)); }

.float-card{
  position: absolute;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(20,18,28,.6);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  font-size: .85rem;
  animation: float 6s ease-in-out infinite;
}
@keyframes float{ 50%{ transform: translateY(-10px); } }
.fc-audit{ top: 12%; left: -12%; min-width: 180px; }
.fc-title{ font-family: var(--f-display); font-weight: 600; margin-bottom: 10px; }
.fc-audit li{ display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 3px 0; }
.fc-audit i{ width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.fc-audit .ok{ background: #4ade80; box-shadow: inset 0 0 0 3px rgba(0,0,0,.25); }
.fc-audit .warn{ background: var(--c-peach); box-shadow: inset 0 0 0 3px rgba(0,0,0,.25); }
.fc-flow{ bottom: 9%; right: -8%; display: flex; align-items: center; gap: 8px; animation-delay: -3s; }
.fc-flow span{ padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.fc-flow span.on{ background: var(--grad); color: #fff; }
.fc-flow b{ color: var(--dim); font-weight: 400; }
.cursor-tag{ position: absolute; top: 52%; left: 18%; display: flex; align-items: flex-start; animation: cursor 9s ease-in-out infinite; }
.cursor-tag span{ margin: 14px 0 0 -2px; padding: 3px 10px; border-radius: 6px 999px 999px 999px; background: var(--c-peach); color: #1a0e08; font-size: .75rem; font-weight: 600; }
@keyframes cursor{
  0%,100%{ transform: translate(0,0); }
  30%{ transform: translate(90px,-50px); }
  60%{ transform: translate(40px,60px); }
}

/* ---------- Marquee ---------- */
.marquee{
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track{ display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 40s linear infinite; }
.marquee-track span{ font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.marquee-track span:nth-of-type(even){ font-family: var(--f-serif); font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.marquee-track i{ font-style: normal; color: var(--c-rose); }
@keyframes marquee{ to{ transform: translateX(calc(-50% - 18px)); } }

/* ---------- Sections ---------- */
.section{ padding: 130px 0; }
.section-head h2{ font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 760px; }
.section-head{ margin-bottom: 56px; }
.section-head--row{ display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div{ flex: 1 1 460px; }
.section-head--row h2{ max-width: 720px; }
.section-head--row .lead{ margin-top: 0; flex: 0 1 400px; max-width: 440px; }
.section--tight{ padding-block: clamp(24px, 5vh, 60px); }

/* ---------- Cards / bento ---------- */
.card{
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.card::before{
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(208,71,106,.16), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover::before{ opacity: 1; }

.bento{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}
.service-card{
  display: flex;
  flex-direction: column;
  padding: 30px;
  cursor: pointer;
  transition: border-color .3s, transform .4s var(--ease);
}
.service-card:hover{ border-color: var(--line-2); transform: translateY(-4px); }
.s-eshop{ grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, rgba(124,131,224,.1), rgba(255,255,255,.02) 50%); }
.s-web{ grid-column: span 2; }
.s-proc{ grid-column: span 2; }
.stats-card{ grid-column: span 6; display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 30px; min-height: 0; }

.card-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.card-num{ font-family: var(--f-display); font-size: .85rem; color: var(--dim); letter-spacing: .08em; }
.svc-icon{
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
  margin-bottom: 22px;
}
.svc-icon svg{ width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3{ font-size: 1.6rem; margin-bottom: 12px; }
.s-eshop h3{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
.service-card p{ color: var(--muted); font-size: .96rem; max-width: 460px; }
.card-link{
  margin-top: auto;
  padding-top: 24px;
  align-self: flex-start;
  font-family: var(--f-display);
  font-weight: 600;
  display: inline-flex; gap: 8px;
}
.card-link span{ transition: transform .25s var(--ease); }
.service-card:hover .card-link span{ transform: translateX(5px); }

.eshop-visual{ margin-top: auto; padding-top: 36px; display: grid; gap: 12px; max-width: 520px; }
.s-eshop .card-link{ margin-top: 0; }
.mini-shop{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ms-item{
  padding: 10px;
  border-radius: var(--r-md);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  display: grid; gap: 8px;
  transition: transform .4s var(--ease);
}
.service-card:hover .ms-item:nth-child(1){ transform: translateY(-4px); }
.service-card:hover .ms-item:nth-child(2){ transform: translateY(-8px); transition-delay: .05s; }
.service-card:hover .ms-item:nth-child(3){ transform: translateY(-4px); transition-delay: .1s; }
/* Ukázka obchodu: tři kroky nákupu (Košík, Doprava, Platba) — stejné jako v řádku pod nimi */
.ms-img{ position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.ms-img svg{ position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s var(--ease); }
.ms-item:hover .ms-img svg, .service-card:hover .ms-img svg{ transform: scale(1.06); }
.ms-img.g1{ background: linear-gradient(135deg, #5c65b4, #ac344f); }
.ms-img.g2{ background: linear-gradient(135deg, #0272be, #78dde9); }
.ms-img.g3{ background: linear-gradient(135deg, #ac344f, #fca369); }
.ms-item.is-now{ border-color: rgba(252,163,105,.45); }
.ms-item i{ font-style: normal; font-size: .78rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-item b{ margin-top: -4px; font-family: var(--f-display); font-size: .8rem; font-weight: 600; color: var(--c-peach); }
.mini-checkout{
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
}
.mc-step{ display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.mc-step i{ width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; border: 1px solid var(--line-2); }
.mc-step.done{ color: var(--text); }
.mc-step.done i{ background: var(--grad); border-color: transparent; }
.mc-line{ flex: 1; height: 2px; border-radius: 2px; background: var(--grad); min-width: 16px; }
.mc-line.half{ background: linear-gradient(90deg, var(--c-peach) 50%, var(--line-2) 50%); }

.stat{ padding: 0 20px; border-left: 1px solid var(--line); }
.stat:first-child{ border-left: 0; padding-left: 0; }
.stat strong{ display: block; font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.1; }
.stat span{ color: var(--muted); font-size: .9rem; }

.hl{
  color: var(--text);
  font-weight: 600;
}

/* ---------- Audit service card ---------- */
.s-audit{
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(200deg, rgba(120,221,233,.08), rgba(255,255,255,.02) 55%);
}
.audit-copy{ display: flex; flex-direction: column; height: 100%; }
.audit-copy .card-top{ gap: 12px; }
.audit-copy .card-num{ margin-right: auto; }
.tag-new{
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120,221,233,.35);
  background: rgba(120,221,233,.08);
  color: var(--c-cyan);
  font-size: .75rem; font-weight: 600;
}
.audit-visual{
  padding: 22px;
  border-radius: var(--r-md);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  display: grid; gap: 14px;
}
.av-head{ display: flex; justify-content: space-between; font-family: var(--f-display); font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.av-head em{ font-style: normal; font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--dim); }
.av-row{ display: grid; grid-template-columns: 130px 1fr 80px; gap: 14px; align-items: center; font-size: .85rem; color: var(--muted); }
.av-row i{ position: relative; height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.av-row i::after{ content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: currentColor; transition: width 1s var(--ease); }
.av-row i.bad, .av-row b.bad{ color: var(--c-rose); }
.av-row i.mid, .av-row b.mid{ color: var(--c-peach); }
.av-row i.ok, .av-row b.ok{ color: #4ade80; }
.av-row b{ font-size: .75rem; font-weight: 600; text-align: right; }
.service-card:hover .av-row i::after{ width: calc(var(--w) + 14%); }

/* ---------- Why custom: comparison ---------- */
.compare{
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.cmp-row{
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  border-top: 1px solid var(--line);
}
.cmp-row:first-child{ border-top: 0; }
.cmp-row > *{ padding: 18px 24px; font-size: .95rem; }
.cmp-row strong{ font-family: var(--f-display); font-weight: 600; }
.cmp-head > *{ font-family: var(--f-display); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-block: 16px; }
.cmp-head .cmp-us{ color: var(--text); }
.cmp-us, .cmp-yes{ background: linear-gradient(90deg, rgba(208,71,106,.10), rgba(252,163,105,.06)); }
.cmp-no, .cmp-yes{ position: relative; padding-left: 52px !important; }
.cmp-no{ color: var(--dim); }
.cmp-yes{ color: var(--text); }
.cmp-no::before, .cmp-yes::before{
  position: absolute; left: 22px; top: 18px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .7rem;
}
.cmp-no::before{ content: '✕'; border: 1px solid var(--line-2); color: var(--dim); }
.cmp-yes::before{ content: '✓'; background: var(--grad); color: #fff; }

/* ---------- Why custom: calculator ---------- */
.calc{ padding: clamp(24px, 4vw, 44px); }
.calc-top{ display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.calc-top h3{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
.calc-sub{ color: var(--muted); font-size: .92rem; margin-top: 8px; }
.calc-panel{ display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.calc-inputs{ display: flex; flex-direction: column; gap: 22px; }
.range{ display: grid; gap: 10px; }
.range > span{ display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: var(--muted); }
.range output{ font-family: var(--f-display); font-weight: 600; color: var(--text); white-space: nowrap; }
.range-hint{ margin-top: -12px; font-size: .8rem; color: var(--dim); }
.range input{
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--c-rose) 0 var(--p, 50%), var(--line-2) var(--p, 50%));
  cursor: pointer;
}
.range input::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--c-rose);
  box-shadow: 0 0 0 6px rgba(208,71,106,.18);
  transition: transform .2s;
}
.range input::-webkit-slider-thumb:hover{ transform: scale(1.12); }
.range input::-moz-range-thumb{ width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--c-rose); }
.years{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.years > span{ margin-right: 8px; }
.years input{ position: absolute; opacity: 0; pointer-events: none; }
.years label span{ display: block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; transition: all .2s; }
.years input:checked + span{ background: var(--text); color: var(--bg); border-color: var(--text); }
.years input:focus-visible + span{ outline: 2px solid var(--c-peach); outline-offset: 2px; }

.calc-result{
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(208,71,106,.16), rgba(124,131,224,.08));
  border: 1px solid var(--line-2);
}
.cr-label{ color: var(--muted); font-size: .92rem; }
.cr-big{
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.04em; line-height: 1.1;
  margin: 6px 0 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cr-mid{ margin: -8px 0 18px; font-size: 1.05rem; color: var(--muted); }
.cr-mid b{ color: var(--text); font-family: var(--f-display); }
.cr-bars{ display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); gap: 2px; }
.cr-bars span{ height: 100%; transition: width .5s var(--ease); }
.bar-tariff{ background: var(--c-indigo); }
.bar-apps{ background: var(--c-rose); }
.bar-fees{ background: var(--c-peach); }
.cr-legend{ display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 20px; font-size: .82rem; color: var(--muted); }
.cr-legend li{ display: flex; align-items: center; gap: 7px; }
.cr-legend i{ width: 10px; height: 10px; border-radius: 3px; }
.cr-legend b{ color: var(--text); font-weight: 600; }
.cr-note{ font-size: .88rem; color: rgba(244,242,247,.82); margin-bottom: 22px; }
.calc-result .btn{ margin-top: auto; align-self: flex-start; }

/* ---------- Why custom: footer ---------- */
.why-foot{ display: grid; gap: 22px; }
.callout{ display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; flex-wrap: wrap; border-color: rgba(120,221,233,.25); background: linear-gradient(90deg, rgba(120,221,233,.07), rgba(255,255,255,.02)); }
.callout h3{ font-size: 1.4rem; margin-bottom: 6px; }
.callout p{ color: var(--muted); max-width: 640px; font-size: .95rem; }
.honest{ text-align: center; color: var(--dim); font-size: .92rem; }
.honest strong{ color: var(--muted); font-weight: 600; }

/* ---------- Manifesto ---------- */
.manifesto{ padding: 40px 0 60px; }
.manifesto-text{
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 1050px;
}
.manifesto-text .w{ color: rgba(244,242,247,.14); transition: color .3s; }
.manifesto-text .w.lit{ color: var(--text); }

/* ---------- Process ---------- */
.process-grid{ display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.process-figure{
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(2,114,190,.5);
}
.process-figure img{ width: 100%; }

.steps-wrap{ position: relative; padding-left: 36px; }
.steps-progress{ position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.steps-progress span{ display: block; width: 100%; height: 0; background: var(--grad); border-radius: 2px; box-shadow: 0 0 20px var(--c-rose); }
.steps{ display: flex; flex-direction: column; gap: 16px; }
.step{
  display: flex; gap: 22px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .3s, background .3s;
}
.step:hover{ border-color: var(--line-2); background: var(--surface-2); }
.step-num{ font-family: var(--f-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--c-peach); min-width: 40px; }
.step h3{ font-size: 1.35rem; margin-bottom: 8px; }
.step p{ color: var(--muted); font-size: .95rem; }

/* ---------- Portfolio ---------- */
.filters{ display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.filter{
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .9rem; font-weight: 500;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.filter:hover{ color: var(--text); }
.filter.active{ background: var(--text); color: var(--bg); }

.portfolio-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Dlaždice portfolia a kontaktní formulář vkládá script.js — stránka se ale vykreslí dřív. Do té doby
   drží místo, aby patička pod nimi neposkočila (CLS). Po vložení obsahu pravidlo přestane platit. */
.portfolio-grid:empty, [data-contact]:empty{ min-height: 100vh; }
.project{
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s;
  animation: fadeUp .5s var(--ease) both;
}
@keyframes fadeUp{ from{ opacity: 0; transform: translateY(14px); } }
a.project:hover{ border-color: var(--line-2); }
.project-thumb{ position: relative; aspect-ratio: 16 / 10; margin: 10px 10px 0; border-radius: 18px; overflow: hidden; }
.project-thumb .bar{ height: 22px; background: rgba(0,0,0,.35); display: flex; align-items: center; gap: 5px; padding-inline: 10px; }
.project-thumb .bar i{ width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.project-thumb .shot{ position: absolute; inset: 22px 0 0; background-size: cover; background-position: top center; transition: transform .8s var(--ease); }
a.project:hover .shot{ transform: scale(1.04); }
.project-thumb .wire{ position: absolute; inset: 22px 0 0; padding: 14% 12%; display: grid; gap: 8px; align-content: start; }
.project-thumb .wire span{ height: 8px; border-radius: 6px; background: rgba(255,255,255,.28); }
.project-thumb .wire span:first-child{ width: 55%; height: 14px; background: rgba(255,255,255,.5); }
.project-thumb .wire span:nth-child(2){ width: 80%; }
.project-thumb .wire span:nth-child(3){ width: 40%; }
.project-thumb .soon{
  position: absolute; right: 12px; bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(9,8,13,.6);
  backdrop-filter: blur(8px);
  font-size: .75rem; font-weight: 600;
}
.project-meta{ display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px 20px; }
.project-meta h3{ font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
.project-meta p{ font-size: .82rem; color: var(--dim); margin-top: 4px; }
.project-arrow{ flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .25s, transform .3s var(--ease); }
a.project:hover .project-arrow{ background: var(--grad); border-color: transparent; transform: rotate(-90deg); }
div.project .project-arrow{ opacity: .35; }

/* ---------- Contact ---------- */
.contact-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info h2{ font-size: clamp(2.4rem, 5vw, 4.2rem); }
.next-steps{ margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.next-steps li{ display: flex; gap: 16px; }
.next-steps li > span{
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  font-family: var(--f-display); font-weight: 600; font-size: .9rem;
}
.next-steps strong{ font-family: var(--f-display); font-weight: 600; }
.next-steps p{ color: var(--muted); font-size: .92rem; }
.contact-links{ margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.contact-links a, .contact-links span{ display: inline-flex; align-items: center; gap: 12px; color: var(--muted); transition: color .2s; }
.contact-links a:hover{ color: var(--text); }
.contact-links svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.form-card{ padding: 36px; background: rgba(16,14,22,.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-color: var(--line-2); }
.hp-field,
.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chips{ border: 0; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend{ font-family: var(--f-display); font-weight: 600; margin-bottom: 14px; padding: 0; }
.chips input{ position: absolute; opacity: 0; pointer-events: none; }
.chips label{
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s;
}
.chips label:hover{ color: var(--text); border-color: rgba(255,255,255,.3); }
.chips input:checked + label{ background: var(--text); color: var(--bg); border-color: var(--text); }
.chips input:focus-visible + label{ outline: 2px solid var(--c-peach); outline-offset: 2px; }

.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field{ position: relative; }
.field-wide{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
  padding: 26px 16px 10px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font: inherit;
  font-size: .98rem;
  outline: none;
  resize: vertical;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea{ min-height: 130px; }
.field label{
  position: absolute; left: 17px; top: 18px;
  font-size: .98rem;
  color: var(--dim);
  pointer-events: none;
  transition: all .2s var(--ease);
}
.field input:focus, .field textarea:focus{ border-color: var(--c-rose); background: rgba(255,255,255,.05); box-shadow: 0 0 0 4px rgba(208,71,106,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label{
  top: 8px; font-size: .72rem; color: var(--c-peach); letter-spacing: .02em;
}

.consent{ display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 24px; cursor: pointer; font-size: .88rem; color: var(--muted); }
.consent input{ margin-top: 3px; width: 17px; height: 17px; accent-color: var(--c-rose); flex-shrink: 0; cursor: pointer; }
.consent a{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-note{ margin-top: 16px; min-height: 1.4em; font-size: .92rem; font-weight: 500; color: var(--c-cyan); }

/* ---------- Footer ---------- */
.footer{ padding: 90px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top{ display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-claim{ font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; max-width: 520px; line-height: 1.2; }
.footer-claim a{ font-family: var(--f-serif); font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-cols{ display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols div{ display: flex; flex-direction: column; gap: 10px; }
.footer-cols h4{ font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 6px; }
.footer-cols a, .footer-cols span{ color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer-cols a:hover{ color: var(--text); }
.footer-wordmark{
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 15vw, 13rem);
  line-height: .9;
  letter-spacing: -0.06em;
  text-align: center;
  margin: 70px 0 30px;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom{ display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--dim); }
.footer-bottom p span{ white-space: nowrap; } /* zalomit jen mezi údaji, ne uprostřed adresy */
.footer-bottom a{ text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover{ color: var(--text); }
.cookie-settings{ padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-settings:hover{ color: var(--text); }
.footer-links{ display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Souhlas s měřením návštěvnosti ---------- */
.cookie-bar{
  position: fixed; left: 20px; bottom: 20px; z-index: 80;
  width: min(400px, calc(100vw - 40px));
  padding: 18px 18px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: rgba(16,14,22,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  animation: cookieIn .45s var(--ease);
}
@keyframes cookieIn{ from{ opacity: 0; transform: translateY(12px); } }
.cookie-title{ font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 6px; }
.cookie-text{ color: var(--muted); font-size: .86rem; line-height: 1.5; }
.cookie-text a{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
@media (max-width: 760px){
  .cookie-bar{ left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ---------- Dialogs ---------- */
.dialog{
  border: 1px solid var(--line-2);
  border-radius: 32px;
  background: rgba(18,16,25,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text);
  padding: 52px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 50px 140px -30px rgba(0,0,0,.8);
}
.dialog::backdrop{ background: rgba(5,4,8,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dialog[open]{ animation: dialogIn .45s var(--ease); }
.dialog[open]::backdrop{ animation: fadeIn .35s ease; }
@keyframes dialogIn{ from{ opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fadeIn{ from{ opacity: 0; } }
.dialog-close{
  position: absolute; top: 22px; right: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  transition: transform .3s var(--ease), background .25s;
}
.dialog-close:hover{ transform: rotate(90deg); background: var(--grad); border-color: transparent; }

.privacy-dialog{ width: min(680px, 92vw); }
.privacy-dialog h3{ font-size: 1.8rem; margin-bottom: 8px; padding-right: 50px; }
.privacy-dialog h4{ font-size: 1rem; margin: 24px 0 6px; letter-spacing: -0.01em; }
.privacy-dialog p{ color: var(--muted); font-size: .93rem; }
.privacy-dialog .btn{ margin-top: 32px; }

/* ---------- Portfolio preview dialog ---------- */
.dialog.preview-dialog{
  width: min(1440px, 96vw);
  height: calc(100dvh - 32px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #0e0c13;
}
.preview-dialog[open]{ display: flex; flex-direction: column; }
.pv-bar{
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.pv-dots{ display: flex; gap: 6px; }
.pv-dots i{ width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.pv-dots i:first-child{ background: #ff5f57; }
.pv-dots i:nth-child(2){ background: #febc2e; }
.pv-dots i:nth-child(3){ background: #28c840; }
.pv-title{ flex: 1; min-width: 0; font-family: var(--f-display); font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-devices{ display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.pv-devices button{ display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.pv-devices button svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-devices button[aria-pressed="true"]{ background: var(--text); color: var(--bg); }
.pv-open{ font-size: .85rem; color: var(--muted); white-space: nowrap; transition: color .2s; }
.pv-open:hover{ color: var(--text); }
.pv-close{
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; transition: transform .3s var(--ease), background .25s;
}
.pv-close:hover{ transform: rotate(90deg); background: var(--grad); border-color: transparent; }
.pv-stage{ flex: 1; min-height: 0; display: flex; justify-content: center; background: #1a1720; }
.pv-stage iframe{ width: 100%; height: 100%; border: 0; background: #fbf7f3; }
.pv-stage.is-mobile{ padding: 18px 0; }
.pv-stage.is-mobile iframe{ width: 390px; max-width: 100%; height: min(844px, 100%); border-radius: 28px; box-shadow: 0 0 0 10px #2a2632, 0 30px 80px -20px rgba(0,0,0,.7); }

.preview-badge{
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9,8,13,.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .75rem; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
}
a.project:hover .preview-badge, a.project:focus-visible .preview-badge{ opacity: 1; transform: none; }
@media (hover: none){ .preview-badge{ opacity: 1; transform: none; } }

@media (max-width: 760px){
  .dialog.preview-dialog{ width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border-radius: 0; }
  .pv-dots, .pv-open, .pv-devices{ display: none; }
  .pv-stage.is-mobile{ padding: 0; }
  .pv-stage.is-mobile iframe{ width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
}

/* =========================================================
   Multi-page additions
   ========================================================= */

/* ---------- Nav: services dropdown ---------- */
.has-sub{ position: relative; }
.sub-toggle{ display: flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; font: inherit; }
.sub-toggle svg{ width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.has-sub.open .sub-toggle svg{ transform: rotate(180deg); }
.sub{
  position: absolute;
  top: calc(100% + 14px); left: 50%;
  width: 360px;
  padding: 8px;
  display: grid; gap: 2px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: #13111a;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
}
.sub::before{ content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub.open .sub{ opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (hover: hover) and (min-width: 761px){
  .has-sub:hover .sub, .has-sub:focus-within .sub{ opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
}
.sub a{ display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; transition: background .2s; }
.sub a:hover, .sub a[aria-current="page"]{ background: var(--surface-2); }
.sub-ico{ flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); }
.sub-ico svg{ width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sub b{ display: block; font-family: var(--f-display); font-weight: 600; font-size: .95rem; }
.sub small{ display: block; color: var(--dim); font-size: .8rem; }
.nav-link[aria-current="page"], .nav-link.is-current{ color: var(--text); background: var(--surface-2); }

/* ---------- Service cards as links to subpages ---------- */
.card-link.stretched::after{ content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.service-card:has(.card-link:focus-visible){ outline: 2px solid var(--c-peach); outline-offset: 3px; }
.card-link:focus-visible{ outline: none; }

/* ---------- Page hero (subpages) ---------- */
.page-hero{ padding: 150px 0 60px; }
.crumbs{ display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--dim); margin-bottom: 28px; }
.crumbs a{ color: var(--muted); transition: color .2s; }
.crumbs a:hover{ color: var(--text); }
.crumbs span[aria-hidden]{ color: var(--line-2); }
.page-hero-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.page-hero h1{ font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero .hero-sub{ max-width: 560px; }
.page-visual{ padding: clamp(20px, 3vw, 32px); }
.page-visual .eshop-visual{ padding-top: 0; max-width: none; }
.page-hero--compact{ padding-bottom: 20px; }
.page-hero--compact h1{ font-size: clamp(2.4rem, 5vw, 4.2rem); }

/* ---------- 404 ---------- */
.nf{ min-height: calc(100svh - 80px); display: grid; place-items: center; padding: clamp(110px, 16vh, 150px) 0 clamp(30px, 6vh, 60px); text-align: center; }
.nf-in{ display: flex; flex-direction: column; align-items: center; }
.nf-code{
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(6rem, min(24vw, 30vh), 15rem); line-height: .85; letter-spacing: -.06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: clamp(12px, 3vh, 28px);
}
.nf h1{ font-size: clamp(2.2rem, 5vw, 3.8rem); }
.nf .lead{ margin-inline: auto; }
.nf-links{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: clamp(24px, 5vh, 44px); font-size: .92rem; }
.nf-links a{ color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .2s; }
.nf-links a:hover{ color: var(--text); }
.footer.footer--slim{ padding: 0 0 30px; border-top: 0; }

/* ---------- Benefits (home teaser) ---------- */
.benefits{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit{ padding: 30px; }
.benefit .svc-icon{ width: 46px; height: 46px; border-radius: 14px; margin-bottom: 20px; }
.benefit h3{ font-size: 1.35rem; margin-bottom: 10px; }
.benefit p{ color: var(--muted); font-size: .95rem; }
.section-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.section-actions--center{ justify-content: center; }

/* ---------- Features (service pages) ---------- */
.features{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature{ padding: 28px; }
.feature-num{ display: inline-block; font-family: var(--f-serif); font-style: italic; font-size: 1.8rem; line-height: 1; color: var(--c-peach); margin-bottom: 18px; }
.feature h3{ font-size: 1.2rem; margin-bottom: 8px; }
.feature p{ color: var(--muted); font-size: .93rem; }

/* ---------- Audit steps ---------- */
.audit-steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: as; }
.audit-steps li{ padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); counter-increment: as; }
.audit-steps li::before{ content: '0' counter(as); display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.8rem; color: var(--c-cyan); margin-bottom: 14px; }
.audit-steps h3{ font-size: 1.1rem; margin-bottom: 8px; }
.audit-steps p{ color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq{ max-width: 860px; }
.faq details{ border-top: 1px solid var(--line); }
.faq details:last-child{ border-bottom: 1px solid var(--line); }
.faq summary{
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: '+';
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-weight: 400; font-size: 1.2rem;
  transition: transform .3s var(--ease), background .25s;
}
.faq details[open] summary::after{ transform: rotate(45deg); background: var(--grad); border-color: transparent; }
.faq details p{ color: var(--muted); padding: 0 50px 24px 0; max-width: 720px; }
.faq details a{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mockups: website + workflow ---------- */
.site-mock{ border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.sm-bar{ height: 26px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; background: rgba(0,0,0,.3); }
.sm-bar i{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.sm-body{ padding: 18px; display: grid; gap: 14px; }
.sm-nav{ display: flex; justify-content: space-between; align-items: center; }
.sm-nav b{ width: 60px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.5); }
.sm-nav span{ display: flex; gap: 8px; }
.sm-nav span i{ width: 30px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.2); }
.sm-hero{ height: 130px; border-radius: 14px; background: linear-gradient(135deg, #5c65b4, #ac344f 60%, #fca369); padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.sm-hero i{ width: 55%; height: 12px; border-radius: 6px; background: rgba(255,255,255,.8); }
.sm-hero u{ width: 35%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.45); }
.sm-hero b{ width: 90px; height: 26px; border-radius: 999px; background: #fff; margin-top: 6px; }
.sm-cols{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sm-cols i{ height: 64px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.sm-form{ display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.sm-form i{ flex: 1; height: 10px; border-radius: 5px; background: rgba(255,255,255,.15); }
.sm-form b{ padding: 6px 12px; border-radius: 999px; background: var(--grad); font-size: .7rem; font-weight: 600; }

.flow-mock{ display: grid; gap: 12px; }
.fm-row{ display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--r-md); background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.fm-node{ padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .85rem; white-space: nowrap; }
.fm-arrow{ flex: 1; height: 2px; min-width: 20px; background: var(--grad); position: relative; }
.fm-arrow::after{ content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--c-peach); }
.fm-auto{ padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--c-cyan); border: 1px solid rgba(120,221,233,.35); background: rgba(120,221,233,.08); white-space: nowrap; }
.fm-foot{ display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; font-size: .85rem; color: var(--muted); }
.fm-foot b{ color: var(--text); font-family: var(--f-display); }

@media (max-width: 900px){
  .page-hero-grid{ grid-template-columns: 1fr; gap: 44px; }
  .benefits, .features{ grid-template-columns: repeat(2, 1fr); }
  .audit-steps{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .nav-links{ max-height: calc(100dvh - 110px); overflow-y: auto; }
  .has-sub .sub-toggle{ width: 100%; justify-content: space-between; padding: 14px 18px; font-size: 1.05rem; }
  .sub{ position: static; width: auto; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 8px; display: none; }
  .has-sub.open .sub{ display: grid; transform: none; }
  .sub::before{ display: none; }
  .page-hero{ padding-top: 130px; }
  .benefits, .features, .audit-steps{ grid-template-columns: 1fr; }
  .faq summary{ font-size: 1.02rem; padding: 20px 0; }
  .faq details p{ padding-right: 0; }
  .fm-row{ flex-wrap: wrap; }
  .fm-arrow{ min-width: 12px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; gap: 70px; }
  .hero-visual{ max-width: 460px; }
  .fc-audit{ left: -6%; }
  .fc-flow{ right: -4%; }
  .bento{ grid-template-columns: repeat(2, 1fr); }
  .s-eshop, .s-web, .s-proc, .s-audit{ grid-column: auto; grid-row: auto; }
  .stats-card{ grid-column: span 2; grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .s-audit{ grid-template-columns: 1fr; gap: 28px; }
  .calc-panel{ grid-template-columns: 1fr; }
  .stat:nth-child(3){ border-left: 0; padding-left: 0; }
  .process-grid{ grid-template-columns: 1fr; gap: 24px; }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  /* Na telefonu by 80 % bylo příliš úzké — obsah má jen okraje 24 px, menu 16 px */
  .container{ width: 100%; padding-inline: 24px; }
  .nav{ width: calc(100% - 32px); }
  .nav-cta{ display: none; }
  .nav-toggle{ display: block; }
  .nav{ position: relative; }
  .nav-links{
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--line-2);
    background: #13111a;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links.open{ opacity: 1; transform: none; pointer-events: auto; }
  .nav-link{ padding: 14px 18px; font-size: 1.05rem; }

  .section{ padding: 90px 0; }
  .hero{ padding-top: 130px; }
  .fc-audit{ left: -2%; top: 6%; }
  .fc-flow{ right: -2%; font-size: .75rem; }
  .bento{ grid-template-columns: 1fr; }
  .s-eshop, .s-web, .s-proc, .s-audit, .stats-card{ grid-column: auto; }
  .audit-copy .card-top{ flex-wrap: wrap; }
  .tag-new{ order: 3; }
  .av-row{ grid-template-columns: 100px 1fr 62px; gap: 10px; font-size: .78rem; }
  .audit-visual{ padding: 16px; }

  .cmp-head{ display: none; }
  .cmp-row{ grid-template-columns: 1fr; padding: 16px 0 12px; }
  .cmp-row > *{ padding: 6px 18px; }
  .cmp-row strong{ padding-bottom: 8px; }
  .cmp-yes{ background: none; }
  .cmp-no, .cmp-yes{ padding-left: 48px !important; font-size: .9rem; }
  .cmp-no::before, .cmp-yes::before{ left: 18px; top: 6px; }
  .calc-result{ padding: 22px; }
  .calc-result .btn{ align-self: stretch; }
  .callout{ padding: 24px; }
  .callout .btn{ width: 100%; }
  .mini-checkout{ justify-content: space-between; gap: 6px; padding: 14px; }
  .mc-step{ font-size: .78rem; gap: 6px; }
  .mc-step i{ width: 20px; height: 20px; font-size: .65rem; }
  .mc-line{ display: none; }
  .portfolio-grid{ grid-template-columns: 1fr; }
  .form-card{ padding: 24px; }
  .form-grid{ grid-template-columns: 1fr; }
  .steps-wrap{ padding-left: 24px; }
  .step{ flex-direction: column; gap: 10px; padding: 22px; }
  .dialog{ padding: 64px 22px 28px; border-radius: 24px; }
  .dialog-close{ top: 14px; right: 14px; width: 38px; height: 38px; }
}

/* =========================================================
   Fit each section into one screen on laptops/desktops.
   Spacing and type scale with viewport HEIGHT (vh), capped at the original sizes.
   ========================================================= */
@media (min-width: 761px){
  .section{ padding-block: clamp(40px, 8vh, 120px); }
  .section--tight{ padding-block: clamp(20px, 4vh, 60px); }
  .section-head{ margin-bottom: clamp(18px, 4.2vh, 56px); }
  .section-head h2{ font-size: clamp(1.8rem, min(4.4vw, 6.4vh), 3.6rem); }
  .eyebrow{ margin-bottom: clamp(8px, 1.8vh, 18px); }
  .lead{ margin-top: clamp(8px, 2vh, 20px); font-size: clamp(.94rem, 2.2vh, 1.05rem); }

  /* Hero */
  .hero{ padding: clamp(92px, 15vh, 150px) 0 clamp(24px, 5vh, 70px); }
  .hero h1{ font-size: clamp(2.3rem, min(6.2vw, 9.2vh), 5.6rem); }
  .badge{ margin-bottom: clamp(10px, 3vh, 28px); }
  .hero-sub{ margin-top: clamp(10px, 2.6vh, 26px); font-size: clamp(.98rem, 2.3vh, 1.15rem); }
  .hero-actions{ margin-top: clamp(14px, 3.6vh, 36px); }
  .hero-visual{ height: min(640px, calc(100svh - 180px)); width: auto; max-width: 100%; }

  /* Subpage hero */
  .page-hero{ padding: clamp(92px, 15vh, 150px) 0 clamp(18px, 5vh, 60px); }
  .page-hero h1{ font-size: clamp(2.1rem, min(5.6vw, 8.2vh), 5rem); }
  .page-hero--compact h1{ font-size: clamp(1.9rem, min(4.8vw, 7vh), 4.2rem); }
  .crumbs{ margin-bottom: clamp(10px, 2.6vh, 28px); }
  .page-visual{ padding: clamp(14px, 2.8vh, 32px); }
  .sm-body{ padding: clamp(12px, 2.4vh, 18px); gap: clamp(8px, 1.8vh, 14px); }
  .sm-hero{ height: clamp(76px, 16vh, 130px); }
  .sm-cols i{ height: clamp(36px, 8vh, 64px); }
  .flow-mock{ gap: clamp(8px, 1.6vh, 12px); }
  .fm-row{ padding: clamp(10px, 1.9vh, 14px); }
  .audit-visual{ padding: clamp(14px, 2.8vh, 22px); gap: clamp(8px, 1.8vh, 14px); }

  /* Services: one row of four cards; visual mockups stay on the subpages */
  .service-card{ padding: clamp(18px, 3.4vh, 30px); }
  .card-top{ margin-bottom: clamp(10px, 2.4vh, 28px); }
  .svc-icon{ width: clamp(40px, 6.4vh, 52px); height: clamp(40px, 6.4vh, 52px); margin-bottom: clamp(10px, 2.4vh, 22px); }
  .service-card h3, .s-eshop h3{ font-size: clamp(1.2rem, 3vh, 1.6rem); margin-bottom: clamp(6px, 1.4vh, 12px); }
  .service-card p{ font-size: clamp(.88rem, 2vh, .96rem); }
  .card-link{ padding-top: clamp(12px, 2.6vh, 24px); }
  .bento .eshop-visual, .bento .audit-visual{ display: none; }
  .bento .s-eshop .card-link{ margin-top: auto; }
  .s-audit{ display: flex; flex-direction: column; }
  .s-audit .audit-copy{ height: auto; flex: 1; }

  /* Benefits, features, audit steps */
  .benefit{ padding: clamp(16px, 3.2vh, 30px); }
  .benefit .svc-icon{ margin-bottom: clamp(10px, 2.2vh, 20px); }
  .benefit h3{ font-size: clamp(1.1rem, 2.8vh, 1.35rem); margin-bottom: clamp(6px, 1.2vh, 10px); }
  .section-actions{ margin-top: clamp(14px, 3.4vh, 32px); }
  .feature{ padding: clamp(14px, 2.8vh, 28px); }
  .feature-num{ font-size: clamp(1.3rem, 3.2vh, 1.8rem); margin-bottom: clamp(6px, 1.6vh, 18px); }
  .feature h3{ font-size: clamp(1.02rem, 2.5vh, 1.2rem); margin-bottom: clamp(4px, 1vh, 8px); }
  .feature p{ font-size: clamp(.86rem, 1.9vh, .93rem); }
  .audit-steps li{ padding: clamp(14px, 2.8vh, 26px); }
  .audit-steps li::before{ font-size: clamp(1.3rem, 3.2vh, 1.8rem); margin-bottom: clamp(6px, 1.6vh, 14px); }

  /* Process: image beside a 2×3 grid of steps */
  .steps-wrap{ padding-left: 0; }
  .steps-progress{ display: none; }
  .steps{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.6vh, 14px); }
  .step{ gap: 14px; padding: clamp(12px, 2.3vh, 22px); border-radius: var(--r-md); }
  .step-num{ font-size: clamp(1.3rem, 3vh, 1.8rem); min-width: 30px; }
  .step h3{ font-size: clamp(1rem, 2.4vh, 1.2rem); margin-bottom: 4px; }
  .step p{ font-size: clamp(.82rem, 1.85vh, .9rem); line-height: 1.5; }

  /* Manifesto */
  .manifesto{ padding: clamp(16px, 4vh, 40px) 0 clamp(24px, 6vh, 60px); }
  .manifesto-text{ font-size: clamp(1.5rem, min(4.2vw, 6.2vh), 3.4rem); }

  /* Comparison table */
  .cmp-row{ grid-template-columns: .8fr 1.3fr 1.3fr; }
  .cmp-row > *{ padding: clamp(8px, 1.7vh, 18px) 18px; font-size: clamp(.86rem, 2vh, .95rem); }
  .cmp-head > *{ padding-block: clamp(8px, 1.6vh, 16px); }
  .cmp-no, .cmp-yes{ padding-left: 46px !important; }
  .cmp-no::before, .cmp-yes::before{ left: 16px; top: calc(clamp(8px, 1.7vh, 18px) + 1px); }

  /* Calculator */
  .calc{ padding: clamp(18px, 3.6vh, 44px); }
  .calc-top{ margin-bottom: clamp(12px, 3vh, 32px); }
  .calc-top h3{ font-size: clamp(1.4rem, 4vh, 2.4rem); }
  .calc-inputs{ gap: clamp(10px, 2.6vh, 22px); }
  .range{ gap: clamp(6px, 1.2vh, 10px); }
  .calc-result{ padding: clamp(16px, 3vh, 28px); }
  .cr-big{ font-size: clamp(2rem, 6vh, 3.8rem); margin: 4px 0 clamp(8px, 2vh, 18px); }
  .cr-legend{ margin: clamp(8px, 1.6vh, 14px) 0 clamp(10px, 2.2vh, 20px); }
  .cr-note{ margin-bottom: clamp(10px, 2.4vh, 22px); }
  .callout{ padding: clamp(18px, 3.4vh, 28px) clamp(20px, 3vw, 32px); }

  /* Portfolio tiles: thumbnail height follows the screen height */
  .project-thumb{ aspect-ratio: auto; height: clamp(110px, 22vh, 240px); }
  .project-meta{ padding: clamp(10px, 2vh, 18px) 20px clamp(12px, 2.2vh, 20px); }
  .portfolio-grid--page:has(> .project:nth-child(7)) .project-thumb{ height: clamp(96px, 17vh, 200px); }

  /* FAQ */
  .faq summary{ padding-block: clamp(12px, 2.6vh, 24px); font-size: clamp(1rem, 2.4vh, 1.15rem); }

  /* Contact */
  .contact-info h2{ font-size: clamp(1.9rem, min(4.4vw, 6.4vh), 3.8rem); }
  .next-steps{ margin-top: clamp(14px, 3.4vh, 40px); gap: clamp(8px, 2vh, 22px); }
  .contact-links{ margin-top: clamp(14px, 3.4vh, 40px); padding-top: clamp(12px, 2.6vh, 28px); flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }
  .form-card{ padding: clamp(18px, 3.6vh, 36px); }
  .chips{ margin-bottom: clamp(12px, 3vh, 30px); }
  .chips legend{ margin-bottom: clamp(8px, 1.6vh, 14px); }
  .chips label{ padding: clamp(6px, 1.2vh, 10px) 16px; font-size: .88rem; }
  .form-grid{ gap: clamp(8px, 1.6vh, 14px); }
  .field input, .field textarea{ padding: clamp(20px, 3.4vh, 26px) 14px clamp(6px, 1.2vh, 10px); }
  .field label{ top: clamp(13px, 2.4vh, 18px); left: 15px; font-size: .94rem; }
  .field input:focus + label, .field input:not(:placeholder-shown) + label,
  .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label{ top: clamp(4px, 1vh, 8px); }
  .field textarea{ min-height: clamp(70px, 13vh, 130px); }
  .field-phone{ grid-column: 1 / -1; }
  .consent{ margin: clamp(10px, 2.4vh, 22px) 0 clamp(10px, 2.6vh, 24px); }
  .form-card .btn-block{ padding-block: clamp(11px, 2vh, 15px); }
  .form-note{ margin-top: clamp(6px, 1.4vh, 16px); }

  /* Footer */
  .footer{ padding-top: clamp(40px, 9vh, 90px); }
  .footer-wordmark{ font-size: clamp(3.5rem, min(15vw, 24vh), 13rem); margin: clamp(22px, 7vh, 70px) 0 clamp(12px, 3vh, 30px); }
}

/* Obsah má 75 % šířky stránky, takže 4 karty služeb vedle sebe se vejdou až od 1280 px; do té doby 2 × 2 */
@media (min-width: 901px){
  .bento{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .s-eshop, .s-web, .s-proc, .s-audit{ grid-column: span 1; grid-row: auto; }
}
@media (min-width: 1280px){
  .bento{ grid-template-columns: repeat(4, 1fr); }
  .service-card p{ line-height: 1.5; }
  .stats-card{ grid-column: span 4; }
}

/* Užší obrazovky (obsah do ~975 px): formulář dostane víc místa, ať štítky služeb zůstanou v jednom řádku */
@media (min-width: 901px) and (max-width: 1279px){
  .contact-grid{ grid-template-columns: .74fr 1.26fr; gap: 36px; }
  .chips label{ padding-inline: 13px; }
  /* Obsah je tu užší (80 % stránky) — sloupce a písmo přepočítané, ať se sekce dál vejdou na výšku */
  .hero-grid{ grid-template-columns: 1.25fr .75fr; gap: 36px; }
  .page-hero-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .fm-row{ gap: 7px; flex-wrap: wrap; }
  .fm-node{ padding: 6px 9px; font-size: .78rem; }
  .fm-auto{ padding: 3px 8px; font-size: .66rem; }
  .fm-arrow{ min-width: 12px; }
  .hero h1{ font-size: clamp(2.2rem, min(5vw, 8vh), 4.4rem); }
  .page-hero h1{ font-size: clamp(2rem, min(4.4vw, 7.2vh), 4.2rem); }
  .section-head--row > div{ flex-basis: 380px; }
  .section-head--row .lead{ flex-basis: 340px; }
  .process-grid{ grid-template-columns: .62fr 1.38fr; }
  .cmp-row > *{ padding-block: clamp(6px, 1.3vh, 14px); font-size: clamp(.82rem, 1.9vh, .92rem); }
  .contact-info h2{ font-size: clamp(1.8rem, min(3.6vw, 5.8vh), 3.2rem); }
  .section{ padding-block: clamp(32px, 5vh, 90px); }
  .section-head{ margin-bottom: clamp(16px, 3vh, 40px); }
  .section-head:not(.section-head--row) h2{ font-size: clamp(1.8rem, min(3.6vw, 5.6vh), 3.2rem); max-width: 900px; }
  /* Karty služeb 2 × 2: ikona v řádku s číslem, ať se sekce vejde na výšku obrazovky */
  .service-card{ padding: clamp(16px, 2.6vh, 26px); }
  .service-card:not(.s-audit), .s-audit .audit-copy{ display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 14px; }
  .service-card .svc-icon{ grid-column: 1; grid-row: 1; margin: 0; }
  .service-card .card-top{ grid-column: 2; grid-row: 1; margin: 0; }
  .service-card h3{ grid-column: 1 / -1; margin-top: clamp(10px, 2vh, 16px); }
  .service-card p, .service-card .card-link{ grid-column: 1 / -1; }
  .service-card .card-link{ align-self: end; margin-top: 0; }
  .field textarea{ min-height: clamp(56px, 9vh, 130px); }
  .chips{ margin-bottom: clamp(10px, 2.2vh, 30px); }
  #kontakt.section{ padding-block: clamp(32px, 6vh, 120px); }
}

/* Velmi nízká okna (do 640 px výšky): sekce o něco zhuštěné, ať se vejdou na obrazovku */
@media (min-width: 1280px) and (max-height: 640px){
  .section{ padding-block: clamp(28px, 5vh, 90px); }
  .section-head{ margin-bottom: clamp(14px, 2.6vh, 40px); }
  .process-grid{ grid-template-columns: .62fr 1.38fr; }
  .next-steps p{ display: none; }
  .field textarea{ min-height: clamp(40px, 6vh, 130px); }
  .service-card{ padding: clamp(14px, 2.4vh, 26px); }
  .service-card p{ font-size: .86rem; }
  .cmp-row > *{ padding-block: clamp(5px, 1.1vh, 12px); }
}

/* Nejužší počítačové šířky (obsah 720–820 px): ještě víc zhuštěné, ať se sekce vejdou na výšku */
@media (min-width: 901px) and (max-width: 1091px){
  .hero h1{ font-size: clamp(2rem, min(4.2vw, 7.2vh), 3.8rem); }
  .next-steps p{ display: none; }
  .next-steps{ gap: clamp(8px, 1.6vh, 16px); }
  .chips label{ padding-inline: 10px; font-size: .82rem; }
  .field textarea{ height: clamp(64px, 11vh, 130px); min-height: 0; }
  .contact-info .lead{ font-size: .95rem; }
  .cmp-row{ grid-template-columns: .7fr 1.15fr 1.15fr; }
  .cmp-row > *{ padding-inline: 14px; font-size: clamp(.78rem, 1.8vh, .88rem); }
  .service-card p, .step p{ font-size: clamp(.8rem, 1.8vh, .88rem); }
  .section-head--row .lead{ font-size: .95rem; flex-basis: 300px; }
  .section-head--row > div{ flex-basis: 340px; }
  .page-hero h1{ font-size: clamp(1.9rem, min(4.2vw, 6.6vh), 3.8rem); }
  .page-hero-grid{ grid-template-columns: 1.15fr .85fr; }
  .mini-shop{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ms-item{ min-width: 0; }
  .mini-checkout{ gap: 6px; padding: 12px; }
  .mc-step{ font-size: .76rem; gap: 6px; }
  .mc-step i{ width: 20px; height: 20px; font-size: .65rem; }
  .mc-line{ min-width: 8px; }
  .portfolio-grid .project-thumb{ height: clamp(96px, 18vh, 200px); }
}

@media (min-width: 1092px){
  .form-grid{ grid-template-columns: repeat(3, 1fr); }
  .field-phone{ grid-column: auto; }
  /* 4 sloupce až při větším počtu projektů; do šesti vypadají lépe tři */
  .portfolio-grid--page:has(> .project:nth-child(7)){ grid-template-columns: repeat(4, 1fr); }
}

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