      :root {
        --crimson-900: #5c0f1a;
        --crimson-800: #6b1220;
        --crimson-700: #7e1628;
        --crimson-600: #8c1a2e;
        --crimson-500: #a01f35;
        --crimson-400: #b5232d;
        --crimson-100: #e8d0d6;
        --crimson-50: #f5e6e9;
        --gold-700: #c07800;
        --gold-600: #e09000;
        --gold-500: #f0a500;
        --gold-400: #f5b82e;
        --gold-300: #f8c84a;
        --gold-100: #fef3d7;
        --gold-50: #fffbf0;
        --dark-950: #0a0608;
        --dark-900: #100810;
        --dark-800: #1a0f12;
        --dark-700: #2a1a1e;
        --text-primary: #0f0f0f;
        --text-muted: #5f5a5b;
        --text-light: #9a9496;
        --warm-white: #fdfbfb;
        --warm-gray: #f7f3f4;
        --line: #efe7e9;
        --brand-green: #04362a; /* subtle link to Qalam School brand */
        --radius-md: 14px;
        --radius-lg: 20px;
        --radius-xl: 26px;
        --radius-2xl: 32px;
        --shadow-sm: 0 2px 10px rgba(92, 15, 26, 0.05);
        --shadow: 0 14px 38px rgba(92, 15, 26, 0.1);
        --shadow-lg: 0 30px 72px rgba(92, 15, 26, 0.18);
        --display: "Outfit", "Inter", -apple-system, sans-serif;
        --sans:
          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
        --ease-out: cubic-bezier(0, 0, 0.2, 1);
      }
      *,
      *::before,
      *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
      }
      body {
        font-family: var(--sans);
        color: var(--text-primary);
        background: var(--warm-white);
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        line-height: 1.6;
        letter-spacing: -0.005em;
      }
      ::selection {
        background: var(--crimson-600);
        color: #fff;
      }
      img {
        display: block;
        max-width: 100%;
        height: auto;
      }
      a {
        color: inherit;
        text-decoration: none;
      }
      button {
        font-family: inherit;
        cursor: pointer;
      }
      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        font-family: var(--display);
        letter-spacing: -0.04em;
        line-height: 1.05;
        color: var(--dark-950);
        font-weight: 800;
      }
      h1 {
        font-size: clamp(2.5rem, 6.5vw, 5.5rem);
        letter-spacing: -0.04em;
        line-height: 0.96;
        font-weight: 800;
      }
      h2 {
        font-size: clamp(2.2rem, 5vw, 4.2rem);
        letter-spacing: -0.04em;
        line-height: 1.02;
        font-weight: 800;
      }
      h3 {
        font-size: clamp(1.2rem, 2vw, 1.6rem);
        font-weight: 700;
        letter-spacing: -0.025em;
        line-height: 1.25;
      }
      p {
        line-height: 1.7;
        color: var(--text-muted);
      }
      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 28px;
      }

      .skip-link {
        position: absolute;
        left: -9999px;
        top: 0;
        z-index: 200;
        padding: 12px 18px;
        background: var(--crimson-600);
        color: #fff;
        border-radius: 0 0 10px 0;
        font-size: 13px;
        font-weight: 700;
      }
      .skip-link:focus {
        left: 0;
      }

      .menu-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 9998;
      }
      .menu-backdrop.open {
        display: block;
      }

      /* Gradients */
      .gradient-hero {
        background: linear-gradient(
          135deg,
          #5c0f1a 0%,
          #8c1a2e 40%,
          #b02030 70%,
          #c8341a 100%
        );
      }
      .gradient-dark {
        background: linear-gradient(
          160deg,
          #0a0608 0%,
          #1a080e 45%,
          #0f0512 100%
        );
      }

      /* Blob animation */
      @keyframes blob {
        0% {
          transform: translate(0, 0) scale(1);
        }
        33% {
          transform: translate(30px, -50px) scale(1.1);
        }
        66% {
          transform: translate(-20px, 20px) scale(0.9);
        }
        100% {
          transform: translate(0, 0) scale(1);
        }
      }
      .blob {
        animation: blob 7s infinite;
      }
      .blob-d2 {
        animation-delay: 2s;
      }
      .blob-d4 {
        animation-delay: 4s;
      }

      /* Floating pill header (post-91d25d30) — kept for reference, not used.
      .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 10px 16px 0;
      }
      .nav-inner {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 32px;
        height: 76px;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
        transition:
          background 0.35s var(--ease-out),
          box-shadow 0.35s var(--ease-out),
          max-width 0.35s var(--ease-out);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
      }
      .nav.menu-open .nav-inner {
        transition: none;
        max-width: 1080px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow:
          0 0 12.6px rgba(0, 0, 0, 0.08),
          inset 2px 2px 1px -2px #e7e7e7,
          inset -2px -2px 1px -2px #e7e7e7,
          inset 3px 3px 0 -3px rgba(231, 231, 231, 0.5);
      }
      .nav.scrolled .nav-inner {
        max-width: 1080px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow:
          0 0 12.6px rgba(0, 0, 0, 0.08),
          inset 2px 2px 1px -2px #e7e7e7,
          inset -2px -2px 1px -2px #e7e7e7,
          inset 3px 3px 0 -3px rgba(231, 231, 231, 0.5);
      }
      */

      /* Original opaque header (pre-91d25d30) — restored, but no longer fixed. */
      .nav {
        position: relative;
        z-index: 100;
        padding: 0;
        transition:
          background 0.35s var(--ease-out),
          box-shadow 0.35s var(--ease-out);
        background: rgba(253, 251, 251, 0.92);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        border-bottom: 1px solid rgba(239, 231, 233, 0.7);
        box-shadow: 0 2px 16px rgba(92, 15, 26, 0.06);
      }
      .nav.menu-open {
        /* Без transition: иначе анимация backdrop-filter/фона даёт заметное «моргание». */
        transition: none;
        background: rgba(253, 251, 251, 0.96);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        border-bottom: 1px solid rgba(239, 231, 233, 0.7);
        box-shadow: 0 2px 16px rgba(92, 15, 26, 0.06);
      }
      .nav.scrolled {
        background: rgba(253, 251, 251, 0.92);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        border-bottom: 1px solid rgba(239, 231, 233, 0.7);
        box-shadow: 0 2px 16px rgba(92, 15, 26, 0.06);
      }
      .nav-inner {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 32px;
        height: 76px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
      }
      .brand {
        display: inline-flex;
        align-items: center;
        gap: 0;
      }
      .brand-logo {
        width: 140px;
        height: 60px;
        flex-shrink: 0;
        display: block;
        object-fit: contain;
        object-position: left center;
        transition: transform 0.2s var(--ease-out);
      }
      .brand:hover .brand-logo {
        transform: scale(1.04);
      }
      .nav-links {
        display: flex;
        gap: 28px;
        list-style: none;
      }
      .nav-links a {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-muted);
        white-space: nowrap;
        transition: color 0.2s;
        position: relative;
      }
      .nav-links a::after {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 0;
        right: 0;
        height: 1.5px;
        background: var(--crimson-600);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s var(--ease-out);
      }
      .nav-links a:hover {
        color: var(--crimson-600);
      }
      .nav-links a:hover::after {
        transform: scaleX(1);
      }
      .nav-right {
        display: flex;
        align-items: center;
        gap: 14px;
      }
      .lang-switch {
        position: relative;
      }
      .lang-switch-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        height: 42px;
        border: none;
        border-radius: 100px;
        background: var(--crimson-600);
        padding: 0 14px;
        font-family: var(--sans);
        cursor: pointer;
        transition: background 0.2s;
      }
      .lang-switch-trigger:hover {
        background: var(--crimson-700);
      }
      .lang-flag-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: block;
        flex-shrink: 0;
        object-fit: cover;
      }
      .lang-switch-menu a .lang-flag-icon {
        width: 18px;
        height: 18px;
      }
      .lang-switch .lang-chevron {
        color: rgba(255, 255, 255, 0.8);
        transition: transform 0.2s;
      }
      .lang-switch.open .lang-chevron {
        transform: rotate(180deg);
      }
      .lang-switch-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 128px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        padding: 6px;
        display: flex;
        flex-direction: column;
        gap: 2px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition:
          opacity 0.2s,
          transform 0.2s,
          visibility 0.2s;
        z-index: 10;
      }
      .lang-switch.open .lang-switch-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }
      .lang-switch-menu a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 10px;
        border-radius: 9px;
        font-size: 13px;
        font-weight: 600;
        color: var(--dark-950);
        transition:
          background 0.15s,
          color 0.15s;
      }
      .lang-switch-menu a:hover {
        background: var(--crimson-50);
      }
      .lang-switch-menu a.active {
        background: var(--crimson-600);
        color: #fff;
      }
      .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        border-radius: 100px;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.25s var(--ease-out);
        border: none;
        font-family: var(--sans);
        white-space: nowrap;
        cursor: pointer;
        line-height: 1;
        letter-spacing: -0.01em;
      }
      .btn-primary {
        background: var(--crimson-600);
        color: #fff;
        box-shadow: 0 6px 20px rgba(140, 26, 46, 0.28);
      }
      .btn-primary:hover {
        background: var(--crimson-700);
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(140, 26, 46, 0.4);
      }
      .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(140, 26, 46, 0.28);
      }
      .btn-white {
        background: #fff;
        color: var(--dark-950);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--line);
      }
      .btn-white:hover {
        background: var(--warm-gray);
        transform: translateY(-1px);
        box-shadow: var(--shadow);
      }
      .btn-dark {
        background: var(--dark-900);
        color: #fff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
      }
      .btn-dark:hover {
        background: var(--dark-800);
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
      }
      .btn-ghost {
        background: transparent;
        color: var(--dark-950);
        border: 1.5px solid rgba(15, 15, 15, 0.18);
      }
      .btn-ghost:hover {
        border-color: var(--dark-950);
        background: rgba(15, 15, 15, 0.04);
      }
      .btn-lg {
        padding: 16px 34px;
        font-size: 15px;
        font-weight: 700;
      }
      .burger {
        display: none;
        width: 42px;
        height: 42px;
        background: var(--crimson-600);
        border: 1px solid var(--crimson-600);
        border-radius: 100px;
        padding: 0;
        align-items: center;
        justify-content: center;
      }
      .burger span {
        display: block;
        width: 16px;
        height: 1.5px;
        background: #fff;
        position: relative;
        transition: all 0.2s;
      }
      .burger span::before,
      .burger span::after {
        content: "";
        position: absolute;
        left: 0;
        width: 16px;
        height: 1.5px;
        background: #fff;
        transition: all 0.2s;
      }
      .burger span::before {
        top: -5px;
      }
      .burger span::after {
        top: 5px;
      }
      .burger.open span {
        background: transparent;
      }
      .burger.open span::before {
        top: 0;
        transform: rotate(45deg);
      }
      .burger.open span::after {
        top: 0;
        transform: rotate(-45deg);
      }
      /* Mobile menu — floating rounded card under the pill nav (not an edge-to-edge
         panel), no dimming backdrop behind it: menu-backdrop stays transparent and is
         only used as an invisible click-outside-to-close target. */
      .mobile-menu {
        display: none;
        position: fixed;
        top: 96px;
        left: 16px;
        right: 16px;
        max-width: 1240px;
        margin: 0 auto;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-xl);
        padding: 18px;
        z-index: 9999;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 116px);
        overflow-y: auto;
      }
      .mobile-menu.open {
        display: block;
      }
      .mobile-menu ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 16px;
      }
      .mobile-menu ul a {
        display: block;
        padding: 13px 16px;
        border-radius: 999px;
        font-size: 15.5px;
        color: var(--dark-950);
        font-weight: 600;
        transition:
          background 0.2s,
          color 0.2s;
      }
      .mobile-menu ul a:hover,
      .mobile-menu ul a:active,
      .mobile-menu ul a.active {
        background: var(--crimson-50);
        color: var(--crimson-600);
      }
      .mobile-menu .btn {
        width: 100%;
        justify-content: center;
        color: #fff;
      }
      .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 14px;
        border-top: 1px solid var(--line);
      }

      /* FOOTER */
      .footer {
        background: var(--dark-950);
        color: rgba(255, 255, 255, 0.6);
        padding: 76px 0 36px;
      }
      .footer-inner {
        display: grid;
        grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
        gap: 48px;
        margin-bottom: 56px;
      }
      .footer-brand .brand {
        color: #fff;
      }
      .footer-brand p {
        color: rgba(255, 255, 255, 0.58);
        font-size: 13.5px;
        line-height: 1.7;
        margin: 20px 0 18px;
        max-width: 300px;
      }
      .footer-socials {
        display: flex;
        gap: 9px;
      }
      .footer-socials a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.65);
        transition:
          background 0.22s,
          color 0.22s,
          transform 0.22s;
      }
      .footer-socials a:hover {
        background: var(--crimson-600);
        color: #fff;
        transform: translateY(-2px);
      }
      .footer h4 {
        font-family: var(--display);
        font-size: 11px;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.9);
        text-transform: uppercase;
        letter-spacing: 0.16em;
        margin-bottom: 20px;
      }
      .footer ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 9px;
      }
      .footer ul a {
        font-size: 13.5px;
        color: rgba(255, 255, 255, 0.55);
        transition: color 0.2s;
      }
      .footer ul a:hover {
        color: var(--gold-300);
      }
      .footer-contact {
        font-size: 13px;
        line-height: 1.72;
        color: rgba(255, 255, 255, 0.55);
      }
      .footer-contact strong {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 800;
        display: block;
        margin-bottom: 4px;
        font-size: 10.5px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }
      .footer-contact a {
        color: var(--gold-400);
        transition: opacity 0.2s;
      }
      .footer-contact a:hover {
        opacity: 0.8;
      }
      .footer-contact address {
        font-style: normal;
      }
      .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        padding-top: 28px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.36);
      }
      .footer-bottom a {
        color: rgba(255, 255, 255, 0.48);
        margin-left: 20px;
        transition: color 0.2s;
      }
      .footer-bottom a:hover {
        color: var(--gold-300);
      }

      /* Modal */
      .modal-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(10, 6, 8, 0.72);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        align-items: center;
        justify-content: center;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.3s;
      }
      .modal-backdrop.open {
        display: flex;
        opacity: 1;
      }
      .modal {
        background: #fff;
        border-radius: var(--radius-2xl);
        padding: 40px;
        max-width: 440px;
        width: 100%;
        box-shadow: var(--shadow-lg);
        position: relative;
        transform: scale(0.95) translateY(8px);
        transition: transform 0.32s var(--ease-spring);
      }
      .modal-backdrop.open .modal {
        transform: scale(1) translateY(0);
      }
      .modal-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: var(--warm-gray);
        color: var(--text-muted);
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition:
          background 0.2s,
          color 0.2s;
      }
      .modal-close:hover {
        background: var(--crimson-50);
        color: var(--crimson-600);
      }
      .modal h3 {
        font-family: var(--display);
        font-size: 1.5rem;
        font-weight: 800;
        text-align: center;
        margin-bottom: 24px;
        letter-spacing: -0.025em;
        color: var(--dark-950);
      }
      .modal .success {
        text-align: center;
        padding: 20px 0;
      }
      .modal .success-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: #d1fae5;
        color: #10b981;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        font-size: 28px;
      }

      /* Back-to-top */
      .back-to-top {
        position: fixed;
        bottom: 24px;
        right: 22px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--crimson-600);
        color: #fff;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
        transition:
          opacity 0.3s,
          transform 0.3s,
          background 0.2s;
        z-index: 90;
        box-shadow: 0 4px 18px rgba(140, 26, 46, 0.4);
      }
      .back-to-top.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }
      .back-to-top:hover {
        background: var(--crimson-700);
        transform: translateY(-3px);
      }

      /* Fade-up */
      .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition:
          opacity 0.65s var(--ease-out),
          transform 0.65s var(--ease-out);
      }
      .fade-up.in {
        opacity: 1;
        transform: translateY(0);
      }
      .fade-up.d1 {
        transition-delay: 0.1s;
      }
      .fade-up.d2 {
        transition-delay: 0.18s;
      }
      .fade-up.d3 {
        transition-delay: 0.26s;
      }
      .fade-up.d4 {
        transition-delay: 0.34s;
      }
      @media (prefers-reduced-motion: reduce) {
        * {
          animation-duration: 0s !important;
          transition-duration: 0.01s !important;
        }
        .fade-up {
          opacity: 1;
          transform: none;
        }
      }

      /* Lazy photo crossfade — cards already show a solid color placeholder
         behind the <img>; without this the photo pops in abruptly the moment
         it finishes decoding. .is-loaded is added by JS on the image's load
         event (or immediately if it was already cached/complete). */
      img[loading="lazy"] {
        opacity: 0;
        transition: opacity 0.4s var(--ease-out);
      }
      img[loading="lazy"].is-loaded {
        opacity: 1;
      }

      /* ============================================================
   RESPONSIVE — refined breakpoints
   ============================================================ */

      /* 1100px — tablet landscape */
      @media (max-width: 1100px) {
        .footer-inner {
          grid-template-columns: 1fr 1fr;
          gap: 40px;
        }
      }

      /* 900px — tablet portrait */
      @media (max-width: 900px) {
        .nav-links {
          display: none;
        }
        .nav-right > .btn {
          display: none;
        }
        .burger {
          display: inline-flex;
        }
      }

      /* 640px — mobile */
      @media (max-width: 640px) {
        /* Layout */
        .container {
          padding: 0 20px;
        }
        .nav-inner {
          padding: 0 20px;
          height: 68px;
        }
        .mobile-menu {
          top: 84px;
          left: 12px;
          right: 12px;
          max-height: calc(100vh - 100px);
          padding: 14px;
          border-radius: var(--radius-lg);
        }

        /* Footer */
        .footer-inner > div:not(.footer-brand):not(.footer-contact) {
          display: none;
        }
        .footer-inner {
          display: flex;
          flex-direction: column;
          gap: 20px;
          margin-bottom: 20px;
        }
        .footer-brand p {
          margin: 14px 0 16px;
        }
        .footer {
          padding: 40px 0 24px;
        }
        .footer-bottom {
          flex-direction: column;
          align-items: flex-start;
          gap: 10px;
          padding-top: 20px;
        }
        .footer-bottom a {
          margin-left: 0;
          display: block;
        }
      }
    