/* ═══════════════════════════════════════════
   BOLALAR AKADEMIYASI — Design System
════════════════════════════════════════════ */

:root {
  --color-bg: #FFFFFF;
  --color-navy: #232A47;
  --color-taupe: #AA9077;
  --color-periwinkle: #96A4D3;
  --color-gray: #929397;

  --navy-05: rgba(35, 42, 71, 0.05);
  --navy-08: rgba(35, 42, 71, 0.08);
  --navy-10: rgba(35, 42, 71, 0.10);
  --navy-20: rgba(35, 42, 71, 0.20);
  --navy-40: rgba(35, 42, 71, 0.40);
  --navy-70: rgba(35, 42, 71, 0.70);

  --taupe-15: rgba(170, 144, 119, 0.15);
  --taupe-25: rgba(170, 144, 119, 0.25);
  --taupe-40: rgba(170, 144, 119, 0.40);

  --peri-15: rgba(150, 164, 211, 0.18);
  --peri-40: rgba(150, 164, 211, 0.5);

  --font-display: 'Cinzel', serif;
  --font-body: 'Lora', serif;
  --font-ui: 'Manrope', sans-serif;

  --container-w: 1240px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .7s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.icon { width: 1.4em; height: 1.4em; }
.icon-lg { width: 2.6em; height: 2.6em; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 860px; }

.section { padding: 110px 0; position: relative; }
.section-tint { background: var(--navy-05); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--color-navy); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5em;
}
.h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: .01em;
  margin-bottom: .4em;
}
.h2-light { color: #fff; }
.section-lead { font-size: 19px; color: var(--navy-70); max-width: 640px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-taupe);
  margin-bottom: 14px;
}
.eyebrow-light { color: #E8D9C8; }

.section-head { max-width: 720px; margin-bottom: 56px; }

/* ─── Buttons ─── */
.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--color-navy); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px var(--navy-40); }
.btn-outline { border-color: var(--color-taupe); color: var(--color-navy); background: transparent; }
.btn-outline:hover { background: var(--color-taupe); color: #fff; transform: translateY(-3px); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--color-navy); transform: translateY(-3px); }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 12px -6px var(--navy-20);
  padding: 12px 0;
}
.nav-inner {
  /* No max-width, unlike the content .container: the nav bar should hug the
     true screen edges (logo left, lang switch + register right) on any
     monitor width, rather than floating in a centered column with dead
     space beyond it on wide screens. */
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.crest { width: 38px; height: auto; display: block; }
.crest-lg { width: 96px; height: auto; margin: 0 auto; }
.nav-logo-text {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  line-height: 1.25; letter-spacing: .03em; color: var(--color-navy);
  white-space: nowrap;
}
/* Scoped to the header (not the footer, which reuses .nav-logo/.nav-logo-text
   too) so the unscrolled icon + stacked text lockup matches the ~60px height
   of the scrolled full-lockup logo below. */
.nav .nav-logo { gap: 13px; }
.nav .nav-logo-icon { width: 41px; }
.nav .nav-logo-text { font-size: 14px; }

/* Full lockup (crest + wordmark + motto) is navy/taupe on a white background —
   only legible once the nav has scrolled to its solid white state. Over the
   dark hero it stays hidden and the icon + stacked text pairing shows instead. */
.nav-logo-full { display: none; height: auto; width: auto; max-height: 60px; max-width: 100%; object-fit: contain; }
.nav.scrolled .nav-logo-icon,
.nav.scrolled .nav-logo-text { display: none; }
.nav.scrolled .nav-logo-full { display: block; }
/* .nav-links is the outer row: [jump links][lang switch][register button].
   On mobile it becomes the slide-down panel and stacks all three groups —
   the lang switch and register button never live in the collapsed top bar,
   which is what was overflowing off small screens. */
/* flex-grow:1 lets this stretch across whatever room nav-inner has, so the
   margin-right:auto on .nav-jump-links below actually has space to push
   against — otherwise this box just shrink-wraps its own content and the
   lang switch/register button end up stranded short of the true right edge. */
.nav-links { display: flex; align-items: center; gap: 18px; flex: 1 0 auto; }
/* flex-shrink:0 here is load-bearing: without it, the flex algorithm can
   compress this box below its children's combined width (which don't shrink
   themselves), so the content silently overflows into the lang switch. */
.nav-jump-links { display: flex; gap: 16px; margin-right: auto; flex-wrap: nowrap; flex-shrink: 0; }
.nav-jump-links a {
  font-family: var(--font-ui); font-weight: 600; font-size: 13.5px;
  color: var(--color-navy); position: relative; padding: 4px 0;
  white-space: nowrap; flex-shrink: 0;
}
.nav-jump-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--color-taupe); transition: width .3s var(--ease);
}
.nav-jump-links a:hover::after { width: 100%; }
.lang-switch { display: flex; gap: 2px; background: var(--navy-08); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang-switch button {
  border: none; background: transparent; padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700; font-size: 12.5px; color: var(--navy-70);
  transition: background .25s, color .25s;
}
.lang-switch button.active { background: var(--color-navy); color: #fff; }
.nav-cta { flex-shrink: 0; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; flex-shrink: 0; }
.burger span { width: 24px; height: 2px; background: var(--color-navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav sits transparent over the dark hero until scrolled — flip text to light */
.nav:not(.scrolled) .nav-logo-text { color: #fff; }
.nav:not(.scrolled) .nav-jump-links a { color: #fff; }
.nav:not(.scrolled) .nav-jump-links a::after { background: #fff; }
.nav:not(.scrolled) .lang-switch { background: rgba(255,255,255,.16); }
.nav:not(.scrolled) .lang-switch button { color: rgba(255,255,255,.75); }
.nav:not(.scrolled) .lang-switch button.active { background: #fff; color: var(--color-navy); }
.nav:not(.scrolled) .burger span { background: #fff; }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,42,71,.65) 0%, rgba(35,42,71,.80) 55%, rgba(35,42,71,.96) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; max-width: 1120px; }
.hero-crest { margin-bottom: 28px; display: flex; justify-content: center; }
.hero-slogan {
  color: #fff; font-size: clamp(26px, 4.2vw, 46px); letter-spacing: .015em; line-height: 1.35;
  text-transform: uppercase; margin-bottom: .5em;
}
.hero-subline { color: rgba(255,255,255,.88); font-size: clamp(16px, 2vw, 20px); max-width: 620px; margin: 0 auto 40px; }
.hero-ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-ctas .btn-primary { background: var(--color-taupe); }
.hero-ctas .btn-primary:hover { background: #fff; color: var(--color-navy); }
.hero-ctas .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.hero-ctas .btn-outline:hover { background: #fff; color: var(--color-navy); border-color: #fff; }
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 1;
  color: #fff; opacity: .8; animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ─── Placeholder photos ─── */
.ph-photo {
  position: relative; width: 100%; height: 100%; min-height: 220px;
  border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--navy-08) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, var(--color-navy) 0%, #37416b 55%, var(--color-taupe) 100%);
  display: flex; align-items: center; justify-content: center;
}
.ph-photo::before {
  content: attr(data-label);
  color: rgba(255,255,255,.85);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  text-align: center; padding: 20px; max-width: 80%;
  border: 1px dashed rgba(255,255,255,.4); border-radius: 10px;
}

/* Hero background photo: must stay absolutely positioned (overrides the
   .ph-photo base rule above) and its label moves to a corner badge so it
   never collides with the centered hero slogan/subline. */
.hero-photo.ph-photo {
  position: absolute; inset: -5%; width: 110%; height: 110%;
  display: block;
}
.hero-photo.ph-photo::before {
  position: absolute; inset: auto 24px 24px auto;
  max-width: 260px; font-size: 11.5px; padding: 9px 16px;
  border-radius: 999px; text-align: left;
  background: rgba(0,0,0,.18);
}

/* Real (placeholder-stock) photos: same footprint as .ph-photo but holding
   an actual <img> instead of the gradient + dashed label. */
.photo-frame {
  position: relative; width: 100%; height: 100%; min-height: 220px;
  border-radius: var(--radius); overflow: hidden; background: var(--navy-08);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo.photo-frame { position: absolute; inset: -5%; width: 110%; height: 110%; }

/* ─── About ─── */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; margin-bottom: 70px; }
.about-text p { color: var(--navy-70); }
.mission-box {
  margin-top: 26px; padding: 26px 28px; background: var(--taupe-15);
  border-left: 3px solid var(--color-taupe); border-radius: 0 var(--radius) var(--radius) 0;
}
.mission-box h3 { font-size: 19px; margin-bottom: .4em; }
.mission-box p { margin: 0; color: var(--navy-70); }
.about-photos { display: grid; gap: 20px; height: 100%; }
.about-photo-1 { aspect-ratio: 4/3; }
.about-photo-2 { aspect-ratio: 16/9; }

.values-strip { overflow: hidden; margin-bottom: 70px; }
.values-track {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.value-chip {
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; background: var(--navy-05);
  border: 1px solid var(--navy-10); color: var(--color-navy);
  transition: background .3s, border-color .3s, transform .3s;
}
.value-chip:hover { background: var(--taupe-15); border-color: var(--taupe-40); transform: translateY(-2px); }

/* Flexbox, not grid, so a partial last row (7 stats = 4 + 3) stretches to
   fill evenly instead of leaving a dead gap — see the highlights section
   for the same fix and the fuller explanation. */
.stats-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.stat-card {
  flex: 1 1 220px;
  text-align: center; padding: 34px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--navy-10);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px var(--navy-20); }
.stat-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--color-navy); color: #fff; display: flex; align-items: center; justify-content: center;
}
.stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--color-navy); }
.stat-label { font-family: var(--font-ui); font-size: 14px; color: var(--navy-70); font-weight: 600; margin-top: 6px; }

/* ─── Tabs (Approach) ─── */
.tabs-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  font-family: var(--font-ui); font-weight: 700; font-size: 14.5px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--navy-10);
  background: #fff; color: var(--navy-70);
  transition: all .35s var(--ease);
}
.tab-btn:hover { border-color: var(--color-taupe); color: var(--color-navy); }
.tab-btn.active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }

.tabs-panel { position: relative; min-height: 360px; }
.tab-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  opacity: 0; transform: translateY(14px) scale(.99);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  position: absolute; inset: 0; pointer-events: none;
}
.tab-content.active { opacity: 1; transform: translateY(0) scale(1); position: relative; pointer-events: auto; }
.tab-photo .ph-photo, .tab-photo .photo-frame { aspect-ratio: 4/3; }
.tab-heading { font-size: 24px; margin-bottom: 14px; }
.tab-list-title { font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-taupe); margin: 18px 0 10px; }
.tab-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-tag { font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; background: var(--navy-05); border: 1px solid var(--navy-10); padding: 7px 14px; border-radius: 999px; }
.tab-note { margin-top: 18px; padding: 16px 18px; background: var(--taupe-15); border-radius: var(--radius-sm); font-size: 15px; }

/* ─── Founders (fixed, not part of the rotating carousel) ─── */
.founders-block { margin-top: 8px; margin-bottom: 48px; }
.founders-label {
  font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-taupe); margin-bottom: 18px; text-align: center;
}
.founders-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.founder-card { flex: 0 0 260px; }

/* ─── Team category tabs + carousel ───
   Nav buttons live in this row, not floating over the track below — the
   carousel autoplays continuously, so a fixed-position button over the
   track will randomly end up on top of whichever card drifts underneath it. */
.team-category-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.team-categories { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-wrap { position: relative; padding: 10px 0 20px; }
.carousel { overflow: hidden; }
.carousel-track { display: flex; gap: 24px; padding: 0 32px; will-change: transform; }
/* Categories with few enough members to fit without scrolling render as a
   single centered row instead of the looping/draggable carousel. */
.carousel-track.static { justify-content: center; flex-wrap: wrap; }
.carousel-nav {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--navy-10);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--color-navy); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.carousel-nav:hover { background: var(--color-navy); color: #fff; transform: scale(1.06); }
.carousel-prev .icon { transform: rotate(90deg); }
.carousel-next .icon { transform: rotate(-90deg); }
@media (max-width: 480px) {
  .team-category-row { flex-direction: column; align-items: center; gap: 16px; }
}
.team-card {
  flex: 0 0 260px; background: #fff; border: 1px solid var(--navy-10); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 24px 46px -20px var(--navy-20); }
.team-photo { aspect-ratio: 1; }
.team-photo .ph-photo { border-radius: 0; }
.team-avatar-slot {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--navy-05);
}
.team-avatar-slot .icon { width: 40%; height: 40%; color: var(--navy-20); }
.team-info { padding: 18px 20px; }
.team-name { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.team-role { font-family: var(--font-ui); font-size: 13px; color: var(--color-taupe); font-weight: 700; }
.team-badge {
  display: inline-block; margin-top: 8px; font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--peri-15); color: #5C6AA0;
}

/* ─── Modals ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(35,42,71,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 500;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  padding: 24px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 20px; max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 40px; position: relative;
  transform: translateY(24px) scale(.97); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 18px; right: 18px; background: var(--navy-05); border: none;
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--color-navy); transition: background .25s;
}
.modal-close:hover { background: var(--navy-10); }
.modal-team-inner .team-modal-photo { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.modal-team-inner .team-modal-photo .ph-photo, .modal-team-inner .team-modal-photo .team-avatar-slot { border-radius: var(--radius); }
.modal-team-inner h3 { font-size: 22px; margin-bottom: 2px; }
.modal-team-inner .team-role { font-size: 14px; }
.modal-team-inner p { color: var(--navy-70); margin-top: 16px; }

.modal-success { text-align: center; max-width: 440px; }
.success-icon {
  width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--color-navy); color: #fff; display: flex; align-items: center; justify-content: center;
}
.success-icon .icon path { stroke-dasharray: 24; stroke-dashoffset: 24; }
/* Scoped to .open so the pop + checkmark draw replay every time the modal reopens —
   an unconditional animation on .success-icon would only ever play once, on page load. */
.modal-overlay.open .success-icon { animation: successPop .5s var(--ease) .1s both; }
.modal-overlay.open .success-icon .icon path { animation: successDraw .45s ease-out .4s forwards; }
@keyframes successPop {
  0% { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes successDraw { to { stroke-dashoffset: 0; } }
.modal-success p { color: var(--navy-70); margin-bottom: 24px; }

/* ─── Highlights ───
   Three distinct treatments instead of one uniform icon-card grid: a full-width
   photo spotlight for the single best achievement, a pair of photo cards for
   the more visual items, and compact icon cards for the factual/stat ones. */
.highlight-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--taupe-15); color: var(--color-taupe);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}

.highlights-spotlight { margin-bottom: 22px; }
.spotlight-card {
  /* Height comes from the photo itself (width:100%; height:auto below) so the
     full image always shows — no object-fit:cover cropping. Overlay/content
     sit on top via absolute positioning against this relative container. */
  position: relative; border-radius: var(--radius); overflow: hidden;
}
.spotlight-photo { width: 100%; line-height: 0; }
.spotlight-photo img { width: 100%; height: auto; display: block; }
.spotlight-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(35,42,71,.94) 0%, rgba(35,42,71,.8) 40%, rgba(35,42,71,.2) 100%);
}
.spotlight-content { position: absolute; left: 0; bottom: 0; z-index: 1; padding: 44px; max-width: 560px; }
.spotlight-icon { background: rgba(255,255,255,.16); color: var(--color-taupe); }
.spotlight-content h4 { font-family: var(--font-display); font-size: 25px; color: #fff; margin-bottom: 10px; }
.spotlight-content p { font-size: 15.5px; color: rgba(255,255,255,.85); margin: 0; }

/* Flexbox, not grid: CSS Grid's column tracks are shared across every row, so
   with 5 cards in 3 columns the last row's 2 cards would stay at 1/3 width
   each with a dead gap beside them — grid has no per-row "fill" concept.
   Flexbox's flex-grow resolves per line, so a short last row stretches to
   fill it exactly like a full row does. */
.highlights-photo-grid { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 22px; }
.photo-card {
  flex: 1 1 320px;
  background: #fff; border: 1px solid var(--navy-10); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.photo-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px var(--navy-20); }
.photo-card-img { aspect-ratio: 16/9; overflow: hidden; }
.photo-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card-body { padding: 24px 26px 28px; }
.photo-card-body .highlight-icon {
  margin-top: -46px; border: 3px solid #fff; background: var(--color-navy); color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.15); position: relative;
}
.photo-card-body h4 { font-size: 18px; margin: 14px 0 8px; }
.photo-card-body p { font-size: 15px; color: var(--navy-70); margin: 0; }

.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 60px; }
.highlight-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--navy-10); border-bottom: 3px solid transparent; border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px var(--navy-20); }
.highlight-card h4 { font-size: 17px; margin-bottom: 8px; position: relative; }
.highlight-card p { font-size: 15px; color: var(--navy-70); margin: 0; position: relative; }
/* Small stipple-dot corner accent echoes the crest's dotted texture, and each
   card cycles through a brand color instead of repeating the same taupe tint
   three times in a row. */
.highlight-card::after {
  content: ''; position: absolute; top: -18px; right: -18px; width: 84px; height: 84px;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.4px);
  background-size: 9px 9px; opacity: .18; pointer-events: none;
}
.highlight-card:nth-child(3n+1) { border-bottom-color: var(--color-taupe); color: var(--color-taupe); }
.highlight-card:nth-child(3n+2) { border-bottom-color: var(--color-periwinkle); color: var(--color-periwinkle); }
.highlight-card:nth-child(3n+3) { border-bottom-color: var(--color-navy); color: var(--color-navy); }
.highlight-card:nth-child(3n+1) .highlight-icon { background: var(--taupe-15); color: var(--color-taupe); }
.highlight-card:nth-child(3n+2) .highlight-icon { background: var(--peri-15); color: #5C6AA0; }
.highlight-card:nth-child(3n+3) .highlight-icon { background: var(--navy-08); color: var(--color-navy); }
.highlight-card .highlight-icon { border-radius: 50%; }

.testimonials-block { text-align: center; }
.testimonials-block h3 { font-size: 22px; margin-bottom: 30px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.testimonial-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--navy-10); border-top: 3px solid var(--color-periwinkle);
  border-radius: var(--radius); padding: 32px 28px 26px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px var(--navy-20); }
.testimonial-quote-mark {
  position: absolute; top: -6px; right: 20px; font-family: var(--font-display);
  font-size: 90px; line-height: 1; color: var(--peri-15); pointer-events: none;
}
.testimonial-text {
  position: relative; font-style: italic; font-size: 16px; color: var(--color-navy);
  margin: 6px 0 22px; flex: 1;
}
.testimonial-meta { display: flex; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--navy-08); }
.testimonial-avatar {
  flex-shrink: 0; width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--peri-40);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-name { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--color-navy); }
.testimonial-role { font-family: var(--font-ui); font-size: 13px; color: var(--navy-70); margin-top: 2px; }

/* ─── FAQ Accordion ─── */
.accordion-item { border-bottom: 1px solid var(--navy-10); }
.accordion-q {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-ui); font-weight: 700; font-size: 16.5px; color: var(--color-navy);
}
.accordion-q .icon { flex-shrink: 0; transition: transform .35s var(--ease); color: var(--color-taupe); }
.accordion-item.open .accordion-q .icon { transform: rotate(180deg); }
.accordion-a {
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
}
.accordion-a-inner { padding: 0 4px 22px; color: var(--navy-70); }

/* ─── Pochemuchka ─── */
.section-pochemuchka { background: var(--color-navy); color: #fff; }
.pochemuchka-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pochemuchka-text p { color: rgba(255,255,255,.82); }
.poche-note { font-weight: 600; color: #E8D9C8 !important; }
.pochemuchka-text .btn { margin-top: 10px; }
.poche-photo { aspect-ratio: 4/3; }

/* ─── Lead Form ─── */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-ui); font-weight: 700; font-size: 13.5px; color: var(--navy-70); }
.field input, .field select {
  font-family: var(--font-body); font-size: 16px; padding: 14px 16px;
  border: 1.5px solid var(--navy-10); border-radius: var(--radius-sm); background: #fff; color: var(--color-navy);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--color-taupe); box-shadow: 0 0 0 4px var(--taupe-15);
}
.field.invalid input, .field.invalid select { border-color: #b3403a; box-shadow: 0 0 0 4px rgba(179,64,58,.12); }
.field-error { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; color: #b3403a; min-height: 1em; }
.btn-submit { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }
.btn-submit.loading { opacity: .7; pointer-events: none; }
.form-error { grid-column: 1 / -1; font-size: 14px; }

/* ─── Find Us ─── */
.findus-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.findus-card {
  background: #fff; border: 1px solid var(--navy-10); border-radius: var(--radius); padding: 30px;
}
.findus-card h3 { font-size: 20px; margin-bottom: 16px; }
.findus-card-wide { max-width: 1100px; margin: 0 auto; width: 100%; }
.findus-card-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.findus-info { display: flex; flex-direction: column; }
.findus-map {
  aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--navy-10); margin-bottom: 0;
}
.findus-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.findus-phone {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--color-navy);
  transition: color .25s;
}
.findus-phone .icon { color: var(--color-taupe); width: 1.2em; height: 1.2em; }
.findus-phone:hover { color: var(--color-taupe); }
.findus-address {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--color-navy);
}
.findus-address .icon { color: var(--color-taupe); width: 1.2em; height: 1.2em; flex-shrink: 0; margin-top: 2px; }
.findus-orientir { margin: 0 0 18px 30px; font-size: 13px; color: var(--navy-70); }
.findus-info .btn { align-self: flex-start; }
@media (max-width: 720px) {
  .findus-card-split { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── Footer ─── */
.footer { background: var(--color-navy); color: rgba(255,255,255,.85); padding: 70px 0 0; }
.footer .nav-logo-text { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand p { margin-top: 14px; color: rgba(255,255,255,.6); font-style: italic; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--color-taupe); border: 1px solid rgba(255,255,255,.14);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover { background: var(--color-taupe); color: var(--color-navy); transform: translateY(-3px); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-ui); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-taupe); margin-bottom: 16px; }
.footer-links a { display: block; margin-bottom: 10px; font-family: var(--font-ui); font-size: 14.5px; color: rgba(255,255,255,.8); }
.footer-links a:hover, .footer-contact-note { color: #fff; }
.footer-contact-note { font-size: 14.5px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.footer-phone {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px; color: #fff;
  transition: color .25s;
}
.footer-phone .icon { color: var(--color-taupe); width: 1.2em; height: 1.2em; }
.footer-phone:hover { color: var(--color-taupe); }
.footer-bottom { padding: 22px 0; text-align: center; font-family: var(--font-ui); font-size: 13px; color: rgba(255,255,255,.5); }
/* Extra bottom clearance so the fixed to-top button never sits on top of the
   copyright line when the page is scrolled all the way down. */
@media (max-width: 768px) { .footer-bottom { padding-bottom: 84px; } }

/* ─── To-top ─── */
.to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-navy); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s;
  z-index: 150; box-shadow: 0 10px 24px -8px var(--navy-40);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ─── Preloader ─── */
#preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.preloader-mark {
  width: 88px; height: auto;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .7; } }
#preloader.hide { opacity: 0; visibility: hidden; }

/* ─── Reveal animation ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .about-grid, .pochemuchka-grid { grid-template-columns: 1fr; }
  .about-photos { order: -1; }
  .stat-card { flex-basis: calc(50% - 12px); }
  .photo-card { flex-basis: 100%; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-content { max-width: 100%; }
  .lead-form { grid-template-columns: 1fr; }
  .findus-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tab-content { grid-template-columns: 1fr; }
  .tab-content .tab-photo { order: -1; }
}

/* Nav switches to the mobile burger earlier than other layout breakpoints —
   the Russian labels alone need close to 1250px to lay out on one line, so
   tablets and small laptops get the burger instead of a cramped/overlapping row. */
@media (max-width: 1280px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; position: fixed; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 20px 28px 28px; gap: 4px;
    box-shadow: 0 12px 24px -10px var(--navy-20); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open .nav-jump-links { flex-direction: column; margin-right: 0; gap: 0; width: 100%; }
  .nav-links.open .nav-jump-links a { padding: 12px 0; border-bottom: 1px solid var(--navy-08); white-space: normal; }
  .nav-links.open .lang-switch { align-self: center; margin-top: 16px; }
  .nav-links.open .nav-cta { margin-top: 16px; width: 100%; }

  /* The open dropdown panel always has a white background, even while the nav
     bar itself is still in its transparent "not scrolled" state over the dark
     hero — without this, the .nav:not(.scrolled) white-text rules leave the
     links and lang switch white-on-white (invisible) whenever the menu is
     opened before the user has scrolled. */
  .nav:not(.scrolled) .nav-links.open .nav-jump-links a { color: var(--color-navy); }
  .nav:not(.scrolled) .nav-links.open .nav-jump-links a::after { background: var(--color-taupe); }
  .nav:not(.scrolled) .nav-links.open .lang-switch { background: var(--navy-08); }
  .nav:not(.scrolled) .nav-links.open .lang-switch button { color: var(--navy-70); }
  .nav:not(.scrolled) .nav-links.open .lang-switch button.active { background: var(--color-navy); color: #fff; }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .stat-card { flex-basis: calc(50% - 12px); }
  .highlights-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .spotlight-content { padding: 28px; }
  .spotlight-content h4 { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .modal { padding: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .stat-card { flex-basis: calc(50% - 8px); }
  .tabs-nav { gap: 8px; }
  .tab-btn { padding: 10px 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
