/* ============================================
   Výcvik Psů Tlapka — Bohemian Crystal theme
   ============================================ */

:root {
  --sky-50: #eef8fd;
  --sky-100: #d9eefb;
  --sky-200: #bfe4f6;
  --sky-300: #93d2ef;
  --sky-500: #3fa6d8;
  --sky-600: #2a8cc1;
  --sky-700: #1f6f9c;
  --sky-900: #0d3450;
  --ink: #0c2436;
  --sun-300: #ffe18a;
  --sun-400: #ffd34d;
  --sun-500: #ffc222;
  --sun-600: #ec9d0e;
  --paper: #fbfdff;
  --white: #ffffff;
  --line: rgba(13, 52, 80, .14);
  --shadow-1: 0 1px 2px rgba(13, 52, 80, .06);
  --shadow-2: 0 18px 40px -18px rgba(13, 52, 80, .35);
  --radius-l: 1.4rem;
  --radius-m: .9rem;
  --radius-s: .5rem;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--sun-500); color: var(--ink); padding: .6em 1em; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 3px;
  border-radius: .2em;
}

.container { max-width: 76rem; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.kicker {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color: var(--sky-700); display: inline-flex; align-items: center; gap: .5em;
}
.lede { font-size: 1.1rem; color: var(--sky-900); max-width: 38em; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2;
  pointer-events: none; opacity: .05; mix-blend-mode: overlay;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 253, 255, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.4rem;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo svg { width: 2.4rem; height: 2.4rem; flex: none; }
.logo-word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.logo-word small { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-700); font-weight: 400; }

.nav-main { display: flex; align-items: center; gap: 1.6rem; }
.nav-main ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav-main a { text-decoration: none; font-weight: 600; font-size: .96rem; position: relative; padding-block: .3em; }
.nav-main a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--sun-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-main a:hover::after, .nav-main a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.cart-link {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 700;
  padding: .5em .9em; border-radius: 2em; border: 1.5px solid var(--sky-700); color: var(--sky-900);
}
.cart-link svg { width: 1.2rem; height: 1.2rem; }
.cart-count {
  background: var(--sun-500); color: var(--ink); border-radius: 50%; min-width: 1.5em; height: 1.5em;
  display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800;
  transition: transform .35s var(--ease);
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.menu-toggle {
  display: none; background: none; border: 1.5px solid var(--sky-700); border-radius: var(--radius-s);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 760px) {
  .nav-main { position: fixed; inset: 4.4rem 0 0 0; background: var(--paper); flex-direction: column;
    align-items: flex-start; padding: 1.5rem clamp(1.1rem,4vw,2.5rem); transform: translateX(100%);
    transition: transform .35s var(--ease); overflow-y: auto; }
  .nav-main.open { transform: translateX(0); }
  .nav-main ul { flex-direction: column; gap: 1rem; width: 100%; }
  .nav-main a { font-size: 1.2rem; display: block; }
  .menu-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-family: var(--font-body); border: none; cursor: pointer;
  padding: .85em 1.6em; border-radius: 2em; font-size: .96rem; text-decoration: none;
  min-height: 44px; overflow: hidden; isolation: isolate; color: var(--ink);
  background: var(--sun-500); transition: color .3s var(--ease), transform .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  background: var(--sky-900); z-index: -1; transition: left .35s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--sky-900); box-shadow: inset 0 0 0 1.5px var(--sky-700);
}
.btn-outline::before { background: var(--sky-900); }
.btn-outline:hover, .btn-outline:focus-visible { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--sky-900); }
.btn-ghost-dark { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.65); }
.btn-ghost-dark::before { background: var(--sun-500); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { color: var(--ink); }
.btn-sm { padding: .6em 1.2em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Icon sprite ---------- */
.icon { width: 1.3rem; height: 1.3rem; stroke: currentColor; fill: none; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(2.5rem, 8vw, 5rem);
  background: linear-gradient(160deg, var(--sky-900) 0%, var(--sky-700) 48%, var(--sky-500) 100%);
  color: var(--white);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-copy .kicker { color: var(--sun-300); }
.compass .kicker { color: var(--sun-300); }
.hero-title { font-size: clamp(2.4rem, 6.4vw, 4.4rem); color: var(--white); margin-bottom: .4em; }
.hero-title .wipe {
  display: block; clip-path: inset(0 100% 0 0); animation: wipe 1.1s var(--ease) .15s forwards;
}
.hero-title .wipe:nth-child(2) { animation-delay: .4s; color: var(--sun-400); }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-title .wipe { animation: none; clip-path: inset(0 0 0 0); }
}
.hero-text { color: var(--sky-100); max-width: 34em; font-size: 1.08rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-pulse { animation: pulse 4.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Dividers ---------- */
.divider { display: block; width: 100%; height: auto; margin-block: -1px; }

/* ---------- Bento grid (home) ---------- */
.bento {
  display: grid; gap: clamp(.8rem, 2vw, 1.3rem);
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(10rem, auto);
}
.bento > * { border-radius: var(--radius-l); }
.bento-feature { grid-column: span 4; grid-row: span 2; }
.bento-a { grid-column: span 2; }
.bento-b { grid-column: span 2; }
.bento-c { grid-column: span 2; }
.bento-d { grid-column: span 2; }
@media (min-width: 880px) {
  .bento-feature { grid-column: span 3; grid-row: span 2; }
  .bento-a { grid-column: span 1; grid-row: 1; }
  .bento-b { grid-column: span 1; grid-row: 2; }
  .bento-c { grid-column: span 2; }
  .bento-d { grid-column: span 2; }
}

.tile {
  position: relative; border-radius: var(--radius-l); overflow: hidden; padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink);
  background: var(--sky-100); box-shadow: var(--shadow-1); border: 1px solid var(--line);
}
.tile h3 { font-size: 1.25rem; margin-bottom: .3em; }
.tile p { margin-bottom: 0; font-size: .92rem; }
.tile-dark { background: var(--sky-900); color: var(--white); }
.tile-dark p { color: var(--sky-100); }
.tile-sun { background: linear-gradient(135deg, var(--sun-400), var(--sun-600)); color: var(--ink); }
.tile-link { position: absolute; inset: 0; z-index: 2; }
.tile-link .visually-hidden { position: absolute; }

/* ---------- Compass feature ---------- */
.compass {
  background: var(--sky-900); color: var(--white); border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3vw, 2.4rem); position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.compass-badge { position: absolute; top: clamp(1rem,2vw,1.6rem); right: clamp(1rem,2vw,1.6rem); width: 4.2rem; height: 4.2rem; opacity: .9; }
.compass h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 18em; }
.compass-text { color: var(--sky-100); max-width: 34em; }
.compass-form { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.compass-field { display: flex; flex-direction: column; gap: .35rem; }
.compass-field label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sky-200); }
.compass select {
  font: inherit; padding: .7em .8em; border-radius: var(--radius-s); border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: var(--white); accent-color: var(--sun-500);
}
.compass select option { color: var(--ink); }
.compass-result {
  background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); border-radius: var(--radius-m);
  padding: 1rem 1.2rem; display: none;
}
.compass-result.show { display: block; }
.compass-result ul { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .5rem; }
.compass-result li { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: .4rem; }
.compass-total { display: flex; justify-content: space-between; font-weight: 800; font-family: var(--font-mono); margin-bottom: .8rem; }

/* ---------- Reveal animation ---------- */
.reveal.reveal-ready {
  opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .7s var(--ease);
}
.reveal.reveal-ready.in-view { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-2); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--sky-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { font-size: 1.05rem; margin: 0; }
.card-price { font-family: var(--font-mono); font-weight: 700; color: var(--sky-700); }
.card-body p { font-size: .9rem; color: #45586a; margin: 0; flex: 1; }

/* ---------- Product grid / strip ---------- */
.product-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.product-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: .6rem; margin: 0 -0.1rem;
}
.product-strip .card { scroll-snap-align: start; }
@media (min-width: 680px) {
  .product-strip { grid-auto-columns: minmax(15.5rem, 1fr); }
}

/* ---------- Section headers ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0; }

/* ---------- Badge/seal row ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: center; margin-block: 1rem; }
.badge-row figure { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; margin: 0; max-width: 11rem; }
.badge-row svg { width: 3.4rem; height: 3.4rem; }
.badge-row figcaption { font-size: .85rem; color: var(--sky-900); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field .req { color: var(--sky-700); }
input, textarea, select {
  font: inherit; padding: .75em .9em; border-radius: var(--radius-s); border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); accent-color: var(--sun-500); min-height: 44px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--sky-700); }
.field-error { color: #b4232c; font-size: .85rem; min-height: 1.2em; }
.form-note { font-size: .85rem; color: #45586a; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-s); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e4f6ea; color: #1e6b3c; border: 1px solid #b7e2c6; }
.form-status.err { background: #fdeceb; color: #a0222b; border: 1px solid #f3c3c0; }

/* honeypot */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* checkbox row */
.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.checkbox-row input { margin-top: .2em; }

/* ---------- Newsletter ---------- */
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 10rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sky-900); color: var(--sky-100); }
.footer-top { padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-grid a { text-decoration: none; color: var(--sky-100); }
.footer-grid a:hover { color: var(--sun-400); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.footer-brand svg { width: 2.2rem; height: 2.2rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0 2rem; font-size: .82rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; color: var(--sky-200);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; max-width: 42rem; margin-inline: auto;
  background: var(--sky-900); color: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-2);
  padding: 1.2rem 1.4rem; display: none; gap: .8rem; flex-wrap: wrap; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.12);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--sky-100); flex: 1 1 18rem; }
.cookie-banner a { color: var(--sun-400); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Misc page layout ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--sky-900), var(--sky-700));
  color: var(--white); padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lede { color: var(--sky-100); }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.breadcrumb { font-family: var(--font-mono); font-size: .8rem; color: var(--sky-700); text-transform: uppercase; letter-spacing: .08em; }

/* two-col layout */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 800px) { .split-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

.media-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .shape {
  position: absolute; width: 60%; z-index: 2; pointer-events: none;
}
.shape-tl { top: -8%; left: -8%; }
.shape-br { bottom: -10%; right: -10%; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 0; font-weight: 700; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 1.2rem; height: 1.2rem; flex: none; transition: transform .3s var(--ease); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.1rem; color: #3b4f61; }

/* Cart page */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sky-700); padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.cart-table td { padding: .9rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-name { display: flex; align-items: center; gap: .8rem; font-weight: 700; }
.cart-item-name img { width: 3.6rem; height: 3.6rem; border-radius: var(--radius-s); object-fit: cover; }
.qty-input { width: 4rem; text-align: center; }
.cart-remove { background: none; border: none; color: #a0222b; cursor: pointer; font-weight: 700; text-decoration: underline; min-height: 44px; }
.cart-summary { background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.4rem; display: grid; gap: .6rem; align-self: start; }
.cart-summary .row { display: flex; justify-content: space-between; }
.cart-summary .total { font-weight: 800; font-size: 1.2rem; font-family: var(--font-mono); padding-top: .6rem; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; padding: 3rem 1rem; }

.checkbox-row:has(input:checked) { color: var(--sky-700); }
.field:has(input:invalid:not(:placeholder-shown)) label { color: #a0222b; }

/* continuous subtle element */
.float-dot { position: absolute; border-radius: 50%; filter: blur(.5px); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* 404 */
.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound svg { width: min(100%, 22rem); margin-inline: auto; }

@media (max-width: 390px) {
  .hero .container { grid-template-columns: 1fr; }
}
