/* =========================================================
   EduX Yurtdışı Eğitim — style.css
   ========================================================= */
:root {
  --navy: #0c1b4d;
  --navy-2: #16297a;
  --navy-3: #22389c;
  --red: #e11d48;
  --red-2: #fb3b62;
  --red-soft: #ffe8ee;
  --ink: #141b34;
  --muted: #5c6582;
  --line: #e6e8f0;
  --bg: #f5f6fb;
  --soft: #eef1fa;
  --white: #fff;
  --gold: #f5b301;
  --green: #18a957;
  --r-xl: 32px;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --sh: 0 24px 60px -24px rgba(12, 27, 77, .28);
  --sh-sm: 0 6px 22px -8px rgba(12, 27, 77, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1280px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.12; color: var(--navy); letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(225, 29, 72, .45); outline-offset: 2px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section.soft { background: var(--white); }
.img-fail { opacity: 0 !important; }

/* ---------- Atoms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; transition: .25s var(--ease); white-space: nowrap; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg.arr { transform: translateX(4px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(225, 29, 72, .75); }
.btn-red:hover { background: #c8143d; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-white:hover { border-color: var(--navy); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pill .blink { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225,29,72,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(225,29,72,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); } }
.pill.dark { background: rgba(255,255,255,.1); color: #ffc2cf; }

.h-stack { font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; line-height: 1.02; }
.h-stack span { display: block; color: var(--red); font-size: .5em; letter-spacing: .08em; margin-bottom: 6px; }
.h-sec { font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; line-height: 1.02; }
.lead { color: var(--muted); font-size: 17px; }
.text-red { color: var(--red); }

.sec-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-top p { color: var(--muted); max-width: 460px; margin-top: 12px; }

.arrow-btns { display: flex; gap: 8px; }
.arrow-btns button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); transition: .2s; }
.arrow-btns button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--navy); color: #c8d0ef; font-size: 13.5px; text-align: center; padding: 9px 16px; position: relative; }
.announce b { color: #fff; }
.announce a { color: #ffc2cf; font-weight: 700; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
.announce .x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #c8d0ef; padding: 4px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; padding: 12px 0; transition: padding .3s; }
.header.scrolled { padding: 8px 0; }
.bar { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border: 1px solid rgba(230,232,240,.9); border-radius: 999px; padding: 8px 8px 8px 12px; box-shadow: var(--sh-sm); position: relative; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--navy); transition: .2s; flex: none; }
.ibtn:hover { background: var(--soft); }
.ibtn.red { background: var(--red); color: #fff; }
.ibtn.red:hover { background: #c8143d; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 25px; letter-spacing: -.04em; color: var(--navy); flex: none; }
.logo .mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--red), var(--red-2)); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.logo .mark::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.22); right: -6px; top: -6px; }
.logo b { color: var(--red); }
.logo small { display: block; font-size: 9.5px; letter-spacing: .18em; font-weight: 700; color: var(--muted); margin-top: -2px; }
.logo .txt { line-height: 1; }

.menu { display: flex; gap: 2px; margin-left: auto; }
.menu > li > a, .menu > li > button { display: flex; align-items: center; gap: 4px; padding: 11px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink); background: none; border: 0; transition: .2s; }
.menu > li > a svg, .menu > li > button svg { transition: transform .25s; opacity: .6; }
.menu > li:hover > a, .menu > li:hover > button, .menu > li.open > button { background: var(--soft); color: var(--red); }
.menu > li:hover > button svg, .menu > li.open > button svg { transform: rotate(180deg); }
.bar-right { display: flex; align-items: center; gap: 6px; margin-left: 8px; }

.mega { position: absolute; left: 0; right: 0; top: calc(100% + 10px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); padding: 28px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; gap: 28px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--ease); border: 1px solid var(--line); }
.mega.small { left: auto; right: auto; width: 300px; grid-template-columns: 1fr; padding: 14px; }
.menu > li { position: static; }
.menu > li.rel { position: relative; }
.menu > li:hover > .mega, .menu > li.open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega h6 { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.mega ul { display: grid; gap: 2px; }
.mega ul.cols2 { grid-template-columns: 1fr 1fr; }
.mega ul a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: .15s; }
.mega ul a:hover { background: var(--red-soft); color: var(--red); }
.mega ul a .f { font-size: 16px; }
.mega .intro { background: var(--soft); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.mega .intro h4 { font-size: 22px; font-weight: 800; }
.mega .intro p { color: var(--muted); font-size: 14px; }
.mega .intro .btn { margin-top: auto; align-self: flex-start; }
.mega .feat { position: relative; border-radius: var(--r); overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; isolation: isolate; background: var(--navy-2); }
.mega .feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mega .feat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(12,27,77,.9)); }
.mega .feat small { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #ffc2cf; }
.mega .feat b { font-size: 18px; line-height: 1.25; }

/* ---------- Search overlay ---------- */
.search { position: fixed; inset: 0; z-index: 120; background: rgba(12,27,77,.55); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 90px 16px 16px; opacity: 0; visibility: hidden; transition: .25s; }
.search.open { opacity: 1; visibility: visible; }
.search .box { width: min(720px, 100%); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; transform: translateY(-12px); transition: .3s var(--ease); }
.search.open .box { transform: none; }
.search .field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); min-width: 0; }
.search kbd { font: inherit; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--muted); }
.search .results { max-height: 50vh; overflow-y: auto; padding: 10px; }
.search .results a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.search .results a small { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--soft); padding: 3px 9px; border-radius: 999px; }
.search .results a:hover, .search .results a.sel { background: var(--red-soft); color: var(--red); }
.search .empty { padding: 24px; text-align: center; color: var(--muted); }
.search .popular { padding: 14px 18px 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.search .popular button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.search .popular button:hover { border-color: var(--red); color: var(--red); }

/* ---------- Side menu (mobile) ---------- */
.side { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.side .shade { position: absolute; inset: 0; background: rgba(12,27,77,.5); opacity: 0; transition: .3s; }
.side .panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(400px, 90vw); background: #fff; transform: translateX(-100%); transition: .4s var(--ease); display: flex; flex-direction: column; }
.side.open { visibility: visible; }
.side.open .shade { opacity: 1; }
.side.open .panel { transform: none; }
.side .head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.side .body { padding: 8px 18px; overflow-y: auto; flex: 1; }
.acc > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 16px; color: var(--navy); text-align: left; }
.acc > button svg { transition: transform .3s; }
.acc.open > button svg { transform: rotate(180deg); }
.acc .sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc.open .sub { grid-template-rows: 1fr; }
.acc .sub > div { overflow: hidden; }
.acc .sub a { display: block; padding: 10px 12px; font-weight: 600; font-size: 15px; color: var(--muted); border-radius: 10px; }
.acc .sub a:hover { background: var(--red-soft); color: var(--red); }
.acc .sub > div > :first-child { margin-top: 8px; }
.acc .sub > div > :last-child { margin-bottom: 10px; }
.side .single { display: block; padding: 16px 2px; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--navy); }
.side .foot { padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 30px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 640px; z-index: -1; background: radial-gradient(600px 340px at 85% 30%, rgba(225,29,72,.09), transparent 70%), radial-gradient(520px 320px at 10% 10%, rgba(34,56,156,.08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.8vw, 76px); font-weight: 800; letter-spacing: -.04em; margin: 20px 0 22px; line-height: 1.02; }
.rotator { display: inline-grid; color: var(--red); vertical-align: bottom; }
.rotator span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: .55s var(--ease); white-space: nowrap; }
.rotator span.on { opacity: 1; transform: none; }
.rotator span.off { opacity: 0; transform: translateY(-40%); }
.hero .lead { max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -12px; object-fit: cover; background: var(--soft); }
.avatars img:first-child { margin-left: 0; }
.avatars span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -12px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.trust .stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.trust small { display: block; color: var(--muted); font-size: 13px; }

.hero-art { position: relative; height: 580px; }
.hero-art .ph { position: absolute; border-radius: var(--r-xl); overflow: hidden; background: var(--soft); box-shadow: var(--sh); }
.hero-art .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .p1 { inset: 0 90px 70px 0; }
.hero-art .p2 { width: 210px; height: 250px; right: 0; bottom: 0; border: 6px solid var(--bg); }
.float-card { position: absolute; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-radius: 18px; box-shadow: var(--sh); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.float-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.float-card b { display: block; font-size: 14.5px; color: var(--navy); }
.float-card small { color: var(--muted); font-size: 12.5px; }
.fc-1 { left: -28px; top: 60px; animation: bob 6s ease-in-out infinite; }
.fc-1 .ic { background: #e7f8ef; color: var(--green); }
.fc-2 { right: 40px; top: -14px; animation: bob 7s ease-in-out infinite .8s; }
.fc-2 .ic { background: var(--red-soft); color: var(--red); }
.fc-3 { left: 24px; bottom: 26px; padding: 16px 18px; flex-direction: column; align-items: flex-start; gap: 6px; animation: bob 6.5s ease-in-out infinite .4s; }
.fc-3 .bar-track { width: 200px; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.fc-3 .bar-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-2)); border-radius: 99px; transition: width 1.6s var(--ease); }
.fc-3.go .bar-track i { width: 86%; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.stats { margin-top: 44px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-sm); display: grid; grid-template-columns: repeat(6, 1fr); padding: 10px; border: 1px solid var(--line); }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -.035em; line-height: 1.05; }
.stat strong em { font-style: normal; color: var(--red); }
.stat > span { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.stat > span svg { flex: none; opacity: .8; }

/* Marquee */
.marquee { margin-top: 34px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .row { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .row { animation-play-state: paused; }
.marquee .chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; }
.marquee .chip .f { font-size: 18px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Program bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; gap: 16px; }
.tile { position: relative; border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate; background: linear-gradient(140deg, var(--navy-2), var(--navy)); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,27,77,0) 25%, rgba(12,27,77,.88)); transition: .4s; }
.tile:hover img { transform: scale(1.07); }
.tile:hover::after { background: linear-gradient(180deg, rgba(12,27,77,.2) 0%, rgba(12,27,77,.94)); }
.tile small { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #ffc2cf; }
.tile h3 { color: #fff; font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.tile p { font-size: 14px; color: #d7ddf4; max-height: 0; opacity: 0; overflow: hidden; transition: .45s var(--ease); }
.tile:hover p { max-height: 80px; opacity: 1; margin-top: 8px; }
.tile .go { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); display: grid; place-items: center; transition: .35s var(--ease); }
.tile:hover .go { background: var(--red); transform: rotate(-45deg); }
.tile .tag { position: absolute; top: 20px; left: 20px; background: var(--red); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.t1 { grid-column: span 6; grid-row: span 2; }
.t1 h3 { font-size: 46px; }
.t2, .t3 { grid-column: span 6; }
.t4, .t5, .t6 { grid-column: span 4; }

/* CTA band */
.band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #fff; border-radius: var(--r-lg); padding: 18px 18px 18px 26px; box-shadow: var(--sh-sm); border: 1px solid var(--line); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }
.band .t { display: flex; align-items: center; gap: 14px; }
.band .t .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.band h4 { font-size: 19px; font-weight: 800; }
.band.dark { background: linear-gradient(110deg, var(--navy), var(--navy-3)); border: 0; }
.band.dark h4 { color: #fff; }
.band.dark .t .ic { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.split .quote { margin-top: 22px; font-size: 26px; font-style: italic; color: var(--muted); font-weight: 500; line-height: 1.35; padding-left: 22px; border-left: 4px solid var(--red); }
.split .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.split .facts div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.section.soft .split .facts div { background: var(--bg); }
.split .facts b { display: block; font-size: 22px; color: var(--navy); font-weight: 800; }
.split .facts small { color: var(--muted); font-size: 12.5px; }
.prose p { color: var(--muted); margin-bottom: 14px; font-size: 16px; }
.prose strong { color: var(--ink); }
.clamp { max-height: 168px; overflow: hidden; position: relative; transition: max-height .6s var(--ease); }
.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--bg)); transition: opacity .3s; pointer-events: none; }
.section.soft .clamp::after { background: linear-gradient(transparent, #fff); }
.clamp.open { max-height: 1400px; }
.clamp.open::after { opacity: 0; }
.more { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 800; background: none; border: 0; padding: 0; }
.more svg { transition: transform .3s; }
.more.open svg { transform: rotate(180deg); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 18px 0 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.checks li svg { color: var(--green); flex: none; margin-top: 2px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; cursor: grab; }
.track.drag { cursor: grabbing; scroll-snap-type: none; }
.track.drag a { pointer-events: none; }
.track::-webkit-scrollbar { display: none; }
.progress { height: 4px; background: var(--line); border-radius: 99px; margin-top: 18px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 20%; background: var(--red); border-radius: 99px; transition: transform .15s linear, width .2s; transform-origin: left; }
.country { scroll-snap-align: start; position: relative; aspect-ratio: 3 / 4.1; border-radius: var(--r-lg); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; isolation: isolate; background: linear-gradient(160deg, var(--navy-3), var(--navy)); }
.country img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); pointer-events: none; }
.country::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(12,27,77,.92)); }
.country:hover img { transform: scale(1.08); }
.country .flag { position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; font-size: 22px; }
.country .count { position: absolute; top: 18px; right: 14px; font-size: 12px; font-weight: 800; background: rgba(12,27,77,.55); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; }
.country h3 { color: #fff; font-size: 23px; font-weight: 800; }
.country small { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: #ffc2cf; }
.country .from { margin-top: 8px; font-size: 13px; color: #d7ddf4; display: flex; justify-content: space-between; align-items: center; }
.country .from b { color: #fff; }

/* ---------- Tabs + uni cards ---------- */
.tabs { display: inline-flex; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--sh-sm); gap: 4px; flex-wrap: wrap; border: 1px solid var(--line); }
.section.soft .tabs { background: var(--bg); box-shadow: none; }
.tab { border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: .2s; }
.tab:hover { color: var(--navy); }
.tab.active { background: var(--navy); color: #fff; }
.tpanel { display: none; margin-top: 26px; }
.tpanel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; animation: up .45s var(--ease); }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.uni { background: #fff; border-radius: var(--r); padding: 12px; display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); transition: .3s var(--ease); }
.section.soft .uni { background: var(--bg); border-color: transparent; }
.uni:hover { transform: translateY(-4px); box-shadow: var(--sh); background: #fff; }
.uni .im { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; flex: none; background: linear-gradient(140deg, var(--navy-3), var(--navy)); }
.uni .im img { width: 100%; height: 100%; object-fit: cover; }
.uni h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.uni p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uni .meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.uni .meta span { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--navy-2); }
.uni .meta span.r { background: var(--red-soft); color: var(--red); }

/* ---------- Level test ---------- */
.quiz-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); border-radius: var(--r-xl); padding: 56px; color: #c8d0ef; position: relative; overflow: hidden; }
.quiz-wrap::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -160px; top: -200px; background: radial-gradient(circle, rgba(225,29,72,.45), transparent 70%); }
.quiz-wrap h2 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; margin: 16px 0 14px; }
.quiz-wrap .levels { display: flex; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.quiz-wrap .levels span { padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-weight: 800; font-size: 14px; }
.quiz { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 30px; position: relative; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); min-height: 380px; display: flex; flex-direction: column; }
.quiz .q-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.quiz .q-bar { height: 6px; background: var(--soft); border-radius: 99px; margin: 12px 0 22px; overflow: hidden; }
.quiz .q-bar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 99px; transition: width .4s var(--ease); }
.quiz .q-text { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 18px; line-height: 1.35; }
.quiz .q-text u { text-decoration: none; border-bottom: 3px dotted var(--red); padding: 0 18px; }
.quiz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz .opt { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; transition: .2s; display: flex; gap: 10px; align-items: center; }
.quiz .opt i { width: 26px; height: 26px; border-radius: 8px; background: var(--soft); font-style: normal; font-size: 12px; display: grid; place-items: center; color: var(--muted); flex: none; }
.quiz .opt:hover { border-color: var(--navy); }
.quiz .opt.ok { border-color: var(--green); background: #ecfaf2; }
.quiz .opt.ok i { background: var(--green); color: #fff; }
.quiz .opt.no { border-color: var(--red); background: var(--red-soft); }
.quiz .opt.no i { background: var(--red); color: #fff; }
.quiz .result { text-align: center; margin: auto 0; }
.quiz .result .lvl { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; font-weight: 800; color: #fff; background: conic-gradient(var(--red) var(--p, 60%), var(--soft) 0); position: relative; }
.quiz .result .lvl::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--navy); }
.quiz .result .lvl span { position: relative; }
.quiz .result h4 { font-size: 22px; font-weight: 800; }
.quiz .result p { color: var(--muted); margin: 8px auto 20px; max-width: 380px; }
.quiz .result .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Exams ---------- */
.exam-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.exam { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; transition: .3s var(--ease); position: relative; overflow: hidden; }
.section.soft .exam { background: var(--bg); border-color: transparent; }
.exam::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: .35s var(--ease); }
.exam:hover { transform: translateY(-4px); box-shadow: var(--sh); background: #fff; }
.exam:hover::after { transform: scaleX(1); }
.exam strong { display: block; font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.exam span { font-size: 11.5px; letter-spacing: .14em; font-weight: 800; color: var(--red); }
.exam p { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Campaigns ---------- */
.camp-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; }
.camp { scroll-snap-align: start; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .3s var(--ease); }
.camp:hover { box-shadow: var(--sh); transform: translateY(-4px); }
.camp .im { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--navy-3), var(--navy)); overflow: hidden; }
.camp .im img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.camp .off { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.camp .city { position: absolute; bottom: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--navy); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.camp .bd { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.camp h4 { font-size: 18px; font-weight: 800; }
.camp ul { display: flex; flex-wrap: wrap; gap: 6px; }
.camp ul li { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--soft); padding: 4px 10px; border-radius: 999px; }
.camp .pr { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.camp .pr s { color: var(--muted); font-size: 14px; }
.camp .pr b { display: block; font-size: 23px; color: var(--navy); letter-spacing: -.02em; }

.countdown { display: flex; gap: 8px; align-items: center; }
.countdown .u { background: var(--navy); color: #fff; border-radius: 12px; padding: 8px 10px; text-align: center; min-width: 58px; }
.countdown .u b { display: block; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown .u small { font-size: 10.5px; letter-spacing: .1em; opacity: .7; }
.countdown .lbl { font-size: 13px; color: var(--muted); font-weight: 700; margin-right: 4px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.calc .in { padding: 40px; display: grid; gap: 22px; }
.calc label.l { display: block; font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 10px; letter-spacing: .02em; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; transition: .2s; display: inline-flex; gap: 6px; align-items: center; }
.seg button:hover { border-color: var(--navy); }
.seg button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row output { min-width: 92px; text-align: center; font-weight: 800; color: var(--navy); background: var(--soft); border-radius: 10px; padding: 8px 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--red) var(--fill, 20%), var(--line) 0); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--red); box-shadow: var(--sh-sm); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--red); cursor: pointer; }
.calc .out { background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #c8d0ef; padding: 40px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.calc .out::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -100px; bottom: -120px; background: radial-gradient(circle, rgba(225,29,72,.4), transparent 70%); }
.calc .out h4 { color: #fff; font-size: 15px; font-weight: 700; opacity: .8; }
.calc .total { font-size: clamp(38px, 4vw, 54px); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.calc .total small { font-size: 16px; font-weight: 600; opacity: .7; margin-left: 6px; letter-spacing: 0; }
.calc .lines { display: grid; gap: 10px; margin: 8px 0; position: relative; }
.calc .lines div { display: flex; justify-content: space-between; font-size: 14.5px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.calc .lines b { color: #fff; }
.calc .note { font-size: 12.5px; opacity: .7; position: relative; }
.calc .out .btn { margin-top: auto; position: relative; }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.story { background: #fff; border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.story.big { grid-row: span 2; padding: 0; overflow: hidden; position: relative; color: #fff; min-height: 460px; justify-content: flex-end; isolation: isolate; background: var(--navy); border: 0; }
.story.big > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.story.big::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(12,27,77,.95)); }
.story.big .in { padding: 30px; display: grid; gap: 12px; }
.story.big blockquote { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.4; }
.story.big .who b { color: #fff; }
.story.big .who small { color: #c8d0ef; }
.story .stars { color: var(--gold); letter-spacing: 2px; }
.story blockquote { margin: 0; font-size: 15.5px; color: var(--ink); line-height: 1.6; }
.story .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.story .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.story .who b { display: block; color: var(--navy); font-size: 15px; }
.story .who small { color: var(--muted); font-size: 13px; }
.story .dest { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; color: var(--red); background: var(--red-soft); padding: 5px 10px; border-radius: 999px; align-self: flex-start; }
.score-card { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; border: 0; justify-content: center; }
.score-card .big-n { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.score-card p { color: #ffe3ea; }
.score-card .bars { display: grid; gap: 6px; font-size: 13px; }
.score-card .bars div { display: grid; grid-template-columns: 22px 1fr 36px; align-items: center; gap: 8px; }
.score-card .bars i { height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.score-card .bars i b { display: block; height: 100%; background: #fff; border-radius: 99px; }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.post { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .3s var(--ease); }
.section.soft .post { background: var(--bg); border-color: transparent; }
.post:hover { box-shadow: var(--sh); transform: translateY(-3px); background: #fff; }
.post .im { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(140deg, var(--navy-3), var(--navy)); }
.post .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .im img { transform: scale(1.05); }
.post .bd { padding: 22px; display: grid; gap: 8px; }
.post .mt { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; align-items: center; }
.post .mt b { color: var(--red); letter-spacing: .1em; font-size: 11.5px; }
.post h4 { font-size: 20px; font-weight: 800; }
.post p { color: var(--muted); font-size: 14.5px; }
.post-list { display: grid; gap: 18px; }
.post.row { flex-direction: row; }
.post.row .im { width: 40%; aspect-ratio: auto; flex: none; }
.post.row h4 { font-size: 16.5px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq-side { position: sticky; top: 110px; align-self: start; }
.faq-side .help { margin-top: 26px; background: var(--bg); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; }
.faq-side .help b { font-size: 18px; color: var(--navy); }
.faq-side .help p { color: var(--muted); font-size: 14.5px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); margin-bottom: 10px; transition: .25s; }
.faq-item.open { background: #fff; box-shadow: var(--sh-sm); border-color: transparent; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: none; border: 0; text-align: left; font-weight: 800; font-size: 16.5px; color: var(--navy); }
.faq-item button .pm { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; transition: .3s var(--ease); border: 1px solid var(--line); }
.faq-item.open button .pm { background: var(--red); color: #fff; transform: rotate(45deg); border-color: var(--red); }
.faq-item .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .ans { grid-template-rows: 1fr; }
.faq-item .ans > div { overflow: hidden; }
.faq-item .ans p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Branches ---------- */
.branches { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: stretch; }
.b-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.b-list button { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 12px; font-weight: 800; font-size: 14px; color: var(--navy); text-align: left; transition: .2s; display: flex; justify-content: space-between; align-items: center; }
.b-list button small { font-weight: 700; color: var(--muted); font-size: 11.5px; }
.b-list button:hover { border-color: var(--navy); }
.b-list button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.b-list button.on small { color: #c8d0ef; }
.b-card { background: linear-gradient(150deg, var(--navy), var(--navy-3)); color: #c8d0ef; border-radius: var(--r-xl); padding: 36px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; }
.b-card .map { position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(circle at 1px 1px, #fff 1.2px, transparent 0); background-size: 18px 18px; }
.b-card .pin { position: absolute; right: 44px; top: 40px; width: 70px; height: 70px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 14px rgba(225,29,72,.2), 0 0 0 30px rgba(225,29,72,.1); }
.b-card h3 { color: #fff; font-size: 32px; font-weight: 800; position: relative; }
.b-card ul { display: grid; gap: 14px; position: relative; }
.b-card li { display: flex; gap: 12px; align-items: flex-start; }
.b-card li svg { flex: none; color: #ffc2cf; margin-top: 2px; }
.b-card li b { color: #fff; display: block; }
.b-card .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #a9b3d8; margin-top: 88px; border-radius: 44px 44px 0 0; padding: 0 0 96px; position: relative; }
.f-cta { transform: translateY(-50%); background: linear-gradient(110deg, var(--red), var(--red-2)); border-radius: var(--r-xl); padding: 34px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: #fff; box-shadow: 0 30px 60px -30px rgba(225,29,72,.8); }
.f-cta h3 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; max-width: 560px; }
.f-cta p { color: #ffe3ea; margin-top: 6px; }
.f-cta form { display: flex; gap: 8px; flex: 1; max-width: 440px; background: #fff; padding: 6px; border-radius: 999px; }
.f-cta input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; font: inherit; font-size: 15px; background: transparent; color: var(--ink); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; margin-top: -20px; }
.footer .logo { color: #fff; }
.footer .logo small { color: #a9b3d8; }
.footer .about { margin: 18px 0 20px; font-size: 14.5px; max-width: 340px; }
.footer h5 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; font-size: 14.5px; }
.footer ul a { transition: .2s; }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: .2s; }
.socials a:hover { background: var(--red); transform: translateY(-3px); }
.f-cities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); align-items: center; }
.f-cities span { font-size: 12px; font-weight: 800; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); }
.f-cities b { color: #fff; font-size: 13px; margin-right: 8px; }
.f-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.f-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.f-bottom a:hover { color: #fff; }

/* ---------- Floating actions ---------- */
.dock { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 50; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.dock > div { display: flex; gap: 10px; pointer-events: auto; align-items: center; }
.fab { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); transition: .25s var(--ease); border: 0; }
.fab:hover { transform: translateY(-3px); }
.fab.call { background: var(--navy); }
.fab.wa { background: #1fae5b; }
.fab.info { background: var(--red); }
.totop { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: var(--sh-sm); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); position: relative; }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop svg.ring circle { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 138; stroke-dashoffset: 138; stroke-linecap: round; }

/* ---------- Modal (multi-step form) ---------- */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal .shade { position: absolute; inset: 0; background: rgba(12,27,77,.6); backdrop-filter: blur(4px); }
.modal .dlg { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-xl); display: grid; grid-template-columns: .8fr 1.2fr; transform: translateY(16px) scale(.98); transition: .35s var(--ease); }
.modal.open .dlg { transform: none; }
.modal .aside { background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #c8d0ef; padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.modal .aside h3 { color: #fff; font-size: 26px; font-weight: 800; }
.modal .aside ul { display: grid; gap: 10px; font-size: 14px; }
.modal .aside li { display: flex; gap: 8px; }
.modal .aside li svg { color: #ffc2cf; flex: none; margin-top: 2px; }
.modal .aside .sup { margin-top: auto; font-size: 13px; }
.modal .aside .sup b { display: block; color: #fff; font-size: 18px; }
.modal .main { padding: 32px; display: flex; flex-direction: column; }
.modal .close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--soft); }
.steps-ind { display: flex; gap: 6px; margin-bottom: 22px; }
.steps-ind i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: .3s; }
.steps-ind i.on { background: var(--red); }
.step { display: none; flex-direction: column; gap: 14px; animation: up .35s var(--ease); }
.step.on { display: flex; }
.step h4 { font-size: 20px; font-weight: 800; }
.step small.s { color: var(--muted); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .2s; }
.choice span:hover { border-color: var(--navy); }
.choice input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.choice input:focus-visible + span { outline: 3px solid rgba(225,29,72,.4); }
.step .nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.done { text-align: center; padding: 20px 0; }
.done .ok { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: #e7f8ef; color: var(--green); display: grid; place-items: center; }

/* Form fields */
.fld label { display: block; font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: var(--bg); color: var(--ink); transition: .2s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(225,29,72,.1); }
.fld.err input { border-color: var(--red); }
.agree { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.agree input { margin-top: 3px; accent-color: var(--red); }
.agree a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 18px; bottom: 86px; z-index: 55; width: min(380px, calc(100% - 36px)); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); padding: 20px; border: 1px solid var(--line); transform: translateY(20px); opacity: 0; visibility: hidden; transition: .4s var(--ease); }
.cookie.show { transform: none; opacity: 1; visibility: visible; }
.cookie p { font-size: 13.5px; color: var(--muted); }
.cookie p b { color: var(--navy); display: block; margin-bottom: 4px; font-size: 15px; }
.cookie .row { display: flex; gap: 8px; margin-top: 14px; }
.cookie .row .btn { flex: 1; padding: 10px 12px; font-size: 13.5px; }

/* ---------- Toast ---------- */
.toast { width: max-content; max-width: calc(100% - 32px); position: fixed; top: 96px; left: 50%; transform: translate(-50%, -20px); z-index: 140; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--sh); opacity: 0; visibility: hidden; transition: .35s var(--ease); display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .menu { display: none; }
  .bar-right { margin-left: auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .exam-grid { grid-template-columns: repeat(3, 1fr); }
  .f-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .f-grid > div:nth-child(n+4) { display: none; }
}
@media (max-width: 980px) {
  .section { padding: 68px 0; }
  .hero-grid, .split, .quiz-wrap, .calc, .faq-grid, .branches, .news { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .hero-art { height: 460px; }
  .split { gap: 28px; }
  .faq-side { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .t1 { grid-column: span 2; grid-row: span 1; }
  .t1 h3 { font-size: 34px; }
  .t2, .t3, .t4, .t5, .t6 { grid-column: span 1; }
  .tpanel.active { grid-template-columns: repeat(2, 1fr); }
  .track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .camp-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .stories { grid-template-columns: 1fr 1fr; }
  .story.big { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .quiz-wrap { padding: 36px 24px; }
  .modal .dlg { grid-template-columns: 1fr; }
  .modal .aside { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .announce { font-size: 12.5px; padding-right: 36px; text-align: left; }
  .header { padding: 8px 0; }
  .bar { padding: 6px 6px 6px 8px; gap: 6px; }
  .logo { font-size: 22px; }
  .logo .mark { width: 34px; height: 34px; }
  .logo small { display: none; }
  .bar-right .btn { display: none; }
  .bar-right .hide-xs { display: none; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 40px; }
  .hero-cta .btn { flex: 1; }
  .hero-art { height: 380px; }
  .hero-art .p1 { inset: 0 0 60px 0; }
  .hero-art .p2 { width: 140px; height: 170px; right: -6px; bottom: 0; }
  .fc-1 { left: 8px; top: 20px; }
  .fc-2 { display: none; }
  .fc-3 { left: 8px; bottom: 14px; }
  .fc-3 .bar-track { width: 150px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(3) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat strong { font-size: 30px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .t1 { grid-column: span 1; }
  .t1 h3, .tile h3 { font-size: 25px; }
  .tile p { display: none; }
  .band { padding: 16px; }
  .band .t .ic { display: none; }
  .band h4 { font-size: 16.5px; }
  .band .btn { width: 100%; }
  .split .facts { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .split .facts b { font-size: 18px; }
  .checks { grid-template-columns: 1fr; }
  .track { grid-auto-columns: 64%; }
  .camp-track { grid-auto-columns: 86%; }
  .tpanel.active { grid-template-columns: 1fr; }
  .uni .im { width: 84px; height: 84px; }
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz { padding: 22px; }
  .quiz .opts { grid-template-columns: 1fr; }
  .calc .in, .calc .out { padding: 26px 20px; }
  .stories { grid-template-columns: 1fr; }
  .story.big { grid-column: auto; }
  .post.row { flex-direction: column; }
  .post.row .im { width: 100%; aspect-ratio: 16 / 9; }
  .b-list { grid-template-columns: repeat(2, 1fr); }
  .b-card { padding: 26px 22px; }
  .b-card .pin { width: 52px; height: 52px; right: 22px; top: 24px; }
  .f-cta { padding: 26px 22px; }
  .f-cta form { max-width: none; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-grid > div:first-child { grid-column: span 2; }
  .f-grid > div:nth-child(n+4) { display: none; }
  .footer { border-radius: 28px 28px 0 0; padding-bottom: 96px; }
  .fab .lbl { display: none; }
  .fab { padding: 14px; }
  .fab.info .lbl { display: inline; }
  .fab.info { padding: 13px 18px; }
  .choice { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .modal .main { padding: 26px 20px; }
  .sec-top .arrow-btns { display: none; }
}
