:root {
    --bg: #f7f3e8;
    --bg-2: #fffdf8;
    --card: #ffffff;
    --line: rgba(184, 148, 40, 0.28);
    --gold: #c9a227;
    --gold-2: #9a7614;
    --text: #1a1710;
    --muted: #5c564a;
    --ok: #1a9a5c;
    --err: #d64545;
    --shadow: 0 18px 44px rgba(80, 60, 20, 0.10);
    --radius: 22px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: "Cairo", Tahoma, sans-serif;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 55, 0.28), transparent 55%),
        radial-gradient(900px 500px at 0% 20%, rgba(120, 160, 230, 0.16), transparent 50%),
        var(--bg);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

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

h1, h2, h3, p, li, label {
    overflow-wrap: anywhere;
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 16px;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 253, 248, 0.86);
    border-bottom: 1px solid rgba(26, 23, 16, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(26, 23, 16, 0.12);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding-block: 6px;
    padding-inline: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
}

.lang-btn svg {
    width: 22px;
    height: 16px;
    display: block;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(26, 23, 16, 0.12);
}

.lang-btn.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.22);
    background: #fff;
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 700;
    background: linear-gradient(135deg, #f0d78c, var(--gold));
    color: #1a1406;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.btn:hover,
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.3);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(26, 23, 16, 0.14);
    box-shadow: none;
}

.hero {
    padding: 72px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 36px;
    align-items: stretch;
}

.hero-copy {
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-2);
    font-weight: 600;
    margin-bottom: 14px;
}

h1, h2, h3 {
    line-height: 1.35;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    max-width: 16ch;
    margin-bottom: 18px;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 52ch;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

section {
    padding: 56px 0;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}

.section-head p {
    color: var(--muted);
    max-width: 60ch;
}

.grid {
    display: grid;
    gap: 16px;
}

.learn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.card {
    background: linear-gradient(180deg, #ffffff, #fbf8f1);
    border: 1px solid rgba(26, 23, 16, 0.08);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.card h3 {
    margin: 10px 0 8px;
    font-size: 1.12rem;
}

.card p {
    color: var(--muted);
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold-2);
    font-weight: 800;
}

.audience {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.audience-copy {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 12px;
}

.checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
}

.check {
    color: var(--gold);
    font-weight: 800;
}

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    background: var(--card);
}

.cta-copy {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(500px 180px at 50% 0%, rgba(212, 175, 55, 0.28), transparent 70%),
        linear-gradient(180deg, #ffffff, #fbf8f1);
}

.cta-band h2 {
    margin-bottom: 10px;
}

.cta-band p {
    color: var(--muted);
    margin-bottom: 22px;
}

.visual {
    position: relative;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius);
    background: #1a1710;
    box-shadow: var(--shadow), 0 0 0 1px rgba(201, 162, 39, 0.22);
}

.visual img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.visual::before,
.visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.visual::before {
    box-shadow: inset 0 0 80px rgba(247, 243, 232, 0.18);
    border-radius: inherit;
}

.visual::after {
    background:
        linear-gradient(180deg, rgba(247, 243, 232, 0.22) 0%, transparent 18%, transparent 78%, rgba(247, 243, 232, 0.38) 100%),
        linear-gradient(to inline-end, rgba(247, 243, 232, 0.16), transparent 28%);
}

.visual-hero,
.visual-audience,
.visual-cta {
    height: 100%;
    min-height: 340px;
}

.visual-hero img,
.visual-audience img,
.visual-cta img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.visual-hero::after {
    background:
        linear-gradient(to inline-end, rgba(247, 243, 232, 0.55), transparent 42%),
        linear-gradient(180deg, rgba(247, 243, 232, 0.18), transparent 24%, transparent 76%, rgba(247, 243, 232, 0.28) 100%);
}

.visual-wide {
    margin-top: 8px;
}

.visual-cta {
    border-radius: 0;
    box-shadow: none;
    min-height: 280px;
}

.cta-band .visual-cta::after {
    background:
        linear-gradient(to inline-end, rgba(255, 253, 248, 0.55), transparent 36%),
        linear-gradient(180deg, rgba(247, 243, 232, 0.12), transparent 30%, transparent 70%, rgba(247, 243, 232, 0.2) 100%);
}

#register .form-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}

#register .form-layout > * {
    min-width: 0;
}

.form-card,
.success-card {
    background: var(--card);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
    min-width: 0;
    width: 100%;
}

.form-card h2,
.success-card h2 {
    margin-bottom: 8px;
}

.form-note {
    color: var(--muted);
    margin-bottom: 22px;
}

.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
}

input,
select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid rgba(26, 23, 16, 0.12);
    background: var(--bg-2);
    color: var(--text);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a7614' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
    cursor: pointer;
}

html[dir="ltr"] select {
    background-position: right 14px center;
    padding-left: 14px;
    padding-right: 40px;
}

html[dir="ltr"] h1 {
    max-width: 16em;
}

input:focus,
select:focus {
    border-color: var(--gold);
}

input::placeholder {
    color: #8a8376;
}

.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-message {
    min-height: 24px;
    margin: 12px 0 0;
    font-weight: 600;
}

.form-message.success {
    color: var(--ok);
}

.form-message.error {
    color: var(--err);
}

.submit-row {
    margin-top: 18px;
}

.submit-row .btn {
    width: 100%;
    padding: 14px 18px;
}

.success-card {
    display: none;
    text-align: center;
    padding: 48px 28px;
}

.success-card.is-visible,
body.is-submitted .success-card {
    display: block;
}

body.is-submitted .form-card,
body.is-submitted .register-copy,
body.is-submitted .sticky-cta {
    display: none;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(61, 214, 140, 0.12);
    color: var(--ok);
    font-size: 2rem;
}

.success-card p {
    color: var(--muted);
    max-width: 46ch;
    margin: 0 auto;
}

footer {
    border-top: 1px solid rgba(26, 23, 16, 0.08);
    padding: 28px 16px 40px;
    color: var(--muted);
    text-align: center;
}

.sticky-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    display: none;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(26, 23, 16, 0.08);
}

.sticky-cta .btn {
    width: 100%;
}

@media (max-width: 1024px) {
    .learn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .visual-hero,
    .visual-cta {
        min-height: 280px;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 900px) {
    .audience,
    #register .form-layout,
    .fields {
        grid-template-columns: 1fr;
    }

    .nav-cta {
        display: none;
    }

    .sticky-cta {
        display: block;
    }

    footer {
        padding-bottom: 96px;
    }

    h1 {
        max-width: none;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .visual-audience {
        min-height: 260px;
        aspect-ratio: 16 / 11;
    }
}

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

    .hero {
        padding: 40px 0 24px;
    }

    section {
        padding: 40px 0;
    }

    .card,
    .form-card,
    .success-card {
        padding: 20px;
        border-radius: 18px;
    }

    .card.cta-band {
        padding: 0;
    }

    .cta-band .btn {
        width: 100%;
    }

    .cta-copy {
        padding: 24px 20px;
        text-align: center;
    }

    .visual-hero,
    .visual-audience,
    .visual-cta {
        min-height: 220px;
        aspect-ratio: 16 / 11;
    }

    .visual,
    .visual-cta {
        border-radius: 18px;
    }

    .cta-band .visual-cta {
        border-radius: 0 0 18px 18px;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding-inline: 14px;
    }

    h1 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .lead {
        font-size: 1rem;
    }

    .nav-cta,
    .btn {
        padding: 12px 16px;
    }
}
