:root {
  --mint: #7CE8B4;
  --mint-20: color-mix(in oklch, var(--mint) 20%, black);
  --mint-35: color-mix(in oklch, var(--mint) 35%, black);
  --mint-60: color-mix(in oklch, var(--mint) 60%, black);

  --bg: #161918;
  --bg-alt: #1A1F1D;
  --panel: #1D211F;
  --border: #29302E;
  --border-soft: #272D2B;
  --text: #EDEFEE;
  --text-muted: #B7BFBA;
  --text-dim: #8A938E;
  --text-faint: #6C766F;
  --placeholder: #E8B45E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Archivo', system-ui, sans-serif; letter-spacing: -0.01em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1280px; margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }
.section-pad { padding: 100px 56px; }
.alt-bg { background: var(--bg-alt); }
.muted { color: var(--text-dim); line-height: 1.5; }
.muted.small { font-size: 13px; }
.center { text-align: center; }
h2 { font-size: 36px; font-weight: 700; margin-bottom: 14px; }
.section-lead { font-size: 16px; color: var(--text-muted); max-width: 560px; margin-bottom: 48px; }
.placeholder-tag { color: var(--placeholder); font-size: 12px; }
a.placeholder-tag:hover { color: var(--mint); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  background: rgba(10,12,11,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 38px; height: 38px; background: var(--mint);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--bg); font-size: 14px; }
.logo-mark-sm { width: 30px; height: 30px; }
.logo-mark-sm span { font-size: 11px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.logo-sub { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { color: #C7CDC9; font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--mint); }

.btn { display: inline-block; padding: 15px 28px; font-size: 15px; font-family: inherit; cursor: pointer; border: none; }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; padding: 13px; font-size: 14px; }
.btn-primary { background: var(--mint); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: #ffffff; }
.btn-outline { border: 1px solid var(--mint-35); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--mint); color: var(--mint); }

.card { background: var(--panel); border: 1px solid var(--border); }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow-center { justify-content: center; }
.pegs { display: flex; gap: 5px; }
.pegs span { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pegs span:nth-child(2) { opacity: .75; }
.pegs span:nth-child(3) { opacity: .5; }
.pegs span:nth-child(4) { opacity: .28; }
.pegs-sm span { width: 10px; height: 10px; }
.eyebrow-text { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }

.hero { position: relative; padding-top: 120px; padding-bottom: 100px; overflow: hidden; background-image: radial-gradient(circle, #232A28 1px, transparent 1px); background-size: 28px 28px; }
.hero-split { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.h1-size { font-size: 56px; font-weight: 700; line-height: 1.08; margin-bottom: 24px; }
.hero-lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 480px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: var(--mint); }
.stat-label { font-size: 13px; color: var(--text-dim); }
.hero-media { position: relative; }
.hero-photo { aspect-ratio: 4/3; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: -28px; bottom: -28px; padding: 18px 22px; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% + 56px); font-size: 13px; color: #C7CDC9; }
.hero-badge span:last-child { white-space: nowrap; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.subject-card { padding: 28px; }
.subject-card:hover { border-color: var(--mint-35); }
.subject-card > i { color: var(--mint); font-size: 26px; }
.subject-card h3 { font-size: 17px; margin-top: 14px; margin-bottom: 8px; }
.subject-notes { list-style: none; font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 8px 0 0; padding: 0; }
.offer-featured { grid-column: span 2; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; }
.offer-featured h3 { font-size: 20px; margin-top: 16px; margin-bottom: 8px; }
.tag-row { display: flex; gap: 8px; margin-top: 20px; }
.tag { font-size: 11px; padding: 5px 10px; border: 1px solid var(--border); color: var(--text-muted); }
.level { font-size: 11px; color: var(--text-faint); }

.price-grid { align-items: start; }
.price-card { padding: 32px; }
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; margin: 20px 0 4px; }
.price-unit { font-size: 12px; color: var(--text-faint); margin-bottom: 24px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #C7CDC9; margin-bottom: 28px; }

.teacher-card { padding: 24px; text-align: center; }
.teacher-avatar {
  width: 96px; height: 96px; margin: 0 auto 20px;
  background: var(--mint-20); border: 1px solid var(--mint-35);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
}
.teacher-avatar span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--mint); font-size: 20px; }
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teacher-avatar i { color: var(--mint); font-size: 32px; }
.teacher-card h3 { font-size: 15px; margin-bottom: 4px; }
.teacher-subject { font-size: 12px; color: var(--mint); margin-bottom: 8px; }

.review-card { padding: 28px; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.review-text { font-size: 14px; line-height: 1.6; color: #C7CDC9; margin-bottom: 20px; }
.review-name { font-size: 13px; font-weight: 600; }
.review-role { font-size: 12px; color: var(--text-faint); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 22px 24px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 15px; font-weight: 500; }
.faq-plus { color: var(--mint); font-size: 20px; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item[open] .faq-q { color: var(--mint); }
.faq-item p { margin-top: 14px; }

.kontakt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.kontakt-info { display: flex; flex-direction: column; gap: 24px; }
.map-embed { aspect-ratio: 16/10; padding: 0; overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; display: block; }
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #C7CDC9; }
.info-row i { color: var(--mint); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.info-row-social { justify-content: center; }
.info-row-social i { font-size: 26px; margin-top: 0; }
.info-row-social a:hover i { color: var(--placeholder); }

.form-banner { display: none; font-size: 14px; padding: 14px 16px; border: 1px solid; }
.form-banner.is-visible { display: block; }
.form-banner-success { background: color-mix(in oklch, var(--mint) 15%, transparent); border-color: var(--mint); color: var(--mint); }
.form-banner-error { background: color-mix(in oklch, var(--placeholder) 15%, transparent); border-color: var(--placeholder); color: var(--placeholder); }
.form-banner-error a { color: var(--placeholder); text-decoration: underline; text-underline-offset: 2px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: #1B1F1D; border: 1px solid var(--border-soft); color: var(--text);
  font-family: inherit; font-size: 14px; padding: 13px 14px; width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--mint); }
.contact-form select option { color: var(--text); background: #1B1F1D; }

.site-footer {
  padding: 48px 56px; border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand-text { display: flex; flex-direction: column; gap: 3px; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-credit { font-size: 12px; color: var(--text-faint); }
.footer-credit a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--mint); }
.footer-links { display: flex; gap: 24px; }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint); border: 1px solid var(--mint);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
}
.back-to-top i { color: var(--bg); font-size: 16px; }
.back-to-top:hover { background: #ffffff; border-color: #ffffff; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.footer-links .nav-link { font-size: 13px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }

.grid-3 .reveal:nth-child(1) { transition-delay: 0ms; }
.grid-3 .reveal:nth-child(2) { transition-delay: 90ms; }
.grid-3 .reveal:nth-child(3) { transition-delay: 180ms; }
.grid-3 .reveal:nth-child(4) { transition-delay: 270ms; }
.grid-3 .reveal:nth-child(5) { transition-delay: 360ms; }
.grid-4 .reveal:nth-child(1) { transition-delay: 0ms; }
.grid-4 .reveal:nth-child(2) { transition-delay: 90ms; }
.grid-4 .reveal:nth-child(3) { transition-delay: 180ms; }
.grid-4 .reveal:nth-child(4) { transition-delay: 270ms; }
.faq-list .reveal:nth-child(1) { transition-delay: 0ms; }
.faq-list .reveal:nth-child(2) { transition-delay: 80ms; }
.faq-list .reveal:nth-child(3) { transition-delay: 160ms; }
.faq-list .reveal:nth-child(4) { transition-delay: 240ms; }
.kontakt-split .reveal:nth-child(2) { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-split { grid-template-columns: 1fr; }
  .kontakt-split { grid-template-columns: 1fr; }
  .section-pad { padding: 72px 24px; }
  .site-header { padding: 16px 24px; }
  .site-footer { padding: 32px 24px; }
  .h1-size { font-size: 40px; }
  .offer-featured { grid-column: span 1; }
  .hero-badge { position: static; margin-top: -20px; width: auto; max-width: 100%; }
  .hero-badge span:last-child { white-space: normal; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
