/* ============================================================
   MedRus Connect — Main Stylesheet
   Design: Modern & Bold | Navy Blue + Red + Orange
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:       #1a3a6b;
  --primary-dark:  #122a50;
  --primary-light: #2a5298;
  --secondary:     #cc0000;
  --secondary-dark:#a30000;
  --accent:        #f4a261;
  --accent-dark:   #e08040;
  --white:         #ffffff;
  --off-white:     #f8f9fa;
  --light-gray:    #e9ecef;
  --mid-gray:      #adb5bd;
  --dark:          #212529;
  --text:          #343a40;
  --text-light:    #6c757d;

  --font:          'Poppins', sans-serif;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow:        0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.14);
  --transition:    all 0.3s ease;
  --nav-height:    72px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-light); line-height: 1.8; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-alt { background: var(--white); }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge {
  display: inline-block;
  background: rgba(26,58,107,0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.underline-red {
  display: inline-block;
  position: relative;
}
.underline-red::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 60px; height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(204,0,0,0.3);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204,0,0,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(244,162,97,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--primary);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
}
.nav-logo span { color: var(--accent); }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  overflow: hidden;
}
.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.lang-option:hover { background: var(--off-white); }
.lang-option.active { background: rgba(26,58,107,0.08); font-weight: 600; color: var(--primary); }
.lang-flag { font-size: 1.1rem; }

/* Telegram nav button */
.btn-telegram {
  background: #0088cc;
  color: var(--white);
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-telegram:hover { background: #0077b5; transform: translateY(-1px); }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(18,42,80,0.88) 0%, rgba(26,58,107,0.80) 50%, rgba(42,82,152,0.75) 100%),
    url('https://images.unsplash.com/photo-1513326738677-b964603b136d?w=1800&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><circle cx="1200" cy="200" r="400" fill="rgba(255,255,255,0.04)"/><circle cx="200" cy="600" r="300" fill="rgba(255,255,255,0.04)"/></svg>') no-repeat center/cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}
.hero-trust-item i { color: var(--accent); font-size: 1rem; }
.hero-graphic {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.12;
  font-size: 20rem;
  color: white;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 8px; }
.stat-number {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number .plus { color: var(--secondary); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px;
  background: var(--light-gray);
  align-self: stretch;
}

/* ── Why Russia ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid transparent;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--secondary);
}
.why-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary); }
.why-card p { font-size: 0.9rem; line-height: 1.7; }

/* ── University Cards ── */
.uni-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}
.uni-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.uni-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.6);
  position: relative;
}
.uni-card-img .city-tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.uni-card-body { padding: 20px; }
.uni-card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.uni-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.badge-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-nmc { background: #d4edda; color: #155724; }
.badge-who { background: #d1ecf1; color: #0c5460; }
.badge-wfme { background: #fff3cd; color: #856404; }
.uni-fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fee-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
}
.fee-label { font-size: 0.75rem; color: var(--text-light); }
.uni-card .btn { width: 100%; justify-content: center; }

/* ── How It Works ── */
.steps-container {
  display: flex;
  gap: 0;
  position: relative;
}
.steps-container::before {
  content: '';
  position: absolute;
  top: 40px; left: 40px; right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 80px; height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 20px;
  border: 4px solid var(--off-white);
  box-shadow: 0 0 0 4px var(--primary);
  transition: var(--transition);
}
.step:hover .step-number {
  background: var(--secondary);
  box-shadow: 0 0 0 4px var(--secondary);
  transform: scale(1.1);
}
.step h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--primary); }
.step p { font-size: 0.83rem; }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  margin: 12px;
}
.testimonial-stars { color: #f59e0b; margin-bottom: 16px; font-size: 1.1rem; }
.testimonial-text {
  font-size: 0.97rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.95rem; color: var(--primary); }
.author-info { font-size: 0.8rem; color: var(--text-light); }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--light-gray);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--secondary); }
.faq-icon {
  width: 32px; height: 32px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 0.9rem;
  color: var(--primary);
}
.faq-item.open .faq-icon {
  background: var(--secondary);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 0 20px; font-size: 0.92rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(244,162,97,0.1) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Eligibility Banner ── */
.eligibility-banner {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  padding: 48px 0;
}
.eligibility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.eligibility-text h3 { color: white; font-size: 1.5rem; margin-bottom: 8px; }
.eligibility-text p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* ── Footer ── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.footer-brand h3 span { color: var(--accent); }
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin: 12px 0 20px;
  line-height: 1.7;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--accent); color: white; }
.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--accent);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--accent); }

/* ── Floating Telegram Button ── */
.float-telegram {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  background: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(0,136,204,0.45);
  transition: var(--transition);
  animation: pulse-tg 2.5s infinite;
}
.float-telegram:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0,136,204,0.6);
}
.float-telegram .tooltip {
  position: absolute;
  right: 68px;
  background: var(--dark);
  color: white;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.float-telegram .tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--dark);
}
.float-telegram:hover .tooltip { opacity: 1; visibility: visible; }
@keyframes pulse-tg {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,136,204,0.45); }
  50% { box-shadow: 0 4px 20px rgba(0,136,204,0.45), 0 0 0 10px rgba(0,136,204,0.12); }
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 96px;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-3px); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: white;
}
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 600px; margin: 0 auto 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── Cards & Grids ── */
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.form-group label span { color: var(--secondary); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,107,0.1); }
.form-control::placeholder { color: var(--mid-gray); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,58,107,0.3); }

/* ── Table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table th {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}
.comparison-table th.highlight { background: var(--secondary); }
.comparison-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--off-white); }
.comparison-table .check { color: #28a745; font-weight: 700; }
.comparison-table .cross { color: var(--secondary); }
.comparison-table .highlight-col { background: rgba(26,58,107,0.05); font-weight: 600; color: var(--primary); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text);
  transition: var(--transition);
}
.modal-close:hover { background: var(--secondary); color: white; }
.modal-body { padding: 28px 32px 32px; }

/* ── Eligibility Checker ── */
.eligibility-checker {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}
.checker-step { display: none; }
.checker-step.active { display: block; }
.checker-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}
.checker-progress span {
  flex: 1;
  height: 4px;
  background: var(--light-gray);
  border-radius: 2px;
  transition: var(--transition);
}
.checker-progress span.done { background: var(--primary); }
.checker-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.checker-option {
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.checker-option:hover,
.checker-option.selected {
  border-color: var(--primary);
  background: rgba(26,58,107,0.06);
  color: var(--primary);
}

/* ── Swiper custom ── */
.swiper-pagination-bullet { background: var(--primary); }
.swiper-pagination-bullet-active { background: var(--secondary); }
.swiper-button-next,
.swiper-button-prev { color: var(--primary); }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary-dark);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1500;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-light); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none; }

/* ============================================================
   RESPONSIVE — TABLET (≤992px)
   ============================================================ */
@media (max-width: 992px) {
  .nav-links, .nav-right .btn-telegram { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--primary-dark);
    padding: 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.mobile-open a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .hero-graphic { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-container { flex-wrap: wrap; }
  .steps-container::before { display: none; }
  .step { min-width: 45%; margin-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤576px)
   ============================================================ */
@media (max-width: 576px) {
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-divider { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cards-grid-2, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; }
  .checker-options { grid-template-columns: 1fr; }
  .eligibility-inner { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .modal-body, .modal-header { padding: 20px; }
  .eligibility-checker { padding: 28px 20px; }
  .steps-container { flex-direction: column; }
  .step { min-width: 100%; }
  .comparison-table { font-size: 0.78rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

/* Circular "BATCH 2026 · Admissions Open" stamp */
.admission-stamp {
  position: absolute;
  top: 110px;
  right: 40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
  transform: rotate(-10deg);
  box-shadow: 0 12px 32px rgba(11,31,58,0.35);
  z-index: 10;
  border: 3px dashed var(--accent);
  font-family: var(--font);
}
.admission-stamp .st-top {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.admission-stamp .st-big {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  display: block;
  line-height: 1;
}
.admission-stamp .st-bot {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5B6070;
  font-weight: 700;
  display: block;
  margin-top: 6px;
}
/* Override for admissions page — .page-hero > * applies position:relative,
   so we need higher specificity to keep the stamp floated top-right. */
.page-hero > .admission-stamp {
  position: absolute;
  top: 40px;
  right: 28px;
  z-index: 10;
}
@media (max-width: 768px) {
  .admission-stamp { width: 105px; height: 105px; top: 90px; right: 16px; }
  .admission-stamp .st-big { font-size: 1.6rem; }
  .admission-stamp .st-top, .admission-stamp .st-bot { font-size: 8px; }
  .page-hero > .admission-stamp { top: 20px; right: 14px; }
}

/* Highlighted phrase inside hero subtitle */
.hero-highlight {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.12em;
  letter-spacing: 0.3px;
  padding: 0 2px;
  text-shadow: 0 2px 10px rgba(244,162,97,0.4);
}

/* Admissions-open strip shown at top of home + admissions page */
.admissions-strip {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 5;
}
.admissions-strip i { margin-right: 8px; }
.admissions-strip strong { background: rgba(255,255,255,0.18); padding: 2px 10px; border-radius: 50px; margin: 0 4px; }
@media (max-width: 576px) { .admissions-strip { font-size: 0.8rem; padding: 8px 12px; } }


/* ============================================================
   IMAGE SUPPORT — added to let real photos slot into existing
   emoji/letter placeholders without breaking layout
   ============================================================ */

/* University card photos fill the header area */
.uni-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.uni-card-img .city-tag { z-index: 2; }

/* Testimonial avatars become circular portrait photos */
.author-avatar {
  overflow: hidden;
  padding: 0;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero right-side image (replaces the giant emoji) */
.hero-image {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  opacity: 0.38;
  mix-blend-mode: luminosity;
  mask-image: linear-gradient(to left, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 992px) {
  .hero-image { display: none; }
}

/* Page-level hero banners — extend existing .page-hero (line 852) with
   a background photo layer. Keeps original centered layout intact. */
.page-hero { position: relative; overflow: hidden; }
.page-hero > * { position: relative; z-index: 2; }
.page-hero.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  z-index: 0;
}
.page-hero.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,42,80,0.55) 0%, rgba(42,82,152,0.35) 100%);
  z-index: 1;
}
.page-hero.hero-moscow::before    { background-image: url('https://images.unsplash.com/photo-1513326738677-b964603b136d?w=1600&q=75'); }
.page-hero.hero-lab::before       { background-image: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=1600&q=75'); }
.page-hero.hero-students::before  { background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1600&q=75'); }
.page-hero.hero-campus::before    { background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=1600&q=75'); }
.page-hero.hero-doctor::before    { background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1600&q=75'); }

/* "Life in Russia" gallery strip */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.gallery-strip figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-strip figure:hover img { transform: scale(1.08); }
.gallery-strip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
@media (max-width: 768px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}
