/* ============================================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ, СБРОСЫ И БАЗОВЫЕ СТИЛИ
============================================================ */
:root {
    --primary: #be2026;
    --primary-light: #d43a40;
    --primary-dark: #a91117;
    --secondary: #0d1b2a;
    --secondary-light: #1b2a3a;
    --gray-light: #f8f9fa;
    --gray-mid: #e9ecef;
    --gray-dark: #6c757d;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --font-base: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 25px 50px rgba(190,32,38,0.15);
    --shadow-glow: 0 0 30px rgba(190,32,38,0.3);
    --radius: 16px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: #ffffff;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   ШАПКА (общая для всех страниц)
============================================================ */
.header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all var(--transition);
}
.header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    min-height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}
.logo-img {
    height: 44px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-list a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width var(--transition);
}
.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}
.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
}

.header-phone .phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 17px;
    color: var(--primary);
}
.header-phone .phone-link:hover {
    color: var(--primary-dark);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger-line {
    width: 28px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}
.burger.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
}

/* ============================================================
   КНОПКИ (общие)
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(190,32,38,0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(190,32,38,0.4);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}
.btn-small {
    padding: 10px 22px;
    font-size: 14px;
}
.btn-large {
    padding: 18px 52px;
    font-size: 18px;
}
.btn-pulse {
    animation: pulse 2s ease-in-out infinite;
}
.btn-glow {
    box-shadow: 0 8px 30px rgba(190,32,38,0.4);
}
.btn-glow:hover {
    box-shadow: 0 12px 50px rgba(190,32,38,0.6);
}

/* ============================================================
   ГЕРОЙ (главная страница)
============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2a3a 50%, #0d1b2a 100%);
    padding-top: 72px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(190,32,38,0.08) 0%, transparent 60%);
    z-index: 0;
}
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-content {
    animation: fadeInUp 1s ease forwards;
}
.hero-badge {
    display: inline-block;
    background: rgba(190,32,38,0.15);
    color: var(--primary-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(190,32,38,0.1);
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-stats-mini {
    display: flex;
    gap: 24px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.hero-stats-mini span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-logo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.hero-orb {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(190,32,38,0.08) 0%, transparent 70%);
    animation: orbPulse 4s ease-in-out infinite;
    z-index: 0;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

/* ============================================================
   ГЕРОЙ ДЛЯ ВНУТРЕННИХ СТРАНИЦ (О нас, и др.)
============================================================ */
.page-hero {
    background: linear-gradient(135deg, #0d1b2a, #1b2a3a);
    color: #fff;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 72px;
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
}
.page-hero-sub {
    font-size: 18px;
    opacity: 0.8;
    margin-top: 8px;
}

/* ============================================================
   СТАТИСТИКА (общая для главной и страницы "О нас")
============================================================ */
.stats {
    background: #ffffff;
    padding: 70px 0;
    border-bottom: 1px solid var(--gray-mid);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item {
    padding: 10px;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    color: var(--primary);
    display: block;
    line-height: 1.1;
}
.stat-label {
    font-size: 16px;
    color: var(--gray-dark);
    font-weight: 500;
    display: block;
    margin-top: 6px;
}

/* ============================================================
   ПРОГРАММЫ ОБУЧЕНИЯ (только главная)
============================================================ */
.programs {
    padding: 100px 0;
    background: var(--gray-light);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(190,32,38,0.08);
    padding: 4px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.section-sub {
    font-size: 18px;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.program-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 800px;
}
.program-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: var(--shadow-hover);
}
.program-image {
    position: relative;
    overflow: hidden;
}
.program-image img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform var(--transition);
}
.program-card:hover .program-image img {
    transform: scale(1.05);
}
.program-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.program-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.program-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}
.program-info > p {
    color: var(--gray-dark);
    font-size: 14px;
    margin-bottom: 12px;
}
.price-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.price {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}
.price-old {
    font-size: 15px;
    color: var(--gray-dark);
    text-decoration: line-through;
}
.program-info .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ============================================================
   ПРЕИМУЩЕСТВА (общие)
============================================================ */
.advantages {
    padding: 100px 0;
    background: #ffffff;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 20px;
}
.adv-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.adv-item:hover {
    background: var(--gray-light);
    border-color: var(--gray-mid);
    transform: translateY(-4px);
}
.adv-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(190,32,38,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all var(--transition);
}
.adv-item:hover .adv-icon-wrap {
    background: var(--primary);
    transform: scale(1.05);
}
.adv-icon-wrap .adv-icon {
    font-size: 32px;
    transition: all var(--transition);
}
.adv-item:hover .adv-icon-wrap .adv-icon {
    filter: brightness(10);
}
.adv-item h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
}
.adv-item p {
    color: var(--gray-dark);
    font-size: 15px;
}

/* ============================================================
   ОТЗЫВЫ (главная)
============================================================ */
.reviews {
    padding: 100px 0;
    background: var(--gray-light);
}
.reviews-slider {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}
.reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.review-card {
    min-width: 100%;
    padding: 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin: 0 10px;
    transition: all var(--transition);
}
.review-stars {
    font-size: 20px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.review-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gray-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid var(--primary);
}
.review-author strong {
    display: block;
    font-size: 16px;
}
.review-author span {
    font-size: 14px;
    color: var(--gray-dark);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}
.slider-prev,
.slider-next {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition);
}
.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.05);
}
.slider-dots {
    display: flex;
    gap: 8px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-mid);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.slider-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* ============================================================
   ИСТОРИЯ (страница "О нас")
============================================================ */
.history {
    padding: 100px 0;
}
.history-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}
.history-text h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
}
.history-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}
.history-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.stat-big {
    text-align: center;
    padding: 20px;
    background: var(--gray-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.stat-number-big {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
    display: block;
}
.stat-label-big {
    font-size: 16px;
    color: var(--gray-dark);
}

/* ============================================================
   РУКОВОДСТВО (страница "О нас")
============================================================ */
.management {
    padding: 100px 0;
    background: var(--gray-light);
}
.management-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.manager-card {
    background: #fff;
    padding: 30px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    min-width: 200px;
    transition: all var(--transition);
}
.manager-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.manager-avatar {
    font-size: 48px;
    margin-bottom: 12px;
}
.manager-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
}
.manager-card p {
    color: var(--gray-dark);
}

/* ============================================================
   ТАБЛИЦЫ (преподаватели, автопарк)
============================================================ */
.teachers,
.fleet {
    padding: 100px 0;
}
.fleet {
    background: var(--gray-light);
}
.table-responsive {
    overflow-x: auto;
    margin: 20px 0 40px;
    -webkit-overflow-scrolling: touch;
}
.teachers-table,
.fleet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.teachers-table th,
.fleet-table th {
    background: var(--secondary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.teachers-table td,
.fleet-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-mid);
}
.teachers-table tr:last-child td,
.fleet-table tr:last-child td {
    border-bottom: none;
}
.teachers-table tbody tr,
.fleet-table tbody tr {
    transition: background var(--transition);
}
.teachers-table tbody tr:hover,
.fleet-table tbody tr:hover {
    background: rgba(190,32,38,0.04);
}
.fleet-table th:first-child,
.fleet-table td:first-child {
    width: 60%;
}

/* ============================================================
   УЧЕБНЫЕ КЛАССЫ (страница "О нас")
============================================================ */
.facilities {
    padding: 100px 0;
}
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}
.facility-item {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}
.facility-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.facility-number {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    display: block;
}
.facility-area {
    font-size: 16px;
    color: var(--gray-dark);
}
.facilities-note {
    text-align: center;
    color: var(--gray-dark);
    font-size: 15px;
    margin-top: 10px;
}

/* ============================================================
   ПРИЗЫВ К ДЕЙСТВИЮ (CTA) – общий
============================================================ */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
}
.cta-inner {
    position: relative;
    z-index: 1;
}
.cta-inner h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-inner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.cta-inner .btn-primary {
    background: #fff;
    color: var(--primary);
}
.cta-inner .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    transform: translateY(-3px) scale(1.02);
}

/* ============================================================
   ФУТЕР (общий)
============================================================ */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 50px;
}
.footer-brand .footer-logo {
    height: 44px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 8px;
}
.footer-brand .footer-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    display: block;
}
.footer-desc {
    font-size: 15px;
    margin: 8px 0 16px;
    opacity: 0.7;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}
.footer-nav h4,
.footer-contacts h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.footer-nav ul {
    list-style: none;
}
.footer-nav ul li {
    margin-bottom: 8px;
}
.footer-nav ul a {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    transition: all var(--transition);
}
.footer-nav ul a:hover {
    color: var(--primary);
}
.footer-contacts p {
    margin-bottom: 6px;
    font-size: 15px;
}
.footer-contacts a {
    color: rgba(255,255,255,0.7);
}
.footer-contacts a:hover {
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* ============================================================
   КНОПКА "НАВЕРХ"
============================================================ */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(190,32,38,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(190,32,38,0.4);
}

/* ============================================================
   АНИМАЦИИ
============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.2; }
}
@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    25% { transform: translate(20px, -15px) scale(1.5); opacity: 0.4; }
    50% { transform: translate(-15px, 25px) scale(0.8); opacity: 0.2; }
    75% { transform: translate(10px, -20px) scale(1.2); opacity: 0.3; }
}

/* Класс для анимации при появлении (будет управляться JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   АДАПТИВНОСТЬ
============================================================ */
/* Планшеты */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 0;
    }
    .hero-title {
        font-size: 42px;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats-mini {
        justify-content: center;
    }
    .hero-logo {
        max-height: 280px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .history-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-hero {
        padding: 100px 0 40px;
    }
    .page-hero h1 {
        font-size: 36px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-brand .social-links {
        justify-content: center;
    }
    .section-header h2 {
        font-size: 32px;
    }
    .cta-inner h2 {
        font-size: 34px;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        padding: 24px 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--gray-mid);
    }
    .nav.open {
        display: block;
        animation: fadeInUp 0.3s ease;
    }
    .nav-list {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .nav-list a {
        font-size: 18px;
        padding: 8px 0;
    }
    .burger {
        display: flex;
    }
    .header-phone {
        display: none;
    }
    .logo-text {
        font-size: 18px;
    }
    .logo-img {
        height: 36px;
    }
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    .hero-title {
        font-size: 30px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .hero-logo {
        max-height: 200px;
    }
    .hero-wave svg {
        height: 50px;
    }
    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .programs {
        padding: 60px 0;
    }
    .advantages {
        padding: 60px 0;
    }
    .reviews {
        padding: 60px 0;
    }
    .history {
        padding: 60px 0;
    }
    .management {
        padding: 60px 0;
    }
    .teachers,
    .fleet {
        padding: 60px 0;
    }
    .facilities {
        padding: 60px 0;
    }
    .cta {
        padding: 60px 0;
    }
    .cta-inner h2 {
        font-size: 30px;
    }
    .stats {
        padding: 40px 0;
    }
    .stat-number {
        font-size: 36px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .footer {
        padding: 40px 0 20px;
    }
    .slider-controls {
        gap: 12px;
    }
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .review-card {
        padding: 20px;
    }
    .scroll-indicator {
        display: none;
    }
    .page-hero h1 {
        font-size: 28px;
    }
    .management-grid {
        flex-direction: column;
        align-items: center;
    }
    .manager-card {
        width: 100%;
        max-width: 300px;
    }
    .stat-number-big {
        font-size: 32px;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-badge {
        font-size: 12px;
        padding: 4px 14px;
    }
    .hero-stats-mini {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stat-number {
        font-size: 30px;
    }
    .stat-label {
        font-size: 14px;
    }
    .program-card .program-image img {
        height: 170px;
    }
    .program-info h3 {
        font-size: 19px;
    }
    .price {
        font-size: 18px;
    }
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }
    .cta-inner h2 {
        font-size: 26px;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .adv-item {
        padding: 20px 16px;
    }
    .page-hero {
        padding: 80px 0 30px;
    }
    .page-hero h1 {
        font-size: 24px;
    }
    .history-text h2 {
        font-size: 26px;
    }
    .facilities-grid {
        grid-template-columns: 1fr 1fr;
    }
}