/* ============================================================
   AFYON SRC OKULU — DESIGN SYSTEM
   Aesthetic: Apple x Tesla. Ultra-clean, sharp, corporate luxe.
   ============================================================ */

:root {
  --white: #ffffff;
  --navy-50: #f8fafc;
  --navy-100: #f1f5f9;
  --navy-200: #e2e8f0;
  --navy-300: #cbd5e1;
  --navy-400: #94a3b8;
  --navy-500: #64748b;
  --navy-600: #475569;
  --navy-700: #334155;
  --navy-800: #1e293b;
  --navy-900: #0f172a;
  --red: #dc2626;
  --red-600: #b91c1c;
  --red-700: #991b1b;

  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);

  --display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04),
              0 4px 12px -2px rgba(15, 23, 42, 0.06);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  color: var(--navy-900);
  background: var(--white);
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.005em;
}

::selection { background: var(--red); color: var(--white); }

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

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

.container { max-width: 1280px; }

/* ============================================================
   PRIMITIVES
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow-light { color: rgba(255, 255, 255, 0.7); }
.eyebrow-red   { color: var(--red); }

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.85); opacity: 0.6; }
}

.section { padding: 120px 0; }
@media (max-width: 992px) { .section { padding: 80px 0; } }

.section-head { max-width: 760px; margin-bottom: 72px; }
.section-head-light { color: var(--white); }

.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  margin: 18px 0 0;
  text-wrap: balance;
}
.section-title-light { color: var(--white); }

.section-lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy-500);
  font-weight: 400;
}
.section-lead-light { color: rgba(255, 255, 255, 0.7); }

.accent { color: var(--red); }

/* ============================================================
   BUTTONS — Tesla restraint
   Solid pills / sharp 2px corners. Hover = instant color swap.
   NO translateY, NO box-shadow, NO scale, ever.
   3 variants: red, outline-light, outline-dark, plus ghost (nav).
   WhatsApp icons live INSIDE red buttons — no green variant.
   ============================================================ */

.btn-premium {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-border: transparent;
  --btn-bg-hover: var(--btn-bg);
  --btn-fg-hover: var(--btn-fg);
  --btn-border-hover: var(--btn-border);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-premium:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
  border-color: var(--btn-border-hover);
  /* no transform, no shadow — instant swap only */
  text-decoration: none;
}

.btn-premium:active {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
}

.btn-premium:disabled,
.btn-premium.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn-premium-red {
  --btn-bg: #dc2626;
  --btn-fg: #ffffff;
  --btn-border: #dc2626;
  --btn-bg-hover: #b91c1c;
  --btn-fg-hover: #ffffff;
  --btn-border-hover: #b91c1c;
}

.btn-premium-outline-light {
  --btn-bg: transparent;
  --btn-fg: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.45);
  --btn-bg-hover: rgba(255, 255, 255, 0.06);
  --btn-fg-hover: #ffffff;
  --btn-border-hover: rgba(255, 255, 255, 0.9);
}

.btn-premium-outline-dark {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  --btn-border: rgba(15, 23, 42, 0.55);
  --btn-bg-hover: rgba(15, 23, 42, 0.04);
  --btn-fg-hover: var(--navy-900);
  --btn-border-hover: var(--navy-900);
}

.btn-premium-ghost {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-border: transparent;
  --btn-bg-hover: rgba(15, 23, 42, 0.05);
  --btn-fg-hover: inherit;
  --btn-border-hover: transparent;
  padding: 10px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
}

.btn-premium-lg {
  padding: 22px 52px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.btn-premium-block,
.btn-premium.w-100 {
  display: flex;
  width: 100%;
}

.btn-premium .bi-whatsapp { font-size: 1.1em; }

/* Tesla 'directional CTA' modifier — trailing chevron arrow, wider right padding.
   Pair with .btn-premium-red (or any other variant) to give text-only CTAs a directional affordance.
   No hover motion — arrow stays put, only background color shifts. */
.btn-premium-cta {
  padding-right: calc(2.4em);
  position: relative;
}
.btn-premium-cta::after {
  content: "›";
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.95;
}
.btn-premium-lg.btn-premium-cta { padding-right: calc(3em); }
.btn-premium-lg.btn-premium-cta::after { right: 1.3em; font-size: 1.6em; }

/* Focus — kill Bootstrap blue ring, subtle inset bar */
.btn-premium:focus { outline: 0; box-shadow: none; }
.btn-premium:focus-visible {
  outline: 0;
  box-shadow: inset 0 -2px 0 currentColor;
}
.btn-premium-red:focus-visible {
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.9);
}

/* Defensive: kill Bootstrap default blue focus everywhere */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
button:focus,
a:focus,
.dropdown-item:focus {
  outline: 0;
  box-shadow: none;
}
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 0;
  box-shadow: inset 0 -2px 0 var(--red);
  border-color: var(--navy-900);
}
.form-check-input:focus-visible {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22);
}

/* ============================================================
   NAVBAR
   ============================================================ */

.site-nav {
  background: transparent;
  transition: background 0.5s var(--ease),
              box-shadow 0.5s var(--ease),
              border-color 0.5s var(--ease);
  padding: 16px 0;
  border-bottom: 1px solid transparent;
}
/* Subtle dark gradient under transparent nav — guarantees text legibility
   even if hero image happens to be light at the top. Fades on scroll. */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -36px 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
.site-nav.is-scrolled::before { opacity: 0; }

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 var(--line);
}

.navbar-brand { padding: 0; }

/* Brand logo — white version shows over the hero / transparent dark nav;
   color version shows once the nav turns white (scrolled, and on mobile). */
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo-dark { display: none; }
.site-nav.is-scrolled .brand-logo-light { display: none; }
.site-nav.is-scrolled .brand-logo-dark { display: block; }

.brand-mark {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-900);
  border-radius: 6px;
  color: #fff;
  box-shadow: var(--shadow-1);
}
.brand-mark-letter {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-mark-dot {
  position: absolute;
  right: -3px; bottom: -3px;
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--white);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.98rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}

/* Nav link — light on transparent (default), dark when scrolled */
.site-nav .nav-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.72rem !important;
  border-radius: 4px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              text-shadow 0.3s var(--ease);
}
.site-nav .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Premium nav buttons — tighter padding so they sit flush with nav-link text */
.site-nav .btn-premium {
  padding: 0.58rem 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  align-self: center;
}
.site-nav .btn-premium-lg { padding: 0.7rem 1.6rem; font-size: 0.82rem; }
.site-nav .btn-premium-ghost {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}

/* Brand text never wraps */
.brand-title,
.brand-sub { white-space: nowrap; }

/* Brand mark stays navy (works on both states) */
.site-nav .navbar-toggler {
  color: #ffffff;
  padding: 4px 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.3s var(--ease);
}
.site-nav .navbar-toggler:focus { box-shadow: none; }

/* Phone "btn-premium-ghost" inside nav — light on transparent */
.site-nav .btn-premium-ghost {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              text-shadow 0.3s var(--ease), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.site-nav .btn-premium-ghost:hover {
  --btn-bg-hover: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Scrolled state — return to dark text on white nav */
.site-nav.is-scrolled .brand-title { color: var(--navy-900); text-shadow: none; }
.site-nav.is-scrolled .brand-sub { color: var(--navy-400); text-shadow: none; }
.site-nav.is-scrolled .nav-link { color: var(--navy-700); text-shadow: none; }
.site-nav.is-scrolled .nav-link:hover { color: var(--navy-900); background: var(--navy-100); }
.site-nav.is-scrolled .navbar-toggler { color: var(--navy-900); text-shadow: none; }
.site-nav.is-scrolled .btn-premium-ghost { color: var(--navy-700); text-shadow: none; }
.site-nav.is-scrolled .btn-premium-ghost:hover { --btn-bg-hover: var(--navy-100); color: var(--navy-900); }

/* Mobile (<lg): nav drops to opaque white background, so text must be dark */
@media (max-width: 991.98px) {
  .site-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
  }
  .site-nav::before { display: none; }
  .site-nav .navbar-collapse { padding-top: 12px; }
  .site-nav .nav-link {
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid var(--line);
    color: var(--navy-700);
    text-shadow: none;
  }
  .site-nav .nav-link:hover { color: var(--navy-900); background: transparent; }
  .site-nav .brand-title { color: var(--navy-900); text-shadow: none; }
  .site-nav .brand-sub { display: none; }
  /* Opaque white nav on mobile → always use the color logo */
  .brand-logo { height: 38px; }
  .brand-logo-light { display: none; }
  .brand-logo-dark { display: block; }
  .site-nav .navbar-toggler { color: var(--navy-900); text-shadow: none; }
  .site-nav .btn-premium-ghost { color: var(--navy-700); text-shadow: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  padding-top: 140px;
  padding-bottom: 140px;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

/* Hero carousel — manual nav only, fade transition, restraint indicators */
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }
.hero-carousel .carousel-item picture { display: block; width: 100%; height: 100%; }
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Minimal chevron arrows — no fill, no shadow, opacity-only on hover */
.hero-carousel-arrow {
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}
.hero-carousel-arrow.carousel-control-prev { left: 32px; right: auto; }
.hero-carousel-arrow.carousel-control-next { right: 32px; left: auto; }
.hero-carousel-arrow > i {
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
  transition: color 200ms ease;
}
.hero-carousel-arrow:hover > i,
.hero-carousel-arrow:focus-visible > i { color: #fff; }
.hero-carousel-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 6px;
  border-radius: 2px;
}
/* Hide the default Bootstrap SVG icons since we use Bootstrap Icons instead */
.hero-carousel-arrow .carousel-control-prev-icon,
.hero-carousel-arrow .carousel-control-next-icon { display: none; }
@media (max-width: 768px) {
  .hero-carousel-arrow.carousel-control-prev { left: 12px; }
  .hero-carousel-arrow.carousel-control-next { right: 12px; }
  .hero-carousel-arrow > i { font-size: 1.6rem; }
}
.hero-carousel-indicators {
  bottom: 80px;
  margin-bottom: 0;
  z-index: 3;
}
/* Görsel nokta 8px; dokunma alanı 24px (WCAG 2.5.8 hedef boyutu) */
.hero-carousel-indicators [data-bs-target] {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background-color: transparent;
  margin: 0 2px;
  opacity: 1;
  position: relative;
}
.hero-carousel-indicators [data-bs-target]::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.5);
}
.hero-carousel-indicators [data-bs-target].active::after { background-color: var(--red); }

/* Erişilebilirlik: koyu lacivert zeminde kırmızı vurguların kontrastı (AA) */
.section-reviews .eyebrow,
.service-card.featured .service-tag { color: #f87171; }

.hero-shade {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(220, 38, 38, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.70) 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 100%;
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 1rem + 5.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 28px;
  color: #fff;
  text-wrap: balance;
  max-width: 18ch;
}
.hero-title .accent { display: inline-block; }

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 0.85rem + 0.4vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 560px;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
}
.hero-meta-item i {
  color: var(--red);
  font-size: 1rem;
}

.hero-stats {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px 30px;
  border-radius: var(--radius-md);
}
.hero-stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-stats-row:first-child { padding-top: 0; }
.hero-stats-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.hero-stats-value {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.75rem, 0.8rem + 2vw, 2.6rem);
  letter-spacing: -0.02em;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero-scroll span {
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 0.7; }
  50%  { transform: translateY(10px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 0.7; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.trust-cell {
  display: flex;
  gap: 16px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.trust-cell:last-child { border-right: 0; }
.trust-cell:hover { background: var(--navy-50); }
.trust-cell i {
  font-size: 1.3rem;
  color: var(--navy-900);
  margin-top: 4px;
}
.trust-cell-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: var(--navy-900);
}
.trust-cell p { margin: 0; font-size: 0.86rem; color: var(--navy-500); line-height: 1.5; }

@media (max-width: 992px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-cell:nth-child(2) { border-right: 0; }
  .trust-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 576px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-cell:last-child { border-bottom: 0; }
}

/* ============================================================
   SERVICES GRID
   ============================================================ */

.section-services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 992px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--white);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, background-color 0.25s ease;
  min-height: 380px;
}
.service-card:hover { border-color: var(--navy-900); }

/* Featured card — inverted navy block, the visual anchor of the grid */
.service-card.featured {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.service-card.featured:hover { background: var(--navy-800); border-color: var(--navy-800); }
.service-card.featured .service-icon { background: var(--red); color: #fff; border-color: var(--red); }
.service-card.featured .service-title { color: #fff; }
.service-card.featured .service-text { color: rgba(255, 255, 255, 0.72); }
.service-card.featured .service-tag { color: #f87171; }
.service-card.featured .service-meta { border-top-color: rgba(255, 255, 255, 0.14); }
.service-card.featured .service-meta span { color: rgba(255, 255, 255, 0.72); }
.service-card.featured .service-link { color: #fff; }

.service-card.featured::before {
  content: "";
  position: absolute;
  top: -1px; left: 20px; right: 20px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}

.service-icon {
  width: 64px; height: 64px;
  background: var(--white);
  color: var(--red);
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.55rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover .service-icon {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.service-tag {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.service-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 8px 0 14px;
}

.service-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--navy-500);
  margin: 0 0 24px;
  flex: 1;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.service-meta span {
  font-size: 0.78rem;
  color: var(--navy-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.service-meta i { color: var(--red); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-900);
  transition: gap 0.3s var(--ease);
}
.service-link:hover { color: var(--red); gap: 12px; }
.service-link i { transition: transform 0.3s var(--ease); }

/* ============================================================
   PROCESS
   ============================================================ */

.section-process {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-process::before,
.section-process::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.section-process::before {
  background: rgba(220, 38, 38, 0.22);
  top: 50%; left: -160px; transform: translateY(-50%);
}
.section-process::after {
  background: rgba(255, 255, 255, 0.06);
  bottom: -120px; right: -120px;
}

.section-process .container { position: relative; z-index: 1; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 992px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 44px 36px;
  border-radius: var(--radius-md);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.process-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(220, 38, 38, 0.4);
}

.process-number {
  position: absolute;
  top: 28px; right: 30px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.4s var(--ease);
}
.process-step:hover .process-number { color: rgba(220, 38, 38, 0.18); }

.process-icon {
  width: 56px; height: 56px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 32px;
}

.process-step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 14px;
}
.process-step p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ============================================================
   DOCS ACCORDION
   ============================================================ */

.section-docs { background: var(--navy-50); }

.docs-aside { position: sticky; top: 120px; }

.docs-accordion .accordion-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.docs-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--navy-900);
}

.docs-accordion .accordion-button {
  background: transparent;
  padding: 24px 28px;
  font-family: var(--display);
  color: var(--navy-900);
  box-shadow: none !important;
  border: 0;
  gap: 18px;
}
.docs-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--navy-900);
}
.docs-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f172a'%3e%3cpath fill-rule='evenodd' d='M8 1a.5.5 0 0 1 .5.5v6h6a.5.5 0 0 1 0 1h-6v6a.5.5 0 0 1-1 0v-6h-6a.5.5 0 0 1 0-1h6v-6A.5.5 0 0 1 8 1z'/%3e%3c/svg%3e");
  background-size: 14px;
  width: 22px; height: 22px;
  transition: transform 0.4s var(--ease);
}
.docs-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(45deg);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc2626'%3e%3cpath fill-rule='evenodd' d='M8 1a.5.5 0 0 1 .5.5v6h6a.5.5 0 0 1 0 1h-6v6a.5.5 0 0 1-1 0v-6h-6a.5.5 0 0 1 0-1h6v-6A.5.5 0 0 1 8 1z'/%3e%3c/svg%3e");
}

.doc-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--red);
  width: 40px;
  flex-shrink: 0;
}

.doc-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.docs-accordion .accordion-body {
  padding: 0 28px 28px 86px;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.doc-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--navy-700);
  border-bottom: 1px solid var(--line);
}
.doc-list li:last-child { border-bottom: 0; }
.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px; height: 2px;
  background: var(--red);
}

@media (max-width: 768px) {
  .docs-accordion .accordion-button { padding: 20px 22px; gap: 14px; }
  .doc-title { font-size: 1.05rem; }
  .docs-accordion .accordion-body { padding: 0 22px 22px 22px; }
}

/* ============================================================
   CTA STRIP
   ============================================================ */

.section-cta { background: var(--white); }

.cta-card {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  overflow: hidden;
}
@media (max-width: 768px) { .cta-card { padding: 56px 28px; border-radius: var(--radius-md); } }

.cta-glow {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.cta-glow-red   { background: rgba(220, 38, 38, 0.4);  top: -200px; right: -200px; }
.cta-glow-white { background: rgba(255, 255, 255, 0.06); bottom: -260px; left: -200px; }

.cta-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease);
  color: #fff;
}
.cta-pill:hover { color: #fff; }
.cta-pill-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.cta-pill-value {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  color: #fff;
}
.cta-pill i { font-size: 1.4rem; transition: transform 0.3s var(--ease); }
.cta-pill:hover i { transform: translateX(4px); }

.cta-pill-red   { background: var(--red); }
.cta-pill-red:hover { background: var(--red-600); }
.cta-pill-dark  { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.15); }
.cta-pill-dark:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.footer-top { padding: 96px 0 64px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.footer-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 1.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.footer-brand-link { line-height: 0; }
.footer-logo { height: 50px; width: auto; }
.footer-lead { margin-top: 20px; color: rgba(255, 255, 255, 0.7); font-size: 1rem; line-height: 1.65; max-width: 420px; }

.footer-contact { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.footer-contact li { display: flex; gap: 16px; }
.footer-contact i {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 1rem;
}
.footer-contact span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.footer-contact p { margin: 4px 0 0; font-size: 0.96rem; color: rgba(255, 255, 255, 0.92); line-height: 1.5; }

.footer-social { display: flex; gap: 10px; margin-top: 32px; }
.footer-social a {
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
}

.footer-map {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 4/3;
  min-height: 420px;
}
.footer-map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--red); }
.footer-bottom .sep { margin: 0 10px; opacity: 0.4; }

/* ============================================================
   WHATSAPP FLOATING
   ============================================================ */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: 999px;
  color: #fff;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.whatsapp-float:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.whatsapp-float:focus-visible {
  outline: 2px solid var(--navy-900);
  outline-offset: 3px;
}

.whatsapp-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.35rem;
}

.whatsapp-text { display: flex; flex-direction: column; line-height: 1.2; }
.whatsapp-text small {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.whatsapp-text strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* Phone: collapse to a single round red action button */
@media (max-width: 480px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    padding: 0;
    background: transparent;
    border-color: transparent;
  }
  .whatsapp-float:hover { background: transparent; border-color: transparent; }
  .whatsapp-text { display: none; }
  .whatsapp-icon { width: 56px; height: 56px; font-size: 1.6rem; }
}

/* ============================================================
   MULTI-PAGE ADDITIONS
   (nav dropdown, page-hero, breadcrumbs, content blocks, related,
    contact page, sub-pages aside, footer columns, form, etc.)
   ============================================================ */

/* --- Nav: active link + dropdown override --- */
.site-nav .nav-link.active,
.site-nav .nav-link[data-nav-group="src"].active {
  color: var(--red);
  font-weight: 600;
}

.site-nav .dropdown-menu {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: none;
  padding: 8px;
  min-width: 320px;
  margin-top: 12px;
  background: #fff;
}
.site-nav .dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 2px;
  white-space: normal;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus,
.site-nav .dropdown-item.active {
  background: var(--navy-50);
  color: var(--navy-900);
}
.dd-tag {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}
.dd-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 2px;
  letter-spacing: -0.005em;
}

@media (max-width: 991.98px) {
  .site-nav .dropdown-menu {
    min-width: auto;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--red);
    border-radius: 0;
    margin-left: 4px;
    padding: 4px 0 4px 12px;
  }
  .site-nav .dropdown-item { padding: 10px 0; }
  .site-nav .dropdown-item:hover { background: transparent; }
}

/* --- Brand mark on dark surfaces (footer) --- */
.brand-mark-on-dark {
  background: #fff;
}
.brand-mark-on-dark .brand-mark-letter { color: var(--navy-900); }
.brand-mark-on-dark .brand-mark-dot {
  box-shadow: 0 0 0 2px var(--navy-900);
}

/* --- Page hero (compact variant for inner pages) --- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: 160px;
  padding-bottom: 80px;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.page-hero-compact {
  padding-top: 140px;
  padding-bottom: 60px;
}

.page-hero .hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-hero-inner { position: relative; }

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
}
.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s var(--ease);
}
.breadcrumb-nav a:hover { color: #fff; }
.breadcrumb-nav span[aria-current="page"] { color: var(--red); font-weight: 500; }
.breadcrumb-nav > span:not([aria-current]) { color: rgba(255, 255, 255, 0.3); }

.page-hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
  text-wrap: balance;
  max-width: 24ch;
}
.page-hero-sub {
  margin-top: 18px;
  font-size: clamp(1rem, 0.85rem + 0.3vw, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
}
.page-hero-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
}
.page-hero-meta > div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
}
.page-hero-meta i { color: var(--red); font-size: 1rem; }

/* --- Page main + grid --- */
.page-main { padding: 96px 0 120px; background: #fff; }
@media (max-width: 992px) { .page-main { padding: 64px 0 80px; } }

.page-grid > .col-lg-8 { padding-right: 32px; }
@media (max-width: 991.98px) {
  .page-grid > .col-lg-8 { padding-right: 12px; }
}

/* --- Content blocks (typography-driven) --- */
.content-block { margin-bottom: 56px; }
.content-block:last-child { margin-bottom: 0; }

/* Informational callout — restrained, navy-tinted, red accent border, no shadow */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--navy-100);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 8px;
}
.callout i { color: var(--red); font-size: 1.2rem; line-height: 1.6; flex-shrink: 0; }
.callout p { margin: 0; color: var(--navy-700); font-size: 0.97rem; line-height: 1.6; }
.callout p strong { color: var(--navy-900); font-weight: 700; }
.content-block h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 18px;
}
.content-block p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--navy-700);
  margin: 0 0 14px;
}
.content-block p strong { color: var(--navy-900); font-weight: 600; }
/* :not(.btn-premium) — otherwise `.content-block a` (0,1,1) out-specifies
   `.btn-premium`'s own color (0,1,0), painting button text red-on-red. */
.content-block a:not(.btn-premium) { color: var(--red); }
.content-block a:not(.btn-premium):hover { text-decoration: underline; text-underline-offset: 4px; }

.inline-link {
  font-weight: 600;
  color: var(--red);
}
.inline-link:hover { color: var(--red-600); text-decoration: underline; text-underline-offset: 4px; }

/* --- Check list, step list, info grid --- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding: 10px 0 10px 38px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-700);
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li strong { color: var(--navy-900); font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background: var(--red);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 19px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.step-list {
  counter-reset: stepCounter;
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 14px;
}
.step-list li {
  position: relative;
  padding: 22px 22px 22px 78px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-700);
  counter-increment: stepCounter;
}
.step-list li::before {
  content: counter(stepCounter, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 18px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.step-list li strong { color: var(--navy-900); font-weight: 600; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}
@media (max-width: 576px) { .info-grid { grid-template-columns: 1fr; } }
.info-cell {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.info-cell span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.info-cell strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

/* --- Page aside (service pages) --- */
.page-aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 991.98px) { .page-aside { position: static; } }

.aside-card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.aside-card-dark {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}
.aside-card-dark p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; line-height: 1.6; }
.aside-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 10px 0 8px;
  line-height: 1.2;
}
.aside-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--navy-900);
  margin: 0 0 14px;
}
.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}
.aside-link:hover { gap: 12px; color: var(--red-600); }

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.mini-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--navy-700);
  line-height: 1.5;
}
.mini-list li i {
  color: var(--red);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.mini-list-white li { color: rgba(255, 255, 255, 0.85); align-items: center; }
.mini-list-white li i { color: var(--red); }
.mini-list-white li div strong { display: block; font-weight: 600; color: #fff; }
.mini-list-white li div span { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

.aside-card-dark .btn-premium-outline-light {
  --btn-border: rgba(255, 255, 255, 0.32);
  --btn-bg: rgba(255, 255, 255, 0.04);
}

/* --- Related services strip --- */
.section-related {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
@media (max-width: 768px) { .section-related { margin-top: 64px; padding-top: 48px; } }
.related-head { margin-bottom: 32px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 992px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  position: relative;
  display: block;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease;
  min-height: 168px;
}
.related-card:hover {
  border-color: var(--navy-900);
}
.related-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.related-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--navy-900);
  margin: 8px 0 6px;
  letter-spacing: -0.005em;
}
.related-card p {
  font-size: 0.85rem;
  color: var(--navy-500);
  margin: 0;
}
.related-arrow {
  position: absolute;
  bottom: 18px; right: 22px;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--navy-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.related-card:hover .related-arrow { background: var(--red); color: #fff; }

/* --- Footer column titles + links --- */
.footer-col-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease), padding 0.2s var(--ease);
}
.footer-links a:hover { color: var(--red); padding-left: 4px; }

/* External links variant — Apple x Tesla minimalist with hairline rows */
.footer-links-external { gap: 0; }
.footer-links-external li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links-external li:last-child { border-bottom: 0; }
.footer-links-external a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.footer-links-external a:hover { padding-left: 0; }
.footer-links-external a span {
  flex: 1;
  line-height: 1.35;
}
.footer-links-external i {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-links-external a:hover i {
  color: var(--red);
  transform: translate(2px, -2px);
}
.footer-links-note {
  margin: 18px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.footer-hours {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}
.footer-hours li:last-child { border-bottom: 0; }
.footer-hours li span { color: rgba(255, 255, 255, 0.55); }
.footer-hours li strong { color: rgba(255, 255, 255, 0.95); font-weight: 600; }

/* --- Contact page --- */
.contact-map {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}
@media (max-width: 768px) { .contact-map iframe { height: 360px; } }

.contact-grid { margin-top: 80px; }
@media (max-width: 992px) { .contact-grid { margin-top: 48px; } }

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 22px;
}
.contact-info-list li {
  display: flex;
  gap: 18px;
}
.contact-info-list i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.05rem;
}
.contact-info-list span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy-500);
}
.contact-info-list p {
  margin: 6px 0 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--navy-900);
}
.contact-info-list a { color: var(--navy-900); }
.contact-info-list a:hover { color: var(--red); }

.contact-social { display: flex; gap: 10px; }
.contact-social a {
  width: 42px;
  height: 42px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-size: 1.02rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.contact-form-card {
  padding: 40px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
@media (max-width: 576px) { .contact-form-card { padding: 28px 22px; } }

.contact-form { margin-top: 28px; }
.contact-form .form-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 8px;
}
.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-size: 0.96rem;
  background: #fff;
  color: var(--navy-900);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  outline: 0;
  border-color: var(--navy-900);
  box-shadow: inset 0 -2px 0 var(--red);
  background: #fff;
}
.contact-form .form-control::placeholder { color: var(--navy-400); }
.contact-form .form-check-input {
  border-radius: 2px;
  border-color: var(--navy-300);
}
.contact-form .form-check-input:checked {
  background-color: var(--red);
  border-color: var(--red);
}
.contact-form .form-check-label { color: var(--navy-600); font-size: 0.9rem; }

/* --- Docs page aside --- */
.docs-aside { position: sticky; top: 120px; }
.docs-aside .section-title {
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  margin-top: 14px;
}
.docs-aside .section-lead { margin-top: 18px; font-size: 1rem; }
@media (max-width: 991.98px) { .docs-aside { position: static; } }

/* --- Exam page (sinav.html) --- */
.exam-info { margin-top: 48px; }

/* --- CTA Strip (content-block call-to-action bar) --- */
.cta-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  margin-top: 32px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cta-strip__body { flex: 1; }
.cta-strip__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 0 0 6px;
}
.cta-strip__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--navy-500);
  margin: 0;
  max-width: 520px;
}
.cta-strip__actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .cta-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 22px;
    gap: 20px;
  }
  .cta-strip__actions {
    flex-direction: column;
  }
  .cta-strip__actions .btn-premium { justify-content: center; }
}

/* ============================================================
   EXAM MODULE (sinav.html)
   All classes prefixed x- to avoid collisions
   ============================================================ */

/* --- Shared --- */
@keyframes x-score-count {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes x-timer-pulse {
  0%, 100% { color: var(--red); }
  50%      { color: #991b1b; }
}
@keyframes x-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.x-hidden { display: none !important; }

/* --- Start Screen --- */
.x-start {
  text-align: center;
  padding: 48px 24px;
  animation: x-fade-in 0.5s var(--ease);
}
.x-start__icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  background: var(--navy-50);
  border: 2px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center; justify-content: center;
}
.x-start__icon i {
  font-size: 2rem;
  color: var(--red);
}
.x-start__info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 32px;
}
@media (max-width: 576px) {
  .x-start__info-grid { grid-template-columns: 1fr; }
}
.x-start__info-card {
  padding: 20px 16px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.x-start__info-card i {
  font-size: 1.35rem;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}
.x-start__info-card strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.x-start__info-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--navy-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.x-start__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1.1rem 2.8rem;
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.x-start__btn:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Test selector pills */
.x-start__selector {
  margin: 0 auto 32px;
  max-width: 620px;
}
.x-start__selector-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-500);
  margin-bottom: 14px;
}
.x-start__pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 576px) {
  .x-start__pills { grid-template-columns: repeat(2, 1fr); }
}
.x-start__pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--navy-700);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.x-start__pill:hover {
  border-color: var(--navy-700);
}
.x-start__pill--selected {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.x-start__pill--selected:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.x-start__pill small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.x-start__pill--selected small { opacity: 0.9; }
.x-start__loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--navy-500);
}

/* Enhanced restart button in results */
.x-result__btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1.05rem 2.4rem;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  text-decoration: none;
  margin-top: 24px;
}
.x-result__btn-restart:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

/* --- Active Exam --- */
.x-exam__topbar {
  position: sticky;
  top: 76px;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.x-exam__progress-wrap {
  flex: 1;
  min-width: 140px;
}
.x-exam__progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-500);
  margin-bottom: 6px;
}
.x-exam__progress-bar {
  height: 6px;
  background: var(--navy-100);
  border-radius: 999px;
  overflow: hidden;
}
.x-exam__progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 999px;
  transition: width 0.4s var(--ease);
}
.x-exam__timer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.x-exam__timer i { color: var(--red); font-size: 1.1rem; }
.x-exam__timer--warn { animation: x-timer-pulse 1s ease-in-out infinite; }
.x-exam__counter {
  font-size: 0.82rem;
  color: var(--navy-500);
  font-weight: 500;
}
.x-exam__body { animation: x-fade-in 0.35s var(--ease); }
.x-exam__qnum {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 8px;
}
.x-exam__qtext {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--navy-900);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.x-exam__options {
  display: grid;
  gap: 10px;
}
.x-exam__option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  color: var(--navy-900);
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-height: 56px;
}
/* :not(--selected) so hover never overrides the selected state
   (a bare :hover would out-specify the .x-exam__option--selected class). */
.x-exam__option:not(.x-exam__option--selected):hover {
  border-color: var(--navy-300);
  background: var(--navy-50);
}
.x-exam__option:focus-visible {
  outline: 2px solid var(--navy-900);
  outline-offset: 2px;
}
.x-exam__option--selected {
  border-color: var(--navy-900);
  background: var(--navy-50);
}
.x-exam__option--selected .x-exam__opt-letter {
  background: var(--red);
  color: #fff;
}
.x-exam__opt-letter {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--navy-100);
  display: flex;
  align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-700);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.x-exam__opt-text {
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--navy-800);
  padding-top: 4px;
}
.x-exam__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
  flex-wrap: wrap;
}
.x-exam__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.x-exam__btn:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.x-exam__btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.x-exam__btn-prev { /* default style */ }
.x-exam__btn-next {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}
.x-exam__btn-next:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}
.x-exam__btn-finish {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
  margin-left: auto;
}
.x-exam__btn-finish:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

@media (max-width: 576px) {
  .x-exam__topbar { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .x-exam__footer { flex-direction: column; }
  .x-exam__btn { width: 100%; justify-content: center; }
  .x-exam__btn-finish { margin-left: 0; }
  .x-exam__option { min-height: 56px; align-items: center; }
}

/* --- Results Screen --- */
.x-result {
  animation: x-fade-in 0.5s var(--ease);
  text-align: center;
}
.x-result__score-wrap {
  margin: 20px 0 28px;
}
.x-result__score-value {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  color: var(--navy-900);
  letter-spacing: -0.03em;
  line-height: 1;
  animation: x-score-count 0.6s var(--ease);
}
.x-result__score-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-500);
  font-weight: 500;
  margin-top: 4px;
}
.x-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.x-result__badge--pass {
  background: #dcfce7;
  color: #16a34a;
  border: 1.5px solid #bbf7d0;
}
.x-result__badge--fail {
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
}
.x-result__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 28px;
  max-width: 520px;
}
@media (max-width: 576px) {
  .x-result__stats { grid-template-columns: 1fr; }
}
.x-result__stat {
  padding: 18px 14px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.x-result__stat i { font-size: 1.1rem; display: block; margin-bottom: 6px; }
.x-result__stat--correct i { color: #16a34a; }
.x-result__stat--wrong i { color: #dc2626; }
.x-result__stat--empty i { color: var(--navy-400); }
.x-result__stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.x-result__stat span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-top: 2px;
}

/* Review accordion */
.x-result__review {
  text-align: left;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.x-result__review-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.x-result__review-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.x-result__review-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 0;
  text-align: left;
  font-size: 0.92rem;
  color: var(--navy-800);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.x-result__review-toggle:hover { background: var(--navy-50); }
.x-result__review-toggle i {
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
  color: var(--red);
  flex-shrink: 0;
}
.x-result__review-item--open .x-result__review-toggle i {
  transform: rotate(180deg);
}
.x-result__review-content {
  display: none;
  padding: 0 16px 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--navy-700);
}
.x-result__review-item--open .x-result__review-content {
  display: block;
}
.x-result__review-content .x-result__user-answer {
  color: #dc2626;
  font-weight: 500;
  margin-bottom: 4px;
}
.x-result__review-content .x-result__correct-answer {
  color: #16a34a;
  font-weight: 500;
  margin-bottom: 8px;
}
.x-result__review-content .x-result__explanation {
  background: var(--navy-50);
  padding: 10px 14px;
  border-radius: 2px;
  font-size: 0.85rem;
}
.x-result__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2.2rem;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
  text-decoration: none;
  margin-top: 24px;
}
.x-result__cta:hover {
  background: var(--navy-900);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .x-start, .x-exam__body, .x-result { animation: none; }
  .x-result__score-value { animation: none; }
  .x-exam__progress-fill { transition: none; }
}

/* ============================================================
   ONLINE EĞİTİM — section nav + lesson grid (sinav.html)
   ============================================================ */

.edu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  background: var(--white);
}
.edu-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-600);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.edu-nav__link i { font-size: 1.05rem; color: var(--red); }
.edu-nav__link:hover { background: var(--navy-100); color: var(--navy-900); }
.edu-nav__link--solid { background: var(--navy-900); color: #fff; }
.edu-nav__link--solid i { color: #fff; }
.edu-nav__link--solid:hover { background: var(--navy-800); color: #fff; }
@media (max-width: 576px) {
  .edu-nav { width: 100%; }
  .edu-nav__link { flex: 1; justify-content: center; padding: 12px 12px; letter-spacing: 0.04em; }
}

.edu-section { margin-bottom: 88px; }
.edu-section:last-of-type { margin-bottom: 0; }
.edu-section__head { margin-bottom: 28px; }
.edu-section__head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 12px 0 12px;
}
.edu-section__head p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--navy-500);
  margin: 0;
  max-width: 60ch;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .lesson-grid { grid-template-columns: 1fr; } }

.lesson-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}
.lesson-card:hover { border-color: var(--navy-900); }
.lesson-card:focus-visible {
  outline: 2px solid var(--navy-900);
  outline-offset: 2px;
}
.lesson-num {
  flex-shrink: 0;
  width: 46px;
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--red);
}
.lesson-body { flex: 1; min-width: 0; }
.lesson-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--navy-900);
}
.lesson-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy-500);
}
.lesson-meta i { color: var(--red); font-size: 0.9rem; }
.lesson-dl {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy-300);
  transition: color 0.2s var(--ease);
}
.lesson-card:hover .lesson-dl { color: var(--red); }

/* Frame around the exam widget so its centered start screen reads as a
   defined area, aligned with the full-width lesson grid above it. */
.exam-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}
@media (max-width: 576px) {
  .exam-shell { padding: 8px; border-radius: var(--radius-sm); }
}

/* ============================================================
   REVIEWS — Google yorumları (index.html)
   ============================================================ */

.section-reviews { background: var(--navy-900); }
.section-reviews .section-title { color: #fff; }
.section-reviews .section-lead { color: rgba(255, 255, 255, 0.7); }
.section-faq { background: var(--navy-50); }

.reviews-score {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  width: fit-content;
}
.reviews-score__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.reviews-score__meta { display: flex; flex-direction: column; gap: 6px; }
.reviews-score__meta p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}
.reviews-score__meta p i { color: #fff; font-size: 1rem; }

.reviews-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--red);
  font-size: 1rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
@media (max-width: 992px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.review-card__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--navy-700);
  flex: 1;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.review-card__avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}
.review-card__author strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy-900);
}
.review-card__author span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--navy-500);
  margin-top: 2px;
}
.review-card__author span i { font-size: 0.85rem; }

.reviews-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* Homepage FAQ — give accordion items a defined edge so they read as
   distinct cards on the light-grey section. */
.section-faq .docs-accordion .accordion-item { border-color: var(--navy-200); }
.section-faq .docs-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--navy-900);
}

/* --- References grid (referanslarimiz.html) --- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 768px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color 0.2s var(--ease);
}
.ref-card:hover { border-color: var(--navy-900); }
.ref-card i {
  font-size: 1.7rem;
  color: var(--red);
}
.ref-card strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  color: var(--navy-900);
}
.ref-card span {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-500);
}

/* ============================================================
   UTILITIES
   ============================================================ */

/* Bootstrap `g-5` rows carry a 3rem horizontal gutter, but `.container`
   only has a 1.5rem gutter — so g-5 rows overflow the container by ~12px.
   On phones every column is full-width and the horizontal gutter is
   redundant, so neutralize it to kill the overflow at the source. */
@media (max-width: 767.98px) {
  .container > .row {
    margin-left: 0;
    margin-right: 0;
  }
  .container > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Mobile density — desktop min-heights and 80–120px section padding made the
   stacked mobile layout run ~14 screens tall. Tighten it. */
@media (max-width: 992px) {
  .process-step { min-height: auto; }
}
@media (max-width: 768px) {
  .hero { padding-top: 104px; padding-bottom: 64px; }
  .hero-stats { display: none; }          /* redundant with the trust strip below */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .process-step { padding: 30px 26px; }
  .review-card { padding: 24px 22px; }
  .footer-top { padding: 56px 0 40px; --bs-gutter-y: 2rem; }
  .footer-contact { margin-top: 24px; gap: 16px; }
  .footer-social { margin-top: 22px; }
  .footer-links { gap: 8px; }
  .trust-strip { padding: 36px 0; }
  .trust-cell { padding: 22px 20px; }
}
@media (max-width: 600px) {
  /* Compact service cards: drop the description (still in the DOM for SEO,
     full text lives on each SRC page) so 6 cards don't run 3 screens tall. */
  .service-card { min-height: auto; padding: 26px 24px; }
  .service-card .service-text { display: none; }
  .service-card .service-tag { margin-top: 14px; }
  .service-card .service-link { margin-top: 14px; }
  .service-icon { width: 52px; height: 52px; font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
