/* Fajáték Kuckó — Soft K-pastel style system */

:root{
  --tomato: #e35b3f;
  --tomato-deep: #c8482e;
  --tomato-soft: #f6b79a;
  --navy: #223257;
  --navy-deep: #16213a;
  --navy-soft: #5c6c93;
  --cream: #fdf6ec;
  --cream-deep: #f5e8d3;
  --cream-line: #ead9bc;
  --ink: #2a2520;
  --paper: #fffdf8;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px -20px rgba(34, 50, 87, .28);
  --shadow-card: 0 14px 30px -18px rgba(42, 37, 32, .22);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.8,.3,1);
}

*{box-sizing:border-box;}
html,body{overflow-x:clip;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.55;
  font-size:16px;
}
img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.15;margin:0 0 .5em;color:var(--navy-deep);}
p{margin:0 0 1em;}
ul{margin:0;padding:0;}
button{font-family:inherit;}

.skip-link{
  position:absolute;left:-999px;top:0;background:var(--navy);color:#fff;padding:.6em 1em;border-radius:0 0 8px 0;z-index:200;
}
.skip-link:focus{left:0;}

:focus-visible{
  outline:3px solid var(--tomato-deep);
  outline-offset:3px;
  border-radius:4px;
}

.container{
  width:100%;
  max-width:1180px;
  margin-inline:auto;
  padding-inline:clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(253,246,236,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--cream-line);
}
.header-inner{
  max-width:1180px;margin-inline:auto;
  padding:.7rem clamp(1.1rem, 4vw, 2.5rem);
  display:flex;align-items:center;gap:1.2rem;
}
.logo{
  display:flex;align-items:center;gap:.6rem;text-decoration:none;flex-shrink:0;
}
.logo-mark{width:44px;height:44px;flex-shrink:0;}
.logo-word{width:150px;height:30px;color:var(--navy-deep);}
.main-nav{flex:1;}
.main-nav ul{display:flex;gap:1.6rem;list-style:none;flex-wrap:wrap;}
.main-nav a{
  text-decoration:none;font-weight:600;color:var(--navy);position:relative;padding:.3rem 0;
}
.main-nav a::after{
  content:"";position:absolute;left:0;right:100%;bottom:-2px;height:2px;background:var(--tomato);
  transition:right .25s var(--ease);
}
.main-nav a:hover::after,.main-nav a[aria-current="page"]::after{right:0;}
.header-actions{display:flex;align-items:center;gap:.9rem;flex-shrink:0;}
.cart-link{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:50%;background:var(--navy);color:var(--cream);
  text-decoration:none;transition:transform .2s var(--ease), background .2s;
}
.cart-link:hover{background:var(--tomato);}
.cart-link svg{width:22px;height:22px;}
.cart-count{
  position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 4px;
  background:var(--tomato);color:#fff;border-radius:999px;font-size:.7rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;line-height:1;
}
.cart-count.bump{animation:bump .4s var(--ease);}
@keyframes bump{0%{transform:scale(1);}35%{transform:scale(1.5);}100%{transform:scale(1);}}

.menu-toggle{
  display:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--cream-line);
  background:var(--paper);align-items:center;justify-content:center;cursor:pointer;
}
.menu-toggle svg{width:22px;height:22px;}
.menu-toggle .icon-close{display:none;}
.menu-toggle[aria-expanded="true"] .icon-menu{display:none;}
.menu-toggle[aria-expanded="true"] .icon-close{display:block;}

@media (max-width: 760px){
  .menu-toggle{display:flex;}
  .main-nav{
    position:fixed;inset:0 0 0 auto;width:min(78vw,320px);height:100vh;
    background:var(--navy-deep);padding:5.5rem 1.6rem 2rem;
    transform:translateX(100%);visibility:hidden;
    transition:transform .32s var(--ease), visibility .32s;
    z-index:150;
  }
  .main-nav.open{transform:translateX(0);visibility:visible;}
  .main-nav ul{flex-direction:column;gap:1.4rem;}
  .main-nav a{color:var(--cream);font-size:1.1rem;}
  .main-nav a::after{background:var(--tomato-soft);}
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.85rem 1.6rem;border-radius:999px;font-weight:700;text-decoration:none;
  border:2px solid transparent;cursor:pointer;position:relative;overflow:hidden;isolation:isolate;
  min-height:44px;font-size:.95rem;transition:color .25s var(--ease), border-color .25s var(--ease);
}
.btn::before{
  content:"";position:absolute;inset:0;width:100%;left:-100%;z-index:-1;
  transition:left .3s var(--ease);
}
.btn-primary{background:var(--tomato);color:#fff;}
.btn-primary::before{background:var(--tomato-deep);}
.btn-primary:hover::before{left:0;}
.btn-outline{background:transparent;color:var(--navy-deep);border-color:var(--navy-deep);}
.btn-outline::before{background:var(--navy-deep);}
.btn-outline:hover{color:#fff;}
.btn-outline:hover::before{left:0;}
.btn-ghost{background:transparent;color:var(--cream);border-color:rgba(253,246,236,.55);}
.btn-ghost::before{background:rgba(253,246,236,.18);}
.btn-ghost:hover::before{left:0;}
.btn-sm{padding:.55rem 1.1rem;font-size:.85rem;min-height:38px;}
.btn[disabled]{opacity:.55;cursor:not-allowed;}

/* ---------- Hero ---------- */
.hero{
  position:relative;padding:3rem 0 4rem;overflow:hidden;
}
.hero-grid{
  display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem;align-items:center;
  max-width:1180px;margin-inline:auto;padding-inline:clamp(1.1rem,4vw,2.5rem);
}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;font-weight:700;color:var(--tomato-deep);
  text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;margin-bottom:1rem;
}
.hero h1{
  font-size:clamp(2.4rem, 5.2vw, 4.2rem);
  margin-bottom:.6rem;
}
.hero p.lede{font-size:1.15rem;max-width:34ch;color:var(--navy-soft);}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.6rem;}
.hero-art{position:relative;aspect-ratio:1/1;max-width:480px;margin-inline:auto;}
.hero-layer{position:absolute;inset:0;}
.hero-layer svg,.hero-layer img{width:100%;height:100%;}
.hero-layer.l-shape{z-index:1;}
.hero-layer.l-photo{
  z-index:2;width:66%;height:66%;top:14%;left:17%;
  border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-soft);
}
.hero-layer.l-photo img{object-fit:cover;height:100%;}
.hero-layer.l-deco{z-index:3;}

@media (prefers-reduced-motion: no-preference){
  .hero-layer.l-shape{animation:slide-left .9s var(--ease) both;}
  .hero-layer.l-photo{animation:slide-up .9s .12s var(--ease) both;}
  .hero-layer.l-deco{animation:slide-right .9s .22s var(--ease) both;}
}
@keyframes slide-left{from{transform:translate(-6%, -2%);opacity:0;}to{transform:translate(0,0);opacity:1;}}
@keyframes slide-up{from{transform:translateY(5%);opacity:0;}to{transform:translateY(0);opacity:1;}}
@keyframes slide-right{from{transform:translate(6%, 3%);opacity:0;}to{transform:translate(0,0);opacity:1;}}

@media (max-width: 860px){
  .hero-grid{grid-template-columns:1fr;text-align:center;}
  .hero p.lede{margin-inline:auto;}
  .hero-actions{justify-content:center;}
}

/* ---------- Sections / reveal ---------- */
section{padding:clamp(3rem,6vw,5.5rem) 0;}
.section-head{max-width:52ch;margin-bottom:2.4rem;}
.section-head.center{margin-inline:auto;text-align:center;}
.kicker{
  display:inline-block;font-weight:700;color:var(--tomato-deep);text-transform:uppercase;
  letter-spacing:.07em;font-size:.78rem;margin-bottom:.5rem;
}

.reveal{
  opacity:1;transform:none;
}
@media (prefers-reduced-motion: no-preference){
  .reveal{
    transition:opacity .6s var(--ease), transform .6s var(--ease), clip-path .6s var(--ease);
  }
  .reveal.js-hide{
    opacity:0;transform:translateY(26px);clip-path:inset(0 0 15% 0);
  }
  .reveal.in-view{opacity:1;transform:none;clip-path:inset(0 0 0 0);}
}

/* ---------- Path / signature feature ---------- */
.path-section{background:var(--navy-deep);color:var(--cream);position:relative;overflow:hidden;}
.path-section .section-head h2{color:var(--cream);}
.path-section .section-head p{color:var(--cream-deep);}
.path-wrap{
  display:grid;grid-template-columns:1.15fr .85fr;gap:2.5rem;align-items:start;
}
.path-svg-holder{position:relative;}
.path-svg-holder svg{width:100%;height:auto;}
.path-route{fill:none;stroke:var(--tomato-soft);stroke-width:3;stroke-dasharray:9 10;opacity:.75;}
.station{cursor:pointer;}
.station circle.hub{
  fill:var(--navy);stroke:var(--tomato-soft);stroke-width:2.5;transition:fill .2s,stroke .2s,r .2s;
}
.station text{fill:var(--cream);font-family:var(--font-body);font-weight:700;font-size:13px;}
.station:hover circle.hub,.station.active circle.hub{fill:var(--tomato);stroke:var(--cream);}
.station.active circle.hub{r:22;}

.skill-chips{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.4rem 0 1.6rem;}
.skill-chip{
  border:1.5px solid rgba(253,246,236,.4);background:transparent;color:var(--cream);
  padding:.45rem 1rem;border-radius:999px;font-size:.85rem;font-weight:600;cursor:pointer;
  min-height:38px;transition:background .2s,border-color .2s;
}
.skill-chip.active,.skill-chip:hover{background:var(--tomato);border-color:var(--tomato);}

.path-results{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr);}
.path-card{
  background:rgba(253,246,236,.08);border:1px solid rgba(253,246,236,.18);border-radius:var(--radius-md);
  padding:1rem;display:flex;gap:.8rem;align-items:center;text-decoration:none;color:var(--cream);
  transition:background .2s,transform .2s;
}
.path-card:hover{background:rgba(253,246,236,.16);transform:translateY(-3px);}
.path-card img{width:56px;height:56px;border-radius:12px;object-fit:cover;flex-shrink:0;}
.path-card .pc-name{font-weight:700;display:block;}
.path-card .pc-price{color:var(--tomato-soft);font-size:.88rem;}
.path-empty{opacity:.75;font-size:.95rem;}
@media (max-width:900px){
  .path-wrap{grid-template-columns:1fr;}
  .path-results{grid-template-columns:1fr 1fr;}
}
@media (max-width:480px){.path-results{grid-template-columns:1fr;}}

/* ---------- Product cards / grid ---------- */
.product-grid{
  display:grid;gap:1.6rem;grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
}
.product-card{
  background:var(--paper);border-radius:var(--radius-md);overflow:hidden;
  box-shadow:var(--shadow-card);text-decoration:none;color:var(--ink);display:flex;flex-direction:column;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover{transform:translateY(-6px);box-shadow:0 22px 36px -18px rgba(42,37,32,.32);}
.product-card .pc-media{aspect-ratio:4/3;overflow:hidden;position:relative;background:var(--cream-deep);}
.product-card .pc-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease);}
.product-card:hover .pc-media img{transform:scale(1.08);}
.product-card .pc-body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.4rem;flex:1;}
.product-card h3{font-size:1.1rem;margin:0;}
.pc-age{font-size:.78rem;font-weight:700;color:var(--tomato-deep);text-transform:uppercase;letter-spacing:.04em;}
.pc-price{font-weight:700;color:var(--navy-deep);margin-top:auto;font-size:1.05rem;}
.pc-skills{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.2rem;}
.pc-skills span{
  font-size:.72rem;background:var(--cream-deep);color:var(--navy);padding:.2rem .55rem;border-radius:999px;
}

.strip-scroll{
  display:flex;gap:1.1rem;overflow-x:auto;padding:.5rem .2rem 1.2rem;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.strip-scroll .product-card{min-width:220px;scroll-snap-align:start;flex-shrink:0;}
.strip-scroll::-webkit-scrollbar{height:8px;}
.strip-scroll::-webkit-scrollbar-thumb{background:var(--cream-line);border-radius:8px;}

@media (min-width: 761px){
  .strip-scroll{overflow:visible;flex-wrap:wrap;}
  .strip-scroll .product-card{min-width:0;flex:1 1 220px;}
}

/* ---------- Filters (catalog) ---------- */
.filters{display:flex;gap:.7rem;flex-wrap:wrap;margin-bottom:2rem;}
.filters .skill-chip{border-color:var(--navy-soft);color:var(--navy-deep);}
.filters .skill-chip.active,.filters .skill-chip:hover{background:var(--tomato);color:#fff;border-color:var(--tomato);}
.icon-inline{width:1.1em;height:1.1em;vertical-align:-.15em;margin-right:.25em;}

/* ---------- Dividers / decorative ---------- */
.divider{display:block;width:100%;height:auto;margin:0;}
.divider path,.divider ellipse{fill:var(--cream-deep);}

/* ---------- Badges / seals ---------- */
.badge-row{display:flex;flex-wrap:wrap;gap:1.6rem;align-items:center;}
.badge-row .badge{display:flex;align-items:center;gap:.7rem;font-weight:600;color:var(--navy);}
.badge-row svg{width:54px;height:54px;flex-shrink:0;}

/* ---------- Two column feature with photo ---------- */
.feature-split{display:grid;grid-template-columns:1fr 1fr;gap:2.6rem;align-items:center;}
.feature-split .media{position:relative;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-soft);aspect-ratio:4/3;}
.feature-split .media img{width:100%;height:100%;object-fit:cover;}
@media (max-width:860px){.feature-split{grid-template-columns:1fr;}}

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

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position:fixed;left:1rem;right:1rem;bottom:1rem;max-width:560px;margin-inline:auto;
  background:var(--navy-deep);color:var(--cream);border-radius:var(--radius-md);
  padding:1.3rem 1.4rem;box-shadow:var(--shadow-soft);z-index:300;
}
.cookie-banner p{font-size:.92rem;margin-bottom:1rem;color:var(--cream-deep);}
.cookie-banner a{color:var(--tomato-soft);text-decoration:underline;}
.cookie-actions{display:flex;gap:.8rem;flex-wrap:wrap;}
.cookie-banner[hidden]{display:none;}

/* ---------- Forms ---------- */
.form-grid{display:grid;gap:1.1rem;}
.field{display:flex;flex-direction:column;gap:.4rem;}
.field label{font-weight:700;font-size:.88rem;color:var(--navy-deep);}
.field input,.field textarea,.field select{
  font:inherit;padding:.75rem .9rem;border-radius:var(--radius-sm);border:1.5px solid var(--cream-line);
  background:var(--paper);accent-color:var(--tomato);min-height:44px;
}
.field textarea{min-height:120px;resize:vertical;}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--tomato);}
.field.has-error input,.field.has-error textarea{border-color:var(--tomato-deep);}
.field-error{color:var(--tomato-deep);font-size:.82rem;min-height:1.1em;}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.form-message{font-weight:700;min-height:1.4em;}
.form-message.ok{color:#2e7d4f;}
.form-message.err{color:var(--tomato-deep);}
fieldset{border:1.5px solid var(--cream-line);border-radius:var(--radius-md);padding:1.2rem;}
legend{font-weight:700;color:var(--navy-deep);padding:0 .4rem;}
.radio-row{display:flex;gap:1.2rem;flex-wrap:wrap;}
.radio-row label{display:flex;align-items:center;gap:.5rem;font-weight:500;}

/* ---------- Cart / checkout ---------- */
.cart-table{width:100%;border-collapse:collapse;}
.cart-table th,.cart-table td{padding:.9rem .6rem;border-bottom:1px solid var(--cream-line);text-align:left;}
.cart-item-media{display:flex;align-items:center;gap:.8rem;}
.cart-item-media img{width:60px;height:60px;border-radius:10px;object-fit:cover;}
.qty-input{width:60px;}
.cart-summary{
  background:var(--paper);border-radius:var(--radius-md);padding:1.4rem;box-shadow:var(--shadow-card);
  display:flex;flex-direction:column;gap:.8rem;max-width:340px;margin-left:auto;
}
.cart-summary .total-row{display:flex;justify-content:space-between;font-weight:700;font-size:1.15rem;border-top:1px solid var(--cream-line);padding-top:.6rem;}
.remove-btn{background:none;border:none;color:var(--tomato-deep);font-weight:700;cursor:pointer;min-height:44px;}
.checkout-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:2.4rem;align-items:start;}
@media (max-width:860px){.checkout-grid{grid-template-columns:1fr;}.cart-summary{max-width:none;margin-left:0;}}

/* ---------- FAQ ---------- */
.faq-list{display:flex;flex-direction:column;gap:.9rem;}
.faq-item{
  background:var(--paper);border-radius:var(--radius-md);box-shadow:var(--shadow-card);overflow:hidden;
}
.faq-item summary{
  padding:1.1rem 1.3rem;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem;
  color:var(--navy-deep);
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+";font-size:1.3rem;color:var(--tomato);flex-shrink:0;}
.faq-item[open] summary::after{content:"\2212";}
.faq-item .faq-body{padding:0 1.3rem 1.2rem;color:var(--navy-soft);}

/* ---------- Legal pages ---------- */
.legal-content h2{margin-top:2rem;font-size:1.4rem;}
.legal-content ul{margin:0 0 1em 1.3em;}
.legal-content li{margin-bottom:.4em;}
.legal-hero{background:var(--cream-deep);padding:3rem 0 2rem;}

/* ---------- Timeline (about / delivery) ---------- */
.timeline{list-style:none;display:flex;flex-direction:column;gap:1.6rem;position:relative;padding-left:2.4rem;}
.timeline::before{content:"";position:absolute;left:10px;top:6px;bottom:6px;width:2px;background:var(--cream-line);}
.timeline li{position:relative;}
.timeline li::before{
  content:"";position:absolute;left:-2.4rem;top:4px;width:18px;height:18px;border-radius:50%;
  background:var(--tomato);box-shadow:0 0 0 4px var(--cream);
}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy-deep);color:var(--cream-deep);padding:3.5rem 0 1.6rem;margin-top:3rem;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem;margin-bottom:2.4rem;}
.footer-grid h4{color:var(--cream);font-family:var(--font-body);font-size:.92rem;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.9rem;}
.footer-grid ul{list-style:none;display:flex;flex-direction:column;gap:.55rem;}
.footer-grid a{color:var(--cream-deep);text-decoration:none;}
.footer-grid a:hover{color:var(--tomato-soft);text-decoration:underline;}
.footer-brand .logo-word{color:var(--cream);width:150px;height:30px;}
.footer-brand p{color:var(--cream-deep);max-width:30ch;margin-top:.8rem;}
.footer-newsletter{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem;}
.footer-newsletter input{
  flex:1;min-width:160px;padding:.7rem .9rem;border-radius:999px;border:1.5px solid rgba(253,246,236,.3);
  background:rgba(253,246,236,.08);color:var(--cream);min-height:44px;
}
.footer-newsletter input::placeholder{color:var(--cream-deep);}
.footer-bottom{
  border-top:1px solid rgba(253,246,236,.15);padding-top:1.4rem;display:flex;justify-content:space-between;
  flex-wrap:wrap;gap:.8rem;font-size:.85rem;color:var(--cream-deep);
}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr;}}

/* ---------- 404 ---------- */
.notfound{text-align:center;padding:5rem 0;}
.notfound svg{width:220px;height:220px;margin-inline:auto;}

/* ---------- Utility ---------- */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
.text-center{text-align:center;}
.mt-lg{margin-top:2.5rem;}
