:root {
  --paper: #111214;
  --paper-dark: #18191c;
  --ink: #f2efe9;
  --ink-soft: #a9a6a0;
  --accent: #e0b04a;
  --accent-dark: #c99a35;
  --accent-on-dark: #e0b04a;  /* akcent na tmavém pozadí */
  --accent-soft: rgba(224, 176, 74, .12);    /* podklad ikon */
  --line: #2c2d31;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

a { color: var(--accent-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.hidden { display: none; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font: 600 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-small { padding: 8px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(17, 18, 20, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.logo em { font-style: normal; color: var(--accent); font-weight: 500; }
.logo-disc {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle, var(--accent) 0 22%, var(--ink) 23% 100%);
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #1d1a17 0 2px, #2a2622 2px 4px),
    #1d1a17;
  box-shadow: var(--shadow), inset 0 0 0 6px #111;
  animation: spin 8s linear infinite;
}
.vinyl::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.12) 25%, transparent 32% 70%, rgba(255,255,255,.08) 75%, transparent 82%);
}
.vinyl-label {
  position: absolute; inset: 33%; border-radius: 50%;
  background: radial-gradient(circle, var(--paper) 0 6%, var(--accent) 7% 100%);
  display: grid; place-items: center;
}
.vinyl-label span {
  font-family: var(--font-display); color: var(--paper); font-weight: 700;
  font-size: clamp(.8rem, 2vw, 1.05rem); transform: translateY(-140%);
}
.bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.2) 60%, rgba(255,255,255,0));
  border: 1px solid rgba(18,20,23,.15);
  animation: float 6s ease-in-out infinite;
}
.b1 { width: 46px; height: 46px; top: 4%; right: 2%; }
.b2 { width: 26px; height: 26px; top: 22%; right: -4%; animation-delay: 1.2s; }
.b3 { width: 34px; height: 34px; bottom: 8%; left: -2%; animation-delay: 2.4s; }
.b4 { width: 18px; height: 18px; bottom: 26%; left: -6%; animation-delay: .6s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .vinyl, .bubble { animation: none; } }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-dark); }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; margin-top: -4px; margin-bottom: 36px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature-icon svg, .visit-icons svg { width: 26px; height: 26px; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
.steps li { position: relative; }
.steps p { color: var(--ink-soft); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 700 1.3rem var(--font-display); margin-bottom: 14px;
}

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; }
.price-card { position: relative; background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 2px solid transparent; }
.price-card-featured { border-color: var(--accent); }
.price { font: 700 2.6rem var(--font-display); margin: 4px 0 16px; }
.price small { font: 500 1rem var(--font-body); color: var(--ink-soft); }
.price-card ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); }
.badge { position: absolute; top: -13px; right: 24px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

.calculator { margin-top: 40px; max-width: 820px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 32px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.calculator #calc-count { width: 120px; }
.calc-result { margin: 24px 0 8px; border-top: 1px solid rgba(246,239,227,.2); padding-top: 16px; }
.calc-result div { display: flex; justify-content: space-between; padding: 4px 0; }
.calc-result dt, .calc-result dd { margin: 0; }
.calc-total { font: 700 1.5rem var(--font-display); color: var(--accent-on-dark); }
.note { font-size: .88rem; opacity: .75; margin: 8px 0 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--accent); font-weight: 700; }

/* YouTube */
.yt { background: var(--paper); }
.yt .eyebrow { color: var(--accent); }
.yt-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.yt-embed { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.play { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 1.6rem; padding-left: 5px; }

/* FAQ */
details { background: #fff; border-radius: 10px; margin-bottom: 12px; padding: 0 22px; box-shadow: 0 2px 8px rgba(18,20,23,.05); }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--ink-soft); }

/* Form */
.order-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.order-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,176,74,.2); }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: .95rem; margin-bottom: 8px; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-group label, .order-form .checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.order-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 40px 0; font-size: .92rem; }
.site-footer a { color: var(--accent-on-dark); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .muted { color: rgba(246,239,227,.6); }

/* Simple page (podmínky, děkujeme) */
.page { padding: 64px 0 96px; }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .yt-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; order: -1; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .features, .steps, .pricing, .form-grid { grid-template-columns: 1fr; }
  .logo em { display: none; }
  .order-form, .calculator, .price-card { padding: 22px; }
}

/* Logo */
.logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.yt-logo { justify-self: center; display: block; width: min(320px, 80%); }
.yt-logo img { width: 100%; display: block; border-radius: 50%; box-shadow: var(--shadow); transition: transform .4s; }
.yt-logo:hover img { transform: rotate(-8deg) scale(1.03); }

/* Návštěva */
.visit { background: var(--ink); color: var(--paper); }
.visit .eyebrow { color: var(--accent-on-dark); }
.visit-inner { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; max-width: 900px; }
.visit-icons { display: grid; gap: 14px; }
.visit p { font-size: 1.1rem; max-width: 36em; }
.muted-light { color: rgba(246,239,227,.65); font-size: .95rem !important; }
@media (max-width: 600px) {
  .visit-inner { grid-template-columns: 1fr; gap: 20px; }
  .visit-icons { display: flex; justify-content: center; gap: 16px; }
}
.visit-icons span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(224,176,74,.35); color: var(--accent-on-dark); }

/* Hero – točící se logo */
.vinyl-logo { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow); animation-duration: 20s; }

/* Hero – logo: točí se jen deska, přenoska stojí */
.turntable { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.turntable img { position: absolute; inset: 0; width: 100%; height: 100%; }
.turntable-disc { animation: spin 6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .turntable-disc { animation: none; } }

/* Princip ultrazvuku */
.principle-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: start; }
.principle-steps { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: 18px; }
.principle-steps li { counter-increment: p; position: relative; padding-left: 52px; color: var(--ink-soft); }
.principle-steps li strong { display: block; color: var(--ink); }
.principle-steps li::before {
  content: counter(p); position: absolute; left: 0; top: 2px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 700 1rem var(--font-display);
}
.prewash { grid-column: 1 / -1; background: #fff; border-left: 5px solid var(--accent); border-radius: 10px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(18,20,23,.05); }
.prewash h3 { margin-bottom: .3em; }
.prewash p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .principle-inner { grid-template-columns: 1fr; } }
.principle { padding-top: 16px; }


/* Výběr Balíkovny */
.shipping-fields { display: grid; gap: 10px; }
.shipping-fields[hidden] { display: none; }
.field-label { margin: 0; font-weight: 500; font-size: .95rem; }
.pickup-open { justify-self: start; }
.pickup-chosen { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 10px; background: var(--paper); border: 1.5px solid var(--accent); }
.pickup-chosen[hidden] { display: none; }
.link-btn { background: none; border: none; padding: 0; color: var(--accent-dark); font: 600 .95rem var(--font-body); text-decoration: underline; cursor: pointer; }
.field-error { margin: 0; color: #b42318; font-size: .9rem; font-weight: 500; }
.picker-dialog { width: min(920px, 100vw - 24px); height: min(820px, 100dvh - 24px); max-width: none; max-height: none; padding: 0; border: none; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.picker-dialog[open] { display: flex; flex-direction: column; }
.picker-dialog::backdrop { background: rgba(18,20,23,.6); }
.picker-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.picker-close { background: none; border: none; color: var(--paper); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.picker-dialog iframe { flex: 1; width: 100%; border: 0; }
[hidden] { display: none !important; }

/* Úvod: jen točící se deska z loga (bez přenosky a šasi) */
.turntable { border-radius: 50%; background: #fff; }
.turntable .turntable-disc { inset: 0; left: 0; top: 0; width: 100%; height: 100%; box-shadow: none; }

/* Tip v sekci balení */
.tip { margin-top: 28px; background: #fff; border-left: 5px solid var(--accent); border-radius: 10px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(18,20,23,.05); }
.tip h3 { margin-bottom: .3em; }
.tip p { margin: 0 0 .6em; color: var(--ink-soft); }
.tip p:last-child { margin-bottom: 0; }
.yt p { max-width: 36em; }

/* Adresa pro zaslání */
.ship-address { margin-top: 28px; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 22px 26px; }
.ship-address .eyebrow { color: var(--accent-on-dark); margin-bottom: 8px; }
.ship-address address { font: 700 1.3rem/1.4 var(--font-display); font-style: normal; }
.ship-address .muted { color: rgba(246,239,227,.65); font-size: .9rem; margin: 10px 0 0; }

/* Telefon s předvolbou */
.field { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.phone-field { display: flex; }
.phone-field select {
  font: inherit; font-weight: 400; padding: 12px 10px; border: 1.5px solid var(--line); border-right: none;
  border-radius: 10px 0 0 10px; background: var(--paper-dark); color: var(--ink); cursor: pointer;
}
.phone-field input { border-radius: 0 10px 10px 0; min-width: 0; }
.phone-field select:focus { outline: none; border-color: var(--accent); }

/* Nápověda u e-mailu */
.field-hint { margin: 0; font-size: .88rem; font-weight: 400; color: var(--ink-soft); }
.field-hint.is-error { color: #b42318; font-weight: 500; }
.field-hint button { font-size: .88rem; }
input.is-invalid { border-color: #b42318; }

/* Ceník: nadpis, karty i kalkulačka ve stejném vycentrovaném sloupci */
.medium { max-width: 860px; }
.pricing, .calculator { max-width: none; }
legend { padding: 0; }
input[type=radio], input[type=checkbox] { margin: 0; }

/* Pole ve stejném řádku nesmí poskočit, když se u sousedního objeví nápověda */
.field, .order-form label { align-content: start; }

/* Ceník – tři cenové hladiny */
.pricing { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { padding: 28px 24px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* Výběr Balíkovny – spolehlivá výška i ve starších prohlížečích, na mobilu přes celou obrazovku */
.picker-dialog { height: calc(100vh - 24px); height: min(820px, 100dvh - 24px); }
.picker-dialog iframe { height: 100%; min-height: 0; }
@media (max-width: 600px) {
  .picker-dialog {
    width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
    margin: 0; inset: 0; border-radius: 0;
  }
}
html.dialog-open { overflow: hidden; }
.ship-intro { margin: 0 0 12px; color: rgba(246,239,227,.85); }
.order-form .checkbox { align-items: flex-start; }
.order-form .checkbox input { flex-shrink: 0; margin-top: 3px; }

/* Doplňková služba – fólie */
.price-extra { margin: 20px 0 0; color: var(--ink-soft); font-size: .97rem; }
.calc-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.calc-result div[hidden] { display: none; }

/* Nadpisy v Archivu – rozšířená šířka jako na obalech desek, v kartách užší kvůli zalamování */
h1, h2 { font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; }
h3, .price, .logo { font-weight: 700; font-stretch: 100%; }
.logo { white-space: nowrap; }
@media (max-width: 600px) { .logo { font-size: .95rem; } }

/* Tmavý vzhled se zlatou – plochy, které jsou jinak bílé nebo „inkoustové“ */
.feature, .price-card, details, .order-form, .tip, .prewash { background: #1b1c1f; }
.calculator, .ship-address, .visit, .site-footer, .picker-head { background: #0a0a0b; color: var(--ink); }
.calculator { border: 1px solid var(--line); }
.btn, .btn:hover, .badge, .principle-steps li::before, .step-num { color: #111214; }
.step-num { background: var(--accent); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #111214; }
.phone-field select { background: #222327; color: var(--ink); }
.field-error, .field-hint.is-error { color: #ff8a80; }
input.is-invalid { border-color: #ff8a80; }
:root { color-scheme: dark; } /* tmavé nativní prvky formuláře a posuvník */

/* Tlačítko zpět nahoru – objeví se až po odscrollování */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #1b1c1f; color: var(--accent); border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, border-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); }
.to-top svg { width: 22px; height: 22px; }
.to-top { touch-action: manipulation; }
/* Na mobilu výš: v Safari na iPhonu první ťuknutí u spodního okraje jen vysune lištu prohlížeče */
@media (max-width: 600px) { .to-top { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); } }
