:root {
    --ink: #17151f;
    --ink-2: #201c2c;
    --paper: #faf7f2;
    --card: #ffffff;
    --muted: #6b6577;
    --line: rgba(23, 21, 31, 0.1);
    --red: #e84545;
    --orange: #f4810a;
    --yellow: #ffc63c;
    --blue: #2f6fdb;
    --teal: #27c0a8;
    --radius: 26px;
    --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.65;
    font-weight: 500;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

section {
    scroll-margin-top: 92px;
}

.section {
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-dark {
    background: var(--ink);
    color: #fff;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.35rem, 6vw, 4.4rem);
}

h2 {
    font-size: clamp(1.85rem, 4vw, 2.9rem);
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
}

.kicker {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.1rem;
}

.section-dark .kicker {
    color: var(--yellow);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}

.section-head p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.2rem;
}

.section-dark .section-head p {
    color: rgba(255, 255, 255, 0.75);
}

.grad {
    background: linear-gradient(92deg, var(--yellow), var(--orange) 45%, var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.05rem 2.1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(92deg, var(--red), var(--orange));
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(232, 69, 69, 0.55);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px -12px rgba(232, 69, 69, 0.65);
}

.btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-ghost:hover {
    border-color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(23, 21, 31, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 78px;
}

.brand img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.site-nav {
    display: flex;
    gap: 1.7rem;
    margin-left: auto;
    font-weight: 700;
    font-size: 1rem;
}

.site-nav a {
    opacity: 0.85;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    opacity: 1;
    color: var(--yellow);
}

.header-cta {
    margin-left: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-burger {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    place-items: center;
    margin-left: auto;
    cursor: pointer;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    position: relative;
}

.nav-burger span::before,
.nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-burger span::before {
    top: -6px;
}

.nav-burger span::after {
    top: 6px;
}

.hero {
    position: relative;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.42;
    pointer-events: none;
}

.blob-1 {
    width: 480px;
    height: 480px;
    background: var(--red);
    top: -160px;
    left: -120px;
}

.blob-2 {
    width: 420px;
    height: 420px;
    background: var(--blue);
    bottom: -180px;
    right: -100px;
}

.blob-3 {
    width: 340px;
    height: 340px;
    background: var(--teal);
    top: 20%;
    right: 18%;
    opacity: 0.28;
}

.blob-4 {
    width: 300px;
    height: 300px;
    background: var(--yellow);
    bottom: 10%;
    left: 16%;
    opacity: 0.24;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-logo {
    width: min(300px, 62vw);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 2.4rem;
    box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.6);
}

.hero-inner h1 {
    margin-bottom: 1.4rem;
}

.hero-sub {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0 auto 2.2rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 2.6rem;
}

.chip {
    padding: 0.55rem 1.2rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.marquee {
    background: linear-gradient(92deg, var(--red), var(--orange) 40%, var(--yellow) 80%);
    color: var(--ink);
    overflow: hidden;
    padding: 1.15rem 0;
}

.marquee-track {
    display: flex;
    gap: 2.8rem;
    width: max-content;
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: marquee 30s linear infinite;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 2.8rem;
}

.marquee-track span::after {
    content: "✦";
    font-size: 0.9rem;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -24px rgba(23, 21, 31, 0.28);
}

.program-media {
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
}

.program-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.7rem 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.card-body .tag {
    align-self: flex-start;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--orange);
    background: rgba(244, 129, 10, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
}

.card-body p {
    color: var(--muted);
    font-size: 1.05rem;
}

.card-accent {
    background: linear-gradient(140deg, var(--blue), var(--teal));
    border: none;
    color: #fff;
    justify-content: center;
    padding: 2.2rem;
    gap: 1rem;
}

.card-accent .quote-mark {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1;
    opacity: 0.6;
}

.card-accent p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.12rem;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(23, 21, 31, 0.45);
}

.split-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3.2;
}

.checks {
    display: grid;
    gap: 1.1rem;
    margin: 1.8rem 0 2.2rem;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.check {
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    color: #221204;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.check::before {
    content: "✓";
    font-size: 1rem;
}

.about-owner {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(1.8rem, 4vw, 3rem);
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.6rem);
}

.owner-photo {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 3.6;
}

.owner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-name {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.owner-role {
    color: var(--orange);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-owner p:last-child {
    color: var(--muted);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 175px;
    gap: 14px;
}

.gallery figure {
    border-radius: 18px;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery figure:hover img {
    transform: scale(1.045);
}

.g-wide {
    grid-column: span 2;
}

.g-tall {
    grid-row: span 2;
}

.contacts {
    background: #fff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contacts-grid .lead {
    color: var(--muted);
    font-size: 1.2rem;
    max-width: 460px;
}

.phone-big {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    margin: 1.6rem 0 0.6rem;
    color: var(--ink);
    transition: color 0.15s ease;
}

.phone-big:hover {
    color: var(--orange);
}

.addr {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    font-weight: 800;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -14px rgba(23, 21, 31, 0.5);
}

.social-vk {
    background: #0077ff;
}

.social-max {
    background: var(--ink);
}

.contact-card {
    background: var(--ink);
    color: #fff;
    border-radius: 30px;
    padding: clamp(2rem, 4vw, 3rem);
    display: grid;
    gap: 1.6rem;
}

.contact-card h3 {
    font-size: 1.45rem;
    color: var(--yellow);
}

.contact-row {
    display: grid;
    gap: 0.3rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-row .label {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.contact-row .value {
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-row a.value:hover {
    color: var(--yellow);
}

.social-icons {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.social-icons a {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.65);
}

.social-icons a img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 11px;
}

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem 2.4rem;
}

.footer-brand img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    font-weight: 700;
    font-size: 1rem;
}

.footer-nav a:hover {
    color: var(--yellow);
}

.footer-copy {
    margin-left: auto;
    font-size: 1rem;
}

@media (max-width: 1060px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 920px) {
    .site-nav {
        display: none;
    }

    .nav-burger {
        display: grid;
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ink-2);
        padding: 1.4rem clamp(1.1rem, 4vw, 2.5rem) 1.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 1.15rem;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split-photo {
        order: -1;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .about-owner {
        grid-template-columns: 1fr;
    }

    .owner-photo {
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .header-cta {
        display: none;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-copy {
        margin-left: 0;
    }
}

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

    .marquee-track {
        animation: none;
    }

    .btn,
    .card,
    .gallery img,
    .social {
        transition: none;
    }
}
