/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6A189A;
  --primary-light: rgba(106,24,154,0.08);
  --accent: #F59E0B;
  --accent-foreground: #1a1a1a;
  --background: #FCFBFE;
  --foreground: #1c1028;
  --muted: #f4f0f8;
  --muted-fg: #6b5f7a;
  --card: #ffffff;
  --border: #e8e0f0;
  --radius: 1rem;
  --shadow-soft: 0 10px 30px -12px rgba(106,24,154,0.18);
  --shadow-lift: 0 20px 50px -20px rgba(106,24,154,0.28);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { letter-spacing: -0.02em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease-out forwards;
}
.fade-up-delay { animation-delay: 0.15s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s;
  background: rgba(252,251,254,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled {
  background: rgba(252,251,254,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 1024px) { .header-inner { padding: 1rem 2.5rem; } }

.logo { flex: 0 1 auto; min-width: 0; }
.logo img { height: 4rem; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 768px) { .logo img { height: 4.5rem; } }
/* A legszukebb asztali savban a logo kisse kisebb, hogy a het menupont biztosan kiferjen */
@media (min-width: 1200px) and (max-width: 1339px) { .logo img { height: 3.85rem; } }

.nav-desktop { display: none; align-items: center; gap: 0.1rem; }
@media (min-width: 1200px) { .nav-desktop { display: flex; } }

.nav-desktop a {
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 600;
  color: rgba(28,16,40,0.8);
  transition: background 0.2s, color 0.2s;
}
.nav-desktop a:hover, .nav-desktop a.active {
  background: var(--primary-light);
  color: var(--primary);
}


.nav-cta {
  display: none;
}
@media (min-width: 1200px) {
  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-soft);
  }
  .nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
}

/* Mobile nav */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
@media (min-width: 1200px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(252,251,254,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: rgba(28,16,40,0.85);
  transition: background 0.2s;
}
.nav-mobile a:hover, .nav-mobile a.active { background: var(--primary-light); color: var(--primary); }

.nav-mobile-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 9999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ===== BRUSH DECORATION ===== */
.brush {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.brush-purple-tl {
  position: absolute;
  top: -4rem;
  left: -2.5rem;
  width: 97%;
  max-width: 1300px;
  opacity: 0.9;
  z-index: 40;
  pointer-events: none;
}
.brush-orange-br { bottom: -2.5rem; right: 0; width: 55%; max-width: 700px; opacity: 0.9; }
.brush-orange-tr { top: 0; right: 0; width: 55%; max-width: 700px; opacity: 0.9; transform: rotate(180deg); }
.brush-purple-bl { bottom: 0; left: 0; width: 55%; max-width: 720px; opacity: 0.9; transform: rotate(180deg); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(106,24,154,0.2);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: rgba(106,24,154,0.6); background: rgba(106,24,154,0.05); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px -8px rgba(245,158,11,0.5);
}
.btn-accent:hover { transform: translateY(-2px); }

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.section-label::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: rgba(106,24,154,0.4);
}

/* ===== VALUE CARD ===== */
.value-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.value-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.value-card-icon.primary { background: var(--primary); color: white; }
.value-card-icon.accent  { background: var(--accent);  color: white; }
.value-card-icon svg { width: 1.75rem; height: 1.75rem; stroke-width: 2.2; }

.value-card h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.value-card p  { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.65; color: var(--muted-fg); }

/* ===== TEACHER CARD ===== */
.teacher-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.teacher-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--muted);
}
.teacher-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.teacher-card:hover .teacher-card-img img { transform: scale(1.05); }

.teacher-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), rgba(245,158,11,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}
.teacher-card-placeholder svg { width: 4rem; height: 4rem; color: var(--primary); opacity: 0.4; }

.teacher-card-body { padding: 1.5rem; }
.teacher-card-body h3 { font-size: 1.125rem; font-weight: 700; }
.teacher-card-body .role { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.teacher-card-body p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.65; color: var(--muted-fg); }

/* ===== CONTACT CARD ===== */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.contact-card-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
}
.contact-card-icon svg { width: 1.5rem; height: 1.5rem; }

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-fg);
}
.contact-card-value { margin-top: 0.25rem; font-size: 1.125rem; font-weight: 700; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: white;
  margin-top: 6rem;
}

/* Vízszintes (B) elrendezés */
.footer-inner-h {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 1.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .footer-inner-h {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 2.25rem 2.5rem 2rem;
  }
}

/* Bal: szöveg + gomb */
.footer-cta-h {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
}
@media (min-width: 900px) { .footer-cta-h { max-width: 22rem; } }

.footer-cta-text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: white;
  margin: 0;
}
@media (min-width: 1024px) { .footer-cta-text { font-size: 1.35rem; } }

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.footer-btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* Elválasztó vonal */
.footer-divider {
  display: none;
}
@media (min-width: 900px) {
  .footer-divider {
    display: block;
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.18);
    margin: 0 2rem;
    flex-shrink: 0;
  }
}

/* Közép: elérhetőségek */
.footer-contacts-h {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
@media (min-width: 900px) { .footer-contacts-h { gap: 0.6rem; } }

.footer-contact-item { display: flex; align-items: center; gap: 0.85rem; }
.footer-contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.footer-contact-icon svg { width: 1.1rem; height: 1.1rem; color: white; }
.footer-contact-text { font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,0.9); }

/* Jobb: logó */
.footer-logo-wrap-h {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .footer-logo-wrap-h {
    justify-content: flex-end;
    margin-left: 2rem;
  }
}

.footer-logo-box {
  background: rgba(255,255,255,0.95);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lift);
}
.footer-logo-box img { height: 4.5rem; width: auto; }
@media (min-width: 768px) { .footer-logo-box img { height: 5rem; } }

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0.85rem 2.5rem;
  }
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { transition: color 0.2s; }
.footer-bottom-links a:hover { color: white; }

/* ===== HERO (főoldal) ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
}
@media (min-width: 1024px) { .hero { padding: 6rem 2.5rem 7rem; } }

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-slogan img { width: 100%; max-width: 560px; }
@media (min-width: 1024px) { .hero-slogan img { max-width: 640px; } }

.hero-subtitle {
  margin-top: 2rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-fg);
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-photo {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--muted);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(106,24,154,0.12), rgba(245,158,11,0.1));
}
.hero-photo-placeholder span { font-size: 0.875rem; color: var(--muted-fg); text-align: center; padding: 2rem; }

/* ===== VALUES SECTION ===== */
.values-section {
  background: rgba(244,240,248,0.4);
  padding: 5rem 1.5rem;
}
@media (min-width: 768px) { .values-section { padding: 7rem 2.5rem; } }

.values-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== PAGE HERO (aloldalak) ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
@media (min-width: 768px) { .page-hero { padding: 6rem 2.5rem 4rem; } }

.page-hero-inner { position: relative; max-width: 56rem; margin: 0 auto; }

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 0.95;
  color: var(--primary);
}
@media (min-width: 768px) { .page-hero h1 { font-size: 4rem; } }

.page-hero h1 span { color: var(--accent); }

.page-hero p {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-fg);
}

/* ===== ROLUNK PAGE ===== */
.about-intro { padding: 3rem 1.5rem; }
@media (min-width: 768px) { .about-intro { padding: 4rem 2.5rem; } }

.about-photo {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--muted);
  max-width: 900px;
  margin: 0 auto;
}
.about-photo img { width: 100%; height: 28rem; object-fit: cover; }
.about-photo-placeholder {
  height: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(106,24,154,0.1), rgba(245,158,11,0.08));
}
.about-photo-placeholder span { color: var(--muted-fg); font-size: 0.875rem; }

/* ===== GRID ===== */
.grid-3 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ===== KAPCSOLAT PAGE ===== */
.contact-section { padding: 3rem 1.5rem; }
@media (min-width: 768px) { .contact-section { padding: 4rem 2.5rem; } }

/* ===== PURPLE CTA BLOCK ===== */
.cta-block {
  background: var(--primary);
  color: white;
  padding: 4rem 1.5rem;
  border-radius: 2rem;
  margin: 0 1.5rem 4rem;
  text-align: left;
}
@media (min-width: 768px) { .cta-block { padding: 5rem 4rem; margin: 0 2.5rem 5rem; } }

.cta-block h2 { font-size: 2rem; font-weight: 700; line-height: 1.15; }
@media (min-width: 768px) { .cta-block h2 { font-size: 2.75rem; } }

.cta-block p { margin-top: 1rem; font-size: 1.125rem; color: rgba(255,255,255,0.85); max-width: 32rem; }

.cta-block-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== STAT BOX ===== */
.stat-box {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.stat-box .stat-number { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-box .stat-label { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted-fg); font-weight: 500; }

/* ===== CONTACT FORM ===== */
.contact-form {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .contact-form { padding: 3rem; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 700; color: var(--foreground); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--border);
  background: var(--background);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106,24,154,0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ===== MAP PLACEHOLDER ===== */
.map-box {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  height: 24rem;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-box span { font-size: 0.875rem; color: var(--muted-fg); }

/* ===== ROLUNK IRTAK BELEPO DOBOZ (rolunk.html) ===== */
.reviews-cta-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
}
.reviews-cta-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(106,24,154,0.35);
}

.reviews-cta-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
}
.reviews-cta-icon svg { width: 2rem; height: 2rem; }

.reviews-cta-text { flex: 1; }
.reviews-cta-text h2 { margin-top: 0.5rem; font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.reviews-cta-text p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted-fg); line-height: 1.6; }

.reviews-cta-arrow {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  transition: transform 0.3s;
}
.reviews-cta-box:hover .reviews-cta-arrow { transform: translateX(4px); }
.reviews-cta-arrow svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 600px) {
  .reviews-cta-box { flex-direction: column; text-align: center; gap: 1rem; padding: 2rem 1.5rem; }
  .reviews-cta-arrow { transform: rotate(90deg); }
  .reviews-cta-box:hover .reviews-cta-arrow { transform: rotate(90deg) translateX(4px); }
}

/* ===== ROLUNK IRTAK OLDAL (rolunk-irtak.html) ===== */
.reviews-section { padding: 2rem 1.5rem 4rem; }
@media (min-width: 768px) { .reviews-section { padding: 2rem 2.5rem 5rem; } }

.reviews-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}


.review-text {
  font-size: 1.0312rem;
  line-height: 1.8;
  color: var(--foreground);
  position: relative;
  z-index: 1;
}

.review-author {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.review-card.placeholder {
  border-style: dashed;
  border-color: rgba(106,24,154,0.25);
  background: rgba(244,240,248,0.5);
  box-shadow: none;
}
.review-card.placeholder::before { color: rgba(106,24,154,0.08); }
.review-card.placeholder .review-text { color: var(--muted-fg); font-style: italic; }

/* Vélemény beküldő űrlap */
.review-form-section {
  max-width: 820px;
  margin: 4rem auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .review-form-section { padding: 3rem; } }

.review-form-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}
.review-form-section > p {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-top: 0.4rem;
  font-weight: 600;
}
.char-counter.limit { color: var(--accent); }
/* ===== BENEFITS GRID (11 elonykartya a Rolunk oldalon) ===== */
.benefits-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

/* Mobil (< 500px): 1 oszlop, kompakt kartyak — ikon balra, szoveg jobbra */
@media (max-width: 499px) {
  .benefits-grid { gap: 1rem; }
  .benefit-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.35rem;
    align-items: start;
    padding: 1.25rem 1.25rem 1.35rem;
  }
  .benefit-card .value-card-icon {
    grid-row: span 2;
    width: 2.75rem;
    height: 2.75rem;
    align-self: center;
  }
  .benefit-card .value-card-icon svg { width: 1.4rem; height: 1.4rem; }
  .benefit-card h3 { grid-column: 2; margin-top: 0; font-size: 1.0625rem; align-self: end; }
  .benefit-card p  { grid-column: 2; margin-top: 0; font-size: 0.875rem; line-height: 1.6; }
}

/* Tablet (500-767px): 2 oszlop, az utolso kartya kozepen */
@media (min-width: 500px) and (max-width: 767px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid > * { grid-column: span 2; }
  .benefits-grid > :nth-child(11) { grid-column: 2 / span 2; }
}

/* Asztali (768px+): 6 oszlopos racs, minden kartya 2 oszlop szeles.
   Igy 1-9 kartya 3x3-as elrendezesben, a 10-11 a negyedik sorban kozepre igazitva. */
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(6, 1fr); }
  .benefits-grid > * { grid-column: span 2; }
  .benefits-grid > :nth-child(10) { grid-column: 2 / span 2; }
  .benefits-grid > :nth-child(11) { grid-column: 4 / span 2; }
}

/* ===== VELEMENYEK: osszecsukhato szovegdobozok ===== */
/* A levagas csak akkor lep eletbe, ha a JS hozzaadta a .js-clamp osztalyt.
   Igy kikapcsolt JavaScript mellett minden velemeny teljes egeszeben olvashato. */
.reviews-wrap.js-clamp .review-card:not(.expanded) .review-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
/* Mobilon 2 sor latszik */
@media (max-width: 767px) {
  .reviews-wrap.js-clamp .review-card:not(.expanded) .review-text {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* Kibonto vezerlo — nem kulonallo gomb, hanem a szovegdobozba olvado szoveg */
.review-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s;
}
.review-card.is-clamped .review-toggle { display: inline-flex; }
.review-toggle:hover { color: var(--accent); }
.review-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0.25rem; }

.review-toggle-icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.25s ease;
}
.review-card.expanded .review-toggle-icon { transform: rotate(180deg); }

/* Az egesz kartya kattinthato ott, ahol van mit kibontani */
.review-card.is-clamped { cursor: pointer; }
.review-card.is-clamped:hover .review-toggle { color: var(--accent); }

/* ===== HOGYAN SZULETTUNK — IDOVONAL ===== */
.story-section { padding: 1rem 1.5rem 5rem; }
.story-wrap { max-width: 62rem; margin: 0 auto; }

.tl { position: relative; }

/* A folyamatos lila sin. Mobilon balszelen, asztalon az evszam-oszlop mellett. */
.tl-rail {
  position: absolute;
  top: 0.9rem;
  bottom: 2.5rem;
  left: 0.5rem;
  width: 2px;
  background: rgba(106,24,154,0.16);
  border-radius: 2px;
}
/* Az olvasas allasat mutato kitoltes */
.tl-progress {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
  transition: height 0.15s linear;
}

.tl-step {
  position: relative;
  padding: 0 0 2.75rem 2.25rem;
}
.tl-step:last-child { padding-bottom: 0.5rem; }

.tl-marker { position: relative; }

.tl-dot {
  position: absolute;
  top: 0.55rem;
  left: -2.25rem;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.075rem;
  border-radius: 9999px;
  background: var(--card);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--background);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  z-index: 2;
}

.tl-year {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
  transition: color 0.25s;
}

.tl-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  transition: color 0.25s;
}
.tl-body p {
  margin-top: 0.85rem;
  font-size: 1.0312rem;
  line-height: 1.8;
  color: var(--muted-fg);
}
.tl-body strong { color: var(--foreground); font-weight: 700; }

/* Kiemelt szamok a szovegben */
.hl {
  font-weight: 800;
  font-size: 1.12em;
  color: var(--accent);
  white-space: nowrap;
}

/* --- Aktiv allapot (asztalon egerrel, mobilon gorgetessel) --- */
.tl-step.is-active .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px var(--background), 0 0 0 9px rgba(245,158,11,0.18);
}
.tl-step.is-active .tl-year { color: var(--accent); }
.tl-step:focus-visible { outline: none; }
.tl-step:focus-visible .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--background), 0 0 0 9px rgba(245,158,11,0.35);
}

/* --- Asztali elrendezes: kulon evszam-oszlop, a sin kozepen --- */
@media (min-width: 860px) {
  .tl-rail { left: 9.5rem; }

  .tl-step {
    display: grid;
    grid-template-columns: 8.5rem 4rem 1fr;
    align-items: start;
    padding: 0 0 3.25rem 0;
  }

  .tl-marker { grid-column: 1; text-align: right; padding-top: 0.1rem; }
  .tl-year { margin-bottom: 0; font-size: 0.9375rem; }

  .tl-dot { top: 0.4rem; left: 9.05rem; }

  .tl-body { grid-column: 3; padding-left: 0.25rem; }
  .tl-body h2 { font-size: 1.5rem; }

  /* Rakotes: a sintol a szoveghez vezeto vizszintes vonal, csak aktiv allapotban */
  .tl-step::before {
    content: "";
    position: absolute;
    top: 0.87rem;
    left: 9.9rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
    z-index: 1;
  }
  .tl-step.is-active::before,
  .tl-step:focus-visible::before { width: 1.6rem; }

  /* A szovegblokk finom kiemelese */
  .tl-body {
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    margin-left: -1rem;
    transition: background 0.3s;
  }
  .tl-step.is-active .tl-body,
  .tl-step:focus-visible .tl-body { background: rgba(244,240,248,0.75); }
}

/* --- Zaro idezet --- */
.story-quote {
  position: relative;
  max-width: 46rem;
  margin: 3.5rem auto 0;
  padding: 2.5rem 2rem 2.25rem;
  border-radius: 1.5rem;
  background: rgba(244,240,248,0.6);
  border: 1px solid var(--border);
  text-align: center;
}
.story-quote-mark {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  opacity: 0.85;
  margin: 0 auto 0.75rem;
  display: block;
}
.story-quote p {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary);
}
@media (min-width: 768px) { .story-quote p { font-size: 1.4375rem; } }

.story-cta { margin-top: 2.5rem; text-align: center; }

/* Csokkentett mozgas igenye eseten nem animalunk */
@media (prefers-reduced-motion: reduce) {
  .tl-progress, .tl-dot, .tl-step::before, .tl-body, .tl-year, .fade-up {
    transition: none !important;
    animation: none !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
