﻿:root {
    --orange: #F06449;
    --color-primary: #F06449;
    --orange-light: #f8902f;
    --orange-dark: #E65100;
    --dark: #0f0f1a;
    --dark-soft: #1a1a2e;
    --dark-card: #16162a;
    --gray: #888;
    --light: #f0f0f5;
    --white: #ffffff;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    img, video, svg, iframe, canvas { max-width: 100%; height: auto; display: block; }
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); }


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}



/* ===== ЗАГЛУШКИ ДЛЯ КАРТОЧЕК ===== */
.material-card__img {
    background: #2a2a3a; /* Серый фон вместо картинки */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Декоративная иконка горы/камня */
.material-card__img::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L2 22h20L12 2zm0 3.5L18.5 20H5.5L12 5.5z'/%3E%3C/svg%3E");
    background-size: 60px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Текст-заглушка (показывается только если картинка не загрузилась или её нет) */
.material-card__img::after {
    content: attr(alt);
    position: absolute;
    z-index: 1;
    background: rgba(0,0,0,0.4);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Исключение для реальных картинок (если src рабочий) */
.material-card__img[src] {
    background: #f4f4f4; /* был светлый фон для реальных фото */
}

.material-card__img[src]::before,
.material-card__img[src]::after {
    display: none;
}

/* Адаптивная высота */
@media (max-width: 640px) {
    .material-card__img {
        height: 200px;
        font-size: 16px;
    }
    .material-card__img::after {
        font-size: 14px;
        padding: 6px 12px;
    }
}




/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__icon {
    width: 120px;        /* Размер иконки */
    height: 70px;
    display: block;
    transition: var(--transition);
}

.logo__icon:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Для футера, если фон светлый или нужен другой цвет */
.footer .logo__text {
    color: var(--orange); 
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--orange);
}

.nav__link:hover::after {
    width: 100%;
}

.header__phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.phone:hover {
    color: var(--orange);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Анимация в крестик */
.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto; /* Скролл внутри меню */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav__link {
    font-size: 20px;
    font-weight: 600;
    color: var(--light);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav__phones {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav__phones a {
    font-size: 18px;
    font-weight: 600;
    color: var(--orange);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
    /* box-shadow: 0 4px 24px rgba(245, 124, 0, 0.3); */
}

.btn--primary:hover {
    filter: brightness(0.9);
    /* box-shadow: 0 8px 32px rgba(245, 124, 0, 0.4); */
    /* transform: translateY(-2px); */
}

.btn__desktop-label {
    display: none;
}

@media (min-width: 641px) {
    .btn__mobile-label {
        display: none;
    }

    .btn__desktop-label {
        display: inline;
    }

    .btn--primary:has(.btn__desktop-label) {
        padding-left: 28px;
        padding-right: 28px;
        min-width: 238px;
    }
}




/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero__video.loaded {
    opacity: 1;
}

.hero__video[poster] {
    background: url('img/hero-fallback.webp') center/cover no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(15, 15, 26, 0.45) 0%, 
        rgba(15, 15, 26, 0.7) 50%, 
        rgba(15, 15, 26, 0.92) 100%);
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 100px 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

/* Заголовок */
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--white);
    letter-spacing: -0.5px;
    color: rgba(255, 255, 255, 0.85);
}

.hero__title-accent {
    display: block;
    color: var(--orange);
    white-space: nowrap;
}

/* Описание */
.hero__desc-br {
    display: none;
}

.hero__desc {
    font-size: clamp(14px, 1.3vw, 17px);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Кнопки */
.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    justify-content: center;
}

.hero__actions .btn {
    padding: 14px 50px;
    font-size: 15px;
    justify-content: center;
}

@media (min-width: 641px) {
    .hero__actions .btn--primary:has(.btn__desktop-label) {
        padding-left: 28px;
        padding-right: 28px;
        min-width: 238px;
    }

    .hero__actions .btn--telegram {
        min-width: 238px;
        padding-left: 28px;
        padding-right: 28px;
    }
}

/* Фичи */
.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    justify-content: center;
}

.hero__features span:not(:last-child)::after {
    content: '·';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    animation: bounceDown 2s ease-in-out infinite;
    pointer-events: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-hint svg {
    width: 32px;
    height: 32px;
    display: block;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 1; }
}

/* Скрываем на мобильных, если мешает */
@media (max-width: 640px) {
    .scroll-hint {
        bottom: 20px;
    }
    
    .scroll-hint svg {
        width: 24px;
        height: 24px;
    }
}


/* Планшет */
@media (max-width: 900px) {
    .hero {
        height: 65vh;
        min-height: 450px;
    }
    
    .hero__content {
        max-width: 100%;
    }
    
    .hero__title {
        font-size: clamp(32px, 5vw, 44px);
    }
}

/* Мобильный */
@media (max-width: 640px) {
    .hero {
        height: 100vh;
        min-height: 100dvh;
    }
    
    .hero__inner {
        padding: 100px 20px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100dvh;
    }
    
    .hero__content {
        width: 100%;
        
    }
    
    .hero__title {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 14px;
    }
    
    .hero__title br {
        display: none;
    }
    
    .hero__title-accent {
        display: block;
        white-space: normal;
    }

    .hero__desc-br {
        display: block;
    }

    .hero__desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .hero__actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }
    
    .hero__actions .btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .hero__features {
        font-size: 12px;
    }
}





/* ===== КНОПКА TELEGRAM (общая) ===== */
.btn--telegram {
    background: #24A1DE;
    color: #ffffff !important;
    border: none;
    /* box-shadow: 0 4px 24px rgba(36, 161, 222, 0.3); */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    fill: #ffffff;
}

.btn--telegram svg {
    flex-shrink: 0;
}

.btn--telegram:hover {
    background: #1c8abf;
    color: #ffffff !important;
    /* box-shadow: 0 8px 32px rgba(36, 161, 222, 0.4); */
    /* transform: translateY(-2px); */
}






/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(245, 124, 0, 0.12);
    border-radius: 60px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}

section {
    padding: 90px 0;
}







/* ===== ABOUT / STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(245, 124, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-card__number {
    font-size: 48px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

.about__feature {
    height: 350px;
    padding: 28px;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.09), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about__feature:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.about__content {
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.about__feature h3 {
    font-size: clamp(28px, 2.2vw, 34px);
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.16;
    color: var(--white);
}

.about__feature p {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.56);
    line-height: 1.52;
    max-width: 300px;
}

.about__kicker {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.about__number {
    display: inline-block;
    margin-right: 12px;
    font-size: clamp(86px, 7.5vw, 118px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.about__unit {
    font-size: clamp(42px, 3.5vw, 58px);
    font-weight: 700;
    line-height: 1;
}

.about__icon {
    position: relative;
    z-index: 3;
    align-self: flex-end;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.about__icon svg {
    width: 24px;
    height: 24px;
}

.about__metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 14px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

/* ===== STAGES ===== */
.stages {
    background: var(--dark-soft);
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-top: 12px;
    font-weight: 400;
}

.stages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 124, 0, 0.2), transparent);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    padding: 20px 0;
}

/* Горизонтальная соединительная линия */
.timeline::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(12.5% + 40px);
    right: calc(12.5% + 40px);
    height: 2px;
    background: linear-gradient(90deg, 
        var(--orange) 0%, 
        rgba(245, 124, 0, 0.6) 50%, 
        rgba(245, 124, 0, 0.2) 100%);
    z-index: 0;
}

.timeline__item {
    position: relative;
    text-align: center;
    padding-top: 92px;
}

/* Номер этапа */
.timeline__number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--dark);
    border: 2px solid var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--orange);
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 8px rgba(245, 124, 0, 0.08);
}

.timeline__item:hover .timeline__number {
    background: var(--orange);
    color: var(--dark);
    box-shadow: 0 0 0 12px rgba(245, 124, 0, 0.15);
}

.timeline__content {
    padding: 24px 20px 0;
}

.timeline__content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.timeline__content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

/* Адаптивный планшет */
@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
    }
    
    .timeline::before {
        display: none;
    }
}


/* Адаптивный мобильный */
@media (max-width: 640px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .timeline__item {
        display: flex;
        align-items: flex-start;
        text-align: left;
        padding-top: 0;
        padding-left: 88px;
        min-height: 68px;
        position: relative;
    }
    
    .timeline__number {
        position: absolute;
        left: 2px;
        top: 0;
        transform: none;
        width: 64px;
        height: 64px;
        font-size: 20px;
        flex-shrink: 0;
    }
    
    /* Вертикальная соединительная линия */
    .timeline::before {
        display: block;
        top: 0;
        bottom: 0;
        left: 33px;
        right: auto;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, 
            var(--orange) 0%, 
            rgba(245, 124, 0, 0.4) 50%, 
            rgba(245, 124, 0, 0.1) 100%);
    }
    
    .timeline__content {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .timeline__content h3 {
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .timeline__content p {
        max-width: 100%;
        margin: 0;
        line-height: 1.5;
    }
}





/* ===== MATERIALS ===== */
.materials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.material-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: var(--white);
    overflow: hidden;
    height: 100%;
    min-height: 430px;
    position: relative;
    isolation: isolate;
}

.material-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 26, 0.08) 0%,
        rgba(15, 15, 26, 0.28) 38%,
        rgba(15, 15, 26, 0.86) 100%
    );
    pointer-events: none;
}

.material-card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(245, 124, 0, 0.3);
}

.material-card__img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    background: #2a2a3a;
    flex-shrink: 1;
    transition: transform 0.35s ease;
}

.material-card:hover .material-card__img {
    transform: scale(1.04);
}

.material-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: auto 0 0;
    padding: 82px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 26, 0) 0%,
        rgba(15, 15, 26, 0.22) 38%,
        rgba(15, 15, 26, 0.52) 100%
    );
    border-radius: 0;
}

.material-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.material-card__title--with-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.material-card__badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.material-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(136, 151, 168, 0.28);
    border: 1px solid rgba(186, 201, 216, 0.26);
    color: #dfe8ef;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.material-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    margin-bottom: 16px;
}

.material-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.material-card__actions--single {
    grid-template-columns: 1fr;
}

.material-card__btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
}

.material-card__btn:hover {
    background: var(--orange);
    color: #ffffff;
    border-color: var(--orange);
    filter: brightness(0.9);
}

.material-card__btn--secondary {
    background: rgba(15, 15, 26, 0.42);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--light);
    gap: 8px;
    backdrop-filter: blur(8px);
}

.material-card__btn--secondary::after {
    content: '→';
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.material-card__btn--secondary:hover {
    background: rgba(245, 124, 0, 0.12);
    color: var(--orange);
    border-color: rgba(245, 124, 0, 0.5);
}

.material-card__btn--secondary:hover::after {
    transform: translateX(3px);
}



/* Планшет */
@media (max-width: 1024px) {
    .materials__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Мобильный */
@media (max-width: 640px) {
    .materials__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .material-card__img {
        height: 200px;
    }

    .material-card__btn {
        min-height: 44px;
        padding: 11px 10px;
        font-size: 13px;
    }
}

.material-card__btn--secondary::after {
    content: '→';
}

.material-card__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1024px) {
    .material-card {
        min-height: 400px;
    }

    .material-card__content {
        margin: auto 0 0;
        padding: 76px 18px 18px;
    }
}

@media (max-width: 640px) {
    .material-card {
        min-height: 360px;
    }

    .material-card__content {
        margin: auto 0 0;
        padding: 68px 16px 16px;
    }

    .material-card__img {
        height: 100%;
    }
}

.material-card__btn--secondary::after {
    content: '\2192';
}

.material-card__actions {
    position: relative;
    z-index: 3;
}

.material-card__btn--secondary {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

.material-card__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 640px) {
    .material-card__btn--secondary {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }
}

/* ===== SPECS ===== */
.specs {
    background: var(--dark-soft);
    position: relative;
    overflow: hidden;
}

.specs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 124, 0, 0.2), transparent);
}

.specs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto 40px;
}

.spec-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
}

.spec-card:hover {
    border-color: rgba(245, 124, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.spec-card__value {
    font-size: 28px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1.2;
    margin-bottom: 8px;
}

.spec-card__label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.specs__note {
    text-align: center;
    font-size: 15px;
    color: var(--gray);
}

.specs__note strong {
    color: var(--white);
    font-weight: 600;
}

.specs__site-link {
    color: var(--orange);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.specs__site-link:hover {
    color: var(--orange-light);
    text-decoration: underline;
}

/* Планшет */
@media (max-width: 1024px) {
    .specs__grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
}

/* Мобильный */
@media (max-width: 640px) {
    .specs__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .spec-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .spec-card__value {
        font-size: 24px;
    }
    
    .specs__note {
        font-size: 14px;
    }
}







/* ===== GALLERY ===== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery__item:hover {
    transform: scale(1.02);
    border-color: rgba(245, 124, 0, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

/* Планшет */
@media (max-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Мобильный */
@media (max-width: 640px) {
    .gallery {
        padding-bottom: 0;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gallery__item {
        aspect-ratio: 16 / 9;
    }
}






/* ===== FAQ ===== */
.faq {
    background: var(--dark-soft);
}

.faq__list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq__item {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq__item:hover,
.faq__item[open],
.faq__item.is-opening,
.faq__item.is-closing {
    border-color: rgba(245, 124, 0, 0.28);
}

.faq__question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(245, 124, 0, 0.12);
    color: var(--orange);
    font-size: 22px;
    line-height: 1;
    transition: var(--transition);
}

.faq__item[open] .faq__question::after {
    content: '−';
    background: var(--orange);
    color: var(--dark);
}

.faq__answer {
    height: 0;
    overflow: hidden;
    padding: 0 26px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
    opacity: 0;
    transition:
        height 0.34s cubic-bezier(0.4, 0, 0.2, 1),
        padding-top 0.32s ease,
        padding-bottom 0.32s ease,
        opacity 0.24s ease;
}

.faq__item[open]:not(.is-closing) .faq__answer {
    padding-top: 8px;
    padding-bottom: 30px;
    opacity: 1;
}

.faq__item.is-closing .faq__answer {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.faq__answer p {
    margin: 0;
}

.faq__answer p + p {
    margin-top: 10px;
}




/* ===== MATERIAL PAGE ===== */
.material-page {
    padding-top: 72px;
}

.material-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.material-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 124, 0, 0.2), transparent);
}

.material-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 56px;
    align-items: center;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumbs a {
    color: var(--orange);
    font-weight: 600;
}

.material-hero__title {
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 22px;
}

.material-hero__lead {
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 34px;
}

.material-hero__note {
    max-width: 720px;
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
}

.material-hero__note p + p {
    margin-top: 12px;
}

.material-hero__actions {
    justify-content: flex-start;
}

.material-hero__media {
    display: block;
    width: 100%;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    background: var(--dark-card);
    color: inherit;
    cursor: pointer;
}

.material-hero__media--mobile {
    display: none;
}

.material-hero__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.material-section {
    max-width: 940px;
}

.material-copy {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 34px;
    color: var(--gray);
    font-size: 17px;
    line-height: 1.8;
}

.material-copy p + p {
    margin-top: 18px;
}

.material-fractions {
    padding: 72px 0 38px;
}

.material-hero-fractions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-self: center;
}

.material-hero-fractions--mobile {
    display: none;
}

.material-fractions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.material-fraction-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark-card);
    color: inherit;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.material-fraction-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
}

.material-fraction-card__img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.material-fraction-card:hover .material-fraction-card__img {
    transform: scale(1.04);
}

.material-fraction-card__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    padding: 76px 18px 18px;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 26, 0) 0%,
        rgba(15, 15, 26, 0.46) 42%,
        rgba(15, 15, 26, 0.86) 100%
    );
}

.material-fraction-card__caption strong {
    display: block;
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.1;
    color: var(--white);
}

.material-fraction-card__caption span {
    display: block;
    max-width: 520px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.76);
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.application-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 26px;
    min-height: 210px;
    transition: var(--transition);
}

.material-page--compact .application-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.material-page--compact .application-card {
    min-height: auto;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.material-page--compact .application-card__icon {
    display: none;
}

.material-page--compact .application-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.material-page--compact .application-card p {
    font-size: 13px;
    line-height: 1.45;
}

.material-related {
    background: var(--dark);
    position: relative;
}

.material-related::before,
.cta::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 124, 0, 0.2), transparent);
}

.material-related__grid .material-card {
    min-height: 390px;
}

.application-card:hover {
    border-color: rgba(245, 124, 0, 0.25);
    transform: translateY(-4px);
}

.application-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(245, 124, 0, 0.12);
    color: var(--orange);
    margin-bottom: 18px;
}

.application-card__icon svg {
    width: 22px;
    height: 22px;
}

.application-card h3 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
}

.application-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.material-specs {
    padding-top: 40px;
    padding-bottom: 110px;
}

.material-faq {
    background: var(--dark-soft);
}

.material-specs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.material-spec {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
}

.material-spec__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.material-spec__value {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
}

.material-gallery__button {
    display: block;
    padding: 0;
    background: none;
    color: inherit;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 15, 26, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox__img {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.image-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.image-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.material-page--compact section {
    padding: 56px 0;
}

.material-page--compact .material-applications {
    padding-bottom: 18px;
}

.material-page--compact .material-specs {
    padding-top: 18px;
    padding-bottom: 128px;
}

.material-page--compact .material-hero {
    min-height: auto;
    padding-top: 48px;
}

.material-page--compact .material-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    gap: 34px;
}

.material-page--compact .breadcrumbs {
    margin-bottom: 18px;
}

.material-page--compact .material-hero__title {
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 16px;
}

.material-page--compact .material-hero__lead {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.material-page--compact .material-hero__media {
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
}

.material-page--compact .material-hero__img {
    aspect-ratio: 4 / 3;
}

.material-page--compact .section-header {
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .material-hero__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .material-hero {
        min-height: auto;
    }

    .application-grid,
    .material-specs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .material-fractions {
        padding: 58px 0 30px;
    }

    .material-hero-fractions {
        max-width: 520px;
    }

    .material-page--compact .material-hero__grid {
        grid-template-columns: 1fr;
    }

    .material-page--compact .application-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .material-page {
        padding-top: 72px;
    }

    .material-hero__grid {
        gap: 28px;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .material-hero__actions {
        flex-direction: column;
    }

    .material-hero__actions .btn {
        width: 100%;
    }

    .material-copy {
        padding: 24px;
        font-size: 15px;
    }

    .application-grid,
    .material-specs__grid {
        grid-template-columns: 1fr;
    }

    .material-fractions {
        padding: 46px 0 22px;
    }

    .material-hero-fractions--desktop {
        display: none;
    }

    .material-hero-fractions--mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 0 0 18px;
    }

    .material-fractions__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .material-fraction-card__caption {
        padding: 58px 14px 14px;
    }

    .material-fraction-card__caption strong {
        font-size: 18px;
    }

    .material-fraction-card__caption span {
        font-size: 13px;
    }

    .material-specs {
        padding-top: 32px;
        padding-bottom: 96px;
    }

    .material-page--compact .material-hero__media--desktop {
        display: none;
    }

    .material-page--compact .material-hero__media--mobile {
        display: block;
        margin: 0 0 18px;
        box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
    }

    .material-page--compact .material-hero__img {
        aspect-ratio: 16 / 10;
    }

    .material-page--compact .application-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .application-card {
        min-height: auto;
    }

    .material-page--compact .application-card {
        padding: 14px;
        border-radius: 12px;
    }

    .material-page--compact .application-card h3 {
        font-size: 15px;
    }

    .material-page--compact .application-card p {
        font-size: 12px;
    }

    .material-page--compact section {
        padding: 42px 0;
    }

    .material-page--compact .material-applications {
        padding-bottom: 14px;
    }

    .material-page--compact .material-specs {
        padding-top: 14px;
        padding-bottom: 96px;
    }

    .material-page--compact .material-hero {
        padding-top: 28px;
    }

    .material-page--compact .material-hero__lead,
    .material-hero__note {
        font-size: 15px;
    }

    .material-related__grid .material-card {
        min-height: 360px;
    }
}




/* ===== CTA ===== */
.cta {
    padding-top: 0;
    position: relative;
}

.cta__inner {
    text-align: center;
    padding: 60px 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.cta__inner::before {
    display: none;
}

.cta__inner .section-tag {
    margin-bottom: 20px;
}

.cta__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.cta__desc {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* Мобильный */
@media (max-width: 640px) {
    .cta {
        padding: 60px 0 60px;
    }
    
    .cta__inner {
        padding: 48px 24px;
    }
    
    .cta__actions {
        flex-direction: column;
    }
    
    .cta__actions .btn {
        width: 100%;
    }
}





/* ===== FOOTER ===== */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--dark-soft);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer__logo .logo__main {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--orange);
}

.footer__copy {
    font-size: 13px;
    color: var(--gray);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer__nav a {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
}

.footer__nav a:hover {
    color: var(--orange);
}


/* Планшет */
@media (max-width: 1024px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer__brand {
        grid-column: 1 / -1;
    }
}

/* Мобильный */
@media (max-width: 640px) {
    .footer {
        padding: 40px 0;
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer__brand {
        text-align: center;
        align-items: center;
    }
    
    .footer__nav {
        text-align: center;
        align-items: center;
    }
}




/* ===== ANIMATIONS ===== */
[data-anim] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-anim="fade-left"] {
    transform: translateX(-40px);
}

[data-anim="fade-right"] {
    transform: translateX(40px);
}


[data-anim].visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav { display: none; }
    .header__phones { display: none; }
    .burger { display: flex; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .about__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .about__feature {
        height: 310px;
        padding: 26px 22px;
    }
    .about__feature h3 {
        font-size: 25px;
    }
    .about__feature p {
        font-size: 15px;
    }
    .materials__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__contacts { text-align: center; }
}

@media (max-width: 640px) {
    section { padding: 80px 0; }
    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 24px 16px; }
    .stat-card__number { font-size: 36px; }
    .about__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .about__feature {
        height: 280px;
        padding: 24px 20px;
    }
    .about__feature h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .about__feature p {
        font-size: 15px;
    }
    .about__feature p {
        max-width: 280px;
    }
    .about__icon {
        width: 52px;
        height: 52px;
    }
    .about__metric {
        min-height: 32px;
        margin-bottom: 12px;
        padding: 0 14px;
    }
    .materials__grid { grid-template-columns: 1fr; }
    .timeline {
        flex-direction: column;
        gap: 32px;
    }

    .timeline::before {
        top: 0;
        bottom: 0;
        left: 36px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .timeline__item {
        padding-left: 88px;
        padding-top: 0;
    }

    .timeline__number {
        top: 0;
    }

    .gallery__grid { grid-template-columns: 1fr; }
    .gallery__item--wide { grid-column: span 1; aspect-ratio: 16/9; }
    .cta__inner { padding: 48px 24px; }
    .cta__actions { flex-direction: column; }
    .cta__actions .btn { width: 100%; }
}






/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    z-index: 1;
    background: var(--dark-card);
    border: 1px solid rgba(245, 124, 0, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.4s ease;
}

.modal__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.modal__phone-btn {
    width: 100%;
}

/* Блокировка скролла при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.modal__title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
}

.modal__desc {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.5;
}

.modal__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}


.modal__phone:hover {
    color: var(--orange);
}

.modal__telegram {
    width: 100%;
    background: #24A1DE !important;
    color: #ffffff !important;
}

.modal__telegram:hover {
    background: #1c8abf !important;
}

/* ===== HOVER BORDERS OUTSIDE FAQ ===== */
body .gallery__item:hover,
body .material-card:hover,
body .stat-card:hover,
body .spec-card:hover,
body .application-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

body .about__feature:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 420px) {
    body .about__feature {
        height: 270px;
        padding: 22px 18px;
    }

    body .about__feature h3 {
        font-size: 22px;
    }

    body .about__number {
        font-size: 72px;
    }

    body .about__unit {
        font-size: 34px;
    }

    body .about__metric {
        min-height: 30px;
        padding: 0 13px;
        font-size: 16px;
    }
}

body .faq__item:hover,
body .faq__item[open] {
    border-color: rgba(245, 124, 0, 0.28);
}

@media (min-width: 641px) {
    body .cta__actions .btn {
        min-width: 270px;
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (max-width: 640px) {
    body .gallery {
        padding-bottom: 52px;
    }

    body .gallery + .faq {
        margin-top: 28px;
    }
}
