/* ======== PREMIUM RESET ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ======== PREMIUM COLOR PALETTE ======== */
:root {
    --primary: #2C5F8D;        /* Холодный синий (как стекло) */
    --secondary: #3D4A5C;      /* Графитовый (алюминий) */
    --accent: #5A8FC4;         /* Светло-синий (акцент) */
    
    /* ТЁПЛАЯ ПАЛИТРА (новое - для якутского тепла) */
    --warm-primary: #D97941;   /* Янтарный оранжевый (тепло, уют) */
    --warm-secondary: #E89A5D; /* Светло-янтарный */
    --warm-accent: #C96A38;    /* Терракотовый (акцент тепла) */
    
    --text-dark: #1a1a1a;      /* Основной текст */
    --text-light: #6c757d;     /* Вторичный текст */
    --bg-light: #F8F9FA;       /* Светлый фон */
    --white: #ffffff;
    --border: #E9ECEF;
}

/* ======== КОНТЕЙНЕР (ПРЕМИУМ) ======== */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ======== ПРЕМИУМ КНОПКИ ======== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(44, 95, 141, 0.2);
}

.btn--primary:hover {
    background: #234a6f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 141, 0.3);
}

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

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

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

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

.btn--white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn--white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

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

/* Тёплые кнопки - акцент на тепло */
.btn--warm {
    background: var(--warm-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(217, 121, 65, 0.25);
}

.btn--warm:hover {
    background: var(--warm-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 121, 65, 0.35);
}

/* ======== TOPLINE (ПРЕМИУМ) ======== */
.topline {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 14px;
}

.topline__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topline__location {
    color: var(--text-light);
    font-weight: 500;
}

.topline__contacts {
    display: flex;
    gap: 32px;
    align-items: center;
}

.topline__phone {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.topline__phone:hover {
    color: var(--primary); /* Структурный hover → синий */
}

.topline__schedule {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .topline {
        display: none;
    }
}

/* ======== HEADER (ПРЕМИУМ) ======== */
.header {
    background: var(--white);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 20px 0;
}

.header__logo-img {
    height: 56px;
    width: auto;
    background: transparent;
}

.header__nav {
    flex: 1;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav__item {
    position: relative;
}

.nav__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

.nav__link:hover {
    color: var(--primary);
}

.nav__item--mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ======== MEGA MENU (ПРЕМИУМ) ======== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: -60px;
    background: var(--white);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 40px;
    min-width: 520px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border-top: 3px solid var(--primary);
}

.mega-menu__inner {
    display: flex;
    gap: 48px;
}

.mega-menu__col {
    flex: 1;
}

.mega-menu__title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 16px;
    margin-top: 28px;
    letter-spacing: 1px;
}

.mega-menu__title:first-child {
    margin-top: 0;
}

.mega-menu__list li {
    margin-bottom: 10px;
}

.mega-menu__list a {
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s;
    display: inline-block;
}

.mega-menu__list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.mega-menu__cta {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid var(--bg-light);
    display: flex;
    gap: 12px;
    flex-direction: column;
}

/* ======== HEADER CTA ======== */
.header__cta {
    display: flex;
    gap: 12px;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 1024px) {
    .header__nav,
    .header__cta {
        display: none;
    }
    
    .header__burger {
        display: flex;
    }
}

/* ======== HERO (ПРАВИЛЬНЫЙ: ТЕКСТ СЛЕВА + ДВЕ КАРТОЧКИ СПРАВА + ФОНОВАЯ ПОДЛОЖКА) ======== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(to right, 
            rgba(255, 255, 255, 0.65) 0%, 
            rgba(255, 255, 255, 0.75) 40%, 
            rgba(248, 249, 250, 0.88) 70%,
            rgba(248, 249, 250, 0.95) 100%
        ),
        url('../maxprof/images/hero-premium.jpg') right center/cover;
    padding: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(44, 95, 141, 0.03) 0%, 
        rgba(90, 143, 196, 0.05) 50%,
        rgba(44, 95, 141, 0.08) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 27px 60px;
}

.hero__left {
    max-width: 700px;
}

.hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary); /* Структурный элемент → синий */
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 48px;
    border: 1px solid rgba(44, 95, 141, 0.2);
    box-shadow: 0 2px 8px rgba(44, 95, 141, 0.15);
}

.hero__title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 28px;
    color: var(--text-dark);
    letter-spacing: -1.2px;
}

.hero__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
    border-top: 2px solid rgba(44, 95, 141, 0.25);
}

.hero__production {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
}

.hero__partners {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dark);
    flex-wrap: wrap;
    font-weight: 500;
}

.hero__partners-label {
    font-weight: 500;
}

.hero__partners-list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__partner {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    letter-spacing: 0.3px;
    position: relative;
}

.hero__partner:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -8px;
    color: var(--primary);
    font-weight: 400;
    opacity: 0.4;
}

.hero__right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.hero__card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    cursor: pointer;
}

.hero__card:hover {
    transform: translateX(-12px) scale(1.02);
    box-shadow: 0 24px 72px rgba(44, 95, 141, 0.18);
    border-color: var(--primary);
}

.hero__card-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    height: 100%;
}

.hero__card-image {
    width: 200px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__card-content {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__card-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero__card-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero__card-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.hero__card-cta::after {
    content: '→';
    font-size: 20px;
    transition: transform 0.3s;
}

.hero__card:hover .hero__card-cta::after {
    transform: translateX(8px);
}

/* ======== HERO RESPONSIVE ======== */
@media (max-width: 1200px) {
    .hero__content {
        padding: 60px 40px;
        gap: 40px;
    }
    
    .hero__title {
        font-size: 48px;
    }
    
    .hero__card-inner {
        grid-template-columns: 160px 1fr;
    }
    
    .hero__card-image {
        width: 160px;
    }
    
    .hero__card-content {
        padding: 32px 36px;
    }
}

@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 60px 32px;
    }
    
    .hero__left {
        max-width: 100%;
    }
    
    .hero__title {
        font-size: 44px;
    }
    
    .hero__label {
        font-size: 10px;
        padding: 8px 16px;
        margin-bottom: 32px;
    }
    
    .hero__right {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        background-position: center center;
    }
    
    .hero__content {
        padding: 60px 24px;
        gap: 40px;
    }
    
    .hero__title {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 24px;
    }
    
    .hero__label {
        font-size: 9px;
        letter-spacing: 1.5px;
        padding: 8px 14px;
        margin-bottom: 24px;
    }
    
    .hero__info {
        padding: 16px 0;
    }
    
    .hero__production,
    .hero__partners {
        font-size: 14px;
    }
    
    .hero__partner {
        font-size: 14px;
    }
    
    .hero__right {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hero__card-inner {
        grid-template-columns: 1fr;
        grid-template-rows: 180px auto;
    }
    
    .hero__card-image {
        width: 100%;
        height: 180px;
    }
    
    .hero__card-content {
        padding: 28px 24px;
    }
    
    .hero__card-label {
        font-size: 11px;
    }
    
    .hero__card-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .hero__card-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero__card-cta {
        font-size: 13px;
    }
    
    .hero__card:hover {
        transform: translateY(-4px) scale(1);
    }
}

@media (max-width: 480px) {
    .hero__content {
        padding: 48px 20px;
    }
    
    .hero__title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    
    .hero__label {
        font-size: 8px;
        letter-spacing: 1.2px;
        padding: 6px 12px;
        margin-bottom: 20px;
    }
    
    .hero__production,
    .hero__partners {
        font-size: 13px;
    }
    
    .hero__partner {
        font-size: 13px;
    }
    
    .hero__card-content {
        padding: 24px 20px;
    }
    
    .hero__card-title {
        font-size: 20px;
    }
    
    .hero__card-desc {
        font-size: 13px;
    }
}

/* ======== QUICK NAV (JTBD ПРЕМИУМ-КАРТОЧКИ) ======== */
.quick-nav {
    padding: 90px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 44px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 56px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.quick-nav__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.quick-nav__card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.quick-nav__card:hover {
    border-color: rgba(44, 95, 141, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44, 95, 141, 0.12);
}

.quick-nav__image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.quick-nav__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-nav__card:hover .quick-nav__image {
    transform: scale(1.05);
}

.quick-nav__image-wrap .quick-nav__label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    background: rgba(44, 95, 141, 0.92);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.quick-nav__content {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quick-nav__content .quick-nav__label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.quick-nav__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.quick-nav__desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.quick-nav__features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.quick-nav__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dark);
}

.quick-nav__feature::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(44, 95, 141, 0.08);
    border-radius: 50%;
    color: var(--primary);
    font-weight: 700;
    font-size: 10px;
    flex-shrink: 0;
}

/* Тёплые карточки - янтарные галочки */
.quick-nav__card--warm .quick-nav__feature::before {
    background: rgba(217, 121, 65, 0.12);
    color: var(--warm-primary);
}

.quick-nav__card--warm .quick-nav__price {
    color: var(--warm-accent);
}

.quick-nav__price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.quick-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: 6px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-nav__cta::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-nav__card:hover .quick-nav__cta {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 95, 141, 0.25);
}

.quick-nav__card:hover .quick-nav__cta::after {
    transform: translateX(4px);
}

.quick-nav__card--b2b {
    background: linear-gradient(135deg, #fafbfc 0%, var(--white) 100%);
}

/* Warm Cards - для тёплого остекления */
.quick-nav__card--warm .quick-nav__image-wrap .quick-nav__label {
    background: rgba(217, 121, 65, 0.92);
    box-shadow: 0 2px 8px rgba(217, 121, 65, 0.2);
}

.quick-nav__card--warm:hover {
    border-color: rgba(217, 121, 65, 0.3);
}

.quick-nav__card--warm .quick-nav__cta {
    border-color: var(--warm-primary);
    color: var(--warm-primary);
}

.quick-nav__card--warm:hover .quick-nav__cta {
    background: var(--warm-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(217, 121, 65, 0.25);
}

@media (max-width: 1024px) {
    .quick-nav__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-nav {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .quick-nav__grid {
        grid-template-columns: 1fr;
    }
}

/* ======== MOBILE BOTTOM NAV (ПРЕМИУМ) ======== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 0;
}

.mobile-nav__inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
}

.mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 8px;
    border-radius: 12px;
    position: relative;
    flex: 1;
    max-width: 80px;
}

.mobile-nav__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--warm-primary), var(--warm-secondary));
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav__item:active,
.mobile-nav__item.active {
    color: var(--warm-primary);
    background: rgba(217, 121, 65, 0.08);
}

.mobile-nav__item:active::before,
.mobile-nav__item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.mobile-nav__item:active .mobile-nav__icon,
.mobile-nav__item.active .mobile-nav__icon {
    transform: scale(1.1);
}

.mobile-nav__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-nav__item--primary .mobile-nav__icon {
    background: linear-gradient(135deg, var(--warm-primary), var(--warm-secondary));
    border-radius: 12px;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    box-shadow: 0 8px 24px rgba(217, 121, 65, 0.25);
}

.mobile-nav__item--primary .mobile-nav__icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--white);
}

.mobile-nav__item--primary span {
    color: var(--warm-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }
    
    body {
        padding-bottom: 90px;
    }
}

@media (max-width: 480px) {
    .mobile-nav__item {
        font-size: 10px;
        gap: 4px;
        padding: 8px 4px;
    }
    
    .mobile-nav__icon {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav__icon svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-nav__item--primary .mobile-nav__icon {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }
    
    .mobile-nav__item--primary .mobile-nav__icon svg {
        width: 24px;
        height: 24px;
    }
}
