/* ================== INNER PAGE ================== */
.inner-page {
    background: #F5F3EF;
    color: #333;
}
.page-header .header__list a {
    color: #7A7570 !important;
    opacity: 1 !important;
}

.page-header .header__list a:hover {
    color: #1C1C1C !important;
    opacity: 1 !important;
}

.page-header .logo__text {
    color: #1a1a1a !important;
}
.page-header .header__lang a {
    color: #7A7570 !important;
    opacity: 1 !important;
}
/* ── PRODUCT HERO ── */

.product-hero {
    background: #E8E3DB;
    padding: 64px 0 52px;
    text-align: center;
    border-bottom: 1px solid #DDD8CF;
}

.product-hero__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3587D9;
    margin-bottom: 14px;
}

.product-hero__title {
    font-size: 38px;
    font-weight: 700;
    color: #1C1C1C;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.product-hero__subtitle {
    font-size: 15px;
    color: #7A7570;
    margin-top: 10px;
    font-weight: 400;
}

/* ── PRODUCT SECTION ── */

.product-section {
    padding: 56px 0 100px;
    background: #F5F3EF;
    min-height: 60vh;
}

.product-section .container {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── TEXT CARD (применение) ── */

.text-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    border: 1px solid #E8E3DB;
}

.text-card__label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3587D9;
    margin-bottom: 14px;
}

.text-card__body {
    font-size: 15px;
    line-height: 1.8;
    color: #3A3530;
    font-weight: 400;
}

/* ── TABLE CARD ── */

.table-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    border: 1px solid #E8E3DB;
}

.table-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.table-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1C1C1C;
}

.table-note {
    font-size: 13px;
    color: #B0AAA3;
}

/* ── TABLE ── */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #E8E3DB;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 360px;
    background: #fff;
}

.price-table thead tr {
    background: #3587D9;
}

.price-table th {
    padding: 13px 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
}

.price-table th:first-child {
    text-align: left;
}

.price-table td {
    padding: 12px 20px;
    font-size: 14px;
    color: #3A3530;
    border-bottom: 1px solid #F0EDE8;
    text-align: center;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:not(.group-row):hover {
    background: #F7F4F0;
    transition: background 0.15s ease;
}

.price-table .dimensions {
    font-weight: 600;
    color: #1C1C1C;
    text-align: left;
}

.price-table .price {
    font-weight: 700;
    color: #3587D9;
}

.price-table .price-ask {
    font-weight: 500;
    color: #B0AAA3;
    font-size: 13px;
}

.price-table tr.group-row td {
    background: #EBF2FB;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3587D9;
    padding: 7px 20px;
    text-align: left;
    border-bottom: 1px solid #D5E5F5;
}

/* ── FOOTNOTES ── */

.table-footnotes {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-footnotes p {
    font-size: 12px;
    color: #B0AAA3;
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
    margin: 0;
}

.table-footnotes p::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #3587D9;
    font-weight: 600;
}

/* ── RESPONSIVE ── */

/* ========== RESPONSIVE ========== */

/* Планшет — 768px */
@media (max-width: 768px) {
    .product-hero {
        padding: 44px 20px 36px;
    }

    .product-hero__title {
        font-size: 28px;
    }

    .product-hero__subtitle {
        font-size: 14px;
    }

    .product-section {
        padding: 36px 0 64px;
    }

    .product-section .container {
        gap: 20px;
    }

    .text-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .text-card__body {
        font-size: 14px;
        line-height: 1.75;
    }

    .table-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .table-card__header {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 16px;
    }

    .table-card__title {
        font-size: 16px;
    }

    .price-table th {
        padding: 11px 14px;
        font-size: 10px;
    }

    .price-table td {
        padding: 10px 14px;
        font-size: 13px;
    }

    .price-table tr.group-row td {
        padding: 6px 14px;
    }

    .table-footnotes p {
        font-size: 11px;
    }
}

/* Мобильный — 480px */
@media (max-width: 480px) {
    .product-hero {
        padding: 36px 16px 28px;
    }

    .product-hero__title {
        font-size: 24px;
    }

    .product-hero__label {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .product-hero__subtitle {
        font-size: 13px;
        margin-top: 8px;
    }

    .product-section {
        padding: 28px 0 48px;
    }

    .product-section .container {
        gap: 16px;
        padding: 0 16px;
    }

    .text-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .text-card__label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .text-card__body {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .table-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .table-card__title {
        font-size: 15px;
    }

    .price-table {
        min-width: 300px;
    }

    .price-table th {
        padding: 10px 12px;
        font-size: 9.5px;
    }

    .price-table td {
        padding: 9px 12px;
        font-size: 13px;
    }

    .price-table tr.group-row td {
        font-size: 9px;
        padding: 6px 12px;
    }
}

/* Мини — 360px */
@media (max-width: 360px) {
    .product-hero__title {
        font-size: 21px;
    }

    .product-section .container {
        padding: 0 12px;
    }

    .text-card,
    .table-card {
        padding: 16px 12px;
    }

    .price-table th {
        padding: 9px 10px;
        font-size: 9px;
    }

    .price-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ========== БУРГЕР-МЕНЮ ========== */

/* Бургер-кнопка */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 3000;
    position: relative;
    margin-left: auto;
}

.burger span {
    width: 100%;
    height: 2px;
    background-color: #fff; /* Белый для главной */
    transition: all 0.3s ease;
}

/* Для внутренних страниц */
.inner-page .burger span {
    background-color: #333;
}

.inner-page .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.inner-page .burger.active span:nth-child(2) {
    opacity: 0;
}

.inner-page .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Оверлей меню - ПОЛУПРОЗРАЧНЫЙ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95); /* Светлый полупрозрачный */
    backdrop-filter: blur(5px);
    z-index: 2000;
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Для главной страницы (темный фон) */
.welcome .menu-overlay {
    background: rgba(0, 0, 0, 0.9); /* Темный для главной */
}

.menu-overlay.active {
    left: 0;
}

/* Контент меню */
.menu-overlay-content {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2001;
    pointer-events: auto;
}

/* Мобильная навигация */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.mobile-list a {
    color: #333;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 15px 10px;
}

/* Для главной страницы - белые ссылки */
.welcome .mobile-list a {
    color: #fff;
}

.mobile-list a:hover,
.mobile-list a.active {
    color: #3587D9;
}

/* Мобильные языки */
.mobile-lang {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.mobile-lang a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    padding: 12px 30px;
    border: 1px solid #ddd;
    border-radius: 30px;
    transition: all 0.3s;
}

/* Для главной страницы - белые языки */
.welcome .mobile-lang a {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-lang a:hover,
.mobile-lang a.active {
    border-color: #3587D9;
    color: #3587D9;
}

/* Затемнение и блокировка контента */
.menu-overlay.active ~ .hero-content,
.menu-overlay.active ~ .welcome__text,
.menu-overlay.active ~ .buttons-container,
.menu-overlay.active ~ .products-hero,
.menu-overlay.active ~ .iz-section,
.menu-overlay.active ~ .popular-goods,
.menu-overlay.active ~ .lumber,
.menu-overlay.active ~ .carpentry,
.menu-overlay.active ~ .address,
.menu-overlay.active ~ .about-contacts,
.menu-overlay.active ~ .footer {
    opacity: 0.2;
    pointer-events: none;
    filter: blur(2px);
    transition: all 0.3s ease;
}

/* Медиа-запросы */
@media screen and (max-width: 960px) {
    .burger {
        display: flex;
    }

    .header__nav:not(.mobile-nav) {
        display: none !important;
    }
    
    .header__lang:not(.mobile-lang) {
        display: none !important;
    }

    .header__inner {
        padding: 15px 20px;
    }

    .logo__text {
        font-size: 18px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }
}

@media screen and (min-width: 961px) {
    .menu-overlay {
        display: none;
    }
} 