/* ===== Переменные ===== */
:root {
    --primary: #0a2540;
    --accent: #c9a961;
    --accent-hover: #b8944f;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --text-white:#fff;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e5e7eb;
    --gradient: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%);
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
    --shadow-md: 0 10px 40px rgba(10, 37, 64, 0.1);
    --shadow-lg: 0 25px 60px rgba(10, 37, 64, 0.15);
    --telegram: #0088cc;
    --whatsapp: #25D366;
    --max: #ff5a00;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}
.text-white {
    color:#ffffff!important;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-mark {
    width: 56px; height: 56px;
    background: var(--gradient);
    border-radius: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
}
.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-cta:hover {
    background: var(--accent) !important;
    transform: translateY(-2px);
}
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.burger span {
    width: 25px; height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    padding: 140px 40px 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
    background-image: url('/assets/img/banner_bg_1.png');
    background-position: top left; 
    background-repeat: no-repeat;
    background-size: cover;  
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content { animation: fadeInUp 0.8s ease; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-subtitle {
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 540px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-item .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.3);
}
.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 169, 97, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-light {
    background: var(--accent);
    color: var(--primary);
    align-self: flex-start;
    position: relative;
}
.btn-light:hover {
    background: white;
    transform: translateY(-3px);
}

/* ===== Hero Image ===== */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.hero-image-wrapper:hover img { transform: scale(1.05); }
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 37, 64, 0.3) 100%);
}
.hero-card {
    position: absolute;
    bottom: -30px; left: -30px;
    background: white;
    padding: 20px 26px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}
.hero-card-icon {
    width: 48px; height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
}
.hero-card-icon span {font-size:35px;}
.hero-card-text {
    font-size: 13px;
    color: var(--text-light);
}
.hero-card-text strong {
    display: block;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

/* ===== Sections ===== */
section { padding: 100px 40px; }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(30px, 4vw, 46px);
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* ===== About ===== */
.about { background: var(--bg-alt); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-quote {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 1.5;
    color: var(--primary);
    font-style: italic;
    position: relative;
    padding-left: 30px;
    border-left: 4px solid var(--accent);
    margin-bottom: 30px;
}
.about-text {
    font-size: 16px;
    line-height: 1.8;
}
.about-text p { margin-bottom: 16px; }

/* ===== Фото-блок с соцсетями ===== */
.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.about-image img {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.about-image-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.img-social {
    width:42px;
    height:42px;
    padding:5px;
    border-radius: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    position: relative;
    overflow: hidden;
}

.img-social::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background .3s;
}

.img-social:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    color: #fff;
}

.img-social:hover::before {
    background: rgba(255, 255, 255, .15);
}

.img-social .max-logo {
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1;
}
/* Градиенты */
.img-social.telegram { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.img-social.max      { background: linear-gradient(135deg, #45c4f5 0%, #4c6df3 45%, #8b3ff2 100%); }
.img-social.max:hover{ background: linear-gradient(315deg, #45c4f5 0%, #4c6df3 55%, #8b3ff2 100%); }
.img-social.dzen     { background: #fff;}
.img-social.tenchat  { background:#000; }
.img-social.vk       { background: linear-gradient(135deg, #4680C2, #5181b8); }
.img-social.website  { background: var(--gradient); }

@media (max-width: 480px) {
    .img-social { width: 42px; height: 42px; font-size: 18px; }
    .about-image-social { padding: 16px 12px; gap: 8px; }
}


/* ===== Специализации: 3 на десктопе / 1 на планшете ===== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* планшет и мобильный — по одной колонке */
@media (max-width: 1024px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
}
.spec-card {
    background: white;
    padding: 36px 30px;
    border-radius: 16px;
    /* border: 1px solid var(--border); */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.spec-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.spec-card:hover::before { transform: scaleX(1); }
.spec-icon {
    width: 56px; height: 56px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--primary);
}
.spec-icon i {color: var(--accent); font-size: 32px;}
.spec-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}
.spec-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Education ===== */
.education {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}
.education::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.2) 0%, transparent 70%);
}
.education .section-title { color: white; }
.education .section-label { color: var(--accent); }
.education .section-subtitle { color: rgba(255,255,255,0.7); }
.edu-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.edu-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    align-items: flex-start;
}
.edu-year {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    min-width: 130px;
}
.edu-content {
    flex: 1;
    padding: 24px 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}
.edu-content h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
}
.edu-content p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}

/* ===== Formats ===== */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.format-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}
.format-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.format-icon {
    width: 70px; height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 26px;
}
.format-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
}
.format-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Мессенджеры */
.messengers {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.messenger-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.messenger-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.messenger-icon.telegram { background: var(--telegram); }
.messenger-icon.whatsapp { background: var(--whatsapp); }
.messenger-icon.max { 
    background: linear-gradient(135deg, #ff5a00 0%, #ff8c42 100%);
    font-weight: 800;
    font-size: 24px;
    font-family: 'Inter', sans-serif;
}
.messenger-icon.max:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ff5a00 100%);
}

/* ===== Contact ===== */
.contact {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}
.contact-info h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-details { flex: 1; }
.contact-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.contact-value {
    color: var(--primary);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    word-break: break-word;
}
.contact-value:hover { color: var(--accent); }
.contact-address {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.5;
}
.contact-cta {
    background: var(--gradient);
    padding: 50px;
    border-radius: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.contact-cta::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.contact-cta h3 {
    font-size: 32px;
    margin-bottom: 16px;
    position: relative;
}
.contact-cta p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 30px;
    position: relative;
    line-height: 1.6;
}

/* ===== Footer ===== */
footer {
    background: var(--gradient);
    color: white;
    padding: 40px;
    text-align: center;
}
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}
.footer-content p {
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 8px;
}
.footer-content a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== Error State ===== */
.error-state {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}
.error-state i {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}
.error-state h2 { color: var(--primary); margin-bottom: 10px; }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .burger { display: flex; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { order: -1; max-width: 400px; margin: 0 auto; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .stat-item .stat-number { font-size: 28px; }
    section { padding: 70px 20px; }
    .hero { padding: 120px 20px 60px; }
    .nav-container { padding: 14px 20px; }
    .contact-info, .contact-cta { padding: 30px; }
}
@media (max-width: 480px) {
    .hero-stats { gap: 16px; }
    .stat-item { flex: 1; min-width: 100px; }
    .hero-card { left: 10px; bottom: -20px; padding: 14px 18px; }
    .btn { padding: 14px 24px; font-size: 14px; width: 100%; justify-content: center; }
    .hero-cta { flex-direction: column; }
    .messenger-icon { width: 42px; height: 42px; font-size: 18px; }
}



/* ========== МОБИЛЬНЫЙ DRAWER ========== */

 body.menu-open { overflow: hidden; }

    /* Затемнение */
    .mm-overlay {
        position: fixed; inset: 0;
        background: rgba(4, 16, 30, .55);
        -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
        opacity: 0; visibility: hidden;
        transition: opacity .4s ease, visibility 0s linear .4s;
        z-index: 1999;
    }
    .mm-overlay.active { opacity: 1; visibility: visible; transition: opacity .4s ease; }

    /* Панель: скрыта через transform — НЕ даёт горизонтальной прокрутки */
    .mm-drawer {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(380px, 100%);
        /*background: linear-gradient(165deg, #103055 0%, #0a2540 55%, #071a2e 100%);*/
        background:var(--gradient);
        color: #fff;
        z-index: 2000;
        transform: translateX(110%);
        visibility: hidden;
        transition: transform .55s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .55s;
        display: flex; flex-direction: column;
        padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto; overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 28px 0 0 28px;
        box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
    }
    .mm-drawer.active {
        transform: translateX(0); visibility: visible;
        transition: transform .55s cubic-bezier(.22, 1, .36, 1);
    }
    .mm-glow {
        position: absolute; top: -140px; right: -140px;
        width: 320px; height: 320px; border-radius: 50%;
        background: radial-gradient(circle, rgba(201, 169, 97, .28) 0%, transparent 70%);
        pointer-events: none;
    }

    /* Кнопка закрытия */
    .mm-close {
        position: absolute; top: 18px; right: 18px;
        width: 42px; height: 42px;
        border: 1px solid rgba(255, 255, 255, .15);
        background: rgba(255, 255, 255, .08);
        border-radius: 50%;
        color: #fff; font-size: 16px; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all .3s; z-index: 5;
    }
    .mm-close:hover { background: #c9a961; color: #0a2540; transform: rotate(90deg); }

    /* Шапка: только ФИО + реестровый номер */
    .mm-header { padding: 16px 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 18px; }
    .mm-kicker {
        display: inline-block; font-size: 11px; letter-spacing: 3px;
        text-transform: uppercase; color: #c9a961; font-weight: 600; margin-bottom: 10px;
    }
    .mm-name {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 24px; line-height: 1.25; font-weight: 700; margin-bottom: 12px;
    }
    .mm-badge {
        display: inline-flex; align-items: center; gap: 8px;
        font-size: 12px; color: rgba(255, 255, 255, .75);
        border: 1px solid rgba(201, 169, 97, .4);
        background: rgba(201, 169, 97, .1);
        padding: 7px 14px; border-radius: 999px;
    }
    .mm-badge i { color: #c9a961; }

    /* Навигация */
    .mm-nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
    .mm-link {
        display: flex; align-items: center; gap: 14px;
        padding: 12px 14px; border-radius: 14px;
        color: #fff; text-decoration: none;
        font-size: 16px; font-weight: 500;
        transition: background .3s;
    }
    .mm-link:hover, .mm-link:active { background: rgba(255, 255, 255, .07); }
    .mm-link-icon {
        width: 40px; height: 40px; flex: 0 0 40px;
        border-radius: 12px;
        background: rgba(201, 169, 97, .12);
        border: 1px solid rgba(201, 169, 97, .25);
        color: #c9a961; font-size: 15px;
        display: flex; align-items: center; justify-content: center;
    }
    .mm-link-label { flex: 1; }
    .mm-chevron { font-size: 12px; color: rgba(255, 255, 255, .35); transition: .3s; }
    .mm-link:hover .mm-chevron { color: #c9a961; transform: translateX(3px); }

    /* Блоки */
    .mm-block { margin-bottom: 22px; }
    .mm-title {
        display: block; font-size: 11px; letter-spacing: 2.5px;
        text-transform: uppercase; color: rgba(255, 255, 255, .45);
        font-weight: 600; margin-bottom: 12px;
    }

    /* Мессенджеры */
    .mm-messengers { display: flex; gap: 12px; }
    .mm-msg {
        width: 40px; height: 40px; border-radius: 90px;
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 22px; text-decoration: none;
        transition: transform .3s, box-shadow .3s;
    }
    .mm-msg:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, .35); }
    .mm-msg.telegram  { background: linear-gradient(135deg, #2AABEE, #229ED9); }
    .mm-msg.whatsapp  { background: linear-gradient(135deg, #25D366, #128C7E); }
    .mm-msg.tenchat  { background:#000; }
    .mm-msg.max       { background: linear-gradient(135deg, #ff7a3d, #ff5a00); font-weight: 800; font-size: 20px;}

    /* Контакты */
    .mm-contact {
        display: flex; align-items: center; gap: 12px;
        padding: 12px 14px; border-radius: 14px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .08);
        text-decoration: none; color: #fff;
        margin-bottom: 10px; transition: background .3s;
    }
    .mm-contact:hover { background: rgba(255, 255, 255, .1); }
    .mm-contact-icon {
        width: 38px; height: 38px; flex: 0 0 38px;
        border-radius: 10px;
        background: rgba(201, 169, 97, .15); color: #c9a961;
        display: flex; align-items: center; justify-content: center; font-size: 14px;
    }
    .mm-contact-text { display: flex; flex-direction: column; min-width: 0; }
    .mm-contact-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, .45); }
    .mm-contact-value { font-size: 15px; font-weight: 600; word-break: break-word; }

    /* CTA */
    .mm-cta {
        margin-top: auto; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center; gap: 10px;
        padding: 16px; border-radius: 16px;
        background: linear-gradient(135deg, #c9a961, #b8944f);
        color: #0a2540; font-weight: 700; font-size: 15px;
        text-decoration: none;
        box-shadow: 0 12px 30px rgba(201, 169, 97, .35);
        transition: transform .3s;
    }
    .mm-cta:hover { transform: translateY(-2px); }

    /* Stagger-анимация пунктов при открытии */
    .mm-drawer.active .mm-item {
        animation: mmIn .5s cubic-bezier(.22, 1, .36, 1) both;
        animation-delay: calc(120ms + var(--i, 0) * 55ms);
    }
    @keyframes mmIn {
        from { opacity: 0; transform: translateX(26px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Бургер (гарантированно, даже если style.css старый) */
    .burger {
        display: none; flex-direction: column; justify-content: center; gap: 6px;
        width: 44px; height: 44px; background: #f8fafc;
        border: none; border-radius: 12px; cursor: pointer; padding: 10px; z-index: 2001;
    }
    .burger span { display: block; width: 100%; height: 2px; background: #0a2540; border-radius: 2px; transition: all .4s cubic-bezier(.4, 0, .2, 1); }
    .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    @media (max-width: 968px) {
        .burger { display: flex; }
        .nav-links { display: none !important; }
    }
    @media (max-width: 420px) {
        .mm-drawer { width: 100%; border-radius: 0; }
    }
    /* ===== Мессенджеры в секции контактов ===== */
.contact-messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.contact-messenger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .12);
}

.contact-messenger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
    color: #fff;
}

.contact-messenger i,
.contact-messenger .max-logo {
    font-size: 20px;
    line-height: 1;
}

.contact-messenger .max-logo {
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}

.contact-messenger.telegram {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
}
.contact-messenger.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

@media (max-width: 480px) {
    .contact-messenger {
        flex: 1;
        justify-content: center;
        padding: 12px 12px;
        font-size: 12px;
    }
    .contact-messengers { gap: 8px; }
}
/* ===== MAX: фирменный градиент бренда ===== */
.contact-messenger.max,
.messenger-icon.max,
.mm-msg.max {
    background: linear-gradient(135deg, #45c4f5 0%, #4c6df3 45%, #8b3ff2 100%);
}

/* hover — градиент «переворачивается» */
.contact-messenger.max:hover,
.messenger-icon.max:hover,
.mm-msg.max:hover {
    background: linear-gradient(315deg, #45c4f5 0%, #4c6df3 55%, #8b3ff2 100%);
}

/* ===== TOOLTIP ===== */
[data-tooltip] { cursor: help; }

/* пунктирный хинт для текста */
.hint { border-bottom: 1px dashed var(--accent); }

.tt {
    position: fixed;
    z-index: 4000;
    max-width: 260px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    border-radius: 12px;
    border-top: 2px solid var(--accent);
    box-shadow: 0 12px 35px rgba(10, 37, 64, .4);
    opacity: 0;
    transform: translateY(8px) scale(.94);
    transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}
.tt.show { opacity: 1; transform: translateY(0) scale(1); }

/* стрелочка */
.tt::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
}
.tt.pos-top::after    { top: 100%;    border-top-color: #1e3a5f; }
.tt.pos-bottom::after { bottom: 100%; border-bottom-color: #0a2540; }