/* style.css - основные стили сайта, включая sticky хедер */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Убираем overflow-x: hidden; он ломает sticky */
    overflow-y: auto;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #1e293b;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Хедер – sticky для всех устройств */
header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e9eef3;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #c41e3a;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.2;
}

.logo p {
    font-size: 0.75rem;
    color: #475569;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c41e3a;
    transition: 0.25s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 12px;
    margin: -12px;
}

section {
    padding: 90px 0;
    scroll-margin-top: 90px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 56px;
    color: #0f2b4d;
}

.hero {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    padding: 110px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f2b4d;
}

.hero-content .highlight {
    background: linear-gradient(120deg, #c41e3a, #a01730);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 680px;
    margin: 0 auto 32px;
    color: #334155;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #c41e3a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}

.btn-primary:hover {
    background: #a01730;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #c41e3a;
    color: #c41e3a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: #fff;
    border-radius: 32px;
    padding: 34px 24px;
    border: 1px solid #eef2f6;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #c41e3a;
    box-shadow: 0 25px 35px -12px rgba(196, 30, 58, 0.12);
}

.service-icon {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #0f2b4d;
}

.service-card p {
    color: #475569;
}

.advantages {
    background: #f9fafc;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.adv-item .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.adv-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0f2b4d;
}

.adv-item p {
    color: #475569;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.portfolio-item {
    background: #fff;
    border-radius: 28px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid #eef2f6;
    transition: all 0.25s;
    display: block;
    color: inherit;
    text-decoration: none;
}

.portfolio-item:hover {
    border-color: #c41e3a;
    box-shadow: 0 20px 28px -12px rgba(196, 30, 58, 0.12);
    transform: translateY(-4px);
}

.portfolio-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.portfolio-item h3 {
    color: #0f2b4d;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.portfolio-item p {
    color: #475569;
}

.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1.2;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    background: #fff;
    padding: 14px 24px;
    border-radius: 80px;
    border: 1px solid #eef2f6;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: #c41e3a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    font-size: 0.8rem;
    color: #475569;
}

.contact-details a {
    background: none;
    border: none;
    color: #0f2b4d;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-card {
    flex: 1;
    background: #fff;
    border-radius: 36px;
    padding: 24px;
    text-align: center;
    border: 1px solid #eef2f6;
}

.map-card h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    color: #0f2b4d;
}

.map-link {
    display: inline-block;
    margin-top: 16px;
    background: #c41e3a;
    padding: 10px 28px;
    border-radius: 60px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #eef2f6;
    font-size: 0.8rem;
    color: #64748b;
}

.breadcrumbs {
    background: #f8fafc;
    padding: 12px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #eef2f6;
}

.breadcrumbs a {
    color: #c41e3a;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #64748b;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #94a3b8;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #c41e3a;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 99;
    color: #fff;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ========== МОБИЛЬНОЕ МЕНЮ И ФИКСАЦИЯ ХЕДЕРА ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 28px 20px;
        gap: 24px;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        z-index: 1000;
    }
    .nav-links.show {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .header-inner {
        padding: 12px 0;
    }
    section {
        padding: 60px 0;
    }
    .hero {
        padding: 70px 0;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }
    .container {
        padding: 0 16px;
    }
    .page-content {
        padding: 1rem 0;
    }
    /* Усиливаем sticky для мобильных */
    header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        left: 0;
        width: 100%;
        background: #ffffff;
        backdrop-filter: none;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
}

/* ========== УНИФИКАЦИЯ ЭМОДЗИ (без фона и теней) ========== */
.service-icon,
.portfolio-icon,
.adv-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    line-height: 1;
    width: 1.6em;
    height: 1.6em;
    margin: 0 auto 0.75rem auto;
    transition: transform 0.2s ease;
}

/* Лёгкая анимация при наведении */
.service-card:hover .service-icon,
.portfolio-item:hover .portfolio-icon,
.adv-item:hover .icon {
    transform: scale(1.02);
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .service-icon,
    .portfolio-icon,
    .adv-item .icon {
        font-size: 2.5rem;
        width: 1.7em;
        height: 1.7em;
    }
}
/* Стили для кнопки "Заказать" на страницах пластиков */
.page-content a:last-of-type {
    display: inline-block;          /* Делаем ссылку блочной для применения стилей */
    background: #c41e3a;           /* Основной цвет вашего бренда */
    color: #ffffff !important;     /* Белый текст */
    padding: 12px 32px;            /* Увеличиваем область клика */
    border-radius: 60px;           /* Скругляем углы, как у кнопок на главной */
    text-decoration: none;         /* Убираем подчёркивание */
    font-weight: 600;              /* Устанавливаем жирность, как у .btn */
    margin-top: 25px;              /* Добавляем отступ сверху для воздуха */
    transition: all 0.3s ease;     /* Плавность анимации */
    border: none;
    cursor: pointer;
    text-align: center;
    clear: both;                   /* Для корректного отображения после плавающих элементов */
    width: auto;                   /* Автоматическая ширина по содержимому */
}

/* Эффект при наведении курсора */
.page-content a:last-of-type:hover {
    background: #9f1239;           /* Затемняем цвет кнопки при наведении */
    transform: translateY(-2px);   /* Лёгкий подъём вверх для эффекта нажатия */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2); /* Добавляем тень для объёма */
}