/* ===========================================================================
   BE-school — Homepage B "Forest & Coral"
   Deep green hero, coral accent, warm cream sections.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

:root {
  --deep:    #1c4434;   /* hero / footer forest green */
  --deep-2:  #245241;   /* lifted dark */
  --coral:   #e8674a;   /* warm accent */
  --coral-d: #d6573b;
  --cream:   #faf6ee;   /* page background */
  --cream-2: #f3ecdf;   /* deeper cream band */
  --card:    #ffffff;
  --ink:     #1e2a24;
  --muted:   #67726a;
  --line:    #e7e1d2;
  --mint:    #e9f1e6;
  --radius:  20px;
  --maxw:    1180px;
  --pad:     clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a, button { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- atoms ---------------------------------------------------------------- */
.kick {
  display: block;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 12px;
}
.kick--light { color: #f3a995; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15.5px; font-weight: 700;
  background: var(--coral); color: #fff; border: none;
  padding: 14px 26px; border-radius: 10px; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--coral-d); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(232,103,74,0.35); }
.btn--line { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); }
.btn--line:hover { background: rgba(255,255,255,0.08); border-color: #fff; box-shadow: none; }
.btn--green { background: var(--deep); }
.btn--green:hover { background: var(--deep-2); box-shadow: 0 8px 22px rgba(28,68,52,0.3); }

/* ---- header / hero --------------------------------------------------------- */
/* sticky navigation bar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep); color: #fff;
  transition: box-shadow .2s ease, background .2s ease;
}
.navbar.is-stuck { box-shadow: 0 6px 24px rgba(20,40,30,0.28); }

.top {
  background: var(--deep); color: #fff;
  position: relative; overflow: hidden;
}
/* dotted texture */
.top::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  pointer-events: none;
}
.top > .wrap { position: relative; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 24px; padding-bottom: 24px;
}
.brand { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--coral); }
.brand-sub { font-size: 11.5px; font-style: italic; color: #b9d2c0; }

.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; color: #cfe0d2; }
.nav-links a { transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform .2s ease, opacity .2s ease;
}
.navbar.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(30px, 5vw, 64px); padding-bottom: clamp(46px, 6vw, 86px);
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px); color: #fff;
}
.hero h1 span { color: var(--coral); }
.hero-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: #b9d2c0; margin-bottom: 18px;
}
.hero-lead {
  margin-top: 22px; max-width: 30em;
  font-size: 17.5px; color: #d7e5da; text-wrap: pretty;
}
.hero-lead .hero-trial-link {
  color: #fff; font-weight: 700;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.hero-lead .hero-trial-link:hover { color: var(--coral); border-color: var(--coral); }

.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* hero visual: layered circles */
.hero-side { position: relative; display: flex; justify-content: center; }
.hero-art { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.hero-art .ring {
  position: absolute; inset: -7%; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.22);
}
.hero-art .blob-coral {
  position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: var(--coral); right: -4%; top: -3%; opacity: 0.92;
  z-index: 1; /* in front of the main photo */
}
.hero-art .hero-hellos {
  position: absolute; width: 33%; aspect-ratio: 1; border-radius: 50%;
  background: var(--deep-2); left: -4%; bottom: 6%;
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 38px rgba(0,0,0,0.26);
  z-index: 2; /* in front of the main photo */
  overflow: hidden;
}
.hero-art .hero-hellos .g {
  position: absolute; display: block; color: #fff;
  font-family: 'Kaushan Script', cursive; font-weight: 400;
  line-height: 0.82; letter-spacing: 0; white-space: nowrap;
  transform-origin: center; text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
/* painted, overlapping brush cluster */
.hero-art .hero-hellos .g-en {
  top: 19%; left: 19%; font-size: clamp(13px, 2.7vw, 24px);
  transform: rotate(-8deg);
}
.hero-art .hero-hellos .g-de {
  top: 36%; right: 17%; font-size: clamp(10px, 2vw, 17px);
  opacity: 0.78; transform: rotate(5deg);
}
.hero-art .hero-hellos .g-es {
  top: 48%; left: 24%; font-size: clamp(11px, 2.2vw, 19px);
  opacity: 0.88; transform: rotate(-3deg);
}
.hero-art .hero-hellos .g-sk {
  bottom: 21%; right: 24%; font-size: clamp(14px, 2.9vw, 25px);
  color: var(--coral); transform: rotate(6deg);
}
.hero-art .hero-hellos .g-dot,
.hero-art .hero-hellos .g-sk::after { display: none; }
.hero-art .hero-photo {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,0.07);
}
.hero-art .hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art .hero-photo .hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-art .hero-photo .hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-art .hero-photo .hero-slide { transition: none; }
}
.hero-tagline {
  position: absolute; z-index: 3;
  right: -6%; bottom: calc(-9% - 10px);
  font-family: 'Kaushan Script', cursive; font-weight: 400;
  font-size: clamp(15px, 1.8vw, 22px);
  color: #f0d9c4; line-height: 1; white-space: nowrap;
  opacity: 0.95; transform: rotate(-5deg); transform-origin: right center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}
.hero-tagline .tq { color: var(--coral); font-size: 1.25em; }
.hero-tagline .tq:first-child { margin-right: 0.04em; }
.hero-tagline .tq:last-child  { margin-left: 0.04em; }

/* language strip */
.strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  padding-bottom: 34px; position: relative;
  color: #cfe0d2; font-size: 15px; font-weight: 600;
}
.strip span::before { content: "●"; color: var(--coral); font-size: 9px; margin-right: 10px; vertical-align: 2px; }

/* ---- sections --------------------------------------------------------------- */
.section { padding-top: clamp(56px, 8vw, 96px); }
.section--last { padding-bottom: clamp(56px, 8vw, 96px); }
.center { text-align: center; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); }
.sub { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 38em; text-wrap: pretty; }
.center .sub { margin-left: auto; margin-right: auto; }
.sub-h { font-size: 17px; font-weight: 800; color: var(--deep); margin: 26px 0 4px; }
.about-body { max-width: 52em; margin-top: 22px; }
.about-body p { color: var(--muted); font-size: 16.5px; margin-top: 12px; text-wrap: pretty; }
.about-body .points { margin-top: 14px; }
.course-row .body p + .sub-h { margin-top: 18px; }

/* audiences */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; position: relative;
  color: inherit; text-decoration: none;
  scroll-margin-top: 90px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30,42,36,0.1); border-color: var(--deep); }
.card .card-cta {
  margin-top: auto; padding-top: 18px;
  font-size: 15px; font-weight: 700; color: var(--coral);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.card:hover .card-cta, .card:focus-visible .card-cta { opacity: 1; transform: none; }
.card .num {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; margin-bottom: 20px;
}
.card .tag {
  position: absolute; top: 30px; right: 26px;
  font-size: 12.5px; font-weight: 700; color: var(--deep);
  background: var(--mint); padding: 5px 12px; border-radius: 999px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more {
  display: inline-block; margin-top: 18px; white-space: nowrap;
  font-size: 15px; font-weight: 700; color: var(--coral);
}
.card .more:hover { color: var(--coral-d); }

/* pre firmy photo */
.firmy-photo { border-radius: var(--radius); overflow: hidden; min-height: 380px; border: 1px solid var(--line); }
.firmy-photo img { display: block; width: 100%; height: 100%; min-height: 380px; object-fit: cover; }

/* course list */
.courses { margin-top: 40px; display: grid; gap: 18px; }
.course-row {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: 0.85fr 1.5fr auto;
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  scroll-margin-top: 90px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.course-row:target,
.course-row.is-flash {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px var(--mint);
}
.course-row .tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; color: var(--deep);
  background: var(--mint); padding: 5px 12px; border-radius: 999px;
}
.course-row h3 { font-size: 22px; margin: 14px 0 6px; }
.course-row .lang { font-size: 14px; font-weight: 700; color: var(--coral); }
.course-row .body p { color: var(--muted); font-size: 15.5px; }
.course-row .body p strong { color: var(--deep); font-weight: 800; }
.points--tight { margin-top: 16px; gap: 8px; }
.points--tight li { font-size: 15px; }
.course-row .act { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price-note { font-size: 13.5px; color: var(--muted); }

/* split layouts */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 76px);
  align-items: center;
}
.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { padding-left: 32px; position: relative; font-size: 16.5px; }
.points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint); color: var(--deep);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* photo collage */
.collage { position: relative; padding: 6% 10% 10% 0; }
.collage .ph-main img { border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.collage .ph-circle {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 6px solid var(--cream);
  box-shadow: 0 16px 40px rgba(30,42,36,0.16);
}
.collage .ph-circle img { width: 100%; height: 100%; object-fit: cover; }
.collage .dot {
  position: absolute; top: 0; right: 14%;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--coral); opacity: 0.9;
}

/* exams panel */
.exams {
  background: var(--deep); color: #fff; border-radius: 26px;
  padding: clamp(34px, 5vw, 60px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; position: relative; overflow: hidden;
}
.exams::before {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.18);
}
.exams .sub { color: #d7e5da; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 8px 16px; border-radius: 999px;
}
.levels { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.lvl {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-weight: 800; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center;
}
.lvl:nth-child(odd) { background: var(--coral); border-color: var(--coral); }
.exams-photo { border-radius: 18px; overflow: hidden; position: relative; }
.exams-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* trial band */
.band {
  /* faint corner circle baked into the background so it stays clipped to the box,
     while the box itself allows the polaroids to spill outside */
  background:
    radial-gradient(circle 115px at -25px calc(100% + 55px), rgba(255,255,255,0.12) 99%, transparent 100%),
    var(--coral);
  color: #fff; border-radius: 26px;
  padding: clamp(32px, 5vw, 52px);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 52px); align-items: stretch;
  position: relative; overflow: visible;
}
.band-text { position: relative; z-index: 1; }
.band-text .btn { margin-top: 26px; }
.band-polaroids {
  position: relative; z-index: 1;
  min-height: clamp(340px, 30vw, 380px);
}
.polaroid {
  position: absolute;
  width: 55%;
  background: #fff; padding: 12px 12px 46px;
  border-radius: 3px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.30);
  transition: transform 1.5s cubic-bezier(.2,.7,.2,1), opacity 1.2s ease;
}
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
/* every photo shares one ratio so all frames match */
.polaroid .cap {
  display: block; margin-top: 8px; text-align: center;
  font-family: 'Kaushan Script', cursive; color: #2a2320; font-size: 17px;
  line-height: 1;
}
/* tight, overlapping pile — top row top-anchored, bottom row bottom-anchored
   so the cluster fills the band height (matches the reference shot) */
.polaroid:nth-child(1) { top: -25%;   left: 0%;  z-index: 2; transform: rotate(-26deg); }
.polaroid:nth-child(2) { top: -22%;   left: 58%; z-index: 1; transform: rotate(6deg); }
.polaroid:nth-child(3) { bottom: -12%; left: 4%;  z-index: 4; transform: rotate(13deg); }
.polaroid:nth-child(4) { bottom: 0;    left: 60%; z-index: 3; transform: rotate(24deg); }
.band h3 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 8px; }
.band p { color: #ffe3da; max-width: 36em; }
.band .kick { color: #ffd2c5; }
.band .btn { background: #fff; color: var(--coral-d); position: relative; }
.band .btn:hover { background: var(--cream); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }

/* about + stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.stat .n { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--deep); }
.stat .l { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* contact */
.contact {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.lbl {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--coral); margin: 24px 0 4px;
}
.row { font-size: 16.5px; line-height: 1.7; }
.row a { color: var(--deep); font-weight: 700; border-bottom: 2px solid var(--mint); }
.row a:hover { border-color: var(--coral); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map img { width: 100%; display: block; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---- footer ----------------------------------------------------------------- */
.foot { background: var(--deep); color: #a4bfac; margin-top: clamp(56px, 8vw, 96px); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-top: 56px; padding-bottom: 40px;
}
.foot h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.foot .brand { margin-bottom: 16px; }
.foot p, .foot li { font-size: 14.5px; line-height: 1.9; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot a:hover { color: #fff; }
.foot-bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px; padding-bottom: 26px; font-size: 13.5px;
}

/* ---- responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { order: -1; }
  .hero-art { width: min(340px, 80vw); }
  .aud, .stats { grid-template-columns: 1fr 1fr; }
  .split, .exams, .contact, .band { grid-template-columns: 1fr; }

  /* photos are decorative — drop the whole cluster once the band stacks */
  .band-polaroids { display: none; }
  .course-row { grid-template-columns: 1fr; gap: 18px; }
  .course-row h3 { margin-top: 12px; }
  .course-row .act { flex-direction: row; align-items: center; gap: 16px; }
  .nav { position: static; }
  .navbar { position: sticky; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep);
    padding: 6px var(--pad) 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 30px rgba(20,40,30,0.32);
    display: none;
  }
  .navbar.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 4px; font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a:active { background: var(--deep-2); }
}
@media (max-width: 768px) {
  /* photos are redundant on small screens — hide them AND skip the download
     (the <picture> mobile <source> serves a 1px inline placeholder instead) */
  .hero-side, .collage, .exams-photo, .firmy-photo { display: none; }
}
@media (max-width: 620px) {
  .hero { padding-top: clamp(16px, 4vw, 30px); }

  .aud, .stats { grid-template-columns: 1fr; }
  .card .tag { position: static; display: inline-block; margin-bottom: 14px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }

  /* long CTAs wrap and span full width instead of overflowing */
  .band .btn { width: 100%; white-space: normal; text-align: center; }
}
