/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #10debc;
  --green-d: #0ec8a9;
  --bg:      #0e0e0e;
  --surface: #161616;
  --surf2:   #1c1c1c;
  --line:    rgba(255,255,255,.07);
  --text:    #efefef;
  --muted:   #999;
  --bb-h:    88px;
  --font:    'Inter', system-ui, -apple-system, sans-serif;
  --cut:     clamp(40px, 6vw, 90px);
  --content-w: 1080px;
}

html { scroll-behavior: smooth; }

/* ── Scrollbar ── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--surf2) var(--bg);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--bg); }
*::-webkit-scrollbar-thumb {
  background: var(--surf2);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--green); }

body {
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bb-h);
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; color: var(--text); }

.container { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 80px; }

/* On narrow screens --edge collapses to the same 20px as the container's own
   padding, so footer content would sit flush against the frame — give it
   extra clearance there. :where() keeps specificity equal to .container so
   the 640px/900px breakpoints below still win at wider widths. */
:where(.footer) .container { padding-inline: calc(var(--edge) + var(--frame) + 10px); }

/* ── Type ── */
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.025em; color: var(--text); }
h1 { font-size: clamp(2.8rem, 10vw, 5.6rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 40px; }
p  { color: var(--muted); line-height: 1.75; }

.kicker {
  display: block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.9rem;
  padding: 12px 24px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn--green { background: var(--green); color: #0e0e0e; }
.btn--green:hover { background: var(--green-d); box-shadow: 0 0 24px rgba(73,219,99,.22); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--muted); outline: 1px solid var(--line); outline-offset: -1px; }
.btn--ghost:hover { color: var(--text); outline-color: rgba(255,255,255,.18); }
.btn--dark { background: #0e0e0e; color: var(--green); }
.btn--dark:hover { background: #000; }
.btn--outline { background: var(--surf2); color: var(--text); }
.btn--outline:hover { background: #242424; }
.btn--lg { padding: 14px 30px; font-size: 0.95rem; }

/* ── Fullscreen nav overlay ── */
.nav-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  gap: 40px;
  padding: 48px 24px 56px;
  opacity: 0; pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity .25s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* Sits outside .nav-overlay (not a scroll-container descendant) so it stays
   truly fixed to the viewport — nesting it inside the scrollable overlay
   caused it to become unclickable mid-scroll on some mobile browsers. */
.nav-close {
  position: fixed; top: 24px; right: 24px; z-index: 301;
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 8px;
  opacity: 0; pointer-events: none;
  transition: color .15s, opacity .2s ease;
}
.nav-close:hover { color: var(--green); }
body.nav-open .nav-close { opacity: 1; pointer-events: auto; }

.nav-top { display: flex; align-items: center; justify-content: center; }
.nav-logo-svg {
  aspect-ratio: 1 / 1; height: 140px; width: auto;
  filter: invert(79%) sepia(60%) saturate(600%) hue-rotate(130deg) brightness(100%) contrast(95%);
}

.nav-links {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  gap: 0; text-align: center;
}
.nav-links a {
  font-size: inherit;
  font-weight: 700; letter-spacing: -.02em;
  color: var(--muted); line-height: 1.2;
  transition: color .15s;
}
.nav-links a:hover { color: var(--green); }

.nav-item {
  position: relative;
  width: 100%;
  padding-block: .5em;
  display: flex; justify-content: center; align-items: center;
}
.nav-item::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
}
.nav-item--a::before { background: var(--bg); }
.nav-item--b::before { background: var(--surface); }
.nav-item--col { flex-direction: column; gap: .5em; }

.nav-sep-band {
  position: relative;
  width: 100%;
  height: 1.5em;
}
.nav-sep-band::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}
.nav-sep-band--a::before { background: linear-gradient(to bottom right, var(--bg) 50%, var(--surface) 50%); }
.nav-sep-band--b::before { background: linear-gradient(to bottom left, var(--surface) 50%, var(--bg) 50%); }

.nav-cats {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.nav-links a.nav-cat {
  display: flex; align-items: center; justify-content: center;
  padding: 2px 16px;
  background: var(--green);
  font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; letter-spacing: -.02em;
  color: #000;
  transition: background-color .15s;
}
.nav-links a.nav-cat:hover { background-color: var(--green-d); color: #000; }

.nav-links a.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .2em .6em;
  background: var(--green);
  color: #000;
  transition: background-color .15s;
}
.nav-links a.nav-cta:hover { background-color: var(--green-d); color: #000; }

.nav-contacts {
  display: flex; flex-direction: column; align-items: center;
  gap: .4em; margin-top: .3em;
}
.nav-contact-label {
  font-size: 0.7em; font-weight: 500; color: var(--muted); opacity: .6;
  text-align: center; margin-bottom: -.15em;
}
.nav-links a.nav-contact,
.nav-social a.nav-contact {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75em; font-weight: 500; color: var(--muted);
  transition: color .15s;
}
.nav-links a.nav-contact svg,
.nav-social a.nav-contact svg { flex-shrink: 0; }
.nav-links a.nav-contact:hover,
.nav-social a.nav-contact:hover { color: var(--green); }

.nav-social {
  width: 100%;
  display: flex; justify-content: center;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

/* ── Bottom bar ── */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: var(--bb-h);
  background: rgba(20,20,20,.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 -8px 24px rgba(0,0,0,.35);
  transition: transform .3s ease;
}
.bottom-bar.hidden { transform: translateY(100%); }

.bb-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 16px;
}

/* Logo: SVG is 1417×1417 (square) */
.bb-logo {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  aspect-ratio: 1 / 1; height: 62px;
}
.bb-logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: invert(79%) sepia(60%) saturate(600%) hue-rotate(130deg) brightness(100%) contrast(95%);
}

.bb-contacts {
  display: flex; align-items: center; justify-content: space-evenly;
  flex: 1; min-width: 0; gap: 10px;
}

/* Two-tone button: icon tile in the brand color, cut on the diagonal into
   the label/value text — the slant is two mirrored clip-paths that tile
   back into a straight seam (icon's bottom-right corner pulled in by
   --bb-cut, text tile pulled left by the same amount and clipped to match). */
.bb-btn {
  --bb-cut: 10px;
  display: inline-flex; align-items: stretch; min-width: 0;
  text-decoration: none;
}
.bb-btn-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--green); color: #0e0e0e;
  padding: 0 calc(var(--bb-cut) + 6px) 0 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--bb-cut)) 100%, 0 100%);
  transition: background-color .15s;
}
.bb-btn-icon svg { flex-shrink: 0; }
.bb-btn-text {
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  gap: 3px; min-height: 40px;
  background: rgba(255,255,255,.05);
  margin-left: calc(var(--bb-cut) * -1);
  padding: 5px 14px 5px calc(var(--bb-cut) + 10px);
  clip-path: polygon(var(--bb-cut) 0, 100% 0, 100% 100%, 0 100%);
}
.bb-btn-label {
  font-size: 0.7rem; font-weight: 500; color: var(--text); opacity: .8;
  line-height: 1.15; white-space: nowrap;
}
.bb-btn-value {
  font-size: 0.9rem; font-weight: 500; color: var(--text); line-height: 1.25;
  white-space: nowrap; transition: color .15s;
}
.bb-btn:hover .bb-btn-icon { background: var(--green-d); }
.bb-btn:hover .bb-btn-value { color: var(--green); }

.bb-contacts .bb-btn-label { display: none; }
.bb-btn--email, .bb-btn--secondary { display: none; }
@media (min-width: 900px) {
  .bb-btn--email { display: inline-flex; }
  .bb-btn--secondary { display: inline-flex; }
  .bb-contacts .bb-btn-label { display: block; }
}

/* ── Cookie bar ── */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: var(--bb-h); z-index: 250;
  max-width: 100vw;
  overflow-x: hidden;
  background: rgba(20,20,20,.97);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.cookie-bar.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s;
}
.cookie-bar-inner {
  display: flex; flex-direction: column; gap: 18px;
}
.cookie-bar-text {
  min-width: 0; max-width: 100%;
}
.cookie-bar-text strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 8px; }
.cookie-bar-text p {
  font-size: 0.82rem; color: var(--muted); line-height: 1.6;
  overflow-wrap: break-word; word-break: break-word;
}
.cookie-bar-text p + p { margin-top: 4px; }
.cookie-bar-links a { color: var(--green); }
.cookie-bar-links a:hover { color: var(--green-d); }

.cookie-bar-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font); font-weight: 600; font-size: 0.82rem;
  padding: 12px 22px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cookie-btn--reject {
  background: transparent; color: var(--muted);
  border-color: rgba(255,255,255,.28);
}
.cookie-btn--reject:hover { color: var(--text); border-color: rgba(255,255,255,.5); }
.cookie-btn--accept {
  background: var(--green); color: #0e0e0e; border-color: var(--green);
}
.cookie-btn--accept:hover { background: var(--green-d); border-color: var(--green-d); }
@media (min-width: 700px) {
  .cookie-bar-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .cookie-bar-actions { flex-shrink: 0; }
}

.footer-legal-links a,
.footer-legal-links button {
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,.55);
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; cursor: pointer; transition: color .15s;
}
.footer-legal-links a:hover,
.footer-legal-links button:hover { color: var(--green); }

.bb-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 10px 8px; flex-shrink: 0;
}
.bb-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--green); transition: all .25s;
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--cut)));
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transform: scale(1.15);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,10,10,.97) 0%,
    rgba(10,10,10,.78) 40%,
    rgba(10,10,10,.40) 80%,
    rgba(10,10,10,.15) 100%
  );
}
.hero-logo {
  position: relative; z-index: 1;
  align-self: center;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0;
  margin-bottom: auto;
  padding: 14px 0;
  background: var(--bg);
  will-change: transform, opacity;
}
.hero-logo img {
  display: block;
  height: clamp(64px, 12vw, 110px); width: auto;
  filter: invert(79%) sepia(60%) saturate(600%) hue-rotate(130deg) brightness(100%) contrast(95%);
}
.hero-logo::before {
  content: "";
  position: absolute; top: 0; right: 100%; height: 100%;
  aspect-ratio: 1 / 2;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.hero-logo::after {
  content: "";
  position: absolute; top: 0; left: 100%; height: 100%;
  aspect-ratio: 1 / 2;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hero-body {
  position: relative; z-index: 1;
  padding: 0 20px calc(48px + var(--cut));
  max-width: 1080px; width: 100%; margin-inline: auto;
}
.hero-body h1 { color: #fff; margin-block: 16px 20px; max-width: 16ch; }
.hero-body h1 em { font-style: normal; color: var(--green); }
.hero-sub { color: rgba(255,255,255,.48); max-width: 40ch; margin-bottom: 36px; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-strip {
  background: var(--bg);
}
.hero-strip-inner {
  display: flex; flex-direction: column; gap: 12px;
  padding-block: 4px;
  max-width: 1080px; margin-inline: auto; padding-inline: 20px;
}
.hs-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 16px;
  background: rgba(255,255,255,.05);
  --cut: 6px;
}
.hs-item strong { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.hs-item span   { font-size: 0.75rem; color: var(--muted); }
/* First item: cut on the left, full-height on the right (facing the gap) —
   top edge "/" bottom-left-to-top-right, bottom edge "\" top-left-to-bottom-right. */
.hs-item:first-child {
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 calc(100% - var(--cut)));
}
/* Second item: mirrored — full-height on the left (facing the gap), cut on the right. */
.hs-item:last-child {
  clip-path: polygon(0 0, 100% var(--cut), 100% calc(100% - var(--cut)), 0 100%);
}

/* ── Section separators (even-odd zones, diagonal-bounded) ── */
.section-sep {
  width: 100%;
  height: clamp(32px, 6vw, 72px);
}
.section-sep--a { background: linear-gradient(to bottom right, var(--bg) 50%, var(--surface) 50%); }
.section-sep--b { background: linear-gradient(to bottom left, var(--surface) 50%, var(--bg) 50%); }

/* ── About ── */
.about { background: var(--bg); }
.about-grid { display: flex; flex-direction: column; gap: 48px; }
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; object-position: center 15%;
  filter: grayscale(20%);
}
.about-badge {
  position: absolute; bottom: -14px; right: 14px;
  background: var(--green); color: #0e0e0e;
  padding: 14px 20px; text-align: center;
}
.badge-num { font-size: 1.8rem; font-weight: 700; line-height: 1; display: block; }
.badge-num sup { font-size: .9rem; }
.badge-txt { font-size: 0.85rem; font-weight: 700; opacity: .75; display: block; margin-top: 2px; }

.about-text { padding-top: 24px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p  { margin-bottom: 14px; }

.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact-item {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  padding: 14px 30px;
  background: var(--surf2);
  transition: color .15s, background .15s; width: fit-content;
}
.contact-item svg { color: var(--text); flex-shrink: 0; }
.contact-item:hover { background: #242424; }
.contact-item--plain {
  cursor: default; background: none; padding: 10px 0;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
}
.contact-item--plain svg { color: var(--green); }
.contact-item--plain:hover { color: var(--muted); background: none; }
.contact-phones { display: flex; flex-direction: column; gap: 20px; }

/* ── Oktatóink ── */
.instructors-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
.instructor-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 36px 24px;
  background: linear-gradient(135deg, var(--surf2) 0%, var(--surface) 100%);
}
.instructor-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.instructor-car {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 16px;
}
.instructor-car svg { color: var(--green); flex-shrink: 0; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-card {
  --pc-cut: 16px;
  padding: 32px 24px;
  transition: filter .15s;
}
.price-card:hover { filter: brightness(1.15); }
/* Odd cards: cut "\" top-left-to-bottom-right, both top and bottom edges. */
.price-card:nth-child(odd) {
  background: var(--surf2);
  clip-path: polygon(0 0, 100% var(--pc-cut), 100% 100%, 0 calc(100% - var(--pc-cut)));
}
/* Even cards: mirrored cut "/" bottom-left-to-top-right. */
.price-card:nth-child(even) {
  background: var(--surface);
  clip-path: polygon(0 var(--pc-cut), 100% 0, 100% calc(100% - var(--pc-cut)), 0 100%);
}
/* Below 900px the grid is 2 columns (2 rows of 2) — flip the 2nd row's
   background and cut direction so it forms a checkerboard instead of two
   solid-colored/same-angled columns. */
@media (max-width: 899px) {
  .price-card:nth-child(3) {
    background: var(--surface);
    clip-path: polygon(0 var(--pc-cut), 100% 0, 100% calc(100% - var(--pc-cut)), 0 100%);
  }
  .price-card:nth-child(4) {
    background: var(--surf2);
    clip-path: polygon(0 0, 100% var(--pc-cut), 100% 100%, 0 calc(100% - var(--pc-cut)));
  }
}
.price-icon { color: var(--green); margin-bottom: 20px; }
.price-num { font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -.02em; margin-bottom: 2px; }
.price-unit { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.price-lbl  { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ── Categories ── */
.categories { background: var(--surface); }
.cat-list { display: flex; flex-direction: column; }
.cat-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease;
}
.cat-item:hover { transform: translateX(8px); }
.cat-ltr {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #000;
  background: var(--green);
  width: 48px; height: 48px; flex-shrink: 0;
  transition: background-color .25s ease;
}
.cat-item:hover .cat-ltr { background: var(--green-d); }
.cat-info strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.cat-info span   { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ── Stats ── */
.stats-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.stats-table th, .stats-table td {
  text-align: left; padding: 8px 10px;
  font-size: 0.78rem;
}
.stats-table th { color: var(--muted); font-weight: 500; }
.stats-table td:first-child { color: var(--text); font-weight: 600; }
/* Checkerboard: cell shade depends on row + column parity together, in
   shades darker/lighter than the footer's own background. */
.stats-table tr:nth-child(odd)  td:nth-child(odd),
.stats-table tr:nth-child(odd)  th:nth-child(odd),
.stats-table tr:nth-child(even) td:nth-child(even),
.stats-table tr:nth-child(even) th:nth-child(even) { background: var(--surf2); }
.stats-table tr:nth-child(odd)  td:nth-child(even),
.stats-table tr:nth-child(odd)  th:nth-child(even),
.stats-table tr:nth-child(even) td:nth-child(odd),
.stats-table tr:nth-child(even) th:nth-child(odd) { background: var(--bg); }
.sv { font-weight: 600; color: var(--green) !important; text-align: right; }

/* ── CTA ── */
.cta { background: var(--bg); }
.cta-inner { display: flex; flex-direction: column; gap: 32px; }
.cta-text h2 { margin-bottom: 10px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-actions .btn { justify-content: center; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 0;
  --edge: max(20px, calc((100% - var(--content-w)) / 2));
  --frame: 6px;
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right,
      transparent 0, transparent var(--edge),
      var(--green) var(--edge), var(--green) calc(var(--edge) + var(--frame)),
      transparent calc(var(--edge) + var(--frame)), transparent calc(100% - var(--edge) - var(--frame)),
      var(--green) calc(100% - var(--edge) - var(--frame)), var(--green) calc(100% - var(--edge)),
      transparent calc(100% - var(--edge)), transparent 100%
    ),
    var(--surface);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--cut) + var(--frame));
  background: linear-gradient(to right,
    transparent 0, transparent var(--edge),
    var(--green) var(--edge), var(--green) calc(100% - var(--edge)),
    transparent calc(100% - var(--edge)), transparent 100%
  );
  clip-path: polygon(
    0 var(--cut),
    100% 0,
    100% var(--frame),
    0 calc(var(--cut) + var(--frame))
  );
  pointer-events: none;
}
.footer-block { padding-block: 56px; }
.footer-block:first-child { padding-top: calc(var(--cut) + var(--frame) + 24px); }
.footer-hours { display: flex; flex-direction: column; gap: 7px; }
.footer-hours-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.fh-row { display: flex; justify-content: space-between; font-size: 1rem; }
.fh-row span:first-child { color: var(--muted); }
.fh-row span:last-child  { color: var(--text); }
.footer-cats-list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 24px; margin-top: 4px; }
.footer-cats-list a { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-cats-list a:hover { color: var(--green); }

.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 24px; margin-top: 20px; }

/* ── 404 ── */
.error-page {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--cut)));
}
.error-page .container { max-width: 640px; padding-block: calc(48px + var(--cut)) 48px; }
.error-page .kicker { text-align: center; }
.error-page h1 { margin-bottom: 24px; }

/* ── Subpages ── */
.page-header {
  padding-block: 72px 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text); margin-bottom: 40px;
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text); }
.page-cat-letter {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700; line-height: 1; letter-spacing: -.04em;
  color: #0e0e0e; background: var(--green);
  padding: 0.15em 0.55em;
  margin-bottom: 12px;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.page-header h1 { margin-bottom: 12px; }
.page-header .sub { color: var(--muted); max-width: 52ch; line-height: 1.7; }

.req-list { display: flex; flex-direction: column; margin-top: 32px; }
.req-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.req-item:last-child { border-bottom: none; }
.req-dot {
  width: 6px; height: 6px; flex-shrink: 0;
  background: var(--green); margin-top: 9px;
}
.req-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 4px;
}
.req-val { font-size: 0.9rem; color: var(--text); line-height: 1.6; }

.curr-grid {
  display: grid; gap: 1px; background: var(--line); margin-top: 32px;
}
.curr-block { background: var(--bg); padding: 28px 24px; }
.curr-block h3 {
  font-size: 0.68rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 20px;
}
.hours-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem;
}
.hours-row span { color: var(--muted); }
.hours-row strong { color: var(--text); font-weight: 600; white-space: nowrap; margin-left: 16px; }
.hours-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 0; margin-top: 4px; font-size: 0.9rem; font-weight: 700;
}
.hours-total span { color: var(--muted); font-size: 0.82rem; }
.hours-total strong { color: var(--green); }

.fee-list { display: flex; flex-direction: column; margin-top: 32px; }
.fee-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.fee-item:last-child { border-bottom: none; }
.fee-item span { color: var(--muted); }
.fee-item strong { color: var(--text); font-weight: 700; }

.bg-surface { background: var(--surface); }
.note { font-size: 0.82rem; color: var(--muted); margin-top: 20px; line-height: 1.6; }
.note a { color: var(--green); }

.section p a, .req-val a {
  color: var(--green); text-decoration: underline; text-underline-offset: 2px;
  transition: color .15s;
}
.section p a:hover, .req-val a:hover { color: var(--green-d); }

.doc-full-inner {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.doc-full-inner h3 {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
  margin-top: 36px; margin-bottom: 10px;
}
.doc-full-inner h3:first-child { margin-top: 0; }
.doc-full-inner p {
  font-size: 0.875rem; color: var(--muted); line-height: 1.8; margin-bottom: 6px;
}
.doc-row {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.doc-row:last-child { border-bottom: none; }
.doc-row span { color: var(--muted); }
.doc-row strong { color: var(--text); }

@media (min-width: 640px) {
  .curr-grid { grid-template-columns: 1fr 1fr; }
  .doc-row { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; }
  .doc-row strong { white-space: nowrap; }
}

/* ── Copyright ── */
.copyright {
  position: fixed; right: 0; top: 24px; z-index: 50;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.65rem; letter-spacing: .12em;
  color: rgba(255,255,255,.45); white-space: nowrap;
  pointer-events: none; user-select: none;
}

/* ── Merged CTA + Kapcsolat ── */
.cta-contact-grid { display: grid; gap: 56px; }
@media (min-width: 640px) {
  .cta-contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Scroll fade ── */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── 640px+ ── */
@media (min-width: 640px) {
  .container { padding-inline: 28px; }

  .hero-strip-inner { flex-direction: row; align-items: center; padding-inline: 28px; gap: 20px; }
  .hs-item {
    flex-direction: column; align-items: flex-start; flex: 1;
    padding: 22px 28px;
    --cut: 10px;
  }

  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
  .instructors-grid { grid-template-columns: 1fr 1fr; }

  .cta-actions { flex-direction: row; }
  .cta-actions .btn { justify-content: flex-start; }
}

/* ── 900px+ ── */
@media (min-width: 900px) {
  .section { padding-block: 108px; }
  .container { padding-inline: 40px; }

  .about-grid { display: grid; grid-template-columns: 400px 1fr; gap: 80px; align-items: center; }
  .about-photo { aspect-ratio: auto; height: 500px; }
  .about-badge { right: -16px; bottom: -16px; }
  .about-text { padding-top: 0; }

  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 80px; }
  .cta-actions { flex-shrink: 0; }
}
