/* =========================================
   1. ПЕРЕМЕННЫЕ И БАЗА
   ========================================= */
:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --text: #334155;
    --text-light: #64748B;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(15, 23, 42, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    touch-action: manipulation;
}

button {
    font-family: inherit;
    touch-action: manipulation;
}

ul { list-style: none; }

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    width: 100%;
}

.section { padding: clamp(48px, 6vw, 80px) 0; }

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto clamp(32px, 5vw, 48px);
    padding: 0 10px;
}

/* =========================================
   2. КНОПКИ
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before { width: 300px; height: 300px; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover { background-color: var(--white); color: var(--primary); }

.btn-full { width: 100%; }

/* =========================================
   3. PROGRESS BAR
   ========================================= */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* =========================================
   4. ШАПКА
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    gap: 16px;
}

.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 50px; width: auto; }

.nav-links {
    display: flex;
    gap: clamp(18px, 2.5vw, 32px);
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary);
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.max-svg { width: 24px; height: 24px; display: block; }
.max-svg-small { width: 22px; height: 22px; }
.max-svg-float { width: 38px; height: 38px; }
.contact-icon .max-svg { width: 32px; height: 32px; }

.header-phone {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.header-phone i { color: var(--accent); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================
   5. БАННЕР СВЕРХУ
   ========================================= */
.top-banner {
    padding-top: 72px;
    background: #0a0a0a;
    line-height: 0;
}

.top-banner img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: clamp(180px, 40vw, 560px);
}

/* =========================================
   6. ГЛАВНЫЙ ЭКРАН
   ========================================= */
.hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--white);
    padding: clamp(48px, 6vw, 80px) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
    animation: bgShift 15s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.hero-decoration {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    color: var(--accent);
}

.hero-decoration:nth-child(1) { top: 12%; left: 6%; font-size: 2.5rem; }
.hero-decoration:nth-child(2) { top: 72%; left: 10%; font-size: 1.8rem; animation-delay: 2s; }
.hero-decoration:nth-child(3) { top: 18%; right: 8%; font-size: 2.2rem; animation-delay: 4s; }
.hero-decoration:nth-child(4) { top: 68%; right: 6%; font-size: 2.6rem; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(10deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 850px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    padding: 7px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    opacity: 0;
    animation: slideInUp 0.8s 0.2s forwards;
}

.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: slideInUp 0.8s 0.4s forwards;
}

.hero h1 .highlight { color: var(--accent); display: inline-block; position: relative; }

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(245, 158, 11, 0.25);
    border-radius: 4px;
    z-index: -1;
}

.hero p {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: #CBD5E1;
    margin-bottom: 28px;
    line-height: 1.65;
    opacity: 0;
    animation: slideInUp 0.8s 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: slideInUp 0.8s 0.8s forwards;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: clamp(28px, 4vw, 44px);
    opacity: 0;
    animation: slideInUp 0.8s 1s forwards;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 9px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.87rem;
    color: #E2E8F0;
    backdrop-filter: blur(8px);
}

.hero-badges i { color: var(--accent); }

/* =========================================
   7. ОБО МНЕ
   ========================================= */
.about-intro {
    max-width: 800px;
    margin: 0 auto clamp(28px, 4vw, 40px);
    text-align: center;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    color: var(--text);
}

.about-principles-label {
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 28px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(14px, 2.5vw, 20px);
    margin-bottom: clamp(28px, 4vw, 44px);
}

.principle-card {
    background: var(--white);
    padding: clamp(20px, 2.5vw, 28px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.principle-card.visible { opacity: 1; transform: translateY(0); }
.principle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.principle-card::before {
    content: attr(data-num);
    position: absolute;
    top: -14px;
    right: 8px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(245, 158, 11, 0.08);
    line-height: 1;
}

.principle-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.principle-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.principle-card p { font-size: 0.87rem; color: var(--text-light); line-height: 1.55; }

/* =========================================
   8. УСЛУГИ
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(14px, 2.5vw, 20px);
}

.service-card {
    background: var(--white);
    padding: clamp(22px, 2.5vw, 32px) clamp(18px, 2.5vw, 26px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(245, 158, 11, 0.3); }

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 16px;
    transition: var(--transition);
}

.service-card:hover .service-icon { background: var(--accent); color: var(--white); transform: rotate(-10deg) scale(1.1); }

.service-card h3 { font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 0.87rem; line-height: 1.5; }

/* =========================================
   9. ПРАЙС
   ========================================= */
.price-section { background: var(--white); }

.price-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: clamp(24px, 4vw, 36px);
    flex-wrap: wrap;
}

.ptab-btn {
    padding: 9px 20px;
    border-radius: 50px;
    border: 2px solid #E2E8F0;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ptab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.ptab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.ptab-content { display: none; animation: fadeIn 0.4s ease; }
.ptab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-table {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 32px);
    box-shadow: var(--shadow);
}

.price-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 22px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.price-group-title:first-child { margin-top: 0; }
.price-group-title i { color: var(--accent); }

@media (min-width: 900px) {
    .price-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #E2E8F0;
    transition: var(--transition);
}

.price-row:hover { padding-left: 6px; }
.price-name { font-size: 0.88rem; color: var(--text); }

.price-dots {
    flex: 1;
    border-bottom: 2px dotted #CBD5E1;
    transform: translateY(-4px);
    min-width: 16px;
}

.price-value { font-weight: 700; color: var(--primary); white-space: nowrap; font-size: 0.9rem; }
.price-value b { color: var(--accent-hover); font-size: 1rem; }
.price-unit { color: var(--text-light); font-weight: 400; font-size: 0.75rem; }

.price-note { text-align: center; margin-top: 24px; color: var(--text-light); font-size: 0.88rem; }
.price-note i { color: var(--accent); margin-right: 6px; }

/* =========================================
   10. ПОРТФОЛИО
   ========================================= */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: clamp(24px, 4vw, 40px);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid #E2E8F0;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.tab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

.slider-container {
    position: relative;
    width: min(100%, 960px, calc(70vh * 16 / 9));
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1E293B;
    overflow: hidden;
}

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide--video { position: relative; }

.slide--video .slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}

.slide--video .slide-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 2;
    padding: 12px clamp(16px, 3vw, 28px);
    color: var(--white);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0));
    pointer-events: none;
}

.slide-info h3 { font-size: clamp(0.95rem, 2.5vw, 1.2rem); margin-bottom: 3px; font-weight: 700; }

.slide-info p {
    color: #CBD5E1;
    font-size: clamp(0.78rem, 1.8vw, 0.9rem);
    max-width: 600px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-nav { display: flex; align-items: center; gap: 14px; margin-top: 16px; }

.slider-meta-slot { flex: 1; display: flex; align-items: center; min-width: 0; }

.slider-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.slider-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

.slider-dots { display: none; }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.dot.active { background: var(--accent); width: 28px; border-radius: 5px; }

/* =========================================
   11. МОЯ ФИЛОСОФИЯ
   ========================================= */
.article-section { background: var(--white); }

.article-card {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: 20px;
    padding: clamp(22px, 4vw, 44px);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent);
}

.article-card h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--primary); margin: 24px 0 12px; line-height: 1.3; }
.article-card h3:first-child { margin-top: 0; }
.article-card h4 { font-size: 1rem; color: var(--primary); margin: 18px 0 10px; }
.article-card p { margin-bottom: 12px; font-size: 0.94rem; }
.article-card strong { color: var(--primary); }

.article-list { margin: 0 0 14px; padding-left: 4px; }

.article-list li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 0.92rem; }

.article-list li::before {
    content: '\f0e7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent);
    font-size: 0.8rem;
}

.article-list.numbered li::before {
    content: attr(data-n);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--accent-hover);
}

.article-body { display: none; }
.article-body.expanded { display: block; animation: fadeIn 0.5s ease; }
.article-toggle-wrap { text-align: center; margin-top: 24px; }

/* =========================================
   12. КОНТАКТЫ (компактная секция)
   ========================================= */
.contact {
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 5vw, 60px) 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent);
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 44px);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.contact-info { display: flex; flex-direction: column; }

.contact-info h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 10px; line-height: 1.2; }

.contact-info > p {
    color: #94A3B8;
    margin-bottom: 18px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.contact-btn-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-btn:hover .contact-btn-icon { background: var(--accent); color: var(--primary); }
.contact-btn-icon .max-svg { width: 26px; height: 26px; }

.contact-btn-body { display: flex; flex-direction: column; min-width: 0; }

.contact-btn-label {
    font-size: 0.7rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-btn-value {
    font-size: 0.98rem;
    color: var(--white);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-btn-arrow {
    margin-left: auto;
    color: #64748B;
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-btn:hover .contact-btn-arrow { color: var(--accent); transform: translateX(3px); }

.contact-form {
    background: var(--white);
    padding: clamp(18px, 3vw, 28px);
    border-radius: var(--radius);
    color: var(--text);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-form.visible { opacity: 1; transform: translateY(0); }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.85rem; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.93rem;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 76px; }

.form-privacy { font-size: 0.72rem; color: var(--text-light); margin-top: 10px; text-align: center; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { margin-top: 12px; font-size: 0.88rem; text-align: center; min-height: 1.2em; font-weight: 500; }
.form-status--success { color: #16a34a; }
.form-status--error { color: #dc2626; }

/* =========================================
   13. ПЛАВАЮЩАЯ КНОПКА MAX
   ========================================= */
.floating-max {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
    z-index: 999;
    transition: var(--transition);
    animation: floatButton 3s ease-in-out infinite;
}

/* Когда плашка о куках видна — приподнимаем кнопку, чтобы они не перекрывались */
body.cookies-visible .floating-max {
    bottom: 110px;
}

@keyframes floatButton {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-max:hover { transform: scale(1.1); box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6); }

.floating-max::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    opacity: 0.5;
    animation: pulseRing 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* =========================================
   14. ФУТЕР
   ========================================= */
.footer {
    background: #020617;
    color: #64748B;
    padding: 26px 0;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: inline-block;
    background: var(--white);
    border-radius: 12px;
    padding: 6px 14px;
    margin-bottom: 10px;
}

.footer-logo img { height: 34px; width: auto; }

/* =========================================
   15. АДАПТИВНОСТЬ
   ========================================= */
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

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

@media (max-width: 768px) {
    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 22px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active { transform: translateY(0); }
    .logo img { height: 42px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }

    .slider-btn { width: 40px; height: 40px; font-size: 0.85rem; }

    .floating-max { width: 52px; height: 52px; bottom: 16px; right: 16px; }
    body.cookies-visible .floating-max { bottom: 160px; }
    .max-svg-float { width: 32px; height: 32px; }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
    .price-row { flex-wrap: wrap; gap: 4px; }
    .price-dots { display: none; }
    .price-name { width: 100%; }
    .price-value { margin-left: auto; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.55rem; }
    .tabs, .price-tabs { flex-direction: column; align-items: stretch; padding: 0 20px; }
    .tab-btn, .ptab-btn { width: 100%; justify-content: center; }
    .slide--video .slide-info { padding: 10px 14px; }
    .slider-nav { gap: 10px; }
    .contact-btn { padding: 10px 13px; }
    .contact-btn-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================
   16. СЛАЙДЕР: счётчик и прогресс-бар
   ========================================= */
.slider-meta { display: flex; align-items: center; gap: 16px; width: 100%; }

.slider-counter {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.slider-counter .cur { color: var(--accent-hover); font-size: 1.05rem; }
.slider-counter .sep { margin: 0 4px; color: #CBD5E1; }

.slider-progress { flex: 1; height: 3px; background: #E2E8F0; border-radius: 3px; overflow: hidden; }

.slider-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 3px;
}

/* =========================================
   17. ДОКУМЕНТЫ ОБ ОБРАЗОВАНИИ + ЛАЙТБОКС
   ========================================= */
.documents {
    margin: clamp(32px, 5vw, 48px) auto 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 920px;
}

.documents-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.documents-title i { color: var(--accent); font-size: 1.2em; }

.documents-subtitle {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: clamp(20px, 3vw, 30px);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: clamp(16px, 3vw, 28px);
    justify-content: center;
}

.document-card {
    background: var(--bg);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
    cursor: zoom-in;
}

.document-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: var(--white);
}

.document-card--landscape img { aspect-ratio: 4 / 3; }
.document-card--portrait img { aspect-ratio: 3 / 4; }

.document-name {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.35;
}

.document-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
        gap: clamp(12px, 2.5vw, 20px);
    }
    .document-card { padding: 10px; }
    .document-name { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .documents { padding: clamp(20px, 3vw, 28px); }
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .document-card { padding: 8px; max-width: 280px; }
    .document-name { font-size: 0.7rem; margin-top: 8px; }
}

@media (max-width: 360px) {
    .documents-grid {
        grid-template-columns: 1fr;
        max-width: 200px;
        margin: 0 auto;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 2.6rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: var(--transition);
}

.lightbox-close:hover { opacity: 1; transform: scale(1.1); }

/* =========================================
   18. ПЛАШКА О КУКАХ
   ========================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    padding: 16px clamp(16px, 4vw, 24px);
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease,
                visibility 0.5s;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner.hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.cookie-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.cookie-text p {
    color: #CBD5E1;
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0;
}

.cookie-link {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(245, 158, 11, 0.4);
    text-underline-offset: 2px;
    transition: var(--transition);
}

.cookie-link:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

.cookie-btn {
    flex-shrink: 0;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    white-space: nowrap;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}

.cookie-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 14px 16px;
    }

    .cookie-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .cookie-text strong { font-size: 0.9rem; }
    .cookie-text p { font-size: 0.8rem; }

    .cookie-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        gap: 10px;
    }

    .cookie-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .cookie-btn {
        padding: 11px 14px;
    }
}