/* ===== Základ ===== */
:root {
  --bg: #0f0e17;
  --bg-soft: #171527;
  --surface: #ffffff;
  --surface-soft: #f5f4fa;
  --text: #1c1b29;
  --text-soft: #5c5a6e;
  --text-inverse: #fffffe;
  --text-inverse-soft: #a7a5b8;
  --accent: #6c5ce7;
  --accent-soft: #a29bfe;
  --border: #e5e3f0;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Tlačítka ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--small {
  padding: 8px 20px;
  font-size: 14px;
  background: var(--accent);
  color: var(--text-inverse);
}

/* ===== Navigace ===== */
/* Nahoře je lišta schovaná — hero má vlastní logo i CTA.
   Po odscrollování se vysune a logo/CTA do ní „přiletí" z hero. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.nav:not(.is-visible) {
  pointer-events: none;
}

.nav.is-visible {
  transform: translateY(0);
}

.nav .nav__logo {
  opacity: 0;
  transform: translate(34vw, 52px) scale(1.9);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.nav.is-visible .nav__logo {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.nav .nav__links a:not(.btn) {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease 0.25s, transform 0.3s ease 0.25s;
}

.nav.is-visible .nav__links a:not(.btn) {
  opacity: 1;
  transform: none;
}

.nav .nav__links .btn {
  opacity: 0;
  transform: translate(-28vw, 56px) scale(1.3);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.nav.is-visible .nav__links .btn {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav .nav__logo,
  .nav .nav__links a:not(.btn),
  .nav .nav__links .btn {
    transition: opacity 0.2s ease;
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-inverse);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__logo-c {
  color: var(--accent-soft);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  color: var(--text-inverse-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--text-inverse);
}

.nav__links .btn {
  color: var(--text-inverse);
}

/* ===== Hero ===== */
.hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #2b2650 0%, var(--bg) 60%);
  color: var(--text-inverse);
  padding: 88px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero__eyebrow[hidden] {
  display: none;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid rgba(162, 155, 254, 0.3);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 36px;
}

.hero__title {
  font-size: clamp(56px, 12vw, 140px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 28px;
}

/* Písmeno C, které se "konfiguruje" */
.hero__c {
  display: inline-block;
  color: var(--c-color, #6c5ce7);
  transition:
    color 0.6s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    text-shadow 0.6s ease;
  transform-origin: center 60%;
}

/* Varianty stylu písmene C — přepíná JS */
.hero__c.c-style-0 {
  font-family: var(--font);
  font-weight: 800;
  font-style: normal;
  -webkit-text-stroke: 0;
}

.hero__c.c-style-1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-style: normal;
  -webkit-text-stroke: 0;
}

.hero__c.c-style-2 {
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-weight: 700;
  font-style: normal;
  -webkit-text-stroke: 0;
}

.hero__c.c-style-3 {
  font-family: var(--font);
  font-weight: 800;
  font-style: normal;
  color: transparent !important;
  -webkit-text-stroke: 3px var(--c-color, #6c5ce7);
}

.hero__c.c-style-4 {
  font-family: Georgia, serif;
  font-weight: 700;
  font-style: italic;
  -webkit-text-stroke: 0;
}

.hero__c.is-switching {
  animation: cPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cPop {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(0.82) rotate(-6deg); }
  70%  { transform: scale(1.12) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.hero__rest {
  color: var(--text-inverse);
  transition: color 0.5s ease, -webkit-text-stroke 0.5s ease;
}

/* --- Fáze Návrh: celý nadpis jako wireframe --- */
.hero__word {
  position: relative;
  display: inline-block;
}

.hero[data-phase="navrh"] .hero__c,
.hero[data-phase="navrh"] .hero__rest {
  color: transparent !important;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.45);
}

.hero__word::after {
  content: "";
  position: absolute;
  inset: -12px -24px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero[data-phase="navrh"] .hero__word::after {
  opacity: 1;
}

.hero__handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero__handle--tl { top: -17px; left: -29px; }
.hero__handle--tr { top: -17px; right: -29px; }
.hero__handle--bl { bottom: -17px; left: -29px; }
.hero__handle--br { bottom: -17px; right: -29px; }

.hero[data-phase="navrh"] .hero__handle {
  opacity: 1;
}

/* ===== Procesní záložky: Data → Návrh → Konfigurátor ===== */
.hero__process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pstep {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-inverse-soft);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 4px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pstep:hover {
  color: var(--text-inverse);
}

.pstep.is-active {
  color: var(--text-inverse);
  border-bottom-color: var(--accent-soft);
}

.pstep__arrow {
  color: var(--text-inverse-soft);
  opacity: 0.5;
  font-size: 15px;
}

/* ===== Panel — obsah podle fáze ===== */
.hero__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(660px, 100%);
  min-height: 150px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px 28px;
}

.hero__view {
  display: none;
  width: 100%;
}

.hero[data-phase="data"] .hero__view--data {
  display: block;
}

.hero[data-phase="navrh"] .hero__view--navrh {
  display: flex;
  justify-content: center;
}

.hero[data-phase="konfigurator"] .hero__view--konfigurator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 40px;
}

/* --- Fáze Data: scrollující datové podklady --- */
.datastream {
  height: 118px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.datastream__track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 13px;
  text-align: center;
  color: var(--accent-soft);
  animation: dataScroll 14s linear infinite;
}

@keyframes dataScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-50% - 5px)); }
}

/* --- Fáze Návrh: wireframe skica --- */
.wf {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: min(420px, 100%);
}

.wf__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.wf__line {
  height: 10px;
  width: var(--w, 60%);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.wf__chiprow {
  display: flex;
  gap: 8px;
}

.wf__chiprow span {
  width: 44px;
  height: 20px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

.wf__preview {
  width: 120px;
  min-height: 104px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.2) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.2) 50%, transparent calc(50% + 0.5px));
}

.hero__panel-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__panel-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-inverse-soft);
}

.hero__chips {
  display: flex;
  gap: 8px;
}

.chip {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-inverse-soft);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-inverse);
}

.chip.is-active {
  background: var(--text-inverse);
  color: var(--bg);
  border-color: var(--text-inverse);
}

.hero__swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.swatch:hover {
  transform: scale(1.15);
}

.swatch.is-active {
  outline-color: var(--text-inverse);
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 19px;
  color: var(--text-inverse-soft);
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Sekce obecně ===== */
section {
  padding: 96px 0;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 56px;
}

/* ===== Problémy ===== */
.problems {
  background: var(--surface-soft);
  /* prostor pro číslo +65 %, které přesahuje z 3D sekce nahoru */
  padding-bottom: 190px;
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.14);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.14), rgba(162, 155, 254, 0.22));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}


.card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card__text {
  font-size: 15px;
  color: var(--text-soft);
  flex: 1;
  margin-bottom: 14px;
}

.card__source {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  margin-bottom: 16px;
}

.card__source:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.5;
  cursor: default;
}

/* ===== Proces tvorby ===== */
.process {
  background: var(--surface-soft);
}

.process__list {
  list-style: none;
  max-width: 720px;
}

.process__step {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
}

.process__step:last-child {
  padding-bottom: 0;
}

/* Spojnice mezi kroky */
.process__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: var(--border);
}

/* Budoucí kroky — neutrální, teprve přijdou na řadu */
.process__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Aktivní první krok — jemný glow */
.process__step--active .process__num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
  animation: stepGlow 2.6s ease-in-out infinite;
}

@keyframes stepGlow {
  0%, 100% {
    box-shadow: 0 0 0 5px rgba(108, 92, 231, 0.12), 0 6px 20px rgba(108, 92, 231, 0.35);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(108, 92, 231, 0.18), 0 6px 30px rgba(108, 92, 231, 0.55);
  }
}

.process__cta {
  margin-top: 16px;
  align-self: flex-start;
}

.process__body {
  padding-top: 8px;
}

.process__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.process__text {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 560px;
}

/* ===== 3D vizualizace ===== */
.viz {
  background: var(--bg);
  color: var(--text-inverse);
}

.viz .section__lead {
  color: var(--text-inverse-soft);
}

/* Statistika s citací na začátku sekce */
.viz {
  padding-top: 0;
}

.viz__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
  max-width: 720px;
}

.viz__stat-number {
  display: block;
  font-size: clamp(88px, 15vw, 170px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent);
  /* číslo přesahuje nahoru do světlé sekce (cca 4/5 výšky) */
  margin-top: -0.76em;
  margin-bottom: 8px;
}

.viz__stat-title {
  display: block;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-inverse);
  line-height: 1.2;
}

.viz__stat-text {
  font-size: 15px;
  color: var(--text-inverse-soft);
  line-height: 1.55;
}

.viz__stat-text a {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.viz__stat-text a:hover {
  text-decoration: underline;
}

.viz__wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* grid buňky se smí zmenšit pod šířku obsahu (canvas má pevné px) */
.viz__wrap > * {
  min-width: 0;
}

.viz__canvas {
  position: relative;
  height: auto;
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 90% 80% at 50% 110%, rgba(108, 92, 231, 0.22) 0%, transparent 60%),
    linear-gradient(to bottom, #1b1930, #12101f);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.viz__canvas:active {
  cursor: grabbing;
}

.viz__canvas canvas {
  display: block;
}

.viz__hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-inverse-soft);
  background: rgba(15, 14, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 14px;
  pointer-events: none;
}

.viz__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse-soft);
  font-size: 15px;
  padding: 24px;
  text-align: center;
}

.viz__controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.viz__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.viz__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-inverse-soft);
}

.viz__label output {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-inverse);
  font-variant-numeric: tabular-nums;
}

.viz__controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Příplatkové barvy mají u sebe symbol + */
#ctrlColor .swatch {
  position: relative;
}

#ctrlColor .swatch[data-surcharge]::after {
  content: "+";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

/* Orientační cena */
.viz__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.viz__price-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-inverse-soft);
}

.viz__price-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}


/* ===== Cena ===== */
.pricing {
  background: var(--surface);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

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

.price-card {
  position: relative;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.15);
}

.price-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 48px rgba(108, 92, 231, 0.25);
}

.price-card--featured {
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.15);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 4px 12px;
}

.price-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.price-card__price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 14px;
}

.price-card__text {
  font-size: 15px;
  color: var(--text-soft);
}

.pricing__factors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 24px;
}

.pricing__factors-label {
  font-size: 15px;
  font-weight: 700;
}

.pricing__factors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.pricing__factors-list li {
  font-size: 14px;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

.pricing__note {
  font-size: 15px;
  color: var(--text-soft);
}

.pricing__note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.pricing__note a:hover {
  text-decoration: underline;
}

/* ===== Reference ===== */
.testimonials {
  background: var(--bg-soft);
  color: var(--text-inverse);
}

.testimonials .section__lead {
  color: var(--text-inverse-soft);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.testimonial__quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-inverse-soft);
  flex: 1;
  margin-bottom: 24px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial__author strong {
  display: block;
  font-size: 15px;
}

.testimonial__author span {
  font-size: 13px;
  color: var(--text-inverse-soft);
}

.testimonial__link {
  color: var(--accent-soft);
  text-decoration: none;
}

.testimonial__link:hover {
  text-decoration: underline;
}

/* Reference s obrázkem */
.testimonial--feature {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.testimonial__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-inverse);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial__media:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.testimonial__media img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* ===== Kontakt ===== */
.contact {
  background: var(--surface);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__list {
  list-style: none;
}

.contact__list li {
  margin-bottom: 20px;
}

.contact__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 2px;
}

.contact__list a {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact__list a:hover {
  text-decoration: underline;
}

.contact__form {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.contact__form input,
.contact__form textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact__form-note {
  font-size: 14px;
  font-weight: 600;
  color: #00b894;
}

/* ===== Patička ===== */
.footer {
  background: var(--bg);
  color: var(--text-inverse-soft);
  padding: 28px 0;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Responzivita ===== */
@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .nav__links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 64px 0 64px;
  }

  .hero__eyebrow {
    font-size: 12px;
    padding: 5px 14px;
    margin-bottom: 28px;
  }

  .hero__title {
    font-size: clamp(40px, 13.5vw, 140px);
    margin-bottom: 24px;
  }

  /* Wireframe rámeček blíž k textu, ať nepřetéká z displeje */
  .hero__word::after {
    inset: -8px -12px;
  }

  .hero__handle {
    width: 7px;
    height: 7px;
  }

  .hero__handle--tl { top: -12px; left: -16px; }
  .hero__handle--tr { top: -12px; right: -16px; }
  .hero__handle--bl { bottom: -12px; left: -16px; }
  .hero__handle--br { bottom: -12px; right: -16px; }

  .hero__process {
    gap: 8px;
    margin-bottom: 14px;
  }

  .pstep {
    font-size: 14px;
    padding: 4px 2px;
  }

  .pstep__arrow {
    font-size: 13px;
  }

  .hero__panel {
    padding: 16px;
    min-height: 168px;
  }

  .hero[data-phase="konfigurator"] .hero__view--konfigurator {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .hero__panel-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero__chips {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  .swatch {
    width: 30px;
    height: 30px;
  }

  .datastream {
    height: 136px;
  }

  .datastream__track {
    font-size: 11px;
    gap: 12px;
  }

  @keyframes dataScroll {
    from { transform: translateY(0); }
    to   { transform: translateY(calc(-50% - 6px)); }
  }

  .wf {
    gap: 16px;
  }

  .wf__preview {
    width: 92px;
    min-height: 96px;
  }

  .wf__chiprow span {
    width: 36px;
    height: 18px;
  }

  .hero__subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 320px;
  }

  section {
    padding: 64px 0;
  }

  .problems {
    padding-bottom: 140px;
  }

  .section__lead {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .card,
  .testimonial {
    padding: 26px 22px;
  }

  .viz__wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .viz__canvas {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__form {
    padding: 24px 20px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Velmi úzké displeje */
@media (max-width: 360px) {
  .pstep {
    font-size: 13px;
  }

  .hero__process {
    gap: 6px;
  }

  .datastream__track {
    font-size: 10px;
  }
}
