:root {
    --paper: #fffcfc;
    --ink: #1a1214;
    --muted: #4e3c40;
    --red: #c1121f;
    --red-deep: #8e1024;
    --line: #eadfe1;
    --bar: #f3d5da;
    --header: 72px;
    --wrap: 1160px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 12px);
}

body {
    margin: 0;
    font-family: "Cairo", sans-serif;
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

img { max-width: 100%; display: block; }

button, input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    inset-inline-start: 12px;
    top: -48px;
    z-index: 80;
    background: var(--paper);
    color: var(--ink);
    padding: 8px 12px;
    font-weight: 800;
}

.skip:focus { top: 12px; }

.wrap {
    width: min(var(--wrap), calc(100% - 40px));
    margin-inline: auto;
}

h1, h2, h3 { font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; margin: 0; }

p { margin: 0; }

figure { margin: 0; }

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header);
    background: var(--paper);
    border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 60;
    flex-shrink: 0;
}

.logo img { width: 46px; height: 46px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
}

.nav-links a:hover { color: var(--red); }

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 60;
}

.lang-option {
    border: 0;
    background: transparent;
    padding: 8px 8px;
    cursor: pointer;
    font-weight: 800;
    color: var(--muted);
}

.lang-option.is-active { color: var(--red); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: absolute;
    inset-inline-start: 12px;
}

.menu-toggle span { top: 21px; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; inset-inline-start: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* Hero */

.hero {
    padding: 18px 0 28px;
    background-color: var(--paper);
    background-image:
        linear-gradient(100deg, rgba(255, 252, 252, 0.94) 0%, rgba(255, 252, 252, 0.86) 46%, rgba(255, 252, 252, 0.72) 100%),
        url("../images/hero-bg.jpg");
    background-size: cover;
    background-position: center right;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    align-items: center;
    gap: 28px;
    min-height: calc(100svh - var(--header) - 36px);
}

.hero h1 {
    font-size: clamp(4.4rem, 9.2vw, 8.4rem);
    color: var(--red);
    line-height: 0.8;
    letter-spacing: -0.045em;
}

.hero h1 span { display: block; }

[dir="rtl"] .hero h1 {
    width: max-content;
    margin-inline-end: auto;
}

.hero-copy p {
    max-width: 34ch;
    margin-top: 22px;
    font-size: 1.2rem;
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    margin-top: 26px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    border: 0;
    cursor: pointer;
}

.btn:hover { background: var(--red-deep); }

.hero-mark {
    width: min(100%, 520px);
    justify-self: end;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 10px;
    background:
        linear-gradient(var(--paper), var(--paper)) padding-box,
        linear-gradient(var(--red), var(--red)) border-box;
    border: 3px solid transparent;
}

.hero-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* About */

.about { padding: 88px 0; }

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.about h2,
.section-head h2,
.method h2,
.band h2,
.quotes h2,
.contact h2,
.faq h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}

.about-copy p {
    max-width: 58ch;
    margin-top: 16px;
    color: var(--muted);
}

.about-card {
    margin: 12px 18px 28px;
    padding: 12px;
    border-radius: 28px;
    background: #fff;
    transform: perspective(900px) rotateY(-7deg) rotateX(3deg);
    transform-origin: center;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 16px 28px -14px rgba(142, 16, 36, 0.45),
        0 42px 60px -24px rgba(26, 18, 20, 0.4);
}

[dir="rtl"] .about-card { transform: perspective(900px) rotateY(7deg) rotateX(3deg); }

.about-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 36%;
    border-radius: 18px;
}

/* Courses */

.courses {
    min-height: 100svh;
    padding: 110px 0 140px;
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(255, 252, 252, 0.86), rgba(255, 252, 252, 0.82)),
        url("../images/courses-bg.jpg");
    background-size: cover;
    background-position: center;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 32px;
}

.section-head p,
.level-readout p,
.method-item p,
.course-list p,
.city p,
.faq-panel p,
.lede {
    color: var(--muted);
}

.section-head p,
.lede { max-width: 46ch; }

.lede { margin-top: 14px; }

.course-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 64px;
    align-items: start;
}

.course-card:nth-child(even) { margin-top: 52px; }

.course-card {
    background: #fff7f8;
    color: var(--ink);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 18px 34px -16px rgba(142, 16, 36, 0.45),
        0 8px 16px -10px rgba(26, 18, 20, 0.35);
}

.course-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.course-card div { padding: 16px 16px 20px; }

.course-card h3 { font-size: 1.35rem; margin-bottom: 8px; }

.course-card p { color: var(--muted); }

/* Levels */

.levels { padding: 88px 0; background: #fff7f8; }

.skyline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.skyline button {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    height: 280px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
}

.bar {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.bar i {
    display: block;
    width: 100%;
    height: var(--rise);
    background: var(--bar);
}

.skyline button[aria-selected="true"] .bar i,
.skyline button:hover .bar i { background: var(--red); }

.skyline .code { text-align: center; font-size: 0.95rem; }

.level-readout {
    margin-top: 28px;
    max-width: 62ch;
}

.level-readout h3 {
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.steps {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-width: 46rem;
}

.steps li {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.step-code {
    font-weight: 900;
    color: var(--red);
    letter-spacing: -0.03em;
    direction: ltr;
    unicode-bidi: isolate;
}

.step-name { font-weight: 800; }

.step-note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 500;
}

/* Test */

.band {
    color: #fff;
    padding: 88px 0;
    background-color: var(--red);
    background-image:
        linear-gradient(rgba(193, 18, 31, 0.84), rgba(193, 18, 31, 0.78)),
        url("../images/test-bg.jpg");
    background-size: cover;
    background-position: center;
}

.band h2 { color: #fff; }

.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.7fr);
    gap: 40px;
    align-items: start;
}

.band-lead {
    max-width: 34ch;
    margin-top: 18px;
    font-size: 1.2rem;
    color: #fff;
}

.sheet {
    background: var(--paper);
    color: var(--ink);
    padding: 28px 24px;
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }

.field label { font-weight: 800; }

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid #e5d0d4;
    background: #fff;
    color: var(--ink);
    padding: 12px 12px;
    border-radius: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid var(--red);
    outline-offset: 1px;
    border-color: var(--red);
}

.sheet .btn { width: 100%; margin-top: 6px; }

.form-status {
    min-height: 1.5em;
    margin: 12px 0 0;
    font-weight: 800;
    color: var(--red-deep);
}

/* Method */

.method { padding: 88px 0 72px; overflow: clip; }

.reel {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.reel-stage {
    position: relative;
    height: 460px;
    perspective: 1400px;
}

.reel-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(420px, 62%);
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #3d0710;
    box-shadow: 0 28px 40px -20px rgba(61, 7, 16, 0.65);
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(.16, 1, .3, 1), opacity 0.7s ease;
}

.reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-card div {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 64px 20px 20px;
    background: linear-gradient(to top, rgba(61, 7, 16, 0.94) 0%, rgba(61, 7, 16, 0.55) 62%, transparent 100%);
    color: #fff;
}

.reel-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 6px; color: #fff; }

.reel-card p { color: rgba(255, 255, 255, 0.92); max-width: 28ch; }

.reel-arrow {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.reel-arrow svg { width: 16px; height: 16px; display: block; }

.reel-arrow:hover { background: var(--red-deep); }

[dir="rtl"] .reel-arrow svg { transform: scaleX(-1); }

/* FAQ */

.faq { padding: 20px 0 88px; }

.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: start;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.2rem;
}

.mark {
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
    color: var(--red);
}

.mark::before,
.mark::after {
    content: "";
    position: absolute;
    background: currentColor;
    inset-inline-start: 50%;
    top: 50%;
}

.mark::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.mark::after { width: 2px; height: 16px; transform: translate(-50%, -50%); transition: transform 0.2s ease; }

[dir="rtl"] .mark::before { transform: translate(50%, -50%); }
[dir="rtl"] .mark::after { transform: translate(50%, -50%); }

.faq-item.is-open .mark::after { transform: translate(-50%, -50%) rotate(90deg); }
[dir="rtl"] .faq-item.is-open .mark::after { transform: translate(50%, -50%) rotate(90deg); }

.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }

.faq-panel p {
    overflow: hidden;
    min-height: 0;
    max-width: 68ch;
}

.faq-item.is-open .faq-panel p { padding-bottom: 20px; }

/* Quotes */

.quotes { padding: 88px 0; background: #fff7f8; }

.quote-text {
    max-width: 18em;
    margin-top: 28px;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.quote-who { margin-top: 18px; font-weight: 800; }
.quote-meta { display: block; color: var(--muted); font-weight: 500; }

.quote-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 28px;
}

.quote-switch button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 6px 0;
    cursor: pointer;
    font-weight: 800;
    color: var(--muted);
}

.quote-switch button[aria-pressed="true"] {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* Contact */

.contact { padding: 88px 0 0; background: var(--paper); }

.cities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.city h3 { font-size: clamp(2rem, 4vw, 3.2rem); }

.city-select {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: inherit;
    color: var(--muted);
}

.city.is-active .city-select { color: var(--red); }

.city p { margin-top: 14px; max-width: 36ch; }

.city a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    direction: ltr;
    unicode-bidi: isolate;
}

.city a:hover { color: var(--red); }

.contact-map {
    margin-top: 40px;
    height: 420px;
    background: var(--bar);
}

.contact-map iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
    width: min(var(--wrap), calc(100% - 40px));
    margin: 40px auto 88px;
    color: var(--ink);
}

.contact-form h3 { font-size: 2rem; margin-bottom: 8px; }

.form-note {
    margin: 0 0 18px;
    color: var(--muted);
}

/* Footer */

.site-footer {
    background: var(--red-deep);
    color: #fff;
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.footer-brand img { width: 46px; height: 46px; }

.site-footer p { margin-top: 12px; max-width: 36ch; color: #fff; }

.site-footer h2 {
    font-size: 1.05rem;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }

.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.phone {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.legal {
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.95rem;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-mark { animation: arrive 0.9s cubic-bezier(.16, 1, .3, 1) both; }
    .course-card { animation: float 6s ease-in-out infinite; }
    .course-card:nth-child(2) { animation-delay: 0.8s; }
    .course-card:nth-child(3) { animation-delay: 1.6s; }
    .course-card:nth-child(4) { animation-delay: 2.4s; }
    .hero h1 span,
    .hero-copy p,
    .hero-copy .btn { animation: lift 0.7s cubic-bezier(.16, 1, .3, 1) both; }
    .hero h1 span:nth-child(2) { animation-delay: 0.08s; }
    .hero-copy p { animation-delay: 0.14s; }
    .hero-copy .btn { animation-delay: 0.2s; }
}

@keyframes lift {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes arrive {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: none; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 1080px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 40;
        background: var(--red);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 2px;
        padding: calc(var(--header) + 20px) 28px 32px;
        overflow-y: auto;
    }

    .nav-links.is-open { display: flex; }

    .nav-links a {
        color: #fff;
        font-size: clamp(1.85rem, 8vw, 2.7rem);
        font-weight: 900;
        line-height: 1.12;
        letter-spacing: -0.03em;
    }

    .nav-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

    .site-header.is-open { background: var(--red); border-bottom-color: transparent; }
    .site-header.is-open .logo,
    .site-header.is-open .lang-option { color: #fff; }
    .site-header.is-open .lang-option.is-active { background: #fff; color: var(--red); }
    .site-header.is-open .menu-toggle span,
    .site-header.is-open .menu-toggle span::before,
    .site-header.is-open .menu-toggle span::after { background: #fff; }

    .site-header.is-open .menu-toggle span { background: transparent; }
    .site-header.is-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
    .site-header.is-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

    .course-board { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .hero-grid,
    .about-grid,
    .course-board,
    .band-grid,
    .section-head,
    .cities,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-card { transform: none; margin-inline: 0; }

    .courses { min-height: 0; }

    .course-card:nth-child(even) { margin-top: 0; }

    .hero-grid { min-height: 0; padding-bottom: 12px; }

    .hero h1 { font-size: clamp(4rem, 18vw, 5.6rem); }

    .hero-mark {
        width: min(78vw, 420px);
        justify-self: start;
        order: 2;
    }

    .reel-stage { height: 380px; }
    .reel-card { width: min(280px, 78%); }

    .skyline button { height: 160px; }

    .contact-map { height: 280px; }

    .about, .courses, .levels, .band, .method, .faq, .quotes { padding-top: 64px; padding-bottom: 64px; }
    .faq { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
