:root {
    --primary: #0EA5E9;
    --primary-strong: #0284C7;
    --secondary: #38BDF8;
    --accent: #F97316;
    --bg: #F0F9FF;
    --surface: #FFFFFF;
    --ink: #0C4A6E;
    --ink-strong: #082F49;
    --muted: #3B627E;
    --stroke: #D7EEF9;
    --shadow-soft: 0 12px 30px rgba(3, 105, 161, 0.12);
    --shadow-strong: 0 18px 50px rgba(3, 105, 161, 0.18);
    --radius: 22px;
    --radius-lg: 28px;
}

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

html {
    scroll-behavior: smooth;
}

body.page {
    font-family: "Comic Neue", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink-strong);
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 45%),
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.18), transparent 35%),
        linear-gradient(180deg, #f9fdff 0%, var(--bg) 40%, #ffffff 100%);
    line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.6);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    font-family: "Baloo 2", "Comic Neue", sans-serif;
    letter-spacing: -0.02em;
}

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(14, 165, 233, 0.12);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(8, 47, 73, 0.12);
    border-color: rgba(14, 165, 233, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-strong);
}

.nav {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    font-weight: 600;
    color: var(--ink);
}

.nav a {
    position: relative;
    transition: color 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(0.6);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-strong);
}

.nav a:hover::after,
.nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.mobile-menu-toggle {
    border: none;
    background: transparent;
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--ink-strong);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hero {
    padding: clamp(4.5rem, 10vw, 7rem) 0 5rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-content h2 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    color: var(--ink-strong);
    margin-bottom: 1rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
    max-width: 520px;
    text-wrap: balance;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.3vw, 1.35rem);
    color: var(--muted);
    margin-bottom: 2.2rem;
    max-width: 460px;
}

.btn-primary,
.btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-strong);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.35);
}

.hero-art {
    position: relative;
    min-height: 320px;
}

.hero-frame {
    position: absolute;
    inset: 10% 8% 0 18%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(14, 165, 233, 0.25);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(0.5px);
}

.orb-one {
    width: 220px;
    height: 220px;
    right: 10%;
    top: 5%;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.8), rgba(14, 165, 233, 0.2));
}

.orb-two {
    width: 160px;
    height: 160px;
    left: 8%;
    bottom: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.7), rgba(249, 115, 22, 0.1));
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    position: relative;
}

.section:nth-of-type(even) {
    background: rgba(14, 165, 233, 0.04);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 2.6rem;
    color: var(--ink-strong);
    text-align: center;
}

.section[id] {
    scroll-margin-top: 100px;
}

.feature-grid,
.curriculum-content,
.requirements-grid,
.payment-grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card,
.curriculum-block,
.req-card,
.payment-card,
.process-step {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    padding: 2.2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.curriculum-block:hover,
.req-card:hover,
.payment-card:hover,
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(14, 165, 233, 0.35);
}

.icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-strong);
    margin-bottom: 1.2rem;
}

.icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3,
.curriculum-block h3,
.req-card h3,
.payment-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--ink-strong);
}

.feature-card p,
.req-card p,
.payment-card p {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.block-title .icon {
    margin-bottom: 0;
}

.curriculum-block ul,
.req-card ul,
.payment-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.curriculum-block li,
.req-card li,
.payment-card li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--muted);
}

.curriculum-block li::before,
.req-card li::before,
.payment-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.curriculum-block strong,
.req-card strong,
.payment-card strong {
    color: var(--ink-strong);
}

.payment-card {
    text-align: left;
}

.payment-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.payment-icon svg {
    width: 30px;
    height: 30px;
}

.application .process-container {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.process-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary-strong);
    font-weight: 600;
}

.cta {
    background: linear-gradient(130deg, rgba(14, 165, 233, 0.95), rgba(56, 189, 248, 0.95));
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.92;
}

.btn-telegram {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    padding: 1.05rem 2.8rem;
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.45), 0 6px 16px rgba(2, 132, 199, 0.25);
}

.btn-telegram:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #fb7a1f, #fd9a4a);
}

.telegram-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
}

.telegram-icon svg {
    width: 20px;
    height: 20px;
}

.about-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
    font-size: 1.08rem;
}

.about-content p + p {
    margin-top: 1rem;
}

.about-content strong {
    color: var(--primary-strong);
}

.footer {
    background: #082437;
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    color: rgba(255, 255, 255, 0.7);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .hero-art {
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        right: 4%;
        left: 4%;
        background: #ffffff;
        border-radius: var(--radius);
        border: 1px solid rgba(14, 165, 233, 0.2);
        padding: 1rem 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        box-shadow: var(--shadow-soft);
        display: none;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .process-row {
        flex-direction: column;
        align-items: stretch;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .section-title {
        text-align: left;
    }

    .section-title::after {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        background: var(--accent);
        margin-top: 0.8rem;
        border-radius: 999px;
    }
}

@media (max-width: 520px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .btn-primary,
    .btn-telegram {
        width: 100%;
        justify-content: center;
    }

    .icon,
    .payment-icon {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
