/* ============================================================
   JaluPrint — vlastní vizuální jazyk dílny
   Světlý papír + kobaltová, přátelský Bricolage Grotesque
   v titulcích, Instrument Sans v textu. Identitu drží vrstvené
   ilustrace: všechno tady vzniká vrstvu po vrstvě — i ten web.
   ============================================================ */

:root {
  /* Barvy */
  --paper: #F6F7F9;      /* pozadí stránky */
  --white: #FFFFFF;      /* alternované sekce, karty */
  --ink: #14161A;        /* text, tmavé prvky */
  --slate: #5C6470;      /* doplňkový text */
  --line: #D3D8E0;       /* rámečky karet a oddělovače */
  --line-strong: #C2C8D4;/* rámečky formulářových polí */
  --fog: #E3E5E9;        /* světlý text na inkoustové patičce */
  --cobalt: #2B4BFF;     /* akcent */
  --cobalt-deep: #1E38D6;/* hover / tmavší kobalt */
  --cobalt-soft: #93A9FF;
  --tint: #DDE4FF;       /* světlý kobaltový nádech */
  --tint-bg: #ECF0FF;    /* pozadí náhledů a odznaků */

  /* Typografie */
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  /* Tvary */
  --r-md: 12px;
  --r-lg: 22px;
  --r-pill: 100px;

  /* Stíny a pohyb */
  --shadow-card: 0 18px 44px rgba(43, 75, 255, 0.10);
  --shadow-soft: 0 10px 30px rgba(20, 22, 26, 0.06);
  /* Pohyb — silnější křivky mají „říz“, působí záměrně (Emil Kowalski).
     --ease drží název kvůli zpětné kompatibilitě, ale míří na silný ease-out. */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);        /* silný ease-out: nájezdy, hover, press */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);/* pohyb / morfování po ploše */

  --container: 1200px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

/* umožní animovat výšku na „auto“ (rozbalování FAQ); prohlížeče bez podpory
   prvek prostě zobrazí bez animace */
:root { interpolate-size: allow-keywords; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

img { max-width: 100%; }

p, li { text-wrap: pretty; }

main section[id] { scroll-margin-top: 88px; }

/* ---------- typografie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.04;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
h1 .accent { color: var(--cobalt); }

h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }

/* Odznak nad nadpisem sekce — s mini „vrstvami“, podpisem značky */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cobalt);
  background: var(--tint-bg);
  border-radius: var(--r-pill);
  padding: 6px 14px 6px 11px;
  margin: 0 0 20px;
}
.eyebrow svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.section-tint .eyebrow { background: var(--white); }

.section-lede {
  color: var(--slate);
  font-size: 18px;
  max-width: 62ch;
  margin: 0 0 52px;
  text-wrap: balance; /* na zkoušku i na podnadpisech — vyrovnané řádky */
}

/* ---------- tlačítka ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--cobalt);
  background: var(--cobalt);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
/* zvednutí jen na zařízeních s kurzorem — na dotyku by naskočilo při ťuknutí.
   Blok je před :active, aby press (scale 0.97) při stisku vyhrál nad hoverem. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .btn-ghost:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(0) scale(0.97); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.text-link {
  position: relative;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
}
/* podtržení dokreslené zleva doprava přes transform (GPU), ne přes paint */
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .text-link::after { transition: none; }
}

/* ---------- navigace ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.25s var(--ease);
}
.site-nav.scrolled {
  box-shadow: 0 6px 24px rgba(20, 22, 26, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 17px;
  padding-bottom: 17px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--cobalt); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.18s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-cta { padding: 10px 21px; font-size: 14.5px; }

.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 11px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
/* otevřené menu: burger se složí do křížku */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 18px;
    box-shadow: 0 18px 30px rgba(20, 22, 26, 0.08);
  }
  .nav-links.open { display: flex; }
  @media (prefers-reduced-motion: no-preference) {
    .nav-links.open { animation: menu-in 0.28s var(--ease); }
  }
  .nav-links a:not(.btn) { padding: 10px 4px; font-size: 16px; }
  .nav-cta { margin-top: 8px; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 6vw, 80px);
  align-items: center;
}

.hero-sub {
  font-size: 19px;
  color: var(--slate);
  max-width: 46ch;
  margin: 22px 0 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
.hero-chips li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}

.hero-art { display: flex; }
.hero-art img {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
}

/* nájezd hera při prvním načtení — obsah se skládá vrstvu po vrstvě.
   Vidí se jednou za návštěvu → smí potěšit (Emil Kowalski). */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-art {
    animation: hero-rise 0.7s var(--ease-out) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.33s; }
  .hero-art { animation-delay: 0.2s; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- placeholder pro budoucí fotky ---------- */

.ph {
  display: grid;
  place-items: center;
  place-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  background: #E8EAEE;
  border: 1px dashed var(--line-strong);
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}
.ph svg { width: 30px; height: 30px; opacity: 0.55; }

.ph-hero {
  min-height: clamp(340px, 42vw, 560px);
  border-radius: 28px;
}
.ph-about {
  min-height: clamp(320px, 34vw, 460px);
  border-radius: var(--r-lg);
}

/* ---------- sekce ---------- */

.section { padding: clamp(76px, 10vw, 132px) 0; }
.section-alt { background: var(--white); }
.section-tint { background: var(--tint); }

/* ---------- e-shop ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .product:hover {
    transform: translateY(-5px);
    border-color: var(--cobalt-soft);
    box-shadow: var(--shadow-card);
  }
}

.p-media {
  height: 200px;
  border-bottom: 1px solid var(--line);
}
.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-media .ph { border: 0; }

.p-body { padding: 22px 24px 24px; }
.p-body h3 { font-size: 19px; margin-bottom: 3px; }

.p-meta {
  font-size: 14.5px;
  color: var(--slate);
  margin: 0 0 18px;
}

.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- služby ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
  }
}
.card p { color: var(--slate); font-size: 15.5px; margin: 0 0 18px; }
/* jen šířka textu, ne celá karta: odkaz je flex-item a bez tohoto by se roztáhl
   na plnou šířku (a s ním i animované podtržení) */
.card .text-link { margin-top: auto; align-self: flex-start; }

.card-icon {
  display: flex;
  align-items: center;
  height: 44px;
  margin-bottom: 14px;
  color: var(--cobalt);
}
.card-icon svg { width: 34px; height: 34px; }

/* sekce Služby je na papíře, karty bez rámečku drží stín */
#sluzby .card { border: 1px solid var(--line); }

/* zvýrazněná služba — nejčastější volba */
.card-featured { position: relative; }
#sluzby .card-featured { border-color: var(--cobalt-soft); }
.card-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--cobalt);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  padding: 5px 13px;
}

/* ---------- postup ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
  }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
}

.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--slate); margin: 0; font-size: 15.5px; }

/* ---------- o nás ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

.about-media { display: flex; align-self: stretch; }
.about-media img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.about-body > p:not(.eyebrow) {
  font-size: 18px;
  color: var(--slate);
  margin: 6px 0 28px;
  max-width: 56ch;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 500;
}
.about-list li::before {
  content: "";
  width: 14px;
  height: 12px;
  flex: none;
  transform: translateY(1px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Crect x='3' y='0' width='8' height='2.6' rx='1.3' fill='%232B4BFF'/%3E%3Crect x='1.5' y='4.7' width='11' height='2.6' rx='1.3' fill='%232B4BFF'/%3E%3Crect x='0' y='9.4' width='14' height='2.6' rx='1.3' fill='%232B4BFF'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 800px;
  border-top: 1px solid var(--line);
  margin-top: 28px; /* sekce nemá lede — dorovnává odstup nadpisu na rytmus ostatních sekcí */
}

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  transition: color 0.18s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--cobalt); }

.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  color: var(--cobalt);
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  margin: 0;
  padding: 0 40px 24px 4px;
  color: var(--slate);
  max-width: 66ch;
}

/* plynulé rozbalení odpovědi (moderní ::details-content).
   Prohlížeče bez podpory otevřou skokem jako dřív — bez rozbití. */
@media (prefers-reduced-motion: no-preference) {
  .faq-list details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.3s var(--ease-out),
                content-visibility 0.3s var(--ease-out) allow-discrete;
  }
  .faq-list details[open]::details-content {
    height: auto;
  }
}

/* ---------- kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.contact-info > p:not(.eyebrow) {
  color: var(--slate);
  font-size: 18px;
  margin: 0;
  max-width: 44ch;
}

.contact-list { margin: 32px 0 0; }
.contact-list div { margin-bottom: 20px; }
.contact-list dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.contact-list dd { margin: 4px 0 0; font-size: 17px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--cobalt); }

.contact-form, .order-modal form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* ať vrozená šířka polí neroztahuje mřížku */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

input, textarea {
  width: 100%;
  min-width: 0; /* přebíjí vrozenou minimální šířku polí (~200px) */
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 15px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
textarea { resize: none; }
input:focus, textarea:focus { border-color: var(--cobalt); background: var(--white); }

::placeholder { color: var(--slate); opacity: 1; }

.form-note { font-size: 13.5px; color: var(--slate); margin: 0; text-align: center; }
.form-note.is-error { color: #B3261E; }

/* ---------- patička ---------- */

.site-footer {
  background: var(--ink);
  padding: clamp(48px, 6vw, 72px) 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--cobalt-soft); }

.footer-brand p {
  color: var(--fog);
  font-size: 15px;
  max-width: 34ch;
  margin: 12px 0 0;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.footer-col a, .footer-col span {
  color: var(--fog);
  text-decoration: none;
  font-size: 15px;
}
.footer-col a:hover { color: var(--cobalt-soft); }
.site-footer a:focus-visible { outline-color: var(--cobalt-soft); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fog);
  font-size: 14px;
}
.footer-bottom p { margin: 0; }

/* ---------- objednávkový dialog ---------- */

.order-modal {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 30px 30px;
  width: min(460px, calc(100vw - 40px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: var(--shadow-card);
}
@media (max-width: 480px) {
  .order-modal { width: calc(100vw - 24px); padding: 24px 20px 26px; }
}
.order-modal::backdrop {
  background: rgba(20, 22, 26, 0.45);
  backdrop-filter: blur(2px);
}

/* Nájezd i odjezd dialogu nativně přes @starting-style + allow-discrete.
   Modál zůstává na střed (transform-origin: center) — není ukotvený ke spouštěči.
   Prohlížeče bez podpory otevřou/zavřou skokem. */
@media (prefers-reduced-motion: no-preference) {
  .order-modal {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.28s var(--ease-out),
                transform 0.28s var(--ease-out),
                overlay 0.28s var(--ease-out) allow-discrete,
                display 0.28s var(--ease-out) allow-discrete;
  }
  .order-modal[open] {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  @starting-style {
    .order-modal[open] {
      opacity: 0;
      transform: translateY(14px) scale(0.98);
    }
  }

  .order-modal::backdrop {
    opacity: 0;
    transition: opacity 0.28s var(--ease-out),
                overlay 0.28s var(--ease-out) allow-discrete,
                display 0.28s var(--ease-out) allow-discrete;
  }
  .order-modal[open]::backdrop { opacity: 1; }
  @starting-style {
    .order-modal[open]::backdrop { opacity: 0; }
  }
}

/* Reduced-motion: prolnutí opacity zůstává (nezpůsobuje nevolnost),
   vypne se jen pohyb (translate/scale) — „jemnější, ne nulové“. */
@media (prefers-reduced-motion: reduce) {
  .order-modal {
    opacity: 0;
    transition: opacity 0.2s ease,
                overlay 0.2s ease allow-discrete,
                display 0.2s ease allow-discrete;
  }
  .order-modal[open] { opacity: 1; }
  @starting-style { .order-modal[open] { opacity: 0; } }

  .order-modal::backdrop {
    opacity: 0;
    transition: opacity 0.2s ease,
                overlay 0.2s ease allow-discrete,
                display 0.2s ease allow-discrete;
  }
  .order-modal[open]::backdrop { opacity: 1; }
  @starting-style { .order-modal[open]::backdrop { opacity: 0; } }
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-head h3 { margin: 0; font-size: 22px; }

.order-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -10px -8px 0;
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
  padding: 0;
}
.order-close:hover { background: var(--tint-bg); }
.order-close:hover { color: var(--ink); }

.order-product {
  font-weight: 600;
  font-size: 15px;
  color: var(--cobalt);
  margin: 0;
}

.order-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
}
/* na úzkých displejích pole pod sebe (musí být až za základním pravidlem) */
@media (max-width: 480px) {
  .order-row { grid-template-columns: 1fr; }
}

/* ---------- jemné odhalování při scrollu ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- potvrzení odeslání: drobný „pop“ tlačítka ---------- */

@media (prefers-reduced-motion: no-preference) {
  .btn.is-sent { animation: sent-pop 0.42s var(--ease-out); }
  @keyframes sent-pop {
    0%   { transform: scale(0.97); }
    45%  { transform: scale(1.035); }
    100% { transform: scale(1); }
  }
}
