/* ================================================================
   IMPORT FONTS
   Nunito — multiple weights for rich typographic hierarchy
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap');

/* ================================================================
   DESIGN TOKENS
   Upgraded palette: deep navy + warm coral accent (vs. old muted orange)
   ================================================================ */
:root {
  --navy:        #1b2d52;   /* primary dark — trust, professionalism */
  --navy-dark:   #0e1c38;
  --navy-mid:    #243868;
  --coral:       #e87048;   /* accent — energetic, warm CTA color */
  --coral-dark:  #cf5a35;
  --coral-light: #fdeee8;
  --gold:        #f5a623;   /* secondary accent — star ratings, badges */
  --bg:          #f5f3ef;   /* off-white page background */
  --white:       #ffffff;
  --border:      #e6e0d8;
  --text:        #1b2d52;
  --text-soft:   #5a6279;
  --text-muted:  #9da5b4;

  /* Elevation shadows — subtly navy-tinted */
  --shadow-sm:   0 2px 8px  rgba(27, 45, 82, 0.07);
  --shadow-md:   0 6px 24px rgba(27, 45, 82, 0.11);
  --shadow-lg:   0 16px 48px rgba(27, 45, 82, 0.15);

  /* Border radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Smooth cubic-bezier transition */
  --ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
a    { color: inherit; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   TYPOGRAPHY
   Tight letter-spacing on headings feels premium
   ================================================================ */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--navy);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.08rem; font-weight: 700; }

p { color: var(--text-soft); line-height: 1.75; }

/* ================================================================
   NAVIGATION — sticky glass effect
   ================================================================ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo i, .nav-logo .logo-accent { color: var(--coral); }

/* Link list */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-sm);
  transition: var(--ease);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--coral-dark);
  background: var(--coral-light);
}
.nav-links a.active {
  background: var(--coral);
  color: var(--white);
}

/* Pill CTA in nav */
.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 12px rgba(232, 112, 72, 0.32);
}
.nav-cta:hover {
  background: var(--coral-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(232, 112, 72, 0.42) !important;
}
/* Active state must not override coral CTA bg */
.nav-cta.active { background: var(--coral-dark) !important; }

/* ================================================================
   HAMBURGER BUTTON — shown only on mobile
   ================================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: var(--ease);
}
.nav-toggle:hover { background: var(--coral-light); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--ease);
}
/* Animated X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO — full-height landing hero (main.html)
   ================================================================ */
.hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, #1e3a7a 100%);
  color: var(--white);
  padding: 6.5rem 1.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Radial color splashes — decorative */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 88% 14%, rgba(232,112,72,0.24) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 12% 88%, rgba(245,166,35,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* Trust badge above headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.88);
  padding: 0.38rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  max-width: 680px;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.hero > p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* CTA buttons row */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats strip at bottom of hero */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.hero-stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* ================================================================
   PAGE HERO — compact header for inner pages
   ================================================================ */
.page-hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 75% at 80% 40%, rgba(232,112,72,0.2) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; position: relative; }
.page-hero p  { color: rgba(255,255,255,0.68); font-size: 1.05rem; max-width: 500px; margin: 0 auto; position: relative; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--coral);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--ease);
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 5px 20px rgba(232, 112, 72, 0.38);
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 9px 28px rgba(232, 112, 72, 0.48);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--ease);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
}

/* ================================================================
   LAYOUT — main wrapper
   ================================================================ */
main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
main.narrow { max-width: 780px; }

/* ================================================================
   SECTION LABELS & TITLES
   ================================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--coral-light);
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.section-title    { color: var(--navy); margin-bottom: 0.5rem; }
.section-subtitle {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* White-card section used inside <main> */
section {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* ================================================================
   FEATURES GRID — "Чому Словаччина?" cards
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  transition: var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232,112,72,0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  color: var(--coral);
}
.feature-card h3 { color: var(--navy); margin-bottom: 0.4rem; }
.feature-card p  { font-size: 0.88rem; line-height: 1.65; }

/* ================================================================
   UNIVERSITY CARDS — enhanced with banner + city tag
   ================================================================ */
.university-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.university-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: var(--ease);
  box-shadow: var(--shadow-sm);
}
.university-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,112,72,0.28);
}
/* Colored banner at top of card */
.uni-card-banner {
  height: 92px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.uni-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 20%, rgba(232,112,72,0.25) 0%, transparent 60%);
}
.uni-card-initials {
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}
.uni-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.uni-card-city {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.45rem;
}
.university-card h2 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-weight: 800;
  line-height: 1.3;
}
.university-card p  { font-size: 0.86rem; flex: 1; line-height: 1.6; }
.uni-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  margin-top: 1.1rem;
}

/* ================================================================
   PRICING CARDS
   ================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.25rem 2rem;
  border: 1.5px solid var(--border);
  transition: var(--ease);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }

/* Featured card — highlighted with coral border and outer glow */
.pricing-card.featured {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(232,112,72,0.11), var(--shadow-lg);
}

/* "Найпопулярніший" ribbon */
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--coral) 0%, var(--gold) 100%);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.28rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(232,112,72,0.4);
}
.pricing-name {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: 0.1rem;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-price sup { font-size: 1.1rem; font-weight: 700; margin-top: 0.55rem; }
.pricing-price-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.75rem; }

.pricing-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}
/* Checkmark circle */
.pricing-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--coral-light);
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card .btn-primary { width: 100%; justify-content: center; }

/* ================================================================
   REVIEW CARDS — stars, quote mark, avatar
   ================================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.review-tag {
  display: inline-block;
  background: var(--coral-light);
  color: var(--coral);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* Decorative " mark */
.review-quote {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  font-weight: 900;
  color: var(--coral-light);
  user-select: none;
}
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.88rem;
}
.review-text {
  font-size: 0.92rem;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: 1.5rem;
}
.review-author   { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.review-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ================================================================
   BLOG CARDS
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: var(--ease);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-card-image {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.blog-card-image i { font-size: 2.5rem; color: rgba(255,255,255,0.2); position: relative; z-index: 1; }
.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(232,112,72,0.22) 0%, transparent 60%);
}
.blog-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--coral);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  z-index: 2;
}
.blog-card-body { padding: 1.4rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.4rem; }
.blog-card h3   { color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card p    { font-size: 0.86rem; flex: 1; line-height: 1.65; }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  margin-top: 1.1rem;
  transition: var(--ease);
}
.blog-read-more:hover { gap: 0.65rem; }

/* ================================================================
   FAQ — two-level accordion (category → question), same pattern
   as the faculty/specialty accordion on university pages
   ================================================================ */
.faq-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Category panel (outer level) */
.faq-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.faq-panel.is-open {
  border-color: rgba(232,112,72,0.28);
  box-shadow:
    0 8px 36px rgba(232,112,72,0.14),
    0 2px 10px rgba(27,45,82,0.05),
    inset 0 3px 0 var(--coral);
}
.faq-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  margin: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.faq-panel-header:hover { background: #faf9f7; }
.faq-panel.is-open .faq-panel-header { background: linear-gradient(135deg, #fffaf8 0%, #fff5f0 100%); }

.faq-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(27,45,82,0.1);
}
.faq-panel-header:hover .faq-panel-icon { transform: scale(1.07); }
.faq-panel.is-open .faq-panel-icon {
  background: linear-gradient(135deg, var(--coral) 0%, #f09060 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232,112,72,0.38);
  transform: scale(1.0);
}

.faq-panel-meta { flex: 1; min-width: 0; }
.faq-panel-name { display: block; font-size: 1rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.faq-panel-sub  { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin-top: 0.1rem; }
.faq-panel-count {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f0ede8;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.faq-panel.is-open .faq-panel-count { background: rgba(232,112,72,0.1); color: var(--coral); border-color: rgba(232,112,72,0.3); }
.faq-panel-arrow {
  color: #c8d0de;
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), color 0.25s ease;
  flex-shrink: 0;
}
.faq-panel.is-open .faq-panel-arrow { transform: rotate(180deg); color: var(--coral); }

/* Category body — JS-controlled height, same technique as faculty-panel-body */
.faq-panel-body {
  height: 0;
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-panel-body.is-open { border-top: 1px solid rgba(232,112,72,0.15); }
.faq-panel-inner {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Question item (inner level, like a specialty item) */
.faq-q-item {
  width: 100%;
  background: #faf9f7;
  border: 1.5px solid #ede9e2;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  font-family: 'Nunito', sans-serif;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  display: block;
}
.faq-q-item:hover { border-color: rgba(232,112,72,0.45); box-shadow: 0 4px 16px rgba(27,45,82,0.08); }
.faq-q-item.is-open { background: var(--white); border-color: var(--coral); box-shadow: 0 4px 22px rgba(232,112,72,0.16); }

.faq-q-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  user-select: none;
}
.faq-q-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--coral);
  flex-shrink: 0;
  transition: background 0.22s ease, color 0.22s ease;
}
.faq-q-item.is-open .faq-q-icon { background: var(--coral); color: var(--white); }
.faq-q-name { flex: 1; font-size: 0.88rem; font-weight: 800; color: var(--navy); line-height: 1.4; }
.faq-q-arrow { color: #c0c8d8; font-size: 0.78rem; transition: transform 0.28s ease, color 0.22s ease; flex-shrink: 0; }
.faq-q-item.is-open .faq-q-arrow { transform: rotate(180deg); color: var(--coral); }

/* Answer — CSS-only grid-rows animation */
.faq-q-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-q-item.is-open .faq-q-body { grid-template-rows: 1fr; }
.faq-q-body-inner {
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 0 1rem;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s ease, padding 0.32s ease, opacity 0.25s ease;
}
.faq-q-item.is-open .faq-q-body-inner { max-height: 600px; padding: 0.85rem 1rem 1rem; opacity: 1; }
.faq-q-desc { font-size: 0.86rem; color: var(--text-soft); line-height: 1.72; }
.faq-q-desc + .faq-q-desc { margin-top: 0.55rem; }

/* ================================================================
   ARTICLE (blog post) — hero meta + prose typography
   ================================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: var(--ease);
}
.back-link:hover { color: var(--white); gap: 0.65rem; }

.article-hero-tag {
  display: inline-block;
  background: rgba(232,112,72,0.2);
  color: #ffb08c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
  position: relative;
}
.article-hero-meta {
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.85rem !important;
  margin-top: 0.7rem !important;
}

.article-lead {
  font-size: 1.12rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.1rem 1.3rem;
  color: var(--text-soft);
}
.article-body li { margin-bottom: 0.55rem; line-height: 1.7; }
.article-body strong { color: var(--navy); }

.article-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--coral-light);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  margin: 1.75rem 0;
}
.article-callout i { color: var(--coral); font-size: 1.3rem; flex-shrink: 0; margin-top: 0.15rem; }
.article-callout p { margin-bottom: 0; font-size: 0.92rem; }
.article-callout strong { display: block; color: var(--navy); margin-bottom: 0.25rem; }

/* ================================================================
   CONTACT FORM — modern inputs + CTA submit
   ================================================================ */
/* Without this, jumping to #contact (from another page's nav CTA, or the
   in-page anchor) lands with the top of the form hidden under the sticky
   68px nav bar — looks like the link/button "did nothing". */
#contact { scroll-margin-top: 84px; }
.contact-section {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
}
.contact-section .section-label  { display: block; text-align: center; margin-bottom: 0.75rem; }
.contact-section h2               { text-align: center; margin-bottom: 0.4rem; }
.contact-section .section-subtitle { text-align: center; max-width: none; }

/* 2-column form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group-full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
/* Modern large input fields */
.form-group input,
.form-group textarea,
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.88rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--ease);
  outline: none;
  margin-top: 0;
  resize: vertical;
}
/* Legacy direct children on contact-form */
.contact-form > input { margin-top: 1rem; }

.form-group input:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232, 112, 72, 0.12);
}
::placeholder { color: var(--text-muted); }

/* Contact form submit status */
.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.2em;
}
.form-status.is-success { color: #1f9d55; }
.form-status.is-error   { color: var(--coral-dark, #c0392b); }

/* Submit button — main CTA */
.btn-submit,
.contact-form button {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--ease);
  box-shadow: 0 5px 20px rgba(232, 112, 72, 0.36);
}
.btn-submit:hover,
.contact-form button:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 9px 28px rgba(232, 112, 72, 0.46);
}
.btn-submit:active,
.contact-form button:active { transform: translateY(0); }

/* ================================================================
   ABOUT PAGE — mission values & stat strip
   ================================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: var(--ease);
}
.stat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--coral);
  letter-spacing: -0.04em;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ================================================================
   CTA STRIP — dark promo block (used on reviews page)
   ================================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(232,112,72,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip > * { position: relative; }
.cta-strip h2  { color: var(--white); margin-bottom: 0.5rem; }
.cta-strip p   { color: rgba(255,255,255,0.68); margin-bottom: 1.75rem; }

/* ================================================================
   FOOTER — dark with links
   ================================================================ */
footer {
  background: var(--navy-dark);
  margin-top: 0;
}
.footer-top {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand { max-width: 240px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 0.75rem; display: flex; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.42); line-height: 1.65; }

.footer-links-group h4 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.9rem;
}
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-group a {
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--ease);
}
.footer-links-group a:hover { color: var(--coral-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ================================================================
   ALERT MESSAGES
   ================================================================ */
.alert { margin-top: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--r-sm); font-weight: 600; font-size: 0.9rem; }
.alert.success { background: #e9f7ef; color: #1e7e34; border: 1px solid #c3e6cb; }
.alert.error   { background: #fdecea; color: #842029; border: 1px solid #f5c2c7; }

/* ================================================================
   UNIVERSITY GALLERY — щит + назва + кнопка
   ================================================================ */
.uni-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}
.uni-gallery-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--ease);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.uni-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,112,72,0.25);
}
/* Real logo image box inside gallery card
   Усі логотипи масштабуються до єдиного квадратного боксу */
.uni-logo-box {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  flex-shrink: 0;
  transition: var(--ease);
}
.uni-logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.uni-gallery-card:hover .uni-logo-box {
  transform: scale(1.07);
}
.uni-gallery-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.uni-gallery-city {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}
.uni-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  background: var(--coral-light);
  border: 1.5px solid transparent;
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  transition: var(--ease);
  margin-top: auto;
  text-decoration: none;
}
.uni-gallery-card:hover .uni-gallery-btn {
  background: var(--coral);
  color: var(--white);
}

/* ================================================================
   RESPONSIVE — Mobile-first breakpoints
   ================================================================ */
@media (max-width: 768px) {
  /* Sticky nav adjustments */
  .main-nav { padding: 0 1rem; }

  /* Show hamburger, hide links by default */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.2rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a    { display: block; text-align: center; }

  /* Hero */
  .hero { padding: 4.5rem 1.25rem 4rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-number { font-size: 1.6rem; }

  /* All grids → single column */
  .features-grid,
  .university-list,
  .reviews-grid,
  .pricing-grid,
  .blog-grid,
  .stat-strip { grid-template-columns: 1fr; }

  /* Featured pricing card: don't scale on mobile */
  .pricing-card.featured { transform: none; box-shadow: var(--shadow-lg); }

  /* FAQ: tighter spacing on narrow screens */
  .faq-panel-header { padding: 1rem; gap: 0.75rem; }
  .faq-panel-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 0.9rem; }
  .faq-panel-name { font-size: 0.92rem; }
  .faq-panel-sub { display: none; }
  .faq-q-header { padding: 0.75rem 0.85rem; }
  .faq-q-name { font-size: 0.84rem; }

  /* Forms */
  .form-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 2rem 1.25rem; }
  section { padding: 1.75rem 1.25rem; }

  main { padding: 2rem 1rem 3rem; }

  /* Footer stack */
  .footer-top    { flex-direction: column; gap: 2rem; }
  .footer-brand  { max-width: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Featured pricing card elevated on desktop */
@media (min-width: 769px) {
  .pricing-card.featured { transform: scale(1.03) translateY(-4px); z-index: 1; }
  .pricing-card.featured:hover { transform: scale(1.03) translateY(-8px); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: repeat(2, 1fr); }
}
