:root {
  --violet-900: #2e1a63;
  --violet-800: #3d2380;
  --violet-700: #4c2ba3;
  --violet-600: #5f3dc4;
  --violet-500: #7c52d6;
  --violet-100: #f1ecfc;
  --lavender: #eef0fb;
  --ink: #241b3f;
  --slate: #5c5772;
  --white: #ffffff;
  --gold: #d9b45a;
  --radius: 18px;
  --shadow: 0 20px 45px -20px rgba(46, 26, 99, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--violet-900);
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--violet-600);
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 26, 99, 0.08);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px 0;
}

.nav-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--violet-900);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--slate);
  letter-spacing: 0.01em;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-700);
  transition: color .2s ease, transform .2s ease;
}

.social-links a:hover {
  color: var(--violet-500);
  transform: translateY(-2px);
}

.site-footer .social-links {
  gap: 16px;
  margin-top: 18px;
}

.site-footer .social-links a {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer .social-links a:hover {
  color: #fff;
}

nav.primary-nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0 12px;
}

nav.primary-nav a {
  position: relative;
  padding-bottom: 6px;
  transition: color .2s ease;
}

nav.primary-nav a:hover {
  color: var(--violet-600);
}

nav.primary-nav a.active {
  color: var(--violet-700);
}

nav.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--violet-600);
  border-radius: 2px;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle .chevron {
  transition: transform .2s ease;
}

.has-dropdown:hover .dropdown-toggle .chevron,
.has-dropdown.open .dropdown-toggle .chevron {
  transform: rotate(180deg);
}

nav.primary-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(46, 26, 99, 0.25);
  border: 1px solid rgba(46, 26, 99, 0.08);
  padding: 14px 10px 10px;
  min-width: 300px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}

nav.primary-nav .has-dropdown:hover .dropdown-menu,
nav.primary-nav .has-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: var(--violet-100);
  color: var(--violet-700);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-800));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(76, 43, 163, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(76, 43, 163, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--violet-700);
  border-color: var(--violet-300, #cdbdf0);
}

.btn-ghost:hover {
  background: var(--violet-100);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}

.lang-switch a,
.lang-switch span.active {
  background: none;
  border: none;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--slate);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.lang-switch span.active {
  color: var(--violet-700);
  background: var(--violet-100);
}

.lang-switch a:hover {
  color: var(--violet-600);
}

.lang-switch .sep {
  color: var(--slate);
  opacity: 0.4;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--violet-800);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 250, 255, 0.97) 0%, rgba(251, 250, 255, 0.85) 30%, rgba(251, 250, 255, 0.35) 52%, rgba(251, 250, 255, 0.05) 68%),
    url('../images/banner.png') right 25% / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 32px 60px;
  min-height: 560px;
}

.hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-600);
  font-size: 1rem;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--violet-600);
  display: block;
}

.hero-copy p {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 16px;
}

.hero-copy .commitment {
  color: var(--violet-900);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
}

.hero-quote {
  position: absolute;
  top: -6%;
  right: 20%;
  max-width: 230px;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.1;
  text-align: right;
  text-shadow: 0 2px 12px rgba(46, 26, 99, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.badge-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 300px;
  margin-bottom: 8px;
}

@media (min-width: 1440px) {
  .badge-card {
    position: relative;
    top: 45%;
    left: -30%;
  }
}

.badge-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--violet-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-700);
}

.badge-card h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.badge-card p {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 0;
}

/* ===== Stats strip ===== */
.stats-strip {
  background: linear-gradient(120deg, var(--violet-700), var(--violet-600) 55%, var(--violet-800));
  color: #fff;
  padding: 44px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ===== Two column sections ===== */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--lavender);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

#apropos {
  padding-top: 40px;
  padding-bottom: 0;
}

#apropos .two-col {
  grid-template-columns: 1.5fr 1fr;
}

.col h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 14px;
}

.col h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 54px;
  height: 3px;
  background: var(--violet-600);
  border-radius: 2px;
}

.timeline {
  margin-top: 34px;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: -6px;
  width: 2px;
  background: var(--violet-200, #ded3f7);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--violet-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(95, 61, 196, 0.55);
}

.timeline-item h4 {
  font-size: 1.02rem;
  color: var(--violet-700);
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--slate);
  font-size: 0.94rem;
}

.expertise-col {
  position: relative;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.55) 68%, rgba(255, 255, 255, 0.15) 100%),
    url('../images/section2.png') right bottom / cover no-repeat;
  border-radius: 0;
  padding: 36px 32px;
}

.mission-quote {
  display: flex;
  gap: 14px;
  margin: 28px 0 36px;
  background: #fff;
  padding: 28px 26px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -18px rgba(46, 26, 99, 0.25);
}

.mission-quote .mark {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--violet-300, #cdbdf0);
  line-height: 0.6;
}

.mission-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--violet-900);
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  text-align: center;
}

.pillar .circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--violet-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--violet-700);
}

.pillar p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--violet-900);
}

.check-list {
  margin: 22px 0 30px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.96rem;
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--violet-600);
}

.research-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.research-photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 45px -22px rgba(46, 26, 99, 0.4);
}

.research-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) brightness(0.95) contrast(1.05);
}

.research-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--violet-700), var(--violet-500));
  mix-blend-mode: color;
  opacity: 0.78;
}

.research-photo-plain img {
  filter: none;
}

.research-photo-plain::after {
  display: none;
}

.book-gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.book-gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px -16px rgba(46, 26, 99, 0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}

.book-gallery-item:hover,
.book-gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -16px rgba(46, 26, 99, 0.5);
}

.book-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(36, 27, 63, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 720px) {
  .book-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Approach card (dark) ===== */
.approach-card {
  background: linear-gradient(160deg, var(--violet-800), #1f1147 85%);
  color: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.approach-card h2 {
  color: #fff;
}

.approach-card h2::after {
  background: var(--gold);
}

.approach-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 14px;
}

.approach-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 6px 0;
}

.approach-caption {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 10px;
}

.approach-photo {
  position: relative;
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
}

.approach-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.9) brightness(0.95) contrast(1.05);
}

.approach-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--violet-700), var(--violet-500));
  mix-blend-mode: color;
  opacity: 0.22;
}

/* ===== Bottom strip ===== */
.bottom-strip {
  padding: 64px 0;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}

.bottom-item {
  display: flex;
  gap: 16px;
}

.bottom-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--violet-200, #ded3f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-700);
  flex-shrink: 0;
}

.bottom-item h4 {
  font-size: 0.95rem;
  color: var(--violet-800);
  margin-bottom: 4px;
}

.bottom-item p {
  font-size: 0.85rem;
  color: var(--slate);
}

.award-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.award-card {
  margin-top: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 26, 99, 0.08);
  padding: 40px;
}

.award-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.award-card p {
  color: var(--slate);
  margin-bottom: 14px;
}

.award-card p:last-child {
  margin-bottom: 0;
}

.award-card-btn {
  display: flex;
  margin-top: 4px;
  margin-left: auto;
  width: fit-content;
}

.bottom-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--violet-800);
  font-size: 1rem;
  position: relative;
  padding-left: 26px;
}

.bottom-quote .mark {
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 1.8rem;
  color: var(--violet-300, #cdbdf0);
}

/* ===== Footer CTA ===== */
.map-section {
  padding: 64px 0 88px;
}

.section-heading {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: 1.9rem;
  color: var(--violet-900);
  margin-bottom: 12px;
}

.section-heading>p:last-child {
  color: var(--slate);
}

.map-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 26, 99, 0.08);
  line-height: 0;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 26, 99, 0.08);
  padding: 40px;
}

.contact-form-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--violet-900);
  margin-bottom: 6px;
}

.contact-form-card>p {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--lavender);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s ease, background .2s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(92, 87, 114, 0.55);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(124, 82, 214, 0.15);
}

.contact-form-card .btn-primary {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.footer-cta {
  background: linear-gradient(120deg, var(--violet-700), var(--violet-900));
  color: #fff;
  padding: 34px 0;
}

.footer-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-left .ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-left h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.location-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-cta .btn-primary {
  background: #fff;
  color: var(--violet-800);
  box-shadow: none;
}

.footer-cta .btn-primary:hover {
  background: var(--gold);
  color: #fff;
}

footer.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .brand-name {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.86rem;
  line-height: 1.6;
  margin-top: 16px;
}

.footer-nav-col h4 {
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color .2s ease;
}

.footer-nav-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width:640px) {
  .nav-actions .social-links {
    display: none;
  }
}

@media (max-width:960px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(251, 250, 255, 0.97) 0%, rgba(251, 250, 255, 0.94) 55%, rgba(251, 250, 255, 0.55) 100%),
      url('../images/banner.png') right 25% / cover no-repeat;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
    min-height: 0;
  }

  .hero-visual {
    min-height: 220px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  #apropos .two-col,
  .map-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 32px;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.2);
    display: none;
  }

  nav.primary-nav.open {
    display: flex;
  }

  nav.primary-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  nav.primary-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 10px;
    padding: 0 0 0 16px;
    min-width: 0;
    display: none;
  }

  nav.primary-nav .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  nav.primary-nav .has-dropdown.open .dropdown-menu {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions .btn-primary span.label {
    display: none;
  }
}

@media (max-width:640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .mission-pillars {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 28px 24px;
  }

  .footer-cta .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge-card {
    margin-top: 20px;
    max-width: 100%;
  }

  .hero-quote {
    position: static;
    max-width: none;
    text-align: left;
    color: var(--violet-800);
    text-shadow: none;
    margin-bottom: 14px;
  }
}

/* ===== Subpage hero ===== */
.page-hero {
  background: linear-gradient(120deg, var(--violet-700), var(--violet-600) 55%, var(--violet-800));
  color: #fff;
  padding: 60px 0 52px;
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-top: 12px;
  max-width: 760px;
}

.page-hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-top: 16px;
  font-size: 1.02rem;
}

/* ===== Subpage quick nav ===== */
.page-subnav {
  background: #fff;
  border-bottom: 1px solid rgba(46, 26, 99, 0.08);
}

.page-subnav .container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 32px;
}

.page-subnav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet-700);
  background: var(--violet-100);
  transition: background .2s ease, color .2s ease;
}

.page-subnav a:hover {
  background: var(--violet-600);
  color: #fff;
}

/* ===== Info rows (diplomas, awards, congresses, consultation types) ===== */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(46, 26, 99, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px -22px rgba(46, 26, 99, 0.25);
}

.info-row .info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--violet-100);
  color: var(--violet-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row h4 {
  font-size: 1rem;
  color: var(--violet-800);
  margin-bottom: 4px;
}

.info-row p {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0;
}

.info-doc-btn {
  display: inline-flex;
  margin-top: 10px;
}

/* ===== Publications list ===== */
.pub-list {
  margin-top: 26px;
}

.pub-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(46, 26, 99, 0.08);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-item h4 {
  font-size: 0.98rem;
  color: var(--violet-900);
  margin-bottom: 4px;
}

.pub-item p {
  color: var(--slate);
  font-size: 0.86rem;
  margin: 0;
}

.pub-tag {
  flex-shrink: 0;
  background: var(--violet-100);
  color: var(--violet-700);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

a.pub-item {
  transition: background-color 0.2s ease;
}

a.pub-item:hover {
  background-color: var(--violet-100);
  border-radius: 10px;
}

a.pub-item:hover h4 {
  color: var(--violet-700);
}

/* ===== Tariff / admin cards ===== */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.tariff-card {
  background: #fff;
  border: 1px solid rgba(46, 26, 99, 0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 10px 30px -22px rgba(46, 26, 99, 0.25);
}

.tariff-card h4 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.tariff-card p {
  color: var(--slate);
  font-size: 0.9rem;
}

.tariff-note {
  margin-top: 24px;
  background: var(--lavender);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--slate);
  font-size: 0.9rem;
}

@media (max-width:900px) {
  .tariff-grid {
    grid-template-columns: 1fr;
  }
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--violet-500);
  outline-offset: 2px;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
