/*
Theme Name: School Karjera
Theme URI: https://school.justn8n.ru
Description: Частная школа «Карьера» — Premium Apple-Style Theme
Author: School Karjera
Version: 3.0.0
Template: generatepress
Text Domain: school-karjera
*/


/* ══════════════════════════════════════════════════════════════
   LAYER 1: PRIMITIVE TOKENS
   Палитра «Ягоды рябины зимой»
   ══════════════════════════════════════════════════════════════ */

:root {
    /* --- Красные (рябина) --- */
    --color-rowan-600: #C41E3A;
    --color-rowan-700: #A01830;
    --color-rowan-800: #821228;
    --color-rowan-900: #5E0C1E;

    /* --- Белые (снег) --- */
    --color-snow-50: #FAFBFC;
    --color-snow-100: #F5F5F7;
    --color-white: #FFFFFF;

    /* --- Тёмные (кора) --- */
    --color-bark-900: #1D1D1F;
    --color-bark-800: #2C2C2E;
    --color-bark-700: #3A3A3C;

    /* --- Серые (ветки) --- */
    --color-branch-500: #6E6E73;
    --color-branch-400: #86868B;
    --color-branch-300: #AEAEB2;
    --color-branch-200: #D1D1D6;
    --color-branch-100: #E5E5EA;

    /* --- Голубые (мороз) --- */
    --color-frost-100: #E8EDF2;
    --color-frost-200: #D6DEE8;
    --color-frost-50: #F0F4F8;

    /* --- Типографика --- */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-accent: 'Merriweather', Georgia, 'Times New Roman', serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3rem;
    --fs-5xl: 3.5rem;
    --fs-6xl: 4.5rem;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --lh-tight: 1.1;
    --lh-snug: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;

    --ls-tight: -0.03em;
    --ls-normal: -0.01em;
    --ls-wide: 0.05em;
    --ls-wider: 0.1em;

    /* --- Отступы --- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-30: 7.5rem;
    --space-32: 8rem;

    /* --- Скругления --- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-pill: 980px;
    --radius-full: 50%;

    /* --- Тени --- */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-2xl: 0 24px 64px rgba(0,0,0,0.16);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.14);

    /* --- Анимации --- */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 200ms;
    --dur-normal: 400ms;
    --dur-slow: 600ms;
    --dur-reveal: 800ms;

    /* --- Z-index --- */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-overlay: 30;
    --z-modal: 40;
    --z-toast: 50;

    /* --- Layout --- */
    --container-max: 1200px;
    --container-wide: 1400px;
    --container-narrow: 800px;
    --header-h: 72px;
}


/* ══════════════════════════════════════════════════════════════
   LAYER 2: SEMANTIC TOKENS
   ══════════════════════════════════════════════════════════════ */

:root {
    --sk-primary: var(--color-rowan-600);
    --sk-primary-hover: var(--color-rowan-700);
    --sk-primary-active: var(--color-rowan-800);
    --sk-primary-subtle: rgba(196, 30, 58, 0.08);

    --sk-bg: var(--color-snow-50);
    --sk-bg-alt: var(--color-snow-100);
    --sk-bg-white: var(--color-white);
    --sk-bg-dark: var(--color-bark-900);
    --sk-bg-frost: var(--color-frost-100);

    --sk-text: var(--color-bark-900);
    --sk-text-secondary: var(--color-branch-500);
    --sk-text-muted: var(--color-branch-400);
    --sk-text-on-dark: var(--color-white);
    --sk-text-on-dark-muted: rgba(255,255,255,0.7);

    --sk-border: var(--color-branch-100);
    --sk-divider: rgba(0,0,0,0.06);

    --sk-section-py: var(--space-30);
    --sk-section-py-mob: var(--space-16);
}


/* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    letter-spacing: var(--ls-normal);
    color: var(--sk-text);
    background-color: var(--sk-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

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

a {
    color: var(--sk-primary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--sk-primary-hover); }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sk-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background: rgba(196, 30, 58, 0.15);
    color: var(--sk-text);
}

/* GeneratePress overrides */
.site-content,
.inside-article,
.entry-content,
.inside-page { max-width: none; padding: 0; margin: 0; }
.site-main > .inside-article { padding: 0; margin: 0; }
body.home .inside-article { padding: 0; }
body.home .site-content .content-area { width: 100%; }
body.home .site-header,
body.page .site-header { display: none; }
.site-footer .footer-bar { display: none; }
.inside-article .entry-header { display: none; }

.site-content .entry-content > *:not(.sk-hero):not(.sk-page-hero):not(.sk-section):not(.sk-cta):not(.sk-footer) {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}


/* ══════════════════════════════════════════════════════════════
   SKIP LINK & ACCESSIBILITY UTILITIES
   ══════════════════════════════════════════════════════════════ */

.sk-skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: var(--sk-primary);
    color: var(--sk-text-on-dark);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    z-index: var(--z-toast);
    transition: top var(--dur-fast) var(--ease-out);
}
.sk-skip-link:focus { top: 0; color: var(--sk-text-on-dark); }

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


/* ══════════════════════════════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════════════════════════════ */

.sk-preloader {
    position: fixed;
    inset: 0;
    background: var(--sk-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-toast);
    transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
}
.sk-preloader.sk-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.sk-preloader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-branch-200);
    border-top-color: var(--sk-primary);
    border-radius: var(--radius-full);
    animation: sk-spin 0.8s linear infinite;
}
@keyframes sk-spin { to { transform: rotate(360deg); } }


/* ══════════════════════════════════════════════════════════════
   SCROLL-TO-TOP
   ══════════════════════════════════════════════════════════════ */

.sk-scroll-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--sk-primary);
    color: var(--sk-text-on-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition:
        opacity var(--dur-normal) var(--ease-out),
        visibility var(--dur-normal) var(--ease-out),
        transform var(--dur-normal) var(--ease-out),
        background-color var(--dur-fast) var(--ease-out);
    z-index: var(--z-sticky);
}
.sk-scroll-top:hover { background: var(--sk-primary-hover); transform: translateY(-3px); }
.sk-scroll-top:active { transform: translateY(0); }
.sk-scroll-top.sk-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sk-scroll-top svg { width: 20px; height: 20px; fill: currentColor; }


/* ══════════════════════════════════════════════════════════════
   HEADER — Sticky, Apple-style backdrop blur
   ══════════════════════════════════════════════════════════════ */

.sk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: var(--z-sticky);
    background: rgba(250, 251, 252, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--sk-divider);
    transition: background-color var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}
.sk-header.sk-scrolled {
    background: rgba(250, 251, 252, 0.92);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.sk-header__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-8);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Logo */
.sk-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--sk-text);
    flex-shrink: 0;
}
.sk-header__logo img { height: 44px; width: auto; }
.sk-header__logo-text {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--sk-text);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
}
.sk-header__logo-sub {
    font-size: var(--fs-xs);
    color: var(--sk-text-secondary);
    font-weight: var(--fw-regular);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

/* Nav */
.sk-nav { display: flex; align-items: center; gap: var(--space-1); }
.sk-nav a {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--sk-text);
    border-radius: var(--radius-pill);
    transition: color var(--dur-fast) var(--ease-out),
                background-color var(--dur-fast) var(--ease-out);
    white-space: nowrap;
}
.sk-nav a:hover { color: var(--sk-primary); background: var(--sk-primary-subtle); }

/* Dropdown */
.sk-nav__dropdown { position: relative; }
.sk-nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--sk-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--sk-divider);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-fast) var(--ease-out),
                visibility var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
    pointer-events: none;
}
.sk-nav__dropdown:hover .sk-nav__dropdown-menu,
.sk-nav__dropdown:focus-within .sk-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.sk-nav__dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-sm);
    color: var(--sk-text);
    border-radius: var(--radius-md);
}
.sk-nav__dropdown-menu a:hover { background: var(--sk-bg-alt); color: var(--sk-primary); }

/* Phone */
.sk-header__phone {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--sk-text);
    white-space: nowrap;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    transition: background var(--dur-fast) var(--ease-out);
}
.sk-header__phone:hover { background: var(--sk-primary-subtle); color: var(--sk-primary); }

/* Burger */
.sk-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: background var(--dur-fast) var(--ease-out);
}
.sk-menu-toggle:hover { background: var(--sk-primary-subtle); }
.sk-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sk-text);
    border-radius: 2px;
    transition: transform var(--dur-normal) var(--ease-out),
                opacity var(--dur-normal) var(--ease-out);
}
.sk-menu-toggle.sk-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sk-menu-toggle.sk-active span:nth-child(2) { opacity: 0; }
.sk-menu-toggle.sk-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.sk-mobile-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 251, 252, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: var(--z-dropdown);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--dur-normal) var(--ease-out),
                visibility var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-out);
}
.sk-mobile-nav.sk-active { opacity: 1; visibility: visible; transform: translateY(0); }
.sk-mobile-nav a {
    display: block;
    padding: var(--space-4) var(--space-5);
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    color: var(--sk-text);
    border-radius: var(--radius-lg);
    transition: background var(--dur-fast) var(--ease-out);
}
.sk-mobile-nav a:hover { background: var(--sk-primary-subtle); color: var(--sk-primary); }


/* ══════════════════════════════════════════════════════════════
   BUTTONS — Apple pill-shape
   ══════════════════════════════════════════════════════════════ */

.sk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
    -webkit-user-select: none;
    user-select: none;
    min-height: 48px;
}
.sk-btn:active { transform: scale(0.97); }

/* Primary */
.sk-btn--primary { background: var(--sk-primary); color: var(--sk-text-on-dark); }
.sk-btn--primary:hover {
    background: var(--sk-primary-hover);
    color: var(--sk-text-on-dark);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

/* Secondary */
.sk-btn--secondary { background: var(--sk-bg-dark); color: var(--sk-text-on-dark); }
.sk-btn--secondary:hover {
    background: var(--color-bark-700);
    color: var(--sk-text-on-dark);
    box-shadow: var(--shadow-md);
}

/* Ghost */
.sk-btn--ghost {
    background: transparent;
    color: var(--sk-text-on-dark);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.sk-btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.8);
    color: var(--sk-text-on-dark);
}
/* Ghost на светлом */
.sk-section .sk-btn--ghost,
.sk-section--alt .sk-btn--ghost {
    color: var(--sk-text);
    border-color: var(--color-branch-300);
}
.sk-section .sk-btn--ghost:hover,
.sk-section--alt .sk-btn--ghost:hover {
    background: var(--sk-bg-alt);
    border-color: var(--sk-text);
    color: var(--sk-text);
}

/* Outline */
.sk-btn--outline {
    background: transparent;
    color: var(--sk-primary);
    border: 1.5px solid var(--sk-primary);
}
.sk-btn--outline:hover { background: var(--sk-primary); color: var(--sk-text-on-dark); }

/* Sizes */
.sk-btn--sm { padding: var(--space-2) var(--space-5); font-size: var(--fs-sm); min-height: 36px; }
.sk-btn--lg { padding: var(--space-5) var(--space-10); font-size: var(--fs-md); min-height: 56px; }


/* ══════════════════════════════════════════════════════════════
   SECTIONS — Apple-style massive spacing
   ══════════════════════════════════════════════════════════════ */

.sk-section {
    padding: var(--sk-section-py) var(--space-8);
    background: var(--sk-bg-white);
}
.sk-section--alt  { background: var(--sk-bg-alt); }
.sk-section--dark { background: var(--sk-bg-dark); color: var(--sk-text-on-dark); }
.sk-section--frost { background: var(--sk-bg-frost); }
.sk-section__inner { max-width: var(--container-max); margin: 0 auto; }

/* Заголовок секции */
.sk-section__title {
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
    font-weight: var(--fw-bold);
    color: var(--sk-text);
    text-align: center;
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-4);
}
.sk-section__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--sk-primary);
    margin: var(--space-6) auto 0;
    border-radius: 2px;
}
.sk-section--dark .sk-section__title { color: var(--sk-text-on-dark); }
.sk-section--dark .sk-section__title::after { background: var(--sk-primary); }
.sk-section__title--light { color: white; }
.sk-section__title--light::after { background: var(--sk-primary); }

/* Подзаголовок секции */
.sk-section__subtitle {
    font-size: clamp(var(--fs-md), 2.5vw, var(--fs-xl));
    color: var(--sk-text-secondary);
    text-align: center;
    max-width: 640px;
    margin: var(--space-6) auto var(--space-16);
    line-height: var(--lh-relaxed);
    font-weight: var(--fw-regular);
}
.sk-section--dark .sk-section__subtitle { color: var(--sk-text-on-dark-muted); }
.sk-section__subtitle--light { color: rgba(255,255,255,0.75); }


/* ══════════════════════════════════════════════════════════════
   HERO — Fullscreen, Apple-inspired
   ══════════════════════════════════════════════════════════════ */

.sk-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    margin-top: calc(var(--header-h) * -1);
    padding-top: var(--header-h);
}

.sk-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(29,29,31,0.3) 0%,
        rgba(29,29,31,0.55) 50%,
        rgba(29,29,31,0.75) 100%
    );
    z-index: var(--z-base);
}

.sk-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
    color: var(--sk-text-on-dark);
}

.sk-hero__badge {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-5);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sk-hero__title {
    font-size: clamp(var(--fs-3xl), 7vw, var(--fs-6xl));
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-6);
    color: var(--sk-text-on-dark);
}

/* Gradient text */
.sk-hero__title--gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F7 40%, #C41E3A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sk-hero__subtitle {
    font-size: clamp(var(--fs-md), 2.5vw, var(--fs-xl));
    line-height: var(--lh-relaxed);
    color: rgba(255,255,255,0.8);
    max-width: 680px;
    margin: 0 auto var(--space-10);
    font-weight: var(--fw-light);
}

.sk-hero__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.sk-hero__features {
    display: flex;
    gap: var(--space-8);
    justify-content: center;
    flex-wrap: wrap;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255,255,255,0.15);
}

.sk-hero__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.75);
    font-weight: var(--fw-medium);
}

.sk-hero__feature-icon { font-size: var(--fs-lg); line-height: 1; }


/* ══════════════════════════════════════════════════════════════
   PAGE HERO — Подстраницы (~50vh)
   ══════════════════════════════════════════════════════════════ */

.sk-page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-top: calc(var(--header-h) * -1);
    padding-top: var(--header-h);
}

.sk-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29,29,31,0.4) 0%, rgba(29,29,31,0.65) 100%);
    z-index: var(--z-base);
}

.sk-page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--space-16) var(--space-8);
    color: var(--sk-text-on-dark);
}

.sk-page-hero__title {
    font-size: clamp(var(--fs-2xl), 5vw, var(--fs-5xl));
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-4);
}

.sk-page-hero__subtitle {
    font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
    color: rgba(255,255,255,0.75);
    line-height: var(--lh-relaxed);
    font-weight: var(--fw-light);
}

.sk-page-hero__breadcrumbs {
    margin-bottom: var(--space-6);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
}
.sk-page-hero__breadcrumbs a { color: rgba(255,255,255,0.7); }
.sk-page-hero__breadcrumbs a:hover { color: var(--sk-text-on-dark); }
.sk-page-hero__breadcrumbs .separator { margin: 0 var(--space-2); opacity: 0.5; }


/* ══════════════════════════════════════════════════════════════
   ABOUT — Split layout
   ══════════════════════════════════════════════════════════════ */

.sk-about__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.sk-about__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.sk-about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.sk-about__image:hover img { transform: scale(1.03); }

.sk-about__content h2 {
    font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-6);
    color: var(--sk-text);
}

.sk-about__content p {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--sk-text-secondary);
    margin-bottom: var(--space-5);
}

.sk-about__features {
    list-style: none;
    padding: 0;
    margin: var(--space-8) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}
.sk-about__features li {
    position: relative;
    padding-left: var(--space-7);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--sk-text);
}
.sk-about__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--sk-primary);
    border-radius: var(--radius-full);
}


/* ══════════════════════════════════════════════════════════════
   PROGRAMS — 3 карточки программ
   ══════════════════════════════════════════════════════════════ */

.sk-programs {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.sk-program-card {
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sk-divider);
    border-bottom: 3px solid transparent;
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out),
                border-color var(--dur-normal) var(--ease-out);
}
.sk-program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.sk-program-card--skazka:hover { border-bottom-color: #5B9BD5; }
.sk-program-card--intellect:hover { border-bottom-color: #3EA8A0; }
.sk-program-card--karjera:hover { border-bottom-color: var(--sk-primary); }

.sk-program-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.sk-program-card:hover .sk-program-card__image { transform: scale(1.05); }

.sk-program-card__body { padding: var(--space-8); }

.sk-program-card__age {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--sk-primary);
    background: var(--sk-primary-subtle);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-4);
}

.sk-program-card__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--sk-text);
    margin-bottom: var(--space-3);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-snug);
}

.sk-program-card__desc {
    font-size: var(--fs-base);
    color: var(--sk-text-secondary);
    line-height: var(--lh-relaxed);
}


/* ══════════════════════════════════════════════════════════════
   STATS — 4 числа с counter-анимацией
   ══════════════════════════════════════════════════════════════ */

.sk-stats {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
    padding: var(--space-16) 0;
}

.sk-stat { padding: var(--space-8); }

.sk-stat__number {
    font-size: clamp(var(--fs-4xl), 6vw, var(--fs-6xl));
    font-weight: var(--fw-bold);
    color: var(--sk-text-on-dark);
    letter-spacing: var(--ls-tight);
    line-height: 1;
    margin-bottom: var(--space-3);
}
.sk-stat__number::after { content: '+'; font-size: 0.6em; opacity: 0.7; }

.sk-stat__label {
    font-size: var(--fs-base);
    color: var(--sk-text-on-dark-muted);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}


/* ══════════════════════════════════════════════════════════════
   FACTS — Факты о школе
   ══════════════════════════════════════════════════════════════ */

.sk-facts {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.sk-fact {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--sk-divider);
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}
.sk-fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sk-fact__icon { font-size: var(--fs-2xl); flex-shrink: 0; line-height: 1; }
.sk-fact__text {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--sk-text);
    line-height: var(--lh-normal);
}


/* ══════════════════════════════════════════════════════════════
   ADVANTAGES — 6 карточек, тёмный фон (#1D1D1F)
   ══════════════════════════════════════════════════════════════ */

.sk-advantages {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.sk-advantage {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    text-align: center;
    transition: transform var(--dur-normal) var(--ease-out),
                background var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}
.sk-advantage:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.sk-advantage__icon { font-size: var(--fs-4xl); display: block; margin-bottom: var(--space-5); line-height: 1; }

.sk-advantage__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--sk-text-on-dark);
    margin-bottom: var(--space-3);
    letter-spacing: var(--ls-tight);
}

.sk-advantage__desc {
    font-size: var(--fs-base);
    color: var(--sk-text-on-dark-muted);
    line-height: var(--lh-relaxed);
}


/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS — Отзывы
   ══════════════════════════════════════════════════════════════ */

.sk-testimonials {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.sk-testimonial {
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sk-divider);
    position: relative;
    margin: 0;
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}
.sk-testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* Декоративная кавычка */
.sk-testimonial::before {
    content: '\201C';
    position: absolute;
    top: var(--space-6);
    left: var(--space-8);
    font-family: var(--font-accent);
    font-size: 5rem;
    line-height: 1;
    color: var(--sk-primary);
    opacity: 0.15;
}

.sk-testimonial__text {
    font-family: var(--font-accent);
    font-size: var(--fs-base);
    font-style: italic;
    line-height: var(--lh-relaxed);
    color: var(--sk-text);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.sk-testimonial__author {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--sk-text);
    margin-bottom: var(--space-1);
}

.sk-testimonial__role {
    font-size: var(--fs-sm);
    color: var(--sk-text-secondary);
    font-style: normal;
}


/* ══════════════════════════════════════════════════════════════
   FAQ — Аккордеон
   ══════════════════════════════════════════════════════════════ */

.sk-faq { max-width: var(--container-narrow); margin: 0 auto; }

.sk-faq details {
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    border: 1px solid var(--sk-divider);
    overflow: hidden;
    transition: box-shadow var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}
.sk-faq details:hover { box-shadow: var(--shadow-md); }
.sk-faq details[open] {
    border-color: var(--sk-primary);
    box-shadow: 0 0 0 1px var(--sk-primary), var(--shadow-sm);
}

.sk-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-8);
    cursor: pointer;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--sk-text);
    list-style: none;
    gap: var(--space-4);
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}
.sk-faq summary::-webkit-details-marker { display: none; }
.sk-faq summary::marker { display: none; content: ''; }

.sk-faq summary::after {
    content: '+';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    font-weight: var(--fw-light);
    color: var(--sk-text-secondary);
    border-radius: var(--radius-full);
    background: var(--sk-bg-alt);
    transition: transform var(--dur-normal) var(--ease-out),
                background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}
.sk-faq details[open] summary::after {
    content: '\2212';
    background: var(--sk-primary);
    color: var(--sk-text-on-dark);
}

.sk-faq summary:hover { background: var(--sk-bg-alt); }
.sk-faq summary:focus-visible {
    outline: 2px solid var(--sk-primary);
    outline-offset: -2px;
    border-radius: var(--radius-xl);
}

.sk-faq__answer { padding: 0 var(--space-8) var(--space-8); }
.sk-faq__answer p {
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--sk-text-secondary);
}


/* ══════════════════════════════════════════════════════════════
   GALLERY — Masonry Grid
   ══════════════════════════════════════════════════════════════ */

.sk-gallery {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: var(--space-4);
}

.sk-gallery__item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.sk-gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.sk-gallery__item:nth-child(5) { grid-column: span 2; }

.sk-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.sk-gallery__item:hover img { transform: scale(1.08); }

.sk-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(29,29,31,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--dur-normal) var(--ease-out);
    display: flex;
    align-items: flex-end;
    padding: var(--space-6);
}
.sk-gallery__item:hover .sk-gallery__overlay { opacity: 1; }
.sk-gallery__caption {
    color: var(--sk-text-on-dark);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}


/* ══════════════════════════════════════════════════════════════
   NEWS — 3 карточки
   ══════════════════════════════════════════════════════════════ */

.sk-news,
.sk-news-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.sk-news__item,
.sk-news-card {
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--sk-divider);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}
.sk-news__item:hover,
.sk-news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.sk-news__image { width: 100%; height: 200px; object-fit: cover; }
.sk-news__body,
.sk-news-card__body { padding: var(--space-8); }

.sk-news__meta { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }

.sk-news__date,
.sk-news-card__date {
    font-size: var(--fs-sm);
    color: var(--sk-text-secondary);
    font-weight: var(--fw-medium);
}
.sk-news-card__date {
    padding: var(--space-2) var(--space-4);
    background: var(--sk-bg-alt);
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-3);
    display: inline-block;
}

.sk-news__tag {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--sk-primary);
    background: var(--sk-primary-subtle);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
}

.sk-news__title,
.sk-news-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--sk-text);
    margin-bottom: var(--space-3);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-snug);
}

.sk-news__desc,
.sk-news-card__text {
    font-size: var(--fs-base);
    color: var(--sk-text-secondary);
    line-height: var(--lh-relaxed);
}


/* ══════════════════════════════════════════════════════════════
   CTA — Call-to-Action (тёмный фон)
   ══════════════════════════════════════════════════════════════ */

.sk-cta {
    background: var(--sk-bg-dark);
    color: var(--sk-text-on-dark);
    text-align: center;
    padding: var(--sk-section-py) var(--space-8);
    position: relative;
    overflow: hidden;
}

.sk-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.sk-cta h2 {
    font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-5);
    position: relative;
}

.sk-cta p {
    font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
    color: var(--sk-text-on-dark-muted);
    max-width: 560px;
    margin: 0 auto var(--space-10);
    line-height: var(--lh-relaxed);
    position: relative;
}


/* ══════════════════════════════════════════════════════════════
   CONTACTS — 3 карточки филиалов + карта
   ══════════════════════════════════════════════════════════════ */

.sk-contacts {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.sk-contact-card {
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sk-divider);
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}
.sk-contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.sk-contact-card__header {
    padding: var(--space-8);
    background: var(--sk-bg-dark);
    color: var(--sk-text-on-dark);
}
.sk-contact-card__header--skazka { background: linear-gradient(135deg, #3B6FA0 0%, #5B9BD5 100%); }
.sk-contact-card__header--karjera { background: linear-gradient(135deg, var(--color-rowan-800) 0%, var(--sk-primary) 100%); }
.sk-contact-card__header--intellect { background: linear-gradient(135deg, #2D8B84 0%, #3EA8A0 100%); }

.sk-contact-card__header h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--space-1); }
.sk-contact-card__header span { font-size: var(--fs-sm); opacity: 0.8; }

.sk-contact-card__body { padding: var(--space-8); }
.sk-contact-card__body p {
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--sk-text-secondary);
    margin-bottom: var(--space-3);
}
.sk-contact-card__body p:last-child { margin-bottom: 0; }
.sk-contact-card__body a { color: var(--sk-primary); font-weight: var(--fw-medium); }
.sk-contact-card__body a:hover { color: var(--sk-primary-hover); }

/* Map */
.sk-contacts__map {
    margin-top: var(--space-12);
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 7;
}
.sk-contacts__map iframe { width: 100%; height: 100%; border: none; }


/* ══════════════════════════════════════════════════════════════
   EXTRAS — Кружки и секции
   ══════════════════════════════════════════════════════════════ */

.sk-extras {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.sk-extras__category {
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--sk-divider);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}
.sk-extras__category:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.sk-extras__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-8);
    background: var(--sk-bg-alt);
    border-bottom: 1px solid var(--sk-divider);
}
.sk-extras__icon { font-size: var(--fs-2xl); line-height: 1; }
.sk-extras__header h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--sk-text);
    letter-spacing: var(--ls-tight);
}

.sk-extras__list { list-style: none; padding: var(--space-4) var(--space-8); }
.sk-extras__list li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--sk-divider);
    font-size: var(--fs-base);
    color: var(--sk-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.sk-extras__list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--sk-primary);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.sk-extras__list li:last-child { border-bottom: none; }


/* ══════════════════════════════════════════════════════════════
   DOCUMENTS — PDF карточки
   ══════════════════════════════════════════════════════════════ */

.sk-documents,
.sk-doc-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.sk-document,
.sk-doc-card {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--sk-divider);
    text-decoration: none;
    color: var(--sk-text);
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}
.sk-document:hover,
.sk-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--sk-primary);
    color: var(--sk-text);
}

.sk-document__icon,
.sk-doc-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sk-primary-subtle);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    color: var(--sk-primary);
    font-size: var(--fs-xl);
}

.sk-document__info,
.sk-doc-card__info { flex: 1; min-width: 0; }

.sk-document__name,
.sk-doc-card__name {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--sk-text);
    margin-bottom: var(--space-1);
    line-height: var(--lh-snug);
}

.sk-document__meta,
.sk-doc-card__meta { font-size: var(--fs-sm); color: var(--sk-text-muted); }


/* ══════════════════════════════════════════════════════════════
   STAFF / TEAM — Педагоги
   ══════════════════════════════════════════════════════════════ */

.sk-staff,
.sk-team-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.sk-staff__member,
.sk-team-card {
    text-align: center;
    background: var(--sk-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--sk-divider);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}
.sk-staff__member:hover,
.sk-team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.sk-staff__photo,
.sk-team-card__photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
    transition: transform var(--dur-slow) var(--ease-out);
}
.sk-staff__member:hover .sk-staff__photo,
.sk-team-card:hover .sk-team-card__photo { transform: scale(1.04); }

.sk-staff__info,
.sk-team-card__info { padding: var(--space-6); }

.sk-staff__name,
.sk-team-card__name {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--sk-text);
    margin-bottom: var(--space-1);
    letter-spacing: var(--ls-tight);
}

.sk-staff__role,
.sk-team-card__role {
    font-size: var(--fs-sm);
    color: var(--sk-text-secondary);
}


/* ══════════════════════════════════════════════════════════════
   CONTENT SECTION — Текстовые подстраницы
   ══════════════════════════════════════════════════════════════ */

.sk-content-section {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--sk-section-py) var(--space-8);
}

.sk-content-section h2 {
    font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-3xl));
    font-weight: var(--fw-bold);
    color: var(--sk-text);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-6);
    line-height: var(--lh-tight);
}

.sk-content-section h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--sk-text);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    letter-spacing: var(--ls-tight);
}

.sk-content-section p {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--sk-text-secondary);
    margin-bottom: var(--space-5);
}

.sk-content-section ul,
.sk-content-section ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-6);
}

.sk-content-section li {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--sk-text-secondary);
    margin-bottom: var(--space-2);
}

.sk-content-section blockquote {
    border-left: 3px solid var(--sk-primary);
    padding: var(--space-6) var(--space-8);
    margin: var(--space-8) 0;
    background: var(--sk-bg-alt);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--sk-text);
}

.sk-content-section img {
    border-radius: var(--radius-xl);
    margin: var(--space-8) 0;
    box-shadow: var(--shadow-md);
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.sk-footer {
    background: var(--sk-bg-dark);
    color: var(--sk-text-on-dark);
    padding: var(--space-16) 0 0;
}

.sk-footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-12);
}

.sk-footer h4 {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--sk-text-on-dark);
    margin-bottom: var(--space-5);
    letter-spacing: var(--ls-tight);
}

.sk-footer p,
.sk-footer li {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: var(--sk-text-on-dark-muted);
}

.sk-footer a { color: var(--sk-text-on-dark-muted); }
.sk-footer a:hover { color: var(--sk-text-on-dark); }

.sk-footer ul { list-style: none; padding: 0; }
.sk-footer ul li { margin-bottom: var(--space-2); }

.sk-footer__bottom {
    max-width: var(--container-max);
    margin: var(--space-12) auto 0;
    padding: var(--space-6) var(--space-8);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.sk-footer__bottom p { font-size: var(--fs-sm); color: rgba(255,255,255,0.45); }
.sk-footer__bottom a { color: rgba(255,255,255,0.6); }
.sk-footer__bottom a:hover { color: var(--sk-text-on-dark); }


/* ══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════════ */

.sk-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--dur-reveal) var(--ease-out-expo),
                transform var(--dur-reveal) var(--ease-out-expo);
}
.sk-reveal.sk-visible { opacity: 1; transform: translateY(0); }

/* Stagger */
.sk-reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.sk-reveal-stagger > *:nth-child(2) { transition-delay: 100ms; }
.sk-reveal-stagger > *:nth-child(3) { transition-delay: 200ms; }
.sk-reveal-stagger > *:nth-child(4) { transition-delay: 300ms; }
.sk-reveal-stagger > *:nth-child(5) { transition-delay: 400ms; }
.sk-reveal-stagger > *:nth-child(6) { transition-delay: 500ms; }

/* Variants */
.sk-reveal--left { transform: translateX(-40px); }
.sk-reveal--left.sk-visible { transform: translateX(0); }
.sk-reveal--right { transform: translateX(40px); }
.sk-reveal--right.sk-visible { transform: translateX(0); }
.sk-reveal--scale { transform: scale(0.92); }
.sk-reveal--scale.sk-visible { transform: scale(1); }


/* ══════════════════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════════════════ */

.sk-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-overlay);
    background: rgba(29,29,31,0.96);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-5) var(--space-8);
    transform: translateY(100%);
    transition: transform var(--dur-normal) var(--ease-out);
}
.sk-cookie.sk-visible { transform: translateY(0); }
.sk-cookie.sk-hidden { transform: translateY(100%); pointer-events: none; }

.sk-cookie__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.sk-cookie__text {
    flex: 1;
    min-width: 280px;
    font-size: var(--fs-sm);
    color: var(--sk-text-on-dark-muted);
    line-height: var(--lh-relaxed);
}
.sk-cookie__text a {
    color: var(--sk-text-on-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sk-cookie__text a:hover { color: var(--sk-primary); }

.sk-cookie__actions { display: flex; gap: var(--space-3); flex-shrink: 0; }

.sk-cookie__accept {
    padding: var(--space-2) var(--space-6);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    font-family: var(--font-body);
    background: var(--sk-primary);
    color: var(--sk-text-on-dark);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    min-height: 40px;
    transition: background var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
}
.sk-cookie__accept:hover { background: var(--sk-primary-hover); }
.sk-cookie__accept:active { transform: scale(0.97); }

.sk-cookie__decline {
    padding: var(--space-2) var(--space-6);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    font-family: var(--font-body);
    background: transparent;
    color: var(--sk-text-on-dark-muted);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-pill);
    cursor: pointer;
    min-height: 40px;
    transition: background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}
.sk-cookie__decline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: var(--sk-text-on-dark);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   375px -> 768px -> 1024px -> 1440px
   ══════════════════════════════════════════════════════════════ */

/* ---------- Mobile (до 767px) ---------- */
@media (max-width: 767px) {
    :root {
        --sk-section-py: var(--space-16);
        --header-h: 64px;
    }

    /* Header */
    .sk-nav { display: none; }
    .sk-header__phone { display: none; }
    .sk-menu-toggle { display: flex; }
    .sk-header__inner { padding: 0 var(--space-4); }

    /* Hero */
    .sk-hero { min-height: 85vh; background-attachment: scroll; }
    .sk-hero__content { padding: var(--space-6); }
    .sk-hero__actions { flex-direction: column; align-items: center; }
    .sk-hero__actions .sk-btn { width: 100%; max-width: 320px; }
    .sk-hero__features { flex-direction: column; align-items: center; gap: var(--space-4); }

    /* Page Hero */
    .sk-page-hero { min-height: 40vh; }

    /* About */
    .sk-about__container { grid-template-columns: 1fr; gap: var(--space-10); }
    .sk-about__image { order: -1; }
    .sk-about__features { grid-template-columns: 1fr; }

    /* Programs */
    .sk-programs { grid-template-columns: 1fr; gap: var(--space-6); }

    /* Stats */
    .sk-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); padding: var(--space-10) 0; }
    .sk-stat { padding: var(--space-4); }

    /* Facts */
    .sk-facts { grid-template-columns: 1fr; gap: var(--space-3); }

    /* Advantages */
    .sk-advantages { grid-template-columns: 1fr; gap: var(--space-6); }

    /* Testimonials */
    .sk-testimonials { grid-template-columns: 1fr; gap: var(--space-6); }

    /* FAQ */
    .sk-faq summary { padding: var(--space-5); font-size: var(--fs-base); }
    .sk-faq__answer { padding: 0 var(--space-5) var(--space-6); }

    /* Gallery */
    .sk-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .sk-gallery__item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
    .sk-gallery__item:nth-child(5) { grid-column: span 1; }

    /* News */
    .sk-news,
    .sk-news-grid { grid-template-columns: 1fr; gap: var(--space-6); }

    /* Contacts */
    .sk-contacts { grid-template-columns: 1fr; gap: var(--space-6); }
    .sk-contacts__map { aspect-ratio: 1 / 1; }

    /* Extras */
    .sk-extras { grid-template-columns: 1fr; gap: var(--space-6); }

    /* Documents */
    .sk-documents,
    .sk-doc-grid { grid-template-columns: 1fr; }

    /* Staff */
    .sk-staff,
    .sk-team-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .sk-staff__photo,
    .sk-team-card__photo { height: 200px; }

    /* Footer */
    .sk-footer__container { grid-template-columns: 1fr; gap: var(--space-8); }

    /* CTA */
    .sk-cta { padding: var(--space-16) var(--space-6); }

    /* Content */
    .sk-content-section { padding: var(--space-12) var(--space-6); }

    /* Section */
    .sk-section { padding: var(--space-16) var(--space-5); }

    /* Cookie */
    .sk-cookie__inner { flex-direction: column; text-align: center; }
    .sk-cookie__actions { width: 100%; justify-content: center; }

    /* Scroll-to-top */
    .sk-scroll-top { bottom: var(--space-4); right: var(--space-4); width: 44px; height: 44px; }
}

/* ---------- Tablet (768px - 1023px) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
    :root { --sk-section-py: var(--space-20); }

    .sk-nav { display: none; }
    .sk-menu-toggle { display: flex; }

    /* About */
    .sk-about__container { grid-template-columns: 1fr; gap: var(--space-10); }
    .sk-about__image { max-height: 400px; }

    /* Programs */
    .sk-programs { grid-template-columns: repeat(2, 1fr); }
    .sk-programs .sk-program-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    /* Stats */
    .sk-stats { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }

    /* Facts */
    .sk-facts { grid-template-columns: repeat(2, 1fr); }

    /* Advantages */
    .sk-advantages { grid-template-columns: repeat(2, 1fr); }

    /* Testimonials */
    .sk-testimonials { grid-template-columns: repeat(2, 1fr); }
    .sk-testimonials .sk-testimonial:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    /* Gallery */
    .sk-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .sk-gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .sk-gallery__item:nth-child(5) { grid-column: span 1; }

    /* News */
    .sk-news,
    .sk-news-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contacts */
    .sk-contacts { grid-template-columns: repeat(2, 1fr); }
    .sk-contacts .sk-contact-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    /* Extras */
    .sk-extras { grid-template-columns: repeat(2, 1fr); }

    /* Staff */
    .sk-staff,
    .sk-team-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

    /* Footer */
    .sk-footer__container { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
    .sk-menu-toggle { display: none; }
    .sk-nav { display: flex; }
}

/* ---------- Wide Desktop (1440px+) ---------- */
@media (min-width: 1440px) {
    :root { --sk-section-py: 9rem; }
    .sk-hero__content { max-width: 1000px; }
    .sk-gallery { grid-auto-rows: 300px; }
    .sk-staff__photo,
    .sk-team-card__photo { height: 320px; }
}


/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .sk-reveal { opacity: 1; transform: none; }
    .sk-hero { background-attachment: scroll; }

    .sk-program-card:hover,
    .sk-advantage:hover,
    .sk-testimonial:hover,
    .sk-news__item:hover,
    .sk-news-card:hover,
    .sk-contact-card:hover,
    .sk-staff__member:hover,
    .sk-team-card:hover,
    .sk-fact:hover,
    .sk-extras__category:hover,
    .sk-document:hover,
    .sk-doc-card:hover { transform: none; }

    .sk-program-card:hover .sk-program-card__image,
    .sk-gallery__item:hover img,
    .sk-about__image:hover img,
    .sk-staff__member:hover .sk-staff__photo,
    .sk-team-card:hover .sk-team-card__photo { transform: none; }

    .sk-preloader { display: none; }
}


/* ══════════════════════════════════════════════════════════════
   HIGH CONTRAST / FORCED COLORS
   ══════════════════════════════════════════════════════════════ */

@media (forced-colors: active) {
    .sk-btn { border: 2px solid ButtonText; }
    .sk-faq summary::after { border: 1px solid ButtonText; }
    .sk-hero__overlay,
    .sk-page-hero__overlay { background: rgba(0,0,0,0.5); }
}


/* ══════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════ */

@media print {
    /* Скрываем интерактивное */
    .sk-header,
    .sk-scroll-top,
    .sk-preloader,
    .sk-cookie,
    .sk-menu-toggle,
    .sk-mobile-nav,
    .sk-hero__actions,
    .sk-cta .sk-btn,
    .sk-contacts__map,
    .sk-chatbot { display: none !important; }

    body {
        background: white;
        color: black;
        padding-top: 0;
        font-size: 12pt;
    }

    .sk-section,
    .sk-section--alt,
    .sk-section--dark,
    .sk-section--frost,
    .sk-cta,
    .sk-footer {
        background: white !important;
        color: black !important;
        padding: 2rem 0;
        box-shadow: none;
    }

    .sk-section--dark .sk-section__title,
    .sk-section--dark .sk-section__subtitle,
    .sk-cta h2,
    .sk-cta p,
    .sk-stat__number,
    .sk-stat__label,
    .sk-advantage__title,
    .sk-advantage__desc,
    .sk-footer h4,
    .sk-footer p,
    .sk-footer li,
    .sk-footer a { color: black !important; }

    .sk-hero,
    .sk-page-hero {
        min-height: auto;
        padding: 3rem 1rem;
        background: white !important;
    }

    .sk-hero__overlay,
    .sk-page-hero__overlay,
    .sk-cta::before { display: none; }

    .sk-hero__title,
    .sk-page-hero__title { color: black; font-size: 28pt; }
    .sk-hero__subtitle,
    .sk-page-hero__subtitle,
    .sk-hero__badge { color: #333; }
    .sk-hero__title--gradient { -webkit-text-fill-color: black; background: none; }

    .sk-program-card,
    .sk-testimonial,
    .sk-news__item,
    .sk-news-card,
    .sk-contact-card,
    .sk-staff__member,
    .sk-team-card,
    .sk-fact,
    .sk-extras__category,
    .sk-document,
    .sk-doc-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .sk-programs,
    .sk-stats,
    .sk-facts,
    .sk-advantages,
    .sk-testimonials,
    .sk-news,
    .sk-news-grid,
    .sk-contacts,
    .sk-extras,
    .sk-staff,
    .sk-team-grid,
    .sk-documents,
    .sk-doc-grid,
    .sk-gallery,
    .sk-footer__container { grid-template-columns: 1fr; gap: 1rem; }

    .sk-gallery__item:nth-child(1) { grid-column: span 1; grid-row: span 1; }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        font-weight: normal;
        color: #666;
    }
    a[href^="#"]::after,
    a[href^="javascript"]::after,
    a[href^="tel"]::after,
    .sk-nav a::after,
    .sk-footer a::after { content: ''; }

    .sk-section,
    .sk-cta { page-break-inside: avoid; }
    h2, h3 { page-break-after: avoid; }
    img { max-width: 100% !important; }
}


/* ══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.sk-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
}
.sk-container--wide { max-width: var(--container-wide); }
.sk-container--narrow { max-width: var(--container-narrow); }

.sk-spacer-sm { height: var(--space-8); }
.sk-spacer-md { height: var(--space-16); }
.sk-spacer-lg { height: var(--space-24); }

.sk-divider-line {
    border: none;
    height: 1px;
    background: var(--sk-divider);
    margin: var(--space-12) auto;
    max-width: var(--container-max);
}

.sk-font-accent { font-family: var(--font-accent); }

.sk-gradient-text {
    background: linear-gradient(135deg, var(--sk-primary) 0%, var(--color-rowan-900) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
