/* ==========================================================================
   nora flow – move. breathe. flow.
   Brand: #CAD2C5 · #84A98C · #52796F · #354F52 · #2F3E46
   Typo: Playfair Display (címsorok) + Lato (szöveg)
   ========================================================================== */

:root {
  --sage-50: #F6F7F3;
  --sage-100: #ECEFE8;
  --accent: #CAD2C5;
  --secondary: #84A98C;
  --primary: #52796F;
  --primary-600: #466A61;
  --dark: #354F52;
  --deep: #2F3E46;

  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-2: #F2F3EE;
  --text: #2F3E46;
  --text-muted: #5E6E70;
  --line: rgba(47, 62, 70, .12);

  --success: #52796F;
  --error: #B4574B;
  --warning: #C08A3E;
  --info: #5B7F95;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(47, 62, 70, .06), 0 2px 8px rgba(47, 62, 70, .04);
  --shadow: 0 10px 30px -12px rgba(47, 62, 70, .18);
  --shadow-lg: 0 30px 60px -20px rgba(47, 62, 70, .28);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* A hidden attribútum mindig rejtsen el – a saját display szabályok (flex, grid, inline-flex) se írják felül */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark); }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, label, summary, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: rgba(82, 121, 111, .12); }
::selection { background: var(--accent); color: var(--deep); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
em.serif, .serif-italic { font-family: var(--font-serif); font-style: italic; color: var(--primary); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--secondary); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--secondary); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .98rem; letter-spacing: .01em; line-height: 1.2;
  cursor: pointer; transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s, border-color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); background: var(--primary-600); border-color: var(--primary-600); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(82, 121, 111, .7); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--deep); --btn-bd: rgba(47, 62, 70, .28); }
.btn-outline:hover { --btn-fg: var(--deep); background: var(--surface); border-color: var(--deep); box-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--deep); --btn-bd: #fff; }
.btn-light:hover { --btn-fg: var(--deep); background: var(--sage-100); border-color: var(--sage-100); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--primary); --btn-bd: transparent; padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { --btn-fg: var(--dark); background: var(--sage-100); border-color: transparent; box-shadow: none; }
.btn-danger { --btn-bg: transparent; --btn-fg: var(--error); --btn-bd: rgba(180, 87, 75, .35); }
.btn-danger:hover { --btn-fg: #fff; background: var(--error); border-color: var(--error); }
.btn-lg { padding: 17px 32px; font-size: 1.04rem; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--primary); transition: all .2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--dark); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn.is-active svg { fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 245, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--primary); }
.brand:hover { color: var(--primary); }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-sans); font-size: 1.4rem; letter-spacing: .02em; font-weight: 400; color: var(--primary); }
.brand-tag { font-size: .66rem; letter-spacing: .2em; color: var(--secondary); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--deep); font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:not(.btn):hover, .nav a.is-active { background: var(--sage-100); color: var(--primary); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; }
.user-menu { position: relative; }
.user-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--deep);
}
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; opacity: 0; transform: translateY(-6px) scale(.98);
  pointer-events: none; transition: all .2s var(--ease); transform-origin: top right;
}
.user-menu.is-open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; color: var(--deep); font-weight: 600; font-size: .94rem; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--sage-100); color: var(--primary); }
.dropdown svg { width: 18px; height: 18px; color: var(--primary); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s linear .25s;
    max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain;
  }
  /* visibility: a zárt menü (és a benne lévő, pointer-events:auto legördülő) ne fogja el az érintést az oldal tartalma elől */
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 14px 16px; }
  .nav .btn { margin: 8px 0 0; }
  .user-menu .dropdown { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; border: 0; padding: 0; margin-top: 8px; }
  .user-chip { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 500; color: var(--deep); line-height: 1.1; }
.hero-meta span { font-size: .86rem; color: var(--text-muted); }
.hero-visual { position: relative; aspect-ratio: 4 / 5; z-index: 0; }
.hero-visual .arch {
  position: absolute; inset: 0; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden;
  background: var(--accent); box-shadow: var(--shadow-lg);
}
.hero-visual .arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.02); }
.hero-visual .arch-bg {
  position: absolute; inset: 0; transform: translate(26px, 26px); border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  border: 1.5px solid var(--secondary); opacity: .6; z-index: -1;
}
.float-card {
  position: absolute; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 14px; font-size: .9rem;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--deep); font-size: .98rem; }
.float-card span { color: var(--text-muted); font-size: .82rem; }
.float-card .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card.one { left: -9%; bottom: 16%; }
.float-card.two { right: -6%; top: 12%; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 16px auto 0; width: 84%; }
  .float-card.one { left: -6%; }
  .float-card.two { right: -6%; }
  .hero .pattern-waves { display: none; }
}
@media (max-width: 480px) {
  .float-card { padding: 10px 14px; gap: 10px; }
  .float-card .ic { width: 36px; height: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Patterns ---------- */
.pattern-waves { position: absolute; pointer-events: none; color: var(--secondary); opacity: .35; }
.bg-sage { background: var(--sage-100); }
.bg-deep { background: var(--deep); color: #E6EAE3; }
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep .eyebrow { color: var(--accent); }
.bg-deep .lead, .bg-deep .muted { color: rgba(230, 234, 227, .75); }
.terrazzo {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(82, 121, 111, .18) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 30%, rgba(132, 169, 140, .22) 0 4px, transparent 5px),
    radial-gradient(circle at 40% 70%, rgba(202, 210, 197, .7) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 82%, rgba(53, 79, 82, .14) 0 4px, transparent 5px),
    radial-gradient(circle at 24% 88%, rgba(132, 169, 140, .2) 0 3px, transparent 4px);
  background-size: 180px 160px;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--surface); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--dark); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.feature {
  background: var(--surface); border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ic { width: 56px; height: 56px; border-radius: 18px; background: var(--sage-100); color: var(--primary); display: grid; place-items: center; margin-bottom: 22px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.28rem; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: .96rem; margin: 0; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-photos { position: relative; }
.about-photos .main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about-photos .main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about-photos .small {
  position: absolute; width: 46%; right: -10%; bottom: -10%; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
  border: 8px solid var(--bg); aspect-ratio: 3/4; box-shadow: var(--shadow);
}
.about-photos .small img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--text-muted); }
.bg-sage .pill { background: var(--surface); box-shadow: var(--shadow-sm); }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700;
  background: var(--sage-100); color: var(--dark);
}
.pill svg { width: 15px; height: 15px; color: var(--primary); }
.quote {
  margin: 32px 0 0; padding: 28px 32px; border-radius: var(--radius); background: var(--surface); border-left: 3px solid var(--secondary);
  font-family: var(--font-serif); font-style: italic; font-size: 1.18rem; line-height: 1.55; color: var(--deep);
}
.signature { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--primary); margin-top: 18px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photos { max-width: 440px; margin: 0 auto 40px; width: 86%; }
}

/* ---------- Gallery / steps ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 56px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--accent); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--deep);
}
.gallery { grid-auto-rows: clamp(220px, 26vw, 340px); }
.g1 { grid-column: span 7; }
.g2 { grid-column: span 5; }
.g3, .g4, .g5 { grid-column: span 4; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .g1 { grid-column: span 2; }
  .g2, .g3, .g4, .g5 { grid-column: span 1; }
  .gallery { grid-auto-rows: 200px; }
}

.bg-deep .container { position: relative; z-index: 1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding: 36px 30px 30px; border-radius: var(--radius-lg); background: rgba(47, 62, 70, .6); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); }
.step::before {
  counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-serif); font-size: 2.6rem; line-height: 1;
  color: var(--secondary); margin-bottom: 18px; font-style: italic;
}
.step h3 { font-size: 1.3rem; }
.step p { color: rgba(230, 234, 227, .72); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 56px; }
.price-card {
  flex: 1 1 320px; max-width: 420px; background: var(--surface); border-radius: var(--radius-lg); padding: 40px 36px;
  border: 1px solid var(--line); position: relative; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: var(--deep); color: #E6EAE3; border-color: var(--deep); box-shadow: var(--shadow-lg); }
.price-card.featured h3, .price-card.featured .price strong { color: #fff; }
.price-card.featured .muted, .price-card.featured .price span { color: rgba(230, 234, 227, .7); }
.price-card.featured li { color: #E6EAE3; }
.price-card.featured li svg { color: var(--secondary); background: rgba(132, 169, 140, .18); }
.price-card .ribbon {
  position: absolute; top: 22px; right: 22px; background: var(--secondary); color: var(--deep); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 800; padding: 6px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 8px; }
.price strong { font-family: var(--font-serif); font-size: 3.4rem; font-weight: 500; line-height: 1; color: var(--deep); letter-spacing: -.02em; }
.price span { color: var(--text-muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; }
.price-card li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.price-card li svg { width: 22px; height: 22px; flex-shrink: 0; padding: 4px; border-radius: 50%; background: var(--sage-100); color: var(--primary); margin-top: 1px; }
.price-card .btn { margin-top: auto; }
.price-note { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; font-size: .9rem; color: var(--text-muted); }
.price-note span { display: inline-flex; align-items: center; gap: 8px; }
.price-note svg { width: 17px; height: 17px; color: var(--primary); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-family: var(--font-serif); font-size: 1.22rem; color: var(--deep); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--text-muted); padding: 0 40px 24px 0; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--primary); color: #fff;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: stretch; min-height: 380px;
}
.cta-band .txt { padding: clamp(36px, 6vw, 72px); position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 46ch; margin-bottom: 30px; }
.cta-band .img { position: relative; }
.cta-band .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .waves { position: absolute; left: -40px; bottom: -30px; width: 520px; color: rgba(255, 255, 255, .12); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .img { min-height: 280px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(230, 234, 227, .75); padding: 72px 0 32px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: rgba(230, 234, 227, .82); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--secondary); }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--primary); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; letter-spacing: .04em; }
.footer-bottom .tagline { letter-spacing: .35em; }
.footer-bottom .powered { opacity: .7; }
.footer-bottom .powered a { font-weight: 700; text-decoration: underline; text-decoration-color: rgba(230, 234, 227, .3); text-underline-offset: 3px; }
.footer-bottom .powered a:hover { text-decoration-color: currentColor; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }

/* ---------- Forms / auth ---------- */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--accent); }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.auth-side .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47, 62, 70, 0) 45%, rgba(47, 62, 70, .75)); }
.auth-side blockquote { position: absolute; left: 48px; right: 48px; bottom: 48px; margin: 0; color: #fff; font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; line-height: 1.35; }
.auth-side blockquote span { display: block; font-family: var(--font-sans); font-style: normal; font-size: .82rem; letter-spacing: .3em; margin-top: 14px; opacity: .85; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px var(--gutter); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 10px; }
.auth-card .lead { margin-bottom: 32px; font-size: 1.02rem; }
.auth-foot { margin-top: 28px; text-align: center; color: var(--text-muted); font-size: .95rem; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 8px; color: var(--deep); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field select, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field input:hover { border-color: rgba(47, 62, 70, .25); }
.field input:focus, .input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(82, 121, 111, .14); }
.field.has-error input { border-color: var(--error); }
.field .error { display: flex; align-items: center; gap: 6px; color: var(--error); font-size: .86rem; margin-top: 7px; font-weight: 600; }
.field .error svg { width: 15px; height: 15px; flex-shrink: 0; }
.field .hint { font-size: .84rem; color: var(--text-muted); margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--text-muted); display: grid; place-items: center; border-radius: 10px; }
.pw-toggle:hover { color: var(--primary); background: var(--sage-100); }
.pw-toggle svg { width: 20px; height: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .93rem; color: var(--text-muted); line-height: 1.45; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(47, 62, 70, .3); background: var(--surface); flex-shrink: 0; cursor: pointer; display: grid; place-items: center; margin: 1px 0 0; transition: all .2s; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.switch, .field label.switch { position: relative; display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 400; color: var(--text); font-size: .95rem; margin: 0; }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--accent); position: relative; cursor: pointer; transition: background .25s; flex-shrink: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(20px); }

/* ---------- Toasts / system messages ---------- */
.toast-stack { position: fixed; z-index: 100; top: 92px; right: 20px; display: flex; flex-direction: column; gap: 12px; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius); padding: 16px 44px 18px 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); animation: toastIn .5s var(--ease) both;
}
.toast.is-leaving { animation: toastOut .35s var(--ease) both; }
.toast .t-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--sage-100); color: var(--primary); }
.toast .t-ic svg { width: 20px; height: 20px; }
.toast strong { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1.1rem; color: var(--deep); line-height: 1.3; }
.toast p { margin: 3px 0 0; font-size: .92rem; color: var(--text-muted); line-height: 1.45; }
.toast .t-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--text-muted); display: grid; place-items: center; }
.toast .t-close:hover { background: var(--sage-100); color: var(--deep); }
.toast .t-close svg { width: 16px; height: 16px; }
.toast .t-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--secondary); animation: toastBar linear forwards; }
.toast.error .t-ic { background: rgba(180, 87, 75, .12); color: var(--error); }
.toast.error .t-bar { background: var(--error); }
.toast.warning .t-ic { background: rgba(192, 138, 62, .14); color: var(--warning); }
.toast.warning .t-bar { background: var(--warning); }
.toast.info .t-ic { background: rgba(91, 127, 149, .12); color: var(--info); }
.toast.info .t-bar { background: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes toastBar { from { width: 100%; } to { width: 0; } }
@media (max-width: 600px) { .toast-stack { top: auto; bottom: 16px; right: 16px; } }

.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--sage-100); color: var(--deep); margin-bottom: 24px; font-size: .95rem; }
.alert svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.alert.error { background: rgba(180, 87, 75, .09); }
.alert.error svg { color: var(--error); }
.alert strong { display: block; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(47, 62, 70, .45); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-card { background: var(--surface); border-radius: var(--radius-lg); padding: 36px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); text-align: center; transform: translateY(12px) scale(.98); transition: transform .3s var(--ease); }
.modal.is-open .modal-card { transform: none; }
.modal-card .ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; background: var(--sage-100); color: var(--primary); display: grid; place-items: center; }
.modal-card .ic svg { width: 28px; height: 28px; }
.modal-card h3 { font-size: 1.6rem; }
.modal-card p { color: var(--text-muted); }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- App (library) ---------- */
.app-hero { padding: 48px 0 24px; }
.app-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; max-width: 720px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--sage-100); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.stat .ic svg { width: 22px; height: 22px; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; line-height: 1.1; color: var(--deep); }
.stat span { font-size: .82rem; color: var(--text-muted); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 48px 0 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }

.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.lesson-card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }

.lesson-card .thumb { position: relative; aspect-ratio: 16/10; background: var(--accent); overflow: hidden; display: block; }
.lesson-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }

.lesson-card .play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--primary); display: grid; place-items: center; transform: scale(.85); opacity: 0; transition: all .3s var(--ease);
}

.lesson-card .play svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.lesson-card .lock { position: absolute; inset: 0; background: rgba(47, 62, 70, .35); display: grid; place-items: center; color: #fff; }
.lesson-card .lock svg { width: 30px; height: 30px; }
.lesson-card .duration { position: absolute; right: 10px; bottom: 10px; background: rgba(47, 62, 70, .82); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lesson-card .badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.lesson-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lesson-card .body h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.lesson-card .body h3 a { color: var(--deep); }
.lesson-card .body h3 a::after { content: ""; position: absolute; inset: 0; }
.lesson-card .meta { font-size: .84rem; color: var(--text-muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lesson-card .fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 38px; height: 38px; }
.progress { height: 5px; background: var(--sage-100); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .6s var(--ease); }
.done-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 700; font-size: .82rem; }
.done-tag svg { width: 15px; height: 15px; }

.badge {
  --b: var(--primary);
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: color-mix(in srgb, var(--b) 14%, white); color: color-mix(in srgb, var(--b) 80%, black);
  border: 1px solid color-mix(in srgb, var(--b) 25%, transparent);
}
.thumb .badge { background: rgba(255, 255, 255, .94); color: color-mix(in srgb, var(--b) 85%, black); border: 0; }
.thumb .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--b); }
.badge.new { --b: #C08A3E; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--deep); font-weight: 700; font-size: .88rem; transition: all .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--deep); border-color: var(--deep); color: #fff; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.search { position: relative; }
.search input { padding: 11px 16px 11px 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); width: 240px; font-size: .92rem; }
.search input:focus { outline: none; border-color: var(--primary); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); }

.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.program-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: flex-end; color: #fff; background: var(--dark); }
.program-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }

.program-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47, 62, 70, 0) 30%, rgba(47, 62, 70, .85)); }
.program-card .in { position: relative; z-index: 1; padding: 26px; width: 100%; }
.program-card h3 { color: #fff; margin: 0 0 4px; font-size: 1.6rem; }
.program-card span { font-size: .88rem; opacity: .85; }
.program-card:hover, .program-card:active { color: #fff; }

/* Kártyák: hover-animáció csak egérrel; érintőképernyőn a lejátszás ikon mindig látszik, koppintásra visszajelzés */
@media (hover: hover) and (pointer: fine) {
  .lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .lesson-card:hover .thumb img { transform: scale(1.05); }
  .lesson-card:hover .play { transform: none; opacity: 1; }
  .program-card:hover img { transform: scale(1.05); }
}
@media (hover: none), (pointer: coarse) {
  .lesson-card .play { transform: none; opacity: 1; width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .lesson-card:active { transform: scale(.985); }
  .program-card:active img { transform: scale(1.03); }
}

.empty { text-align: center; padding: 64px 24px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }
.empty .ic { width: 72px; height: 72px; border-radius: 50%; background: var(--sage-100); color: var(--primary); display: grid; place-items: center; margin: 0 auto 18px; }
.empty .ic svg { width: 30px; height: 30px; }
.empty p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 20px; }

.upsell { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius-lg); background: var(--deep); color: #E6EAE3; margin-top: 28px; }
.upsell h3 { color: #fff; margin: 0 0 4px; }
.upsell p { margin: 0; color: rgba(230, 234, 227, .75); }

/* ---------- Player ---------- */
.player-page { padding: 28px 0 80px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); font-weight: 600; }
.crumbs a:hover { color: var(--primary); }
.crumbs svg { width: 14px; height: 14px; }
.player-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.player { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #1E2A30; aspect-ratio: 16/9; box-shadow: var(--shadow-lg); }
.player video { width: 100%; height: 100%; background: #1E2A30; }
.player .locked { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; }
.player .locked img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.55); transform: scale(1.1); }
.player .locked .in { position: relative; max-width: 420px; }
.player .locked h3 { color: #fff; font-size: 1.7rem; }
.player .locked p { color: rgba(255, 255, 255, .8); }
.resume-toast {
  position: absolute; left: 16px; bottom: 70px; z-index: 3; background: rgba(255, 255, 255, .96); border-radius: 999px; padding: 6px 6px 6px 18px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; color: var(--deep);
  animation: toastIn .5s var(--ease) both;
}
.resume-toast[hidden] { display: none; }
.lesson-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-top: 28px; flex-wrap: wrap; }
.lesson-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 10px; }
.lesson-actions { display: flex; gap: 10px; align-items: center; }
.lesson-desc { color: var(--text-muted); margin-top: 16px; max-width: 70ch; }
.lesson-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; color: var(--text-muted); font-size: .92rem; }
.lesson-facts span { display: inline-flex; gap: 8px; align-items: center; }
.lesson-facts svg { width: 17px; height: 17px; color: var(--primary); }
.playlist { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; position: sticky; top: 96px; }
.playlist-head { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.playlist-head h3 { margin: 0; font-size: 1.2rem; }
.playlist-head span { font-size: .84rem; color: var(--text-muted); }
.playlist ol { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow: auto; }
.playlist li a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; color: var(--deep); }
.playlist li a:hover { background: var(--sage-50); }
.playlist li a.is-current { background: var(--sage-100); }
.playlist .num { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--sage-100); color: var(--primary); }
.playlist .is-current .num { background: var(--primary); color: #fff; }
.playlist .num.done { background: var(--primary); color: #fff; }
.playlist .num svg { width: 15px; height: 15px; }
.playlist .t { flex: 1; min-width: 0; }
.playlist .t strong { display: block; font-size: .93rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist .t small { color: var(--text-muted); font-size: .8rem; }
@media (max-width: 980px) { .player-grid { grid-template-columns: 1fr; } .playlist { position: static; } }

.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.celebrate i { position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 50%; animation: fall 2.4s var(--ease) forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.card h2 { font-size: 1.45rem; margin-bottom: 6px; }
.card > .muted { margin-bottom: 22px; font-size: .95rem; }
.card.span-2 { grid-column: span 2; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--sage-100); color: var(--primary); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.off { background: rgba(180, 87, 75, .1); color: var(--error); }
.status.warn { background: rgba(192, 138, 62, .12); color: var(--warning); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 20px 0 26px; font-size: .96rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: 700; color: var(--deep); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } .card.span-2 { grid-column: auto; } }

.prose { color: var(--text); }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Előfizetés megerősítése ---------- */
.checkout-card { margin-top: 28px; display: grid; gap: 22px; }
.checkout-plan { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.checkout-plan h2 { margin: 4px 0 2px; }
.checkout-price { display: flex; align-items: baseline; gap: 6px; }
.checkout-price strong { font-family: var(--font-serif); font-weight: 500; font-size: 2rem; color: var(--deep); line-height: 1; }
.checkout-price span { color: var(--text-muted); }
.checkout-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.checkout-facts li { display: flex; gap: 10px; align-items: flex-start; }
.checkout-facts svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.checkout-form { display: grid; gap: 4px; }
.checkout-form .check { color: var(--text); font-weight: 400; }
.checkout-hint { font-size: .84rem; color: var(--text-muted); margin: 0 0 14px; }
.checkout-secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .84rem; color: var(--text-muted); margin: 10px 0 0; }
.checkout-secure svg { width: 16px; height: 16px; }

/* ---------- Fiók törlése ---------- */
.card.danger-zone { border-color: rgba(180, 87, 75, .3); }
.danger-zone h2 { color: var(--error); }
.danger-zone ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--text-muted); font-size: .94rem; }
.danger-zone ul li { margin-bottom: 4px; }
.danger-zone form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.danger-zone .field { flex: 1 1 260px; margin: 0; }

/* ---------- Jogi oldalak: táblázatok ---------- */
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: .94rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-top: 1px solid var(--line); color: var(--text-muted); }
.prose th, .prose td:first-child { color: var(--deep); font-weight: 700; width: 32%; }
.prose tr:first-child th, .prose tr:first-child td { border-top: 0; }
@media (max-width: 600px) {
  .prose table, .prose tbody, .prose tr { display: block; width: 100%; }
  .prose th, .prose td { display: block; width: 100% !important; padding: 2px 0; border: 0; }
  .prose tr { padding: 10px 0; border-top: 1px solid var(--line); }
}

/* ---------- Süti-hozzájárulás ---------- */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; pointer-events: none; }
.consent-card { pointer-events: auto; width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 24px; }
.consent-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.consent-card p { margin: 0 0 14px; font-size: .9rem; color: var(--text-muted); line-height: 1.55; }
.consent-options { display: grid; gap: 10px; margin: 0 0 16px; }
.consent-options .check { color: var(--text); }
.consent-options input:disabled { opacity: .6; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: rgba(230, 234, 227, .82); cursor: pointer; text-align: left; }
.linklike:hover { color: #fff; }
@media (max-width: 600px) { .consent-card { padding: 18px; } .consent-actions .btn { flex: 1 1 100%; } }

/* ---------- Ingyenes program címke ---------- */
.program-card .program-free { position: absolute; left: 16px; top: 16px; z-index: 1; --b: #84A98C; background: rgba(255, 255, 255, .94); color: #354F52; border: 0; }

/* ---------- Óraértékelés ---------- */
.rating-modal h3 { margin: 0 0 16px; }
.rating-modal h4 { margin: 22px 0 12px; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--deep); }
.rating-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rating-row button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--deep); font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .15s; touch-action: manipulation; }
.rating-row button .emo { font-size: 1.7rem; line-height: 1; }
.rating-row button.is-active { border-color: var(--primary); background: var(--sage-100); color: var(--primary); }
@media (hover: hover) { .rating-row button:hover { border-color: var(--primary); } }
.rating-anon { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: left; font-size: .8rem; color: var(--text-muted); margin: 18px 0 0; }
.rating-anon svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.rating-modal .modal-card { padding: 28px 22px; }

/* ---------- Webshop ---------- */
.nav a .soon { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); margin-left: 4px; }
.nav .cart-link { position: relative; display: inline-flex; align-items: center; }
.nav .cart-link svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.shop-preview { display: flex; gap: 10px; align-items: flex-start; background: #FFF7E6; border: 1px solid #F0DDB0; color: #6B5320; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; margin-bottom: 18px; }
.shop-preview svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-card .pimg { position: relative; display: block; aspect-ratio: 1; background: var(--sage-100); }
.product-card .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--secondary); }
.pph svg { width: 44px; height: 44px; }
.pph.big { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--sage-100); }
.pph.big svg { width: 72px; height: 72px; }
.product-card .badge.out { position: absolute; left: 10px; top: 10px; --b: #B4574B; }
.product-card.is-out img { opacity: .55; }
.product-card .pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 1.1rem; margin: 0; }
.product-card h3 a { color: var(--deep); }
.product-card .muted { font-size: .88rem; margin: 0; }
.pprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; }
.pprice strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; color: var(--deep); }
.pprice s { color: var(--text-muted); font-size: .9rem; }
.pprice.big strong { font-size: 2rem; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.pgallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.add-cart { display: flex; gap: 12px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.qty select { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cart-list { padding: 8px 24px; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .cimg { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--sage-100); display: block; }
.cart-row .cimg img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .cinfo { display: flex; flex-direction: column; min-width: 0; }
.cart-row .cline { min-width: 90px; text-align: right; }
.summary { position: sticky; top: 96px; display: grid; gap: 10px; }
.summary h2 { margin: 0 0 4px; }
.summary .stotal { font-family: var(--font-serif); font-size: 1.6rem; margin: 6px 0; }
.srow { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: .95rem; }
.srow.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.1rem; }
.checkout-main { display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.opt-group { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; touch-action: manipulation; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--sage-50); }
.opt input { margin-top: 4px; accent-color: var(--primary); }
.opt span { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 880px) {
  .product-detail, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 56px 1fr auto; row-gap: 8px; }
  .cart-row .cimg { width: 56px; height: 56px; }
  .cart-row .qty { grid-column: 2; } .cart-row .cline { grid-column: 3; grid-row: 1; }
}

/* ---------- Webshop: méretválasztó ---------- */
.variant-pick { border: 0; padding: 0; margin: 22px 0 0; width: 100%; }
.variant-pick legend { font-weight: 700; margin-bottom: 10px; color: var(--deep); padding: 0; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { position: relative; cursor: pointer; touch-action: manipulation; }
.variant input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant span { display: inline-block; min-width: 64px; text-align: center; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; transition: all .15s; }
.variant input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.variant input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.variant.is-out { cursor: not-allowed; }
.variant.is-out span { color: var(--text-muted); background: var(--sage-100); text-decoration: line-through; opacity: .7; }
@media (hover: hover) { .variant:not(.is-out):hover span { border-color: var(--primary); } }

/* ---------- Webshop: mobilos kitolódás ellen (a rács ne nőjön a tartalom miatt a képernyőnél szélesebbre) ---------- */
.checkout-layout > *, .cart-layout > *, .product-detail > * { min-width: 0; }
.summary, .summary > *, .checkout-main > .card, .cart-list { min-width: 0; max-width: 100%; }
.srow > span { min-width: 0; overflow-wrap: anywhere; }
.srow > span:last-child, .srow > strong { white-space: nowrap; flex-shrink: 0; }
.summary .btn-block { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 880px) {
  .product-detail, .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
}
