/* =========================================
   RESET И БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Inter', sans-serif;
    --color-ink: #1b1b1b;
    --color-bg: #fcfbf8;
    --color-muted: #6b6b6b;
    --glass-bg: rgba(255, 255, 255, 0.42);
    --glass-bg-strong: rgba(255, 255, 255, 0.58);
    --glass-border: rgba(255, 255, 255, 0.72);
    --glass-highlight: rgba(255, 255, 255, 0.88);
    --shadow-soft: 0 18px 50px rgba(27, 27, 27, 0.08);
    --shadow-lift: 0 28px 64px rgba(27, 27, 27, 0.14);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 28px;
    --radius-pill: 9999px;
    --radius-md: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 80% 55% at 8% -8%, rgba(236, 214, 196, 0.55), transparent 58%),
        radial-gradient(ellipse 60% 45% at 96% 10%, rgba(214, 196, 186, 0.38), transparent 52%),
        radial-gradient(ellipse 70% 40% at 70% 108%, rgba(228, 214, 198, 0.42), transparent 55%);
    color: var(--color-ink);
    -webkit-font-smoothing: antialiased;
}

.site-ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.site-ambient .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    will-change: transform;
}

.site-ambient .orb-1 {
    width: 28rem;
    height: 28rem;
    left: -8%;
    top: 12%;
    background: rgba(232, 208, 186, 0.7);
    animation: orbFloat 22s ease-in-out infinite;
}

.site-ambient .orb-2 {
    width: 22rem;
    height: 22rem;
    right: -6%;
    top: 38%;
    background: rgba(210, 186, 176, 0.55);
    animation: orbFloat 26s ease-in-out infinite reverse;
}

.site-ambient .orb-3 {
    width: 24rem;
    height: 24rem;
    left: 42%;
    bottom: -10%;
    background: rgba(244, 228, 210, 0.65);
    animation: orbFloat 20s ease-in-out infinite 1.4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(4%, -6%) scale(1.08); }
    70% { transform: translate(-3%, 4%) scale(0.96); }
}

/* =========================================
   ПК ВЕРСИЯ (Широкие экраны)
   ========================================= */
.container {
    width: 65%;
    margin: 0 auto;
    max-width: 1200px;
}

/* ХЕДЕР ПК */
.header {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    display: flex;
    justify-content: center;
}

.header-inner {
    width: 65%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
    position: relative;
    isolation: isolate;
    border-radius: var(--radius-pill);
}

.header .header-inner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.36) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 10px 36px rgba(27, 27, 27, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.header .header-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        420px circle at var(--gx, 18%) var(--gy, -10%),
        rgba(255, 255, 255, 0.5),
        transparent 52%
    );
}

.header .header-inner > * {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}

.logo:hover {
    opacity: 0.72;
}

.nav-desktop {
    display: flex;
    gap: 0.35rem;
}

.nav-desktop a {
    font-size: 0.875rem;
    color: var(--color-muted);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    transition: color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease-out);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.45);
}

.header-actions {
    display: flex;
    align-items: center;
}


img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =========================================
   ТИПОГРАФИКА
   ========================================= */
.font-serif {
    font-family: var(--font-serif);
}

.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* =========================================
   СТЕКЛО (GLASSMORPHISM)
   ========================================= */
.glass {
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
}

/* =========================================
   КНОПКИ
   ========================================= */
.btn-ink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-ink);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, opacity 0.3s ease;
    box-shadow: 0 10px 24px rgba(27, 27, 27, 0.16);
}

.btn-ink::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.18) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 0.6s var(--ease-out);
    z-index: 0;
}

.btn-ink:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(27, 27, 27, 0.22);
}

.btn-ink:hover::after {
    transform: translateX(120%);
}

.btn-ink:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: var(--color-ink);
    border: 1px solid rgba(27, 27, 27, 0.16);
    box-shadow: none;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.35s ease, color 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.btn-outline:hover {
    background: #fff;
    color: var(--color-ink);
    border-color: rgba(27, 27, 27, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 27, 27, 0.08);
}

/* =========================================
   ТАБЫ (общие)
   ========================================= */
.hero-tabs {
    display: inline-flex;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 24px rgba(27, 27, 27, 0.05);
    border-radius: var(--radius-pill);
    gap: 0.35rem;
}

.hero-tabs .tab {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.3s ease;
    color: var(--color-muted);
    border: 1px solid transparent;
}

.hero-tabs .tab:hover {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.4);
}

.hero-tabs .tab.active {
    background: var(--color-ink);
    color: #fff;
    box-shadow: 0 8px 18px rgba(27, 27, 27, 0.18);
}

/* =========================================
   РАЗДЕЛИТЕЛЬНЫЕ ПОЛОСКИ ДЛЯ ПК
   ========================================= */
.hero-section,
.about-section,
.services-section,
.before-after-section,
.faq-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 4rem;
}

/* =========================================
   ПОДВАЛ (ПК)
   ========================================= */
.footer {
    background: var(--color-bg);
    padding-top: 5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 26rem;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(27, 27, 27, 0.05);
    transition: transform 0.4s var(--ease-out), background 0.3s ease, box-shadow 0.35s ease;
    color: var(--color-ink);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.06);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 28px rgba(27, 27, 27, 0.1);
}

.footer-col-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav li a {
    font-size: 0.875rem;
    color: var(--color-muted);
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: var(--color-ink);
}

/* Нижняя полоса */
.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* =========================================
   COOKIE-БАННЕР
   ========================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1.25rem;
    z-index: 300;
    display: flex;
    justify-content: center;
    padding: 0 4%;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner.is-hiding {
    opacity: 0;
    transform: translateY(12px);
}

.cookie-banner-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 640px;
    width: 100%;
    padding: 1rem 1rem 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(27, 27, 27, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--color-muted);
}

.cookie-banner-text a {
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-btn {
    flex-shrink: 0;
    padding: 0.65rem 1.35rem;
    background: var(--color-ink);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.cookie-banner-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* =========================================
   СОГЛАСИЯ В ФОРМЕ
   ========================================= */
.form-consents {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    user-select: none;
}

.form-consent input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-consent-box {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-consent-box::after {
    content: '';
    width: 0.35rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-0.5px, -1px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-consent input:checked + .form-consent-box {
    background: var(--color-ink);
    border-color: var(--color-ink);
}

.form-consent input:checked + .form-consent-box::after {
    opacity: 1;
}

.form-consent input:focus-visible + .form-consent-box {
    box-shadow: 0 0 0 3px rgba(27, 27, 27, 0.12);
}

.form-consent-text {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--color-muted);
}

.form-consent-text a {
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-consents.is-error .form-consent-box {
    border-color: #b44;
    box-shadow: 0 0 0 3px rgba(180, 68, 68, 0.1);
}

.form-consent-error {
    display: none;
    font-size: 0.75rem;
    color: #b44;
    margin-top: -0.15rem;
}

.form-consents.is-error .form-consent-error {
    display: block;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-success {
    padding-top: 0.5rem;
}

.form-success-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 0.85rem;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        padding: 1.1rem 1.15rem;
        border-radius: var(--radius-md);
    }

    .cookie-banner-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   ЖИДКОЕ СТЕКЛО, ВОЗДУХ И ДВИЖЕНИЕ
   ========================================= */
.hero-badge,
.service-badge,
.service-badge-mobile,
.ba-badge,
.ba-mini-badge,
.ba-handle .ba-arrow,
.ba-mini-handle span,
.glass-review {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 10px 30px rgba(27, 27, 27, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: var(--color-ink);
}

.service-card .service-title,
.service-card-mobile .service-title,
.hero-badge .badge-title {
    color: var(--color-ink);
}

.service-card .service-desc,
.service-card-mobile .service-desc {
    color: #4f4f4f;
}

.service-card .service-info,
.service-card-mobile .service-info,
.service-card .service-arrow,
.service-card-mobile .service-arrow,
.hero-badge > * {
    position: relative;
    z-index: 1;
}

.hero-image,
.about-image,
.education-image,
.service-image,
.ba-slider,
.ba-slider-mini,
.edu-trial-panel,
.edu-trial-panel-mobile,
.edu-tariff-card {
    box-shadow: var(--shadow-soft);
}

.hero-image,
.about-image,
.education-image,
.service-image-col .service-image,
.ba-slider,
.ba-slider-mini {
    position: relative;
}

.hero-image::after,
.about-image::after,
.education-image::after,
.service-image-col .service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.hero-image img,
.about-image img,
.education-image img,
.service-image img,
.service-image-mobile img,
.edu-tariff-photo img,
.edu-trial-image img,
.edu-trial-image-mobile img {
    transition: transform 1.8s ease;
}

@media (hover: hover) and (pointer: fine) {
    .hero-image-wrapper:hover .hero-image img,
    .about-image-wrapper:hover .about-image img,
    .education-image-wrapper:hover .education-image img,
    .service-image-col:hover .service-image img,
    .service-card:hover .service-image img,
    .service-card-mobile:hover .service-image-mobile img,
    .edu-tariff-card:hover .edu-tariff-photo img,
    .edu-trial-panel:hover .edu-trial-image img {
        transform: scale(1.02);
    }

    .hero-stats div {
        transition: transform 0.4s var(--ease-out);
        cursor: default;
    }

    .hero-stats div:hover {
        transform: translateY(-4px);
    }

    .faq-item {
        transition: background 0.35s ease, transform 0.35s var(--ease-out);
        border-radius: var(--radius-md);
        padding-inline: 0.75rem;
        margin-inline: -0.75rem;
    }

    .faq-item:hover {
        background: rgba(255, 255, 255, 0.38);
    }

    .faq-question:hover {
        opacity: 1;
    }

    .path-card-light,
    .edu-tariff-light,
    .edu-why-card,
    .edu-why-card-mobile,
    .contacts-form-box,
    .contacts-form-box-mobile,
    .contacts-info-card,
    .additional-item,
    .additional-item-mobile,
    .service-recommend,
    .service-recommend-mobile,
    .edu-trial-panel {
        transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, background 0.35s ease;
    }

    .path-card-light:hover,
    .edu-tariff-light:hover,
    .edu-why-card:hover,
    .edu-why-card-mobile:hover,
    .contacts-form-box:hover,
    .contacts-info-card:hover,
    .additional-item:hover,
    .additional-item-mobile:hover,
    .review-card:hover,
    .review-card-mobile:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lift);
    }

    .edu-tariff-dark:hover,
    .path-card-dark:hover {
        transform: translateY(-5px);
        box-shadow: 0 28px 56px rgba(27, 27, 27, 0.28);
    }
}

.path-card-light,
.edu-tariff-light,
.edu-why-card,
.edu-why-card-mobile,
.contacts-form-box,
.contacts-form-box-mobile,
.additional-item,
.additional-item-mobile,
.service-recommend,
.service-recommend-mobile,
.edu-trial-panel,
.edu-trial-panel-mobile {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.28));
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.path-card-dark,
.edu-tariff-dark {
    background: linear-gradient(165deg, #2c2c2c 0%, #171717 72%);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contacts-info-card {
    background: rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contacts-card-bg {
    background: rgba(255, 255, 255, 0.32) !important;
}

.contacts-social-btn {
    background: #fff;
    border: 1px solid rgba(27, 27, 27, 0.16);
    backdrop-filter: none;
    transition: transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contacts-social-btn:hover {
    background: #fff;
    border-color: rgba(27, 27, 27, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 27, 27, 0.08);
}

.contacts-social-btn-dark:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.role-tab {
    background: #fff;
    border: 1px solid rgba(27, 27, 27, 0.16);
    color: var(--color-ink);
}

.role-tab:hover {
    color: var(--color-ink);
    background: #fff;
    border-color: rgba(27, 27, 27, 0.28);
}

.js-tilt {
    transform-style: preserve-3d;
    transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.js-tilt.is-tilting {
    box-shadow: var(--shadow-lift);
}

.has-motion .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(28px);
}

.has-motion .reveal {
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.has-motion .reveal.is-in {
    opacity: 1;
    transform: none;
}

.glass-shine {
    position: relative;
    isolation: isolate;
}

.glass-shine::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        280px circle at var(--gx, 50%) var(--gy, 20%),
        rgba(255, 255, 255, 0.28),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
}

.glass-shine > * {
    position: relative;
    z-index: 1;
}

.glass-shine.is-shining::after {
    opacity: 1;
}

@media (hover: none) {
    .service-card-mobile:active,
    .path-card:active,
    .edu-tariff-card:active,
    .review-card-mobile:active {
        transform: scale(0.985);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-ambient .orb,
    .btn-ink::after,
    .scroll-down {
        animation: none !important;
    }

    .js-tilt,
    .js-tilt.is-tilting,
    .has-motion .reveal,
    .has-motion .reveal:not(.is-in),
    .has-motion .reveal.is-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

main {
    position: relative;
    z-index: 1;
}

footer.footer,
footer.footer-mobile {
    position: relative;
    z-index: 1;
    background: transparent;
}