/* Navy homepage template — shared with docs/templates/navy/index.html
   Load after: tokens.css, components.css, typography.css, sections.css, cta-modal.css */

/* Language switcher — not used on live navy pages (desktop + mobile menu) */
body.tpl-navy .lang-switcher {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════
       FOOTER COMPONENT
       ═══════════════════════════════════════════════════════ */

    .site-footer {
      font-family: var(--font);
      width: 100%;
    }

    /* ─── Variants ─────────────────────────────────────────── */
    .site-footer.f-dark {
      /* Same indigo ramp as tokens.css (--color-hero-* / --color-primary-dark) */
      background: linear-gradient(
        160deg,
        var(--color-hero-darkest, #0d0b2e) 0%,
        var(--color-primary-dark, #1e1b6e) 55%,
        var(--color-hero-deep, #1a176b) 100%
      );
      color: #fff;
    }

    /* Gradients don’t interpolate when `transition: background` is applied globally — avoid jank on footer */
    body.tpl-navy .site-footer.f-dark {
      transition-property: border-color, color, box-shadow, opacity, transform !important;
    }
    .site-footer.f-light {
      background: #f8fafc;
      color: var(--color-text-primary);
      border-top: 1px solid var(--color-border);
    }
    .site-footer.f-neutral {
      background: var(--color-secondary);
      color: #fff;
    }

    /* ─── Main body ─────────────────────────────────────────── */
    .footer-body {
      max-width: 1200px;
      margin: 0 auto;
      padding: 48px 28px 36px;
      display: grid;
      grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.95fr) minmax(0, 1.28fr) minmax(0, 1.12fr);
      column-gap: 18px;
      row-gap: 0;
      align-items: start;
    }

    /* ─── Brand column ─────────────────────────────────────── */
    .footer-brand {}
    .footer-logo {
      display: block;
      margin-bottom: 12px;
    }
    .footer-logo img {
      height: 38px;
      width: auto;
      display: block;
    }
    /* Invert logo on dark bg */
    .f-dark .footer-logo img { filter: brightness(0) invert(1); }
    .f-neutral .footer-logo img { filter: brightness(0) invert(1); }

    .footer-tagline {
      font-size: 14px;
      line-height: 1.65;
      color: rgba(255,255,255,.6);
      margin-bottom: 16px;
      max-width: 280px;
    }
    .f-light .footer-tagline { color: var(--color-text-secondary); }

    /* ─── Nav columns ───────────────────────────────────────── */
    .footer-col { min-width: 0; }
    /* Programs column: extra width for heading + country labels */
    .footer-body > .footer-col:nth-child(3) {
      padding-left: 0;
      margin-left: 0;
    }
    .footer-col-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin: 0 0 10px;
      line-height: 1.2;
    }
    .f-dark .footer-col-title { color: var(--color-accent); }
    .f-light .footer-col-title { color: var(--color-primary); }
    .f-neutral .footer-col-title { color: var(--color-accent); }

    .footer-nav {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .footer-nav a {
      font-size: 13px;
      line-height: 1.35;
      text-decoration: none;
      transition: color var(--tr), opacity var(--tr);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .f-dark .footer-nav a { color: rgba(255,255,255,.65); }
    .f-dark .footer-nav a:hover { color: #fff; }
    .f-light .footer-nav a { color: var(--color-text-secondary); }
    .f-light .footer-nav a:hover { color: var(--color-primary); }
    .f-neutral .footer-nav a { color: rgba(255,255,255,.65); }
    .f-neutral .footer-nav a:hover { color: #fff; }

    .footer-nav .nav-new {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      background: var(--color-accent);
      color: #fff;
      padding: 1px 6px;
      border-radius: var(--radius-full);
      letter-spacing: .04em;
    }

    /* Contact list items */
    .footer-contact-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .footer-contact-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 13px;
      line-height: 1.45;
    }
    .footer-contact-icon {
      width: 30px;
      height: 30px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .f-dark .footer-contact-icon {
      background: rgba(255,255,255,.07);
      color: rgba(255,255,255,.7);
    }
    .f-light .footer-contact-icon {
      background: var(--color-primary-subtle);
      color: var(--color-primary);
    }
    .f-neutral .footer-contact-icon {
      background: rgba(255,255,255,.07);
      color: rgba(255,255,255,.7);
    }
    .footer-contact-icon svg { width: 14px; height: 14px; }

    .footer-contact-text {
      min-width: 0;
      flex: 1;
    }
    .footer-contact-label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .06em;
      margin-bottom: 1px;
    }
    .f-dark .footer-contact-label { color: rgba(255,255,255,.45); }
    .f-light .footer-contact-label { color: var(--color-text-secondary); }
    .f-neutral .footer-contact-label { color: rgba(255,255,255,.45); }

    .footer-contact-value {
      font-size: 13px;
      font-weight: 500;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
    .f-dark .footer-contact-value { color: rgba(255,255,255,.85); }
    .f-light .footer-contact-value { color: var(--color-text-primary); }
    .f-neutral .footer-contact-value { color: rgba(255,255,255,.85); }

    /* ─── Divider ────────────────────────────────────────────── */
    .footer-divider {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 28px;
    }
    .footer-divider hr {
      border: none;
      border-top: 1px solid rgba(255,255,255,.1);
    }
    .f-light .footer-divider hr { border-top-color: var(--color-border); }

    /* ─── Bottom bar ────────────────────────────────────────── */
    .footer-bottom {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 28px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
    .footer-copy {
      font-size: 13px;
    }
    .f-dark .footer-copy { color: rgba(255,255,255,.45); }
    .f-light .footer-copy { color: var(--color-text-secondary); }
    .f-neutral .footer-copy { color: rgba(255,255,255,.45); }

    .footer-legal-links {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }
    .footer-legal-links a {
      font-size: 13px;
      text-decoration: none;
      transition: color var(--tr);
    }
    .f-dark .footer-legal-links a { color: rgba(255,255,255,.45); }
    .f-dark .footer-legal-links a:hover { color: rgba(255,255,255,.85); }
    .f-light .footer-legal-links a { color: var(--color-text-secondary); }
    .f-light .footer-legal-links a:hover { color: var(--color-primary); }
    .f-neutral .footer-legal-links a { color: rgba(255,255,255,.45); }
    .f-neutral .footer-legal-links a:hover { color: rgba(255,255,255,.85); }

    .footer-legal-links .dot {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: rgba(255,255,255,.25);
      display: inline-block;
    }
    .f-light .footer-legal-links .dot { background: var(--color-neutral-400); }

    /* ─── Back to top ───────────────────────────────────────── */
    .back-to-top {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: color var(--tr), opacity var(--tr);
      background: none;
      border: none;
      font-family: var(--font);
    }
    .back-to-top svg { width: 15px; height: 15px; }
    .f-dark .back-to-top { color: var(--color-accent); }
    .f-dark .back-to-top:hover { color: color-mix(in srgb, var(--color-accent) 72%, #fff); }
    .f-light .back-to-top { color: var(--color-text-secondary); }
    .f-light .back-to-top:hover { color: var(--color-primary); }
    .f-neutral .back-to-top { color: var(--color-accent); }
    .f-neutral .back-to-top:hover { color: color-mix(in srgb, var(--color-accent) 72%, #fff); }

    /* ─── Mobile ─────────────────────────────────────────────── */
    .section-mobile .footer-body {
      grid-template-columns: 1fr;
      gap: 24px;
      padding: 40px 20px 28px;
    }
    .section-mobile .footer-divider,
    .section-mobile .footer-bottom {
      padding-left: 24px;
      padding-right: 24px;
    }
    .section-mobile .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
    .section-mobile .footer-legal-links {
      gap: 12px;
    }

    /* Doc / iframe: footer stacked like mobile — same column hide as breakpoint */
    .site-footer.section-mobile .footer-body > .footer-col:nth-child(2),
    .site-footer.section-mobile .footer-body > .footer-col:nth-child(3) {
      display: none;
    }

/* ─── Widget Preview Container ───────────────────────────── */
    .widget-demo-frame {
      position: relative;
      width: 100%;
      min-height: 680px;
      background: linear-gradient(160deg, #f0f5ff 0%, #e8eef7 100%);
      border-radius: var(--radius-xl);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--color-border);
    }
    .widget-demo-frame .demo-label {
      font-size: 14px;
      color: var(--color-text-secondary);
      text-align: center;
      pointer-events: none;
      user-select: none;
    }
    .widget-demo-frame.dark-bg {
      background: linear-gradient(
        140deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 60%,
        var(--color-primary-light) 100%
      );
    }

    /* ─── Floating Widget ────────────────────────────────────── */
    .chat-widget {
      position: fixed;
      bottom: 28px;
      right: 28px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      z-index: 999;
    }

    /* Social icon stack */
    .widget-socials {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    .widget-social-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      text-decoration: none;
      color: #fff;
      transition: transform var(--tr), box-shadow var(--tr);
      box-shadow: var(--shadow-md);
    }
    .widget-social-btn:hover {
      transform: scale(1.12);
      box-shadow: var(--shadow-lg);
    }
    .widget-social-btn svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      color: #fff;
    }
    /* doc.css .doc-main a overrides link color — keep social icons white (currentColor) */
    .doc-main a.widget-social-btn,
    .doc-main a.widget-social-btn:hover {
      color: #fff;
      text-decoration: none;
    }

    .widget-social-btn.fb  { background: #1877F2; }
    .widget-social-btn.ig  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
    .widget-social-btn.li  { background: #0A66C2; }
    .widget-social-btn.yt  { background: #FF0000; }
    .widget-social-btn.tt  { background: #010101; }

    /* Main chat button — success green for visibility vs. primary blue UI */
    .widget-chat-btn {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--color-success);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      box-shadow: 0 6px 24px rgba(22, 163, 74, 0.42);
      transition: transform var(--tr), box-shadow var(--tr), background var(--tr);
      position: relative;
    }
    .widget-chat-btn:hover {
      background: #15803d;
      transform: scale(1.08);
      box-shadow: 0 8px 32px rgba(22, 163, 74, 0.52);
    }
    .widget-chat-btn svg { width: 26px; height: 26px; }

    /* Pulse ring animation */
    .widget-chat-btn::after {
      content: '';
      position: absolute;
      inset: -6px;
      border-radius: 50%;
      border: 2px solid rgba(22, 163, 74, 0.38);
      animation: widget-pulse 2s ease-out infinite;
    }
    @keyframes widget-pulse {
      0%   { transform: scale(.9); opacity: 1; }
      100% { transform: scale(1.4); opacity: 0; }
    }

    /* Notification dot */
    .widget-chat-btn .notif-dot {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 12px;
      height: 12px;
      background: var(--color-accent);
      border-radius: 50%;
      border: 2px solid #fff;
    }

    /* ─── Chat Modal ─────────────────────────────────────────── */
    .widget-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(var(--color-primary-dark-rgb), 0.45);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      padding: 28px;
      z-index: 1000;
    }
    .widget-modal-overlay.hidden { display: none; }

    .widget-modal {
      width: 360px;
      max-width: calc(100% - 8px);
      background: #fff;
      border-radius: var(--radius-2xl);
      box-shadow: var(--shadow-xl);
      overflow: hidden;
      animation: modal-slide-up .3s cubic-bezier(.34,1.56,.64,1) both;
    }
    @keyframes modal-slide-up {
      from { transform: translateY(32px); opacity: 0; }
      to   { transform: translateY(0);   opacity: 1; }
    }

    /* Modal header */
    .widget-modal-head {
      background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
      padding: 20px 20px 24px;
      position: relative;
    }
    .widget-modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(255,255,255,.15);
      border: none;
      cursor: pointer;
      color: #fff;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background var(--tr);
    }
    .widget-modal-close:hover { background: rgba(255,255,255,.25); }

    .modal-consultant-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }
    .modal-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(255,255,255,.2);
      border: 2px solid rgba(255,255,255,.4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
      color: #fff;
      flex-shrink: 0;
      overflow: hidden;
    }
    .modal-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .modal-status {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: rgba(255,255,255,.75);
    }
    .modal-status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #4ade80;
      flex-shrink: 0;
    }
    .modal-consultant-name {
      font-size: 15px;
      font-weight: 700;
      color: #fff;
      line-height: 1.3;
    }
    .modal-head-title {
      font-size: 20px;
      font-weight: 800;
      color: #fff;
      line-height: 1.3;
      margin-bottom: 4px;
    }
    .modal-head-sub {
      font-size: 13px;
      color: rgba(255,255,255,.7);
    }

    /* Modal body */
    .widget-modal-body {
      padding: 20px;
    }
    .modal-intro {
      font-size: 14px;
      line-height: 1.6;
      color: var(--color-text-secondary);
      margin-bottom: 16px;
    }

    /* Direct contact buttons — same row as components.css .btn-wa / .btn-tg (msg-row pattern) */
    .modal-direct-btns {
      display: flex;
      flex-direction: row;
      align-items: stretch;
      gap: 8px;
      margin-bottom: 16px;
    }
    .btn-modal-wa,
    .btn-modal-tg {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      min-height: 44px;
      padding: 10px 12px;
      border: none;
      border-radius: var(--radius-md);
      font-family: var(--font);
      font-size: 12.5px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      text-decoration: none;
      box-sizing: border-box;
      transition: background var(--tr), transform var(--tr);
    }
    .btn-modal-wa {
      background: #25d366;
    }
    .btn-modal-wa:hover {
      background: #1db954;
      transform: translateY(-1px);
    }
    .btn-modal-tg {
      background: #0088cc;
    }
    .btn-modal-tg:hover {
      background: #0077bb;
      transform: translateY(-1px);
    }
    .doc-main a.btn-modal-wa,
    .doc-main a.btn-modal-tg,
    .doc-main a.btn-modal-wa:hover,
    .doc-main a.btn-modal-tg:hover {
      color: #fff;
      text-decoration: none;
    }
    .btn-modal-wa svg,
    .btn-modal-tg svg { width: 18px; height: 18px; flex-shrink: 0; }
    .btn-modal-wa span,
    .btn-modal-tg span {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
      line-height: 1.2;
      min-width: 0;
      text-align: left;
    }
    .btn-modal-wa small,
    .btn-modal-tg small {
      font-size: 9.5px;
      font-weight: 500;
      opacity: 0.88;
      line-height: 1.2;
    }

    .modal-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
      font-size: 12px;
      color: var(--color-text-secondary);
    }
    .modal-divider::before,
    .modal-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--color-border);
    }

    /* Callback form — stacked fields */
    .modal-form-row {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 10px;
    }
    .modal-input {
      width: 100%;
      box-sizing: border-box;
      height: 40px;
      border: 1.5px solid var(--color-border);
      border-radius: var(--radius-md);
      padding: 0 12px;
      font-family: var(--font);
      font-size: 13px;
      color: var(--color-text-primary);
      outline: none;
      transition: border-color var(--tr);
    }
    .modal-input:focus { border-color: var(--color-primary); }
    .modal-input::placeholder { color: var(--color-text-disabled); }

    .btn-modal-submit {
      width: 100%;
      height: 40px;
      background: var(--color-primary);
      color: #fff;
      border: none;
      border-radius: var(--radius-md);
      font-family: var(--font);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background var(--tr);
      margin-bottom: 10px;
    }
    .btn-modal-submit:hover { background: var(--color-primary-dark); }

    .modal-privacy {
      font-size: 11px;
      color: var(--color-text-disabled);
      text-align: center;
      line-height: 1.5;
    }
    .modal-privacy a { color: var(--color-primary); text-decoration: none; }

    /* ─── Anatomy diagram (static display) ──────────────────── */
    .anatomy-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-top: 8px;
    }
    .anatomy-card {
      background: var(--color-neutral-50);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: 20px;
    }
    .anatomy-card h4 {
      font-size: 14px;
      font-weight: 700;
      color: var(--color-text-primary);
      margin-bottom: 12px;
    }
    .anatomy-card ul { list-style: none; }
    .anatomy-card ul li {
      font-size: 13px;
      color: var(--color-text-secondary);
      padding: 5px 0;
      border-bottom: 1px solid var(--color-border);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .anatomy-card ul li:last-child { border-bottom: none; }
    .anatomy-card ul li code {
      font-size: 11px;
      background: #fff;
      border: 1px solid var(--color-border);
      border-radius: 4px;
      padding: 1px 6px;
      color: var(--color-primary);
    }

/* ── Template base ────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font, 'Onest', sans-serif);
      background: #fff;
      color: var(--color-text-primary, #11181C);
      overflow-x: hidden;
    }

    /* ── Section spacings (responsive — do not override sections.css mobile with fixed 80px) ── */
    body.tpl-navy .section,
    body.tpl-navy .benefits-section {
      padding: clamp(36px, 7vw, 80px) 0;
    }

    /* .section.services, .section.video, .section.process-steps, .section.testimonials, .section.blog, .section.advantages: shell from sections.css */

    .hero-section a.scroll-hint {
      text-decoration: none;
      color: rgba(255, 255, 255, 0.72);
    }
    .hero-section a.scroll-hint:visited {
      color: rgba(255, 255, 255, 0.72);
    }
    .hero-section a.scroll-hint:hover {
      color: rgba(255, 255, 255, 0.95);
    }
    .hero-section a.scroll-hint:focus-visible {
      outline: 2px solid var(--color-accent, #e8a020);
      outline-offset: 4px;
      border-radius: 4px;
    }

    /* Sticky primary nav (sibling of .hero-wrapper — see markup) */
    body.tpl-navy .site-nav.navbar {
      position: sticky;
      top: 0;
      z-index: 200;
      width: 100%;
      max-width: 1440px;
      margin-left: auto;
      margin-right: auto;
      transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
    }
    body.tpl-navy .site-nav.navbar .nav-inner {
      transition:
        margin .3s cubic-bezier(.34, 1.56, .64, 1),
        border-radius .3s ease,
        box-shadow .3s ease,
        padding-left .3s ease,
        padding-right .3s ease,
        background-color .25s ease,
        border-color .25s ease;
    }
    body.tpl-navy .site-nav.navbar.is-scrolled {
      background: transparent;
      border-bottom-color: transparent;
      box-shadow: none;
    }
    body.tpl-navy .site-nav.navbar.is-scrolled .nav-inner {
      margin: 10px 0;
      max-width: 1440px;
      width: 100%;
      border-radius: var(--radius-full, 9999px);
      background: #fff;
      border: 1px solid rgba(var(--color-primary-rgb), 0.08);
      box-shadow:
        0 1px 2px rgba(7, 15, 30, 0.06),
        0 8px 24px rgba(7, 15, 30, 0.1),
        0 20px 48px rgba(7, 15, 30, 0.08);
    }

    body.tpl-navy #section-benefits,
    body.tpl-navy #section-services {
      scroll-margin-top: 96px;
    }

    /* Eligibility (conditions) — same centered “island” width + radius as .benefits-section */
    body.tpl-navy #section-eligibility.section.conditions {
      max-width: 1440px;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
      margin-top: 30px;
      box-sizing: border-box;
      padding: clamp(32px, 5vw, 80px) clamp(16px, 4vw, 48px);
      border-radius: 20px;
      overflow: hidden;
    }

    .hero-section a.btn-hero-primary {
      text-decoration: none;
    }
    .hero-section a.btn-hero-primary:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 3px;
    }

    /* Inner island heroes — height from content + template padding (no fixed min-height band) */
    body.tpl-navy .reviews-hero,
    body.tpl-navy .contacts-hero,
    body.tpl-navy .blog-page-hero,
    body.tpl-navy .post-hero {
      box-sizing: border-box;
    }
    body.tpl-navy .reviews-hero .container,
    body.tpl-navy .contacts-hero .container,
    body.tpl-navy .blog-page-hero .container,
    body.tpl-navy .post-hero .container {
      width: 100%;
    }

    @media (max-width: 1024px) {
      body.tpl-navy .site-nav.navbar.is-scrolled {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--color-border);
      }
      body.tpl-navy .site-nav.navbar.is-scrolled .nav-inner {
        margin: 0 auto;
        max-width: 1440px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
      }
      /* Mobile collapsible nav: sections.css @1024px (shared with .hero-wrapper .navbar) */
    }

    /* ── Uniform container width for all sections ─────────────────
       Standard: 1200px max-width, 48px horizontal padding
       Normalises hero-inner (1344px), benefits-inner (no padding),
       footer-body (different padding) to match .container
    ─────────────────────────────────────────────────────────────── */
    :root {
      --tpl-container-width: 1200px;
      --tpl-container-px: clamp(20px, 4vw, 48px);
    }

    /* Hero — bring in-line with 1200px grid */
    .hero-inner {
      max-width: var(--tpl-container-width) !important;
      padding-left: var(--tpl-container-px) !important;
      padding-right: var(--tpl-container-px) !important;
    }

    /* Benefits — inner width/padding aligned with .hero-inner (sections.css handles section max-width) */
    .benefits-section .benefits-inner {
      max-width: var(--tpl-container-width) !important;
      padding-left: var(--tpl-container-px) !important;
      padding-right: var(--tpl-container-px) !important;
    }

    /* Footer body — normalise to 1200px */
    .footer-body {
      max-width: var(--tpl-container-width) !important;
      padding-left: var(--tpl-container-px) !important;
      padding-right: var(--tpl-container-px) !important;
    }

    /* All .container instances */
    .container {
      max-width: var(--tpl-container-width) !important;
      padding-left: var(--tpl-container-px) !important;
      padding-right: var(--tpl-container-px) !important;
    }

    /* CTA — same outer shell as .section.blog: 1440px centered, v-subtle, radius */
    body.tpl-navy .section.cta {
      background: linear-gradient(160deg, #f0f5ff 0%, #e8eef7 50%, #f4f7fb 100%);
      max-width: 1440px;
      width: 100%;
      margin-top: 30px;
      margin-left: auto;
      margin-right: auto;
      box-sizing: border-box;
      padding-top: clamp(32px, 5vw, 80px);
      padding-bottom: clamp(32px, 5vw, 80px);
      padding-left: clamp(16px, 4vw, 48px);
      padding-right: clamp(16px, 4vw, 48px);
      border-radius: 20px;
      overflow: hidden;
    }

    body.tpl-navy .section.cta .cta-section {
      border-radius: 20px;
      overflow: hidden;
      box-shadow:
        0 4px 24px rgba(var(--color-primary-rgb), 0.08),
        0 1px 3px rgba(7, 15, 30, 0.06);
    }

    /* Reviews page — external platforms block: same 1440px island + radius as .section.cta */
    body.tpl-navy #reviews-ext-platforms.section.v-subtle {
      max-width: 1440px;
      width: 100%;
      margin-top: 30px;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
      box-sizing: border-box;
      padding-top: clamp(32px, 5vw, 80px);
      padding-bottom: clamp(32px, 5vw, 80px);
      padding-left: clamp(16px, 4vw, 48px);
      padding-right: clamp(16px, 4vw, 48px);
      border-radius: 20px;
      overflow: hidden;
    }

    /* Footer — same max width as CTA/blog island; rounded top; gap above */
    body.tpl-navy .site-footer {
      max-width: 1440px;
      width: 100%;
      margin-top: 30px;
      margin-left: auto;
      margin-right: auto;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      overflow: hidden;
      box-sizing: border-box;
    }

    @media (max-width: 768px) {
      body.tpl-navy .section.cta {
        padding-top: clamp(24px, 5vw, 48px);
        padding-bottom: clamp(24px, 5vw, 48px);
        border-radius: var(--radius-lg, 16px);
      }
      body.tpl-navy .section.cta > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
      }
      body.tpl-navy .section.cta .cta-section {
        border-radius: var(--radius-lg, 16px);
      }
      body.tpl-navy #reviews-ext-platforms.section.v-subtle {
        padding-top: clamp(24px, 5vw, 48px);
        padding-bottom: clamp(24px, 5vw, 48px);
        border-radius: var(--radius-lg, 16px);
      }
      body.tpl-navy #section-eligibility.section.conditions {
        border-radius: var(--radius-lg, 16px);
      }
      body.tpl-navy .site-footer {
        border-top-left-radius: var(--radius-lg, 16px);
        border-top-right-radius: var(--radius-lg, 16px);
      }
    }

    /* ── Navy: adaptive layout (template-only) ─────────────────
       Hamburger visibility: leave display to sections.css (do not set display:none on body.tpl-navy — it would override the 1024px flex rule). */
    @media (max-width: 1024px) {
      body.tpl-navy .site-nav .hero-nav-hamburger {
        color: var(--color-primary-dark, #1e1b6e);
      }
    }

    @media (max-width: 768px) {
      body.tpl-navy .section.services .filter-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 10px;
        margin-left: calc(-1 * var(--tpl-container-px, 20px));
        margin-right: calc(-1 * var(--tpl-container-px, 20px));
        padding-left: var(--tpl-container-px, 20px);
        padding-right: var(--tpl-container-px, 20px);
        scrollbar-width: thin;
      }
      body.tpl-navy .section.services .filter-tab {
        flex-shrink: 0;
      }
      body.tpl-navy .footer-body {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 36px;
        padding-bottom: 28px;
      }
      /* Quick links + Programs — nav is in the menu; keep brand + contact */
      body.tpl-navy .footer-body > .footer-col:nth-child(2),
      body.tpl-navy .footer-body > .footer-col:nth-child(3) {
        display: none;
      }
      body.tpl-navy .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
      }
      body.tpl-navy .footer-legal-links {
        flex-wrap: wrap;
        gap: 10px 14px;
        width: 100%;
      }
      body.tpl-navy .footer-tagline {
        max-width: 100%;
      }
      body.tpl-navy .hero-section.v2 .hero-headline {
        font-size: clamp(26px, 8vw, 36px);
        line-height: 1.12;
      }
      body.tpl-navy .video-thumb img,
      body.tpl-navy .blog-card .card-image img {
        max-width: 100%;
        height: auto;
      }
    }

    @media (max-width: 480px) {
      body.tpl-navy .section,
      body.tpl-navy .benefits-section {
        padding: 32px 0;
      }
    }

    /* ═══ Navy mobile menu — full-screen sheet (matches design system mockups) ═══ */
    @media (min-width: 1025px) {
      body.tpl-navy .site-nav .mobile-menu-header,
      body.tpl-navy .site-nav .mobile-menu-footer {
        display: none !important;
      }
      body.tpl-navy .site-nav .mobile-menu-body {
        display: contents;
      }
    }

    @media (max-width: 1024px) {
      body.tpl-navy.mobile-nav-open {
        overflow: hidden;
      }

      body.tpl-navy .site-nav.navbar {
        background: var(--color-primary) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      }

      body.tpl-navy .site-nav.navbar.is-scrolled {
        background: var(--color-primary) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: none;
      }

      body.tpl-navy .site-nav.navbar.is-scrolled .nav-inner {
        margin: 0 auto !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
      }

      body.tpl-navy .site-nav .nav-desktop-only {
        display: none !important;
      }

      body.tpl-navy .site-nav .nav-logo {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-right: auto;
        min-width: 0;
        max-width: calc(100vw - 76px);
      }

      body.tpl-navy .site-nav .nav-logo-img {
        filter: brightness(0) invert(1);
        display: block;
        width: auto;
        max-width: 100%;
        height: auto !important;
        max-height: clamp(22px, 6.5vw, 32px);
        object-fit: contain;
        object-position: left center;
      }

      body.tpl-navy .site-nav .hero-nav-hamburger {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 10px;
        color: #fff !important;
        background: transparent;
        margin-left: 10px;
      }

      /* Full-screen overlay (overrides sections.css dropdown panel for .site-nav only) */
      body.tpl-navy .site-nav .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-height: none !important;
        height: 100vh;
        height: 100dvh;
        margin: 0 !important;
        padding: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: linear-gradient(
          180deg,
          var(--color-primary-dark) 0%,
          var(--color-primary) 52%,
          var(--color-primary) 100%
        ) !important;
        box-shadow: none !important;
        border: none !important;
        z-index: 500 !important;
        overflow: hidden !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
      }

      body.tpl-navy .site-nav .nav-inner.is-mobile-open .nav-links {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        max-height: none !important;
      }

      body.tpl-navy .site-nav .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 16px clamp(16px, 4vw, 24px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      }

      body.tpl-navy .site-nav .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: #fff;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
      }

      /* Match bar logo: scales down on narrow viewports (wordmark SVG) */
      body.tpl-navy .site-nav .mobile-menu-brand-img {
        filter: brightness(0) invert(1);
        flex-shrink: 1;
        min-width: 0;
        max-width: min(260px, calc(100vw - 100px));
        height: auto !important;
        max-height: clamp(22px, 6.5vw, 32px);
        width: auto;
        object-fit: contain;
        object-position: left center;
        display: block;
      }

      body.tpl-navy .site-nav .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        color: #fff;
        cursor: pointer;
        border-radius: 10px;
        flex-shrink: 0;
      }

      body.tpl-navy .site-nav .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.08);
      }

      body.tpl-navy .site-nav .mobile-menu-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 8px 0 16px;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        align-items: stretch;
      }

      body.tpl-navy .site-nav .mobile-menu-body > .nav-link,
      body.tpl-navy .site-nav .mobile-menu-body .dropdown-wrap > .nav-link.dropdown {
        position: relative;
        display: flex !important;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 16px clamp(20px, 4vw, 28px) !important;
        padding-right: 48px !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 0 !important;
        color: #fff !important;
        font-size: 16px;
        font-weight: 600;
        background: transparent !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body > .nav-link:hover,
      body.tpl-navy .site-nav .mobile-menu-body .dropdown-wrap > .nav-link.dropdown:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #fff !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body > .nav-link::after {
        content: '›';
        position: absolute;
        right: clamp(20px, 4vw, 28px);
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        font-weight: 400;
        opacity: 0.9;
        line-height: 1;
      }

      /* Submenu row: only side chevron — drop desktop ::after triangle from components.css */
      body.tpl-navy .site-nav .mobile-menu-body .dropdown-wrap > .nav-link.dropdown::after {
        content: '›';
        position: absolute;
        right: clamp(20px, 4vw, 28px);
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        font-weight: 400;
        opacity: 0.9;
        line-height: 1;
        width: auto;
        height: auto;
        border: none;
        transition: transform 0.2s;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-wrap > .nav-link.dropdown:hover::after {
        transform: translateY(-50%);
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-wrap.is-open > .nav-link.dropdown::after {
        transform: translateY(-50%) rotate(90deg);
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-wrap.is-open > .nav-link.dropdown:hover::after {
        transform: translateY(-50%) rotate(90deg);
      }

      body.tpl-navy .site-nav .mobile-menu-body .nav-link:last-of-type {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-wrap {
        position: static;
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        box-sizing: border-box;
      }

      /* EU mega: countries only (no program-type groups) */
      body.tpl-navy .site-nav .mobile-menu-body .dropdown-programs {
        display: none !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: rgba(0, 0, 0, 0.18) !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        box-sizing: border-box;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-wrap.is-open .dropdown-menu {
        display: flex !important;
        flex-direction: column;
        grid-template-columns: unset !important;
        gap: 0 !important;
        padding: var(--space-3) clamp(16px, 4vw, 24px) !important;
        max-height: min(70vh, 520px) !important;
        overflow-y: auto !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-countries {
        border-left: none !important;
        padding-left: 0 !important;
        width: 100%;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-country-list {
        grid-template-columns: 1fr !important;
      }

      /* Desktop filter JS hides items; mobile has no filters — show full list */
      body.tpl-navy .site-nav .mobile-menu-body .dropdown-country-item.hidden {
        display: flex !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-item {
        color: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.06) !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-item-title {
        color: #fff !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-item-desc {
        color: rgba(255, 255, 255, 0.65) !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-item-icon svg {
        color: rgba(255, 255, 255, 0.85);
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-countries-title {
        color: rgba(255, 255, 255, 0.55) !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-country-item {
        color: rgba(255, 255, 255, 0.92) !important;
      }

      body.tpl-navy .site-nav .mobile-menu-body .dropdown-country-item:hover {
        background: rgba(255, 255, 255, 0.08) !important;
      }

      body.tpl-navy .site-nav .mobile-menu-footer {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        gap: 12px;
        padding: 16px clamp(16px, 4vw, 24px) calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
      }

      body.tpl-navy .site-nav .mobile-menu-footer .lang-switcher {
        background: rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-full, 9999px);
        padding: 3px;
        gap: 2px;
        margin-right: 0;
        flex-shrink: 0;
      }

      body.tpl-navy .site-nav .mobile-menu-footer .lang-btn {
        color: rgba(255, 255, 255, 0.92);
      }

      body.tpl-navy .site-nav .mobile-menu-footer .lang-btn:hover:not(.active) {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
      }

      body.tpl-navy .site-nav .mobile-menu-footer .lang-btn.active {
        background: #fff !important;
        color: var(--color-primary-dark) !important;
        box-shadow: none !important;
      }

      body.tpl-navy .site-nav .mobile-menu-footer .nav-phone {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 12px 14px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
      }
    }