@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ===== AKADEMIA ALEX DECO CUSTOM STYLES ===== */

:root {
  --gold: #B8923A;
  --gold-light: #C9A54E;
  --gold-pale: #E6D5A8;
  --gold-dim: rgba(184,146,58,.10);
  --rose: #C4993F;
  --rose-light: #D9B560;
  --rose-pale: #F5EDDA;
  --sage: #8B9D83;
  --sage-light: #A7B5A0;
  --sage-pale: #DDE5D9;
  --cream: #FAF8F5;
  --ivory: #FFF9F2;
  --white: #ffffff;
  --text: #2C2420;
  --text2: #6B5D55;
  --text3: #9E8E84;
  --bg2: #F0EBE4;
  --border: #E5DDD5;
  --border2: #D4C9BE;
  --shadow: 0 4px 32px rgba(44,36,32,.10);
  --shadow-lg: 0 12px 60px rgba(44,36,32,.16);
  --on-dark: #F5F0EB;
  --on-dark-muted: rgba(245,240,235,.65);
  --on-dark-dim: rgba(245,240,235,.45);
  --gold-bright: #E8C97A;
  --gold-bright-dim: rgba(232,201,122,.7);
  --radius: 10px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  /* ---- Unified vertical/horizontal section rhythm ----
     Every full-width section uses these so the gaps between
     sections are identical across the whole site. Overridden
     per-breakpoint in the responsive section below. */
  --sp: 60px;    /* section padding (top) */
  --sp-x: 80px;  /* section padding (left & right) */
  --sp-bottom: 40px; /* section padding (bottom) */
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,250,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(44,36,32,.06); }
/* WordPress admin bar fix */
.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar nav { top: 46px; } }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: .02em;
}
.nav-logo span { color: var(--rose); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text2);
  text-decoration: none; transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--rose);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--rose); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--rose); color: var(--white);
  padding: 10px 24px; border-radius: 50px;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(44,36,32,.15);
}
.nav-cta:hover { background: var(--rose-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(184,146,58,.35); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0; z-index: 99;
  background: rgba(250,250,250,.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 32px;
  flex-direction: column; gap: 0;
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px); opacity: 0;
  transition: transform .25s, opacity .25s;
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu a {
  display: block; padding: 16px 0;
  font-size: 1.05rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--rose); }
.mobile-menu .m-cta {
  margin-top: 20px; background: var(--rose); color: var(--white);
  padding: 14px 24px; border-radius: 50px; text-align: center;
  font-weight: 700; border-bottom: none;
  transition: background var(--transition);
}
.mobile-menu .m-cta:hover { background: var(--rose-light); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 68px;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 0 80px;
}
.hero-eyebrow {
  font-size: .76rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  justify-content: flex-start;
}
.hero-eyebrow::before {
  content: none;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem; font-weight: 700; line-height: 1.12;
  color: var(--text); margin-bottom: 28px;
}
.hero-title em { color: var(--rose); font-style: italic; }
.hero-rotating-word {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.15em;
  min-width: 4ch;
}
.hero-rotating-word span {
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .5s ease;
}
.hero-rotating-word span.rotating-out {
  transform: translateY(-100%);
  opacity: 0;
}
.hero-rotating-word span.rotating-in {
  transform: translateY(100%);
  opacity: 0;
}
.hero-rotating-word span.active {
  transform: translateY(0);
  opacity: 1;
}
.hero-subtitle {
  font-size: 1.08rem; color: var(--text2); line-height: 1.75;
  margin-bottom: 44px; max-width: 460px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 52px; }
.btn-primary {
  background: var(--gold); color: var(--white);
  padding: 16px 36px; border-radius: 50px;
  font-size: .92rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(44,36,32,.18);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(44,36,32,.25);
}
.btn-secondary {
  color: var(--text2); font-size: .92rem; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--transition);
}
.btn-secondary:hover { color: var(--sage); }
.btn-secondary svg { transition: transform var(--transition); }
.btn-secondary:hover svg { transform: translateX(3px); }
.hero-stats {
  display: flex; gap: 28px; margin-top: auto;
  padding-top: 36px; border-top: 1px solid var(--border);
  flex-wrap: nowrap;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--sage);
  line-height: 1;
  white-space: nowrap;
}
.hero-stat-label {
  font-size: .76rem; color: var(--text3); margin-top: 4px;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero-visual {
  position: relative; overflow: hidden;
  background: #3E2F2A;
  min-height: 100%;
  border-radius: 0 0 12px 12px;
}
.hero-visual-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #3E2F2A 0%, #4A3830 60%, #3E2F2A 100%);
}
.hero-visual-photo {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero-visual-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  mix-blend-mode: normal;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .06;
  background-image: repeating-linear-gradient(
    45deg, var(--gold) 0, var(--gold) 1px,
    transparent 0, transparent 50%
  );
  background-size: 28px 28px;
}
.hero-img-frame {
  position: absolute; inset: 40px;
  border: 1px solid rgba(184,146,58,.15);
  border-radius: 4px;
}
.hero-visual-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 60px;
}
.hero-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-style: italic;
  color: var(--on-dark); line-height: 1.5;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.3);
}
.hero-quote-attr {
  font-size: .82rem; color: var(--on-dark-muted);
  letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ===== SECTION COMMON ===== */
section { padding: var(--sp) var(--sp-x) var(--sp-bottom); }
.section-eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 700; color: var(--text);
  margin-bottom: 20px; line-height: 1.2;
}
.section-lead {
  font-size: 1.05rem; color: var(--text2); line-height: 1.75;
  max-width: 640px; margin-bottom: 36px;
}

/* ===== O AKADEMII ===== */
.about-section {
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: stretch;
}
.about-text .section-lead { margin-bottom: 20px; }
.about-text .section-lead:last-of-type { margin-bottom: 0; }
.about-keywords {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 36px;
}
.about-keyword-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 24px;
  background: var(--ivory);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.about-keyword-item:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 16px rgba(44,36,32,.06);
  transform: translateX(4px);
}
.about-keyword-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--rose);
  white-space: nowrap;
  min-width: 140px;
}
.about-keyword-desc {
  font-size: .92rem; color: var(--text2); line-height: 1.65;
}
.about-visual {
  position: relative;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
}
.about-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.about-visual:hover img { transform: scale(1.03); }

/* ===== OFERTA (NASZA OFERTA) ===== */
.offer-section { background: var(--cream); }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.offer-card-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.offer-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.offer-card:hover .offer-card-img img { transform: scale(1.06); }
.offer-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(62,47,42,.7) 0%, transparent 50%);
}
.offer-card-type {
  position: absolute; bottom: 16px; left: 20px; z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--on-dark);
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.offer-card-body {
  padding: 28px 24px;
  flex: 1; display: flex; flex-direction: column;
}
.offer-card-desc {
  font-size: .92rem; color: var(--text2); line-height: 1.7;
  margin-bottom: 20px; flex: 1;
}
.offer-card-cta-text {
  display: block;
  text-align: center;
  font-size: .88rem; font-weight: 600;
  color: var(--sage);
  margin-bottom: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}
.offer-card-cta-text:hover { color: var(--sage-light); }
.offer-card-btn {
  display: block; text-align: center;
  background: var(--gold); color: var(--white);
  padding: 13px 24px; border-radius: 50px;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.offer-card-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.offer-card-btn.outline {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold);
}
.offer-card-btn.outline:hover { background: var(--gold-dim); }

/* ===== SZKOLENIA SZCZEGÓŁY ===== */
.courses-detail-section { background: var(--white); }
.courses-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: var(--ivory);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.course-card.featured {
  border-color: var(--sage);
  box-shadow: 0 0 0 1px var(--gold), 0 4px 20px rgba(44,36,32,.08);
}
.course-header {
  padding: 28px 28px 22px;
  background: linear-gradient(135deg, #3E2F2A 0%, #4A3830 100%);
  position: relative; overflow: hidden;
}
.course-header::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: repeating-linear-gradient(
    45deg, var(--gold) 0, var(--gold) 1px,
    transparent 0, transparent 20px
  );
  background-size: 20px 20px;
}
.course-badge-featured {
  position: absolute; top: 14px; right: 14px;
  background: var(--rose); color: var(--white);
  padding: 4px 12px; border-radius: 20px;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .07em; text-indent: .07em; text-transform: uppercase;
}
.course-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--on-dark); line-height: 1.25;
  margin-top: 8px;
  position: relative; z-index: 1;
}
.course-body {
  padding: 24px 28px;
  flex: 1;
  display: flex; flex-direction: column;
}
.course-desc {
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.course-card-cta-text {
  display: block;
  text-align: center;
  font-size: .88rem; font-weight: 600;
  color: var(--sage);
  margin-bottom: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}
.course-card-cta-text:hover { color: var(--sage-light); }
.course-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--gold);
  margin-bottom: 4px;
}
.course-price sup { font-size: .85rem; }
.course-price-note {
  font-size: .76rem;
  color: var(--text3);
  margin-bottom: 20px;
}
.course-features {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 24px;
}
.course-features li {
  font-size: .84rem; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}
.course-features li::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--sage); flex-shrink: 0;
}
.course-btn {
  display: block; text-align: center;
  background: var(--gold); color: var(--white);
  padding: 12px 24px; border-radius: 50px;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.course-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.course-btn.outline {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold);
}
.course-btn.outline:hover { background: var(--gold-dim); }

/* ===== TERMINY ===== */
.dates-section {
  background: var(--cream);
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
}
.dates-section .section-eyebrow { color: var(--sage); }
.dates-section .section-title { color: var(--text); }
.dates-section .section-lead { color: var(--text2); }
.dates-list { display: flex; flex-direction: column; gap: 16px; }
.date-item {
  display: grid;
  grid-template-columns: 1fr auto 160px;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.date-item:hover {
  background: var(--ivory);
  border-color: var(--sage);
  box-shadow: 0 4px 16px rgba(44,36,32,.06);
}
.date-item.soon {
  background: var(--ivory);
  border-color: var(--sage);
}
.date-tag {
  display: inline-block;
  font-size: .66rem; font-weight: 700;
  padding: 4px 10px 2px 10px; border-radius: 20px;
  letter-spacing: .07em; text-indent: .07em;
  text-transform: uppercase;
  background: var(--gold); color: var(--white);
  margin-bottom: 9px;
}
.date-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem; font-weight: 600;
  color: var(--text);
}
.date-when {
  font-size: .86rem;
  color: var(--text3);
  margin-top: 2px;
}
.date-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700; color: var(--gold);
  justify-self: end;
}
.date-price-note {
  font-size: .72rem;
  color: var(--text3);
  margin-top: 2px;
  text-align: right;
}
.date-btn {
  display: inline-block; text-align: center;
  background: var(--gold); color: var(--white);
  padding: 10px 20px; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; transition: background .2s;
  white-space: nowrap;
  justify-self: center;
}
.date-btn:hover { background: var(--gold-light); }
.date-btn.coming {
  background: var(--bg2);
  color: var(--text3);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}

/* ===== ABSOLWENCI ===== */
.graduates-section { background: var(--rose-pale); }
.graduates-header {
  text-align: center; max-width: 700px;
  margin: 0 auto 36px;
}
.graduates-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-style: italic;
  color: var(--rose); line-height: 1.5;
  margin-bottom: 24px;
  position: relative;
  padding: 0 20px;
}
.graduates-quote::before {
  content: '\201C';
  font-size: 4rem; color: rgba(196,153,63,.15);
  position: absolute; top: -20px; left: -10px;
  font-family: 'Playfair Display', serif;
}
.graduates-text {
  font-size: .95rem; color: var(--text2); line-height: 1.75;
  margin-bottom: 16px;
}
.graduates-thanks {
  font-size: .92rem; color: var(--rose); font-weight: 500;
  font-style: italic;
}
.graduates-gallery {  }
.graduates-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  cursor: pointer;
}
.graduates-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.graduates-gallery-item:hover img { transform: scale(1.05); }
.graduates-gallery-item:nth-child(2) { aspect-ratio: auto; }
.graduates-gallery-item:nth-child(2) img { height: 100%; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #3E2F2A 0%, #4A3830 60%, #3E2F2A 100%);
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: repeating-linear-gradient(
    45deg, var(--gold) 0, var(--gold) 1px,
    transparent 0, transparent 24px
  );
  background-size: 24px 24px;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--on-dark);
  margin-bottom: 20px; position: relative;
}
.cta-title em { color: var(--gold-bright); font-style: italic; }
.cta-sub {
  font-size: 1.05rem;
  color: var(--on-dark-muted);
  margin-bottom: 40px; position: relative;
}
.cta-actions {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  position: relative;
}
.cta-btn-a {
  background: var(--gold); color: var(--white);
  padding: 16px 40px; border-radius: 50px;
  font-size: .92rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; transition: all var(--transition);
  white-space: nowrap;
}
.cta-btn-a:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.cta-btn-b {
  border: 1.5px solid rgba(196,153,63,.5);
  color: var(--on-dark);
  padding: 15px 36px; border-radius: 50px;
  font-size: .92rem; font-weight: 500;
  text-decoration: none; transition: all var(--transition);
  white-space: nowrap;
}
.cta-btn-b:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* ===== FORMULARZ ===== */
.form-section {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  padding: 0; /* panels carry their own padding; no outer frame */
}
.form-info {
  background: var(--cream);
  padding: var(--sp) 64px var(--sp-bottom);
  position: relative; overflow: hidden;
}
.form-info::before {
  content: ''; position: absolute; inset: 0; opacity: .03;
  background-image: repeating-linear-gradient(
    -45deg, var(--gold) 0, var(--gold) 1px,
    transparent 0, transparent 28px
  );
  background-size: 28px 28px;
}
.form-info .section-eyebrow { position: relative; color: var(--sage); }
.form-info .section-title { color: var(--text); position: relative; }
.form-info-text {
  font-size: .92rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 36px; position: relative;
}
.form-contact-list {
  display: flex; flex-direction: column;
  gap: 16px; position: relative;
}
.form-contact-item {
  display: flex; align-items: center; gap: 14px;
  font-size: .88rem; color: var(--text2);
  min-width: 0;
}
.form-contact-item span {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.form-contact-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.form-contact-item a {
  color: var(--gold); text-decoration: none;
  transition: color var(--transition);
}
.form-contact-item a:hover { color: var(--gold-light); }
.form-map {
  margin-top: 32px; border-radius: 8px;
  overflow: hidden; position: relative;
  border: 1px solid var(--border);
}
.form-map iframe {
  width: 100%; height: 220px;
  border: none; filter: grayscale(.4) contrast(.95);
}
.form-body { padding: var(--sp) 64px var(--sp-bottom); }
.form-body .section-eyebrow { color: var(--sage); }
.form-body .section-title { font-size: 2rem; }
.form-body .section-lead {
  font-size: .92rem; margin-bottom: 36px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: .76rem; font-weight: 600;
  color: var(--text2);
  letter-spacing: .05em; text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem; color: var(--text);
  background: var(--ivory);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(184,146,58,.08);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238D5E63' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; background: var(--ivory);
  border-radius: 6px; border: 1px solid var(--border);
}
.form-checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 2px;
  accent-color: var(--sage); cursor: pointer;
}
.form-checkbox-row label {
  font-size: .8rem; color: var(--text2);
  line-height: 1.55; cursor: pointer;
}
.form-checkbox-row a { color: var(--sage); }
.form-submit {
  width: 100%; padding: 16px;
  background: var(--gold); color: var(--white);
  border: none; border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .92rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(44,36,32,.18);
  white-space: nowrap;
}
.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(44,36,32,.25);
}
/* Stan "WYSŁANO" — zsynchronizowany z zielonym komunikatem powyżej */
.form-submit.sent,
.form-submit.sent:hover {
  background: #27ae60;
  color: var(--white);
  transform: none;
  box-shadow: 0 4px 20px rgba(39,174,96,.28);
}
.form-note {
  font-size: .76rem; color: var(--text3);
  text-align: center; margin-top: 12px;
}

/* ===== GALLERY STRIP ===== */
.gallery-strip {
  background: var(--white);
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
  overflow: hidden;
}
.gallery-strip-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--sage);
  margin-bottom: 28px;
}
.gallery-strip-scroll {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.gallery-track {
  display: flex;
  width: max-content;
}
.gallery-track-strip {
  gap: 16px;
  animation: galleryScroll 40s linear infinite;
}
.gallery-track-strip:hover {
  animation-play-state: paused;
}
@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gallery-strip-item {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}
.gallery-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-strip-item:hover img { transform: scale(1.05); }

/* ===== GALLERY ZOOM ICON ===== */
.gallery-zoom-icon {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  transform: scale(.8);
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.gallery-zoom-icon svg { width: 16px; height: 16px; }
.gallery-strip-item:hover .gallery-zoom-icon,
.graduates-gallery-item:hover .gallery-zoom-icon {
  opacity: 1; transform: scale(1);
}

/* ===== GRADUATES GALLERY SCROLL ===== */
.graduates-gallery-scroll {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 0;
}
.gallery-track-graduates {
  gap: 20px;
  animation: galleryScroll 30s linear infinite;
}
.gallery-track-graduates:hover {
  animation-play-state: paused;
}
.graduates-gallery-scroll .graduates-gallery-item {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.graduates-gallery-scroll .graduates-gallery-item:nth-child(2) { aspect-ratio: 4/3; }
.graduates-gallery-scroll .graduates-gallery-item:nth-child(2) img { height: 100%; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  animation: lightboxIn .25s ease;
}
@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-content {
  position: relative;
  max-width: 92vw; max-height: 90vh;
}
.lightbox-content img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: -44px; right: -4px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ===== FOOTER ===== */
footer {
  background: #3E2F2A;
  padding: 60px 80px 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-inner > div:first-child {
  justify-self: start;
}
.footer-inner > .footer-col:last-child {
  grid-column: 4;
  justify-self: end;
  text-align: right;
}
.footer-brand-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--on-dark);
  margin-bottom: 16px; display: block;
}
.footer-brand-logo span { color: var(--gold-bright); }
.footer-tagline {
  font-size: .86rem; color: var(--on-dark-muted);
  line-height: 1.7; margin-bottom: 24px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(245,240,235,.06);
  border: 1px solid rgba(245,240,235,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-muted); font-size: .88rem;
  text-decoration: none;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: rgba(184,146,58,.12);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.footer-col h4 {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: .86rem;
  color: var(--on-dark-muted); text-decoration: none;
  margin-bottom: 10px; transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(245,240,235,.08);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-copy { font-size: .78rem; color: var(--on-dark-dim); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: .76rem; color: var(--on-dark-dim);
  text-decoration: none; transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold-bright); }

/* ===== MOBILE CTA BAR ===== */
.mobile-cta-bar {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(250,250,250,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px; gap: 12px;
  justify-content: center;
}
.mobile-cta-bar a {
  flex: 1; text-align: center; padding: 13px;
  border-radius: 50px; font-size: .82rem; font-weight: 700;
  text-decoration: none; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; max-width: 200px;
  display: flex; align-items: center; justify-content: center;
}
.mcta-primary { background: var(--rose); color: var(--white); }
.mcta-secondary { border: 1.5px solid var(--border2); color: var(--text2); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ===== HERO ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow  { animation: fadeUp .6s ease both; animation-delay: .1s; }
.hero-title    { animation: fadeUp .6s ease both; animation-delay: .2s; }
.hero-subtitle { animation: fadeUp .6s ease both; animation-delay: .35s; }
.hero-actions  { animation: fadeUp .6s ease both; animation-delay: .45s; }
.hero-stats    { animation: fadeUp .6s ease both; animation-delay: .55s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  :root { --sp: 56px; --sp-x: 48px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 400px; }
  .hero-content { padding: 64px 48px; order: 2; }
  .hero-visual { order: 1; }
  .about-section { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { align-self: stretch; }
  .about-visual img { height: auto; aspect-ratio: 3/4; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0; }
  .courses-detail-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .form-section { grid-template-columns: 1fr; }
  .form-info { border-top: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > .footer-col:last-child { grid-column: auto; justify-self: end; text-align: right; }
}
@media (max-width: 860px) {
  :root { --sp: 56px; --sp-x: 28px; }
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  /* Portrait-friendly hero image on phones: height scales with width (close to the
     photo's 0.71 ratio) so it isn't heavily cropped vertically, capped via vh so it
     never dominates the screen. Width stays full-bleed. */
  .hero-visual { min-height: 135vw; max-height: 72vh; }
  .hero-content {
    padding: 48px 28px 16px; text-align: center;
    align-items: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  /* On mobile the gallery strip flows straight into the (also white) reservation
     form, so drop its bottom padding — the form's own top padding is the only gap. */
  .gallery-strip { padding-bottom: 0; }
  .hero-actions { justify-content: center; margin-bottom: 0; }
  .hero-stats { justify-content: center; margin-top: 44px; }
  .offer-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .hero-title { font-size: 2.6rem; }
  .graduates-section .graduates-header { margin-bottom: 20px; }
  .date-item {
    grid-template-columns: 1fr;
    gap: 14px; text-align: center;
  }
  .date-price { justify-self: center; }
  .date-price-note { text-align: center; }
  .date-btn { justify-self: center; }
  .form-info { padding: var(--sp) var(--sp-x) var(--sp-bottom); order: 2; }
  .form-body { padding: var(--sp) var(--sp-x) var(--sp-bottom); order: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { text-align: center; }
  .cta-title { font-size: 2rem; }
  .graduates-gallery-scroll .graduates-gallery-item { width: 260px; }
  footer { padding: 48px 24px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner > .footer-col:last-child { grid-column: auto; justify-self: start; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
  .hero-visual-content { padding: 40px 28px; }
  .hero-quote { font-size: 1.3rem; }
  .about-keyword-item { flex-direction: column; gap: 4px; }
  .about-keyword-name { min-width: auto; }
}
@media (max-width: 500px) {
  :root { --sp: 48px; --sp-x: 20px; }
  .hero-title { font-size: 2rem; }
  .hero-content { padding-left: 14px; padding-right: 14px; }
  .hero-stats {
    flex-wrap: nowrap; gap: 10px;
    justify-content: center;
  }
  .hero-stats > div { min-width: 0; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label { font-size: .65rem; }
  .section-title { font-size: 2rem; }
  .graduates-gallery-scroll .graduates-gallery-item { width: 220px; }
  .course-price { font-size: 1.4rem; }
  .date-item { padding: 20px 20px; }
  .form-submit { padding: 14px; }
  .mobile-cta-bar { flex-direction: row; padding: 10px 16px; gap: 10px; }
  .mobile-cta-bar a { max-width: none; padding: 11px 10px; font-size: .78rem; }
  .cta-btn-a, .cta-btn-b { padding: 14px 24px; font-size: .82rem; }
  .gallery-strip-item { width: 220px; }
}

/* ===== SUBPAGES ===== */
.subpage-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.subpage-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .55;
}
.subpage-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(62,47,42,.75) 0%, rgba(62,47,42,.55) 50%, rgba(62,47,42,.75) 100%);
}
.subpage-hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: 80px 80px;
}
.subpage-breadcrumb {
  font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: 16px;
}
.subpage-breadcrumb a { color: var(--on-dark-muted); text-decoration: none; transition: color var(--transition); }
.subpage-breadcrumb a:hover { color: var(--gold-bright); }
.subpage-breadcrumb span { margin: 0 8px; }
.subpage-hero .section-title { color: var(--on-dark); font-size: 3rem; margin-bottom: 20px; }
.subpage-hero .section-lead { color: var(--on-dark-muted); margin-bottom: 0; }

.subpage-intro {
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--white);
}
.subpage-intro-text .section-lead { margin-bottom: 28px; }
.subpage-intro-text .section-lead:last-child { margin-bottom: 0; }

/* ===== SUBPAGE GALLERY ===== */
.subpage-gallery {
  padding: 16px var(--sp-x) var(--sp-bottom);
  background: var(--white);
}
.subpage-gallery-scroll {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 0;
}
.gallery-track-warsztaty {
  gap: 20px;
  animation: galleryScroll 30s linear infinite;
}
.gallery-track-warsztaty:hover {
  animation-play-state: paused;
}
.gallery-track-stacjonarne {
  gap: 20px;
  animation: galleryScroll 30s linear infinite;
}
.gallery-track-stacjonarne:hover {
  animation-play-state: paused;
}
.gallery-track-online {
  gap: 20px;
  animation: galleryScroll 30s linear infinite;
}
.gallery-track-online:hover {
  animation-play-state: paused;
}
.gallery-track-webinary {
  gap: 20px;
  animation: galleryScroll 30s linear infinite;
}
.gallery-track-webinary:hover {
  animation-play-state: paused;
}
.subpage-gallery-scroll .graduates-gallery-item {
  flex-shrink: 0;
  width: 420px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.subpage-benefits {
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
  background: var(--cream);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.benefit-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--sage);
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.benefit-card p {
  font-size: .88rem; color: var(--text2); line-height: 1.7;
}

.subpage-program {
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
  background: var(--white);
}
.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.program-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  background: var(--ivory);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px;
  transition: transform .3s, box-shadow .3s;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.program-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 60px;
}
.program-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.program-card p {
  font-size: .92rem; color: var(--text2); line-height: 1.75;
}

.subpage-testimonials {
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
  background: var(--rose-pale);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 28px;
}
.testimonial-card blockquote {
  font-size: .92rem; color: var(--text2); line-height: 1.75;
  font-style: italic; margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--gold-pale);
}
.testimonial-author {
  font-size: .84rem; font-weight: 600; color: var(--text);
}
.testimonial-role {
  font-size: .74rem; color: var(--text3); margin-top: 2px;
}

.subpage-cta {
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
  background: linear-gradient(135deg, #3E2F2A 0%, #4A3830 60%, #3E2F2A 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subpage-cta::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: repeating-linear-gradient(
    45deg, var(--gold) 0, var(--gold) 1px,
    transparent 0, transparent 24px
  );
  background-size: 24px 24px;
}

/* Responsive for subpages */
@media (max-width: 1200px) {
  .subpage-hero-content { padding: 60px 48px; }
  .subpage-intro { grid-template-columns: 1fr; gap: 36px; }
  .subpage-gallery { padding-top: 12px; }
  .subpage-gallery-scroll .graduates-gallery-item { width: 340px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .subpage-hero { min-height: 45vh; }
  .subpage-hero .section-title { font-size: 2.2rem; }
  .subpage-hero-content { padding: 48px 28px; }
  .subpage-gallery { padding-top: 8px; }
  .subpage-gallery-scroll .graduates-gallery-item { width: 260px; }
  .benefits-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .program-card { grid-template-columns: 1fr; gap: 16px; }
  .program-number { font-size: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .subpage-cta .cta-title { font-size: 2rem; }
}
@media (max-width: 500px) {
  .subpage-hero .section-title { font-size: 1.8rem; }
  .benefits-grid { gap: 16px; }
  .program-card { padding: 24px; }
}

/* ===== LEGAL / TEXT PAGES ===== */
.legal-hero {
  position: relative;
  padding: 130px var(--sp-x) 56px;
  background: linear-gradient(135deg, #3E2F2A 0%, #4A3830 60%, #3E2F2A 100%);
  overflow: hidden;
}
.legal-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: repeating-linear-gradient(
    45deg, var(--gold) 0, var(--gold) 1px,
    transparent 0, transparent 24px
  );
  background-size: 24px 24px;
}
.legal-hero .subpage-breadcrumb,
.legal-hero .section-title { position: relative; z-index: 1; }
.legal-hero .section-title {
  color: var(--on-dark);
  font-size: 2.4rem;
  margin-bottom: 0;
}

.legal-section {
  padding: var(--sp) var(--sp-x) var(--sp-bottom);
  background: var(--white);
}
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-updated {
  font-size: .82rem; color: var(--text3);
  letter-spacing: .03em;
  margin-bottom: 32px;
}
.legal-note {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: .9rem; color: var(--text2); line-height: 1.7;
  margin-bottom: 48px;
}
.legal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700; color: var(--text);
  margin: 44px 0 14px;
}
.legal-content h3:first-of-type { margin-top: 0; }
.legal-content p {
  color: var(--text2); line-height: 1.8; margin-bottom: 16px;
}
.legal-content ul { margin: 0 0 16px; padding-left: 22px; }
.legal-content li {
  color: var(--text2); line-height: 1.8; margin-bottom: 8px;
}
.legal-content a { color: var(--rose); }
@media (max-width: 860px) {
  .legal-hero { padding: 108px 28px 44px; }
  .legal-hero .section-title { font-size: 1.9rem; }
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  overflow: hidden;
}
.hero-slide.hero-slide-active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ===== MATH CAPTCHA ===== */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.captcha-question {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--font2);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  white-space: nowrap;
  user-select: none;
}
.captcha-input {
  max-width: 100px;
  text-align: center;
  font-weight: 600;
}
.captcha-refresh {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: all .25s;
}
.captcha-refresh:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.captcha-hint {
  font-size: .75rem;
  color: var(--text2);
  margin-top: 6px;
}
.captcha-row input.captcha-input.error {
  border-color: #c0392b;
  background: rgba(192,57,43,.05);
}

/* Form success/error messages */
.form-message {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}
.form-message.show { display: block; }
.form-message.success {
  background: rgba(39,174,96,.1);
  border: 1px solid rgba(39,174,96,.3);
  color: #27ae60;
}
.form-message.error {
  background: rgba(192,57,43,.1);
  border: 1px solid rgba(192,57,43,.3);
  color: #c0392b;
}
/* Force gallery images to render immediately */
.gallery-track img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.gallery-strip-item img,
.graduates-gallery-item img {
    min-height: 100px;
}
