/* =========================================
   БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
========================================= */

:root {
    --accent: #008cff;
    --accent-hover: #0070cc;
    --dark: #0c1234;
    --white: #ffffff;
    --gray: #555;
    --gray-light: #999;
    --gray-lighter: #eee;
    --main: 'Inter', Arial, Helvetica, sans-serif;
    --font-heading: 'Manrope', Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-base: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 40px;
    --spacing-xxxl: 60px;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 15px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 10px 40px rgba(0,0,0,0.2);
    
    /* Font sizes */
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-md: 14px;
    --fs-base: 16px;
    --fs-lg: 18px;
    --fs-xl: 20px;
    --fs-2xl: 24px;
    --fs-3xl: 32px;
    --fs-4xl: 42px;
    --fs-5xl: 52px;
    --fs-6xl: 62px;
    
    /* Transitions */
    --transition: 0.3s ease;
    --transition-fast: 0.2s;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--spacing-base);
    z-index: 10000;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: var(--fs-md);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--spacing-base);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body {
    margin: 0;
    font-family: var(--main);
    width: 100%;
    max-width: 100vw;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

/* =========================================
   КОНТЕЙНЕРЫ
========================================= */

.page-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.page-container {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xxl) 0;
}

.container {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

/* =========================================
   ОБЩИЕ КОМПОНЕНТЫ
========================================= */

.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-lighter);
}

.consultation-title {
    font-size: var(--fs-4xl);
    line-height: 1.1;
    color: var(--dark);
    margin: var(--spacing-md) 0 var(--spacing-xl) 0;
    font-weight: 600;
}

.page-header {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--dark);
    margin: 0 0 var(--spacing-lg) 0;
    font-weight: 800;
}

/* =========================================
   ХЕДЕР
========================================= */

.header {
    background-color: var(--white);
    color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    transition: box-shadow 0.35s ease;
}

/* Градиент-подложка прозрачной шапки вынесена в псевдоэлемент (background-image
   не умеет плавно анимироваться). Переключение цвета — без анимации, мгновенно. */
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgb(0 0 0 / 88%), rgb(255 255 255 / 0%));
    opacity: 0;
}

.transparent-header::before {
    opacity: 1;
}

.header:not(.transparent-header) {
    box-shadow: var(--shadow-sm);
}

/* На главной шапка всегда вне потока — без скачка контента при появлении меню */
.header.header--overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
}

.header.header--overlay.transparent-header {
    position: fixed;
}

.header.header--overlay:not(.transparent-header) {
    background-color: var(--white);
    background-image: none;
}

.top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: var(--spacing-md) 0;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.contacts-header {
    display: flex;
    gap: var(--spacing-xxl);
    align-items: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-xs);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    justify-content: center;
    align-self: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--dark);
    border-radius: 50%;
    background: transparent;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.transparent-header .social-icon {
    color: var(--white);
}

.transparent-header .social-icon:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

/* Иконка телефона - на непрозрачной шапке */
.header:not(.transparent-header) .phone-icon .phone-bg {
    fill: var(--dark);
    mask: none;
}

.header:not(.transparent-header) .phone-icon .phone-path {
    stroke: none;
    fill: rgba(255, 255, 255, 0.9);
}

.header:not(.transparent-header) .phone-icon:hover .phone-bg {
    fill: var(--accent);
}

.header:not(.transparent-header) .phone-icon:hover .phone-path {
    fill: rgba(255, 255, 255, 1);
}

/* Иконка телефона - на прозрачной шапке */
.transparent-header .phone-icon .phone-bg {
    fill: white;
    mask: url(#phone-mask);
}

.transparent-header .phone-icon .phone-path {
    stroke: currentColor;
    fill: none;
}

.transparent-header .phone-icon:hover .phone-bg {
    fill: var(--accent);
    mask: url(#phone-mask);
}

.contact-item strong {
    color: var(--dark);
    font-size: var(--fs-md);
}

.contact-item span {
    color: var(--gray);
    font-size: var(--fs-md);
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent);
    transition: color var(--transition);
}

.main-nav {
    background: var(--dark);
    overflow: hidden;
    max-height: 100px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.35s ease;
}

.header:not(.transparent-header) .main-nav {
    background: var(--dark);
}

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

.menu {
    list-style: none;
    display: flex;
    gap: var(--spacing-xl);
    margin: 0;
    padding: 0;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--fs-md);
    font-weight: 500;
    transition: color var(--transition);
}

.menu a:hover {
    color: var(--accent);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-md) 0;
    z-index: 20;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--spacing-lg);
}

/* Поиск в шапке */
.search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin: var(--spacing-xs);
    transition: background var(--transition);
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    padding: var(--spacing-sm) 12px;
    font-size: var(--fs-md);
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.search-btn:hover {
    color: var(--accent);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: var(--spacing-sm);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-results-list {
    padding: var(--spacing-sm) 0;
}

.search-result-item {
    display: block;
    padding: 12px var(--spacing-base);
    text-decoration: none;
    color: var(--dark);
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(0, 140, 255, 0.05);
}

.search-result-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.search-result-content strong {
    font-size: var(--fs-md);
    color: var(--dark);
    font-weight: 500;
}

.search-no-results {
    padding: var(--spacing-base);
    text-align: center;
    color: var(--gray);
    font-size: var(--fs-md);
}

.header .white-logo,
.header .default-logo {
    height: 35px;
    width: auto;
}

.header .white-logo {
    display: none;
}

.transparent-header .default-logo {
    display: none !important;
}

.transparent-header .white-logo {
    display: block !important;
}

.transparent-header .contacts-header .contact-item strong,
.transparent-header .contacts-header,
.transparent-header .contacts-header .contact-item a {
    color: var(--white) !important;
}

.transparent-header .contacts-header .contact-item a:hover {
    color: var(--accent) !important;
}

.transparent-header .contact-item span {
    color: rgba(255, 255, 255, 0.6);
}

.transparent-header .burger-menu span {
    background-color: var(--white) !important;
}

.hidden-nav {
    max-height: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    background: transparent;
    border-radius: var(--radius-lg);
    max-width: 1200px;
    margin: auto;
}

.hidden-nav.is-burger-open {
    max-height: 100vh;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
}

.hidden-nav .menu-wrapper {
    padding: 5px;
}

.hidden-nav .menu {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px var(--spacing-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
    .header,
    .main-nav {
        transition: none;
    }
}

/* =========================================
   ФУТЕР
========================================= */

footer {
    background: var(--dark);
    color: var(--white);
}

.footer-container {
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 35px;
}

.footer-logo {
    height: 30px;
}

.footer-desc {
    margin-top: 10px;
    font-size: var(--fs-md);
    line-height: 1.4;
    max-width: 320px;
}

.footer-column h4 {
    color: var(--white);
    margin: 0;
    font-size: var(--fs-base);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin: var(--spacing-sm) 0;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--fs-md);
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-column .phone {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 35px;
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: var(--fs-sm);
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* =========================================
   КОНТАКТЫ
========================================= */

h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--dark);
}

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 350px;
    background: var(--gray-lighter);
}

/* =========================================
   О КОМПАНИИ
========================================= */

.about-heading {
    color: var(--dark);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.25;
    margin-top: 0px;
    font-weight: 400;
    margin-bottom: 0px;
}

.about-heading strong {
    font-weight: 800;
}

.about-content {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-lg);
    align-items: stretch;
    position: relative;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.about-text-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-container-image {
    width: 50%;
    border-radius: var(--radius-xl);
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.about-container-image video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.about-container-image iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    flex: 1;
}

.section-label,
.rp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 700 12.5px/1 var(--main);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--spacing-base);
}
.section-label::before,
.rp-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Общие стили для текстовых параграфов в контентных блоках */.about-content p,.about-text-content p{
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--gray);
    margin: 0px;
}

/* =========================================
   КАТАЛОГ
========================================= */

/* Фильтры в стиле хлебных крошек: лёгкая рамка, тот же radius и отступы */
.catalog-sidebar .filters.card {
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    background: var(--white);
}

.filters.card {
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    background: var(--white);
}

/* Категории в фильтрах */
.filter-categories {
    margin-bottom: var(--spacing-sm);
}
.filter-categories-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    font-family: var(--main);
    color: var(--dark);
    padding: 0 0 var(--spacing-sm) 0;
}
.filter-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.filter-categories-list li {
    margin: 0 0 var(--spacing-xs) 0;
}
.filter-category-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    font-family: var(--main);
    color: var(--gray);
    text-decoration: none;
    transition: color var(--transition);
}
.filter-category-link:hover {
    color: var(--accent);
}
.filter-category-link--current {
    color: var(--dark);
    font-weight: 600;
}
.filter-categories-hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: var(--spacing-md) 0;
}

/* Спойлеры фильтров: шрифт и стиль как у хлебных крошек (--fs-sm, font-weight 500/600) */
.filter-spoiler {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.filter-spoiler:last-of-type {
    border-bottom: none;
}

.filter-spoiler-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    font-family: var(--main);
    color: var(--dark);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}
.filter-spoiler-trigger:hover {
    color: var(--accent);
}
.filter-spoiler-trigger:focus {
    outline: none;
}
.filter-spoiler-trigger--open .filter-spoiler-icon {
    transform: rotate(180deg);
}

.filter-spoiler-label {
    flex: 1;
}

.filter-spoiler-icon {
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
    transition: transform var(--transition);
}

.filter-spoiler-content {
    padding: 0 var(--spacing-lg) var(--spacing-md) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}
.filter-spoiler-content[hidden] {
    display: none;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    font-family: var(--main);
    color: var(--gray);
    cursor: pointer;
    padding: var(--spacing-xs) 0;
    transition: color var(--transition);
}
.filter-checkbox-label:hover {
    color: var(--accent);
}

.filter-checkbox {
    width: 1em;
    height: 1em;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.filter-checkbox-label span {
    user-select: none;
}

.filter-reset-btn {
    display: block;
    width: 100%;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--fs-sm);
    font-weight: 500;
    font-family: var(--main);
    color: var(--gray);
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.filter-reset-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.filter-reset-btn:focus {
    outline: none;
}

/* Устаревшие стили (select больше не используется в каталоге) */
.filters strong {
    margin-top: 5px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}
.filters label {
    font-size: var(--fs-sm);
}

.product-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-image-container--has-drawing {
    position: relative;
}

.product-image-container--has-drawing .catalog-item-photo {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.28s ease;
}

.product-image-container--has-drawing .catalog-item-drawing {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .catalog-item-link:hover .product-image-container--has-drawing .catalog-item-photo {
        opacity: 0;
    }

    .catalog-item-link:hover .product-image-container--has-drawing .catalog-item-drawing {
        opacity: 1;
    }
}

.employee-info {
    width: 100%;
}

.catalog-item.card {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
    transition: box-shadow var(--transition);
    cursor: pointer;
}

.item-description {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-sm);
}

.item-description p {
    font-size: var(--fs-sm);
    margin: 0;
    font-family: var(--main);
    font-weight: 500;
    color: var(--dark);
}

.item-description .product-volume strong,
.item-description .product-neck strong {
    font-weight: 500;
    color: var(--gray);
}

.catalog-item h3 {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    font-family: var(--main);
    color: var(--dark);
}

.catalog-item-more {
    display: inline-block;
    margin-top: var(--spacing-xs);
    font-size: var(--fs-sm);
    font-weight: 500;
    font-family: var(--main);
    color: var(--gray);
    transition: color var(--transition);
}
.catalog-item-link:hover .catalog-item-more {
    color: var(--accent);
}

.catalog-item img {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    object-fit: cover;
}

#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.catalog-container {
    display: flex;
    width: 100%;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.catalog-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Липкий блок: хлебные крошки + фильтры остаются при прокрутке */
.catalog-sidebar {
    position: sticky;
    top: calc(var(--catalog-header-height, 120px) + var(--spacing-md, 15px));
    width: 25%;
    min-width: 20%;
    max-height: calc(100vh - var(--catalog-header-height, 120px) - var(--spacing-md, 15px));
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-self: flex-start;
    overflow-y: auto;
    flex-shrink: 0;
}

.catalog-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform var(--transition);
    width: 100%;
}

.catalog-item-link:hover {
    transform: translateY(-5px);
}

.catalog-item-link:hover .catalog-item {
    box-shadow: var(--shadow-lg);
}

/* Кнопка «Фильтры» в стиле хлебных крошек */
.filters-toggle-btn {
    display: none;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 0 0 var(--spacing-xl) 0;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: none;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    transition: border-color var(--transition), color var(--transition);
}

.filters-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filters-toggle-btn svg {
    transition: transform var(--transition);
}

.filters-toggle-btn.active svg {
    transform: rotate(180deg);
}

/* =========================================
   ХЛЕБНЫЕ КРОШКИ
========================================= */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: var(--fs-sm);
}

.catalog-sidebar .breadcrumbs {
    margin-bottom: 0;
    flex-shrink: 0;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    padding: var(--spacing-xs) 0;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 var(--spacing-sm);
    color: var(--gray-light);
    user-select: none;
    font-weight: 400;
}

.breadcrumb-separator::before {
    content: '›';
    font-size: var(--fs-base);
    line-height: 1;
}

.breadcrumb-current {
    color: var(--dark);
    font-weight: 600;
    padding: var(--spacing-xs) 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================
   ДЕТАЛЬНАЯ СТРАНИЦА ТОВАРА
========================================= */

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: var(--spacing-sm) 0;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    min-width: 0;
}

.product-main-image {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0;
}

.product-gallery-thumb-bar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

.product-gallery-thumbs-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
}

.product-gallery-drawing-with-pdf {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.product-gallery-pdf-slot {
    flex-shrink: 0;
}

.product-gallery-pdf-slot[hidden] {
    display: none !important;
}

.product-gallery-pdf-slot .product-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    padding: 10px var(--spacing-md);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    line-height: 0;
    transition: border-color 0.15s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible {
    border-color: var(--gray-light, #ccc);
    outline: none;
}

.product-gallery-thumb.is-active {
    border-color: var(--dark, #333);
}

.product-gallery-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
}

.product-gallery-main-view {
    width: 100%;
}

.product-gallery-main-img[hidden] {
    display: none !important;
}

.product-drawing-fallback-hint {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--gray-light, #666);
}

.no-image {
    color: var(--gray-light);
    font-size: var(--fs-base);
    padding: 100px var(--spacing-lg);
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: var(--fs-3xl);
    color: var(--dark);
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.product-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.category-badge {
    background: var(--accent);
    color: white;
    padding: 5px var(--spacing-md);
    border-radius: 20px;
    font-size: var(--fs-md);
    font-weight: 500;
}

.partner-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: #c62828;
    color: #fff;
    border: 1px solid #b71c1c;
    padding: 5px 12px 5px 8px;
    border-radius: 9999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.28);
}

.partner-product-badge__flag {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.partner-product-badge__flag svg {
    display: block;
}

.partner-product-badge__text {
    line-height: 1.2;
}

.partner-product-badge--card {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.partner-product-badge--card[hidden] {
    display: none !important;
}

.catalog-partner-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.28);
}

.catalog-partner-notice__text {
    margin: 0;
    color: #7f1d1d;
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.product-info .partner-product-badge {
    margin-bottom: var(--spacing-sm);
}

.product-description h3 {
    color: var(--dark);
    font-size: var(--fs-xl);
    margin-bottom: var(--spacing-md);
}

.product-description p {
    color: var(--gray);
    line-height: 1.6;
    font-size: var(--fs-base);
}

.product-specifications summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0;
    margin: 0;
    color: var(--dark);
    font-size: var(--fs-xl);
    font-weight: 700;
    line-height: 1.3;
    user-select: none;
}

.product-specifications summary::-webkit-details-marker {
    display: none;
}

.product-specifications summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.product-specifications__icon {
    flex-shrink: 0;
    color: var(--gray);
    transition: transform var(--transition);
}

.product-specifications:not(.product-specifications--animated)[open] > summary .product-specifications__icon,
.product-specifications.is-expanded > summary .product-specifications__icon {
    transform: rotate(180deg);
}

.product-specifications__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition);
}

.product-specifications[open] .product-specifications__panel {
    grid-template-rows: 1fr;
}

.product-specifications__inner {
    overflow: hidden;
    min-height: 0;
}

.product-specifications .specs-table {
    margin-top: var(--spacing-md);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 0;
    font-size: var(--fs-md);
}

.spec-label {
    color: var(--gray);
    width: 40%;
    font-weight: 500;
}

.spec-value {
    color: var(--dark);
    font-weight: 600;
}

.product-price {
    background: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: var(--fs-lg);
    color: var(--gray);
}

.price-value {
    font-size: 28px;
    color: var(--dark);
    font-weight: 700;
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* =========================================
   КНОПКИ
========================================= */

.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border-radius: 10px;
    font: 600 15px/1 var(--main);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-sizing: border-box;
}

.btn,
.btn-primary {
    background: var(--accent);
    color: white;
}

.btn:hover,
.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border-color: var(--gray-lighter);
}

.btn-secondary:hover {
    background: var(--gray-lighter);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* =========================================
   ГЛАВНАЯ СТРАНИЦА
========================================= */

.no-image--catalog {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 0;
}

/* =========================================
   ФОРМА КОНСУЛЬТАЦИИ
========================================= */

.consultation {
    margin-top: var(--spacing-xxxl);
    padding: var(--spacing-xl) 0;
}

.consultation-section {
    padding: 80px var(--spacing-lg);
    margin: var(--spacing-xxxl) 0;
    background: var(--white);
}

.consultation-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: stretch;
    max-width: 1200px;
}

.consultation-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
    flex: 1;
}

.consultation-description {
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--gray);
    margin: 0;
}

.consultation-form-wrapper.card {
    flex: 1;
    padding: var(--spacing-lg);
}

#consultation-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 14px var(--spacing-lg);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    font-family: var(--main);
    background: var(--white);
    box-sizing: border-box;
    transition: all var(--transition);
    color: var(--dark);
}

.form-input::placeholder {
    color: var(--gray-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.1);
}

.consultation-submit {
    width: 100%;
    padding: var(--spacing-base) var(--spacing-xl);
    font-size: var(--fs-base);
}

.consultation-form-text {
    font-size: var(--fs-sm);
    color: var(--gray);
    margin: var(--spacing-md) 0 0 0;
    line-height: 1.5;
    text-align: center;
}

.consultation-form-text a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.consultation-form-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

#form-message,
#consultation-modal-message {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    display: none;
    font-size: var(--fs-md);
    text-align: center;
    font-weight: 500;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =========================================
   МОДАЛЬНОЕ ОКНО ДЛЯ РАСЧЕТА СТОИМОСТИ
========================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn var(--transition);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    font-size: var(--fs-2xl);
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color var(--transition);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-round);
    background: rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
    color: var(--dark);
    background: rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-sm) var(--spacing-lg);
}

.modal-title {
    font-size: var(--fs-xl);
    line-height: 1.15;
    color: var(--dark);
    margin: var(--spacing-xs) 0 var(--spacing-sm) 0;
    font-weight: 600;
}

.modal-description {
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--gray);
    margin: 0;
}

.modal-form-wrapper {
    padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
}

.modal-form-wrapper .form-group {
    margin-bottom: var(--spacing-sm);
}

.modal-form-wrapper .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-form-wrapper .form-input {
    padding: 8px var(--spacing-md);
    font-size: var(--fs-md);
}

.modal-form-wrapper .consultation-submit {
    padding: 10px var(--spacing-md);
    font-size: var(--fs-md);
    margin-top: var(--spacing-sm);
}

.modal-form-wrapper .consultation-form-text {
    font-size: var(--fs-xs);
    margin-top: var(--spacing-sm);
}

/* Полноэкранное уведомление после отправки в модальном окне */
.modal-content.modal-content--result {
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.modal-content.modal-content--result .modal-header,
.modal-content.modal-content--result .modal-form-wrapper > form {
    display: none;
}

.modal-content.modal-content--result .modal-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: var(--spacing-xxl);
    min-height: 280px;
}

.modal-content.modal-content--result #consultation-modal-message,
.modal-content.modal-content--result #form-message,
.modal-message--fullscreen {
    display: flex !important;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: var(--spacing-xl);
    min-height: 220px;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

.modal-content.modal-content--result .form-message {
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: var(--fs-xl);
    line-height: 1.5;
    padding: var(--spacing-xxl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.modal-content.modal-content--result .form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.glass-color-field .glass-color-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
}

.glass-color-toggle {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 400px;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: var(--gray-lighter);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

.modal-form-wrapper .glass-color-toggle {
    max-width: none;
}

.glass-color-btn {
    position: relative;
    cursor: pointer;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.glass-color-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.glass-color-btn span {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: var(--fs-md);
    font-family: var(--main);
    color: var(--gray);
    background: transparent;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-color-btn:hover span {
    color: var(--dark);
    background: rgba(255, 255, 255, 0.75);
}

.glass-color-btn input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.glass-color-btn input:checked + span {
    background: var(--white);
    color: var(--accent);
    border-color: rgba(0, 140, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.glass-color-btn input:checked:hover + span {
    color: var(--accent-hover);
}


.product-purpose-field .glass-color-btn span {
    min-width: 7.5rem;
    font-size: 0.8125rem;
}

.glass-color-field--inline .glass-color-toggle {
    max-width: none;
}

/* =========================================
   ПОЛИТИКИ
========================================= */

.policy-content {
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
    line-height: 1.8;
    color: var(--dark);
}

.policy-section {
    margin-bottom: var(--spacing-xxl);
}

.policy-section h2 {
    font-size: var(--fs-2xl);
    color: var(--dark);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.policy-section p {
    font-size: var(--fs-base);
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.policy-section ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.policy-section li {
    margin-bottom: 10px;
    font-size: var(--fs-base);
    line-height: 1.6;
}

.policy-section a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.policy-section a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* =========================================
   ПЛАНШЕТЫ (768px - 1919px)
========================================= */

@media (min-width: 768px) and (max-width: 1919px) {
    /* Хедер для планшетов */
    .logo img {
        height: 50px;
    }
    
    .contacts-header {
        gap: var(--spacing-lg);
    }
    
    .contact-item {
        font-size: var(--fs-sm);
    }
    
    .social-icons {
        gap: var(--spacing-sm);
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Контент для планшетов: ширина как у .rp-container (0 — совпадает с шапкой и футером) */
    .container {
        padding: var(--spacing-sm) 0;
    }

    .page-container {
        padding: var(--spacing-xl) 0;
    }
    
    /* Главная страница - Hero секция */
    
    /* Каталог для планшетов */
    .catalog-container {
        gap: var(--spacing-md);
    }
    
    .filters.card {
        width: 30%;
        min-width: 25%;
        padding: var(--spacing-md);
    }
    
    #product-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--spacing-md);
    }
    
    .catalog-item {
        min-height: 320px;
    }
    
    /* Детальная страница товара */
    .product-detail-container {
        gap: var(--spacing-xl);
    }
    
    .product-title {
        font-size: var(--fs-2xl);
    }
    
    .product-main-image {
        min-height: 350px;
    }
    
    /* О компании для планшетов */
    .about-content {
        gap: var(--spacing-xl);
    }
    
    .about-container-image {
        width: 45%;
    }
    
    .about-text-content {
        width: 55%;
    }
    
    /* Футер для планшетов */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    /* Форма консультации */
    .consultation-wrapper {
        gap: var(--spacing-xxl);
    }
    
    .consultation-title {
        font-size: var(--fs-3xl);
    }
    
    .consultation-section {
        padding: 60px var(--spacing-xl);
    }
    
    /* Каталог на главной */
    /* Модальные окна */
    .modal-content {
        max-width: 680px;
    }
    
    .modal-title {
        font-size: var(--fs-xl);
    }
    

    /* Кнопки */
    .btn-primary,
    .btn-secondary {
        padding: 12px var(--spacing-lg);
        font-size: var(--fs-sm);
    }
    
    /* Заголовки страниц */
    
    .page-header {
        font-size: var(--fs-lg);
    }
    
    h2 {
        font-size: var(--fs-xl);
    }
}

@media (max-width: 1024px) {
    .contacts-header {
        display: none;
    }
    
    .about-container-image {
        width: 500px;
        height: 350px;
        margin-right: -100px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    #product-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* Одна колонка: фото сверху, текст снизу (на широком экране текст слева, фото справа) */
    .product-detail-container .product-images {
        order: -1;
    }

    .product-gallery-drawing-with-pdf {
        flex-wrap: wrap;
    }

    .product-title {
        font-size: 28px;
    }
    
    .consultation-wrapper {
        gap: var(--spacing-xxxl);
    }
    
    .consultation-title {
        font-size: 36px;
    }
}

/* Правила для планшетов выше (768–1919px и max-width:1024px) сужают футер
   до 2 колонок, а этот диапазон захватывает и десктопные экраны —
   возвращаем 4 колонки на реальном десктопе. */
@media (min-width: 1025px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .top-bar {
        margin: 0;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .main-nav {
        z-index: 1000;
        padding: 0;
        min-height: 0;
        overflow: visible;
        max-height: none;
    }

    .main-nav.hidden-nav:not(.is-burger-open) {
        max-height: 0;
        overflow: hidden;
    }
    
    .menu-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: var(--spacing-lg);
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity var(--transition), visibility var(--transition), max-height 0.4s ease-in-out, padding var(--transition), transform var(--transition);
    }
    
    .transparent-header .menu-wrapper {
        background: transparent !important;
    }
    
    .transparent-header .menu-wrapper .menu {
        background: rgba(20, 20, 20, 0.9);
        border: 1px solid rgba(255,255,255,0.1);
        padding: 10px var(--spacing-md);
        border-radius: var(--radius-md);
    }
    
    .transparent-header .menu-wrapper .menu a {
        color: var(--white);
    }
    
    .header:not(.transparent-header) .menu-wrapper {
        background-color: var(--dark) !important;
    }
    
    .menu-wrapper.open {
        opacity: 1;
        visibility: visible;
        padding: var(--spacing-lg);
        max-height: 500px;
        transform: translateY(0);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    
    .search-container {
        background: var(--dark);
        max-width: 100%;
        width: 100%;
        order: 2;
        position: relative;
        z-index: 10002;
    }
    
    .transparent-header .search-container {
        background: rgba(20, 20, 20, 0.9);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-md);
    }
    
    .search-results {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .menu {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        width: 100%;
    }
    
    .menu li {
        width: 100%;
        text-align: center;
    }
    
    .menu a {
        display: block;
        padding: 10px 0;
        font-size: var(--fs-lg);
        color: var(--white);
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .map-container {
        height: 300px;
    }
    
    .page-container:has(.catalog-container) {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        max-width: none;
        width: 100%;
    }

    .page-container:has(.catalog-container) .catalog-container {
        padding-bottom: var(--spacing-xxl);
    }

    .catalog-container {
        flex-direction: column;
    }

    .catalog-sidebar {
        --catalog-mobile-header-offset: 48px;
        width: 100%;
        min-width: 0;
        top: var(--catalog-mobile-header-offset);
        max-height: calc(100vh - var(--catalog-mobile-header-offset));
        z-index: 60;
        background-color: transparent;
        padding: var(--spacing-md);
        box-sizing: border-box;
        isolation: isolate;
    }

    .catalog-sidebar::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        top: -3px;
        height: calc(100% + 3px);
        background-color: var(--white);
        box-shadow: 0 4px 14px rgba(12, 19, 52, 0.08);
        z-index: 0;
        pointer-events: none;
    }

    .catalog-sidebar > * {
        position: relative;
        z-index: 1;
    }

    .catalog-sidebar .breadcrumbs {
        background-color: var(--white);
    }

    .filters-toggle-btn {
        display: flex;
        margin-top: 0;
        margin-bottom: 0;
        background: var(--white);
    }
    
    .filters {
        width: 100%;
        position: static;
        display: none !important;
        margin-bottom: 0;
        padding: 0;
    }
    
    .filters.filters-open {
        display: flex !important;
        padding: var(--spacing-md) var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
        width: 100%;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: none;
        background-color: var(--white);
    }

    .catalog-sidebar .filter-spoiler-trigger {
        background-color: var(--white);
    }

    .page-container:has(.catalog-container) #product-list {
        position: relative;
        z-index: 0;
        isolation: isolate;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        padding-top: var(--spacing-md);
    }
    
    #product-list {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: var(--spacing-md);
    }
    
    .consultation-wrapper {
        flex-direction: column;
        gap: var(--spacing-xxl);
    }
    
    .consultation-text {
        max-width: 100%;
    }
    
    .consultation-title {
        font-size: var(--fs-3xl);
    }
    
    .consultation-form-wrapper {
        max-width: 100%;
    }
    
    .about-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .about-text-content {
        width: 100%;
        order: 2;
    }
    
    .about-container-image {
        width: 100%;
        margin-right: 0;
        height: auto;
        order: 1;
    }
    
    .about-heading {
        font-size: var(--fs-xl);
    }
    
    .catalog-item {
        min-height: 350px;
    }
    
    .product-title {
        font-size: var(--fs-2xl);
    }
    
    .product-main-image {
        min-height: 300px;
    }
    
    .price-label {
        font-size: var(--fs-base);
    }
    
    .price-value {
        font-size: var(--fs-2xl);
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .transparent-header {
        padding-top: 0;
    }
    
    .header .white-logo,
    .header .default-logo {
        height: 28px;
    }
    .about-section {
        padding: 0px;
    }
    
    .policy-section h2 {
        font-size: var(--fs-xl);
    }
    
    .policy-section p,
    .policy-section li {
        font-size: var(--fs-md);
    }
    
    .modal-content {
        max-width: 95%;
        margin: var(--spacing-lg) auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-sm) var(--spacing-lg);
    }
    
    .modal-title {
        font-size: var(--fs-xl);
    }
    
    .modal-description {
        font-size: var(--fs-sm);
    }
    
    .modal-form-wrapper {
        padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    }
    
    .modal-close {
        right: var(--spacing-md);
        top: var(--spacing-md);
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 640px) {
    footer {
        padding: var(--spacing-xxl) var(--spacing-lg) var(--spacing-lg);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .breadcrumbs {
        font-size: var(--fs-xs);
        padding: var(--spacing-sm) 0;
    }

    #product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .consultation-section {
        padding: 50px var(--spacing-md);
        margin: var(--spacing-xxl) 0;
    }
    
    .consultation-title {
        font-size: 28px;
    }
    
    .consultation-form-wrapper {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .form-input,
    .consultation-submit {
        font-size: var(--fs-md);
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    #product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .catalog-item {
        min-height: 320px;
    }
    
    .page-container {
        padding: 10px var(--spacing-md);
    }

    .page-container:has(.catalog-container) {
        padding: 0;
        padding-bottom: 20px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .top-bar {
        align-items: center;
    }
    
    .product-title {
        font-size: var(--fs-xl);
    }
    
    .product-main-image {
        min-height: 250px;
    }
    
    .specs-table td {
        padding: 10px 0;
        font-size: var(--fs-md);
    }
    
    .spec-label {
        width: 50%;
    }
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 12px 0;
    background: rgba(15, 18, 25, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent__text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.4;
}

.cookie-consent__text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}

/* SmartCaptcha highlight */
.smart-captcha.captcha-error {
    border: 2px solid #ff4d4f;
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.18);
}

/* Ошибки полей формы заявки */
.form-group--error .form-input,
.form-input.form-input--error {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.12);
}

.field-error-hint {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--fs-xs);
    line-height: 1.4;
    color: #c62828;
}

.field-error-hint[hidden] {
    display: none;
}

.field-error-hint-extra {
    display: block;
    margin-top: var(--spacing-xs);
    font-weight: 400;
    opacity: 0.92;
}

.modal-form-wrapper .form-group--error .field-error-hint,
.consultation-form-wrapper .form-group--error .field-error-hint {
    text-align: left;
}

.page-stub {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxxl);
}

.page-stub-text {
    max-width: 640px;
    margin: 0 0 var(--spacing-xl);
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: var(--gray);
}

.page-stub-text a {
    color: var(--accent);
}

main#main-content {
    display: block;
    min-height: 40vh;
}

.catalog-status-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--gray);
}

/* =========================================
   ГЛАВНАЯ СТРАНИЦА — РЕДИЗАЙН (2026)
   Классы с префиксом rp- уникальны и не пересекаются с остальным сайтом
   (старые .hero/.about-content/.catalog-preview-.../.consultation-wrapper
   используются другими страницами — about.html, contacts.html и т.д. —
   поэтому не переиспользуются здесь во избежание конфликтов стилей).
========================================= */

.homepage, .about-page, .contacts-page{
    --rp-accent: #008cff;
    --rp-accent-hover: #0070cc;
    --rp-dark: #0c1234;
    --rp-text-secondary: #47506b;
    --rp-text-muted: #6b7280;
    --rp-border: #e7e9f0;
    --rp-surface-muted: #f4f6fb;

    --rp-font-heading: 'Manrope', Arial, sans-serif;
    --rp-font-body: 'Inter', Arial, sans-serif;

    --rp-sp-1: 8px;
    --rp-sp-2: 16px;
    --rp-sp-3: 24px;
    --rp-sp-4: 32px;
    --rp-sp-5: 48px;
    --rp-sp-6: 64px;

    --rp-section-py: clamp(56px, 8vw, 112px);

    --rp-radius-lg: 12px;
    --rp-radius-xl: 18px;
    --rp-shadow-sm: 0 2px 8px rgba(15,23,42,.06);
    --rp-shadow-md: 0 8px 28px rgba(15,23,42,.08);

    display:block;
    font-family: var(--rp-font-body);
    color: var(--rp-dark);
}
.homepage img, .about-page img, .contacts-page img{max-width:100%;display:block}
.homepage h1, .about-page h1, .contacts-page h1,
.homepage h2, .about-page h2, .contacts-page h2,
.homepage h3, .about-page h3, .contacts-page h3{font-family:var(--rp-font-heading); margin:0}

.homepage .rp-container, .about-page .rp-container, .contacts-page .rp-container{
    max-width:1200px; margin:0 auto; width:100%; box-sizing:border-box;
}
@media (max-width:640px){.homepage .rp-container, .about-page .rp-container, .contacts-page .rp-container{padding:0 20px}}

.rp-kicker.on-dark{
    color:#8fd0ff; margin-bottom:var(--rp-sp-1);
    padding: 7px 18px; border-radius: 999px;
    border: 1px solid rgba(143,208,255,.4);
    background: rgba(143,208,255,.08);
    backdrop-filter: blur(6px);
}
.homepage .rp-kicker.on-dark::before, .about-page .rp-kicker.on-dark::before, .contacts-page .rp-kicker.on-dark::before{content:none}

.homepage .rp-heading, .about-page .rp-heading, .contacts-page .rp-heading{
    font-size: clamp(1.2rem, 2.3vw, 2rem); line-height:1.22; font-weight:400;
    color:var(--rp-dark); margin-bottom: var(--rp-sp-3); max-width: 46ch;
}
.homepage .rp-heading strong, .about-page .rp-heading strong, .contacts-page .rp-heading strong{font-weight:800; color:var(--rp-dark)}
.homepage .rp-text p, .about-page .rp-text p, .contacts-page .rp-text p{font-size:16px; line-height:1.7; color:var(--rp-text-secondary); margin:0;}
.homepage .rp-text p + p, .about-page .rp-text p + p, .contacts-page .rp-text p + p{margin-top:var(--rp-sp-2)}

.homepage .rp-btn-ghost, .about-page .rp-btn-ghost, .contacts-page .rp-btn-ghost{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.4); color:#fff; backdrop-filter: blur(6px);}
.homepage .rp-btn-ghost:hover, .about-page .rp-btn-ghost:hover, .contacts-page .rp-btn-ghost:hover{background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.65)}

/* ===== HERO ===== */
.homepage .rp-hero, .about-page .rp-hero, .contacts-page .rp-hero{
    position:relative; min-height: clamp(640px, 100vh, 920px);
    display:flex; align-items:stretch; overflow:hidden;
}
.homepage .rp-hero-video, .about-page .rp-hero-video, .contacts-page .rp-hero-video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#12172c; filter:brightness(.78) saturate(1.05)}
.homepage .rp-hero-scrim, .about-page .rp-hero-scrim, .contacts-page .rp-hero-scrim{
    position:absolute; inset:0;
    background: radial-gradient(ellipse 75% 65% at 50% 42%, rgba(6,10,28,.88) 0%, rgba(6,10,28,.78) 25%, rgba(6,10,28,.68) 48%, rgba(6,10,28,.72) 70%, rgba(6,10,28,.82) 100%);
}
.homepage .rp-hero-content, .about-page .rp-hero-content, .contacts-page .rp-hero-content{
    position:relative; z-index:5; width:100%;
    padding: 156px 0 0; box-sizing:border-box;
    display:flex; flex-direction:column;
}
.homepage .rp-hero-content .rp-container, .about-page .rp-hero-content .rp-container, .contacts-page .rp-hero-content .rp-container{
    display:flex; flex-direction:column; align-items:center; text-align:center;
    gap: var(--rp-sp-4); flex:1; width:100%;
}
.homepage .rp-hero-text, .about-page .rp-hero-text, .contacts-page .rp-hero-text{
    width:100%; max-width: 1040px; margin-top:auto; margin-bottom:auto;
    display:flex; flex-direction:column; align-items:center;
    gap: var(--rp-sp-3);
}
.homepage .rp-hero-text .rp-kicker, .about-page .rp-hero-text .rp-kicker, .contacts-page .rp-hero-text .rp-kicker{margin-bottom:0}
.homepage .rp-hero-text h1, .about-page .rp-hero-text h1, .contacts-page .rp-hero-text h1{
    font-size: clamp(2.75rem, 4.8vw, 4.25rem);
    line-height: 1.05; font-weight: 800; color:#fff;
    margin: 0;
}
.homepage .rp-hero-text h1 .rp-hero-accent, .about-page .rp-hero-text h1 .rp-hero-accent, .contacts-page .rp-hero-text h1 .rp-hero-accent{
    position:relative; color:var(--rp-accent);
}
.homepage .rp-hero-text h1 .rp-hero-accent::after, .about-page .rp-hero-text h1 .rp-hero-accent::after, .contacts-page .rp-hero-text h1 .rp-hero-accent::after{
    content:""; position:absolute; left:0; right:0; bottom:-0.06em; height:0.06em;
    background:linear-gradient(90deg, rgba(0,140,255,0) 0%, rgba(0,140,255,.75) 18%, rgba(0,140,255,.75) 82%, rgba(0,140,255,0) 100%);
}
.homepage .rp-hero-subhead, .about-page .rp-hero-subhead, .contacts-page .rp-hero-subhead{
    font-size: clamp(1rem, 1.2vw, 1.0625rem);
    line-height: 1.7; font-weight: 400; color:rgba(255,255,255,.68);
    max-width: 54ch; margin: 0;
    display:flex; flex-direction:column; align-items:center; gap: var(--rp-sp-2);
}
.homepage .rp-hero-audiences, .about-page .rp-hero-audiences, .contacts-page .rp-hero-audiences{
    display:block;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.45; font-weight: 600;
    color: rgba(255,255,255,.92);
    letter-spacing: -0.01em;
    max-width: 46ch;
}
.homepage .rp-hero-buttons, .about-page .rp-hero-buttons, .contacts-page .rp-hero-buttons{display:flex; gap:var(--rp-sp-2); flex-wrap:wrap; justify-content:center; margin:0}
.homepage .rp-hero-buttons .btn, .about-page .rp-hero-buttons .btn, .contacts-page .rp-hero-buttons .btn{width:242px}
.homepage .rp-hero-badges, .about-page .rp-hero-badges, .contacts-page .rp-hero-badges{
    display:flex; flex-wrap:nowrap; justify-content:space-between; gap: var(--rp-sp-3) var(--rp-sp-4);
    list-style:none; margin:0; padding:var(--rp-sp-3) 0; width:100%;
    border-top:1px solid rgba(255,255,255,.16);
}
.homepage .rp-hero-badge, .about-page .rp-hero-badge, .contacts-page .rp-hero-badge{display:flex; align-items:center; gap:10px; color:#fff; flex:0 0 auto; text-align:left}
.homepage .rp-hero-badge svg, .about-page .rp-hero-badge svg, .contacts-page .rp-hero-badge svg{flex:0 0 auto; width:20px; height:20px; color:#8fd0ff}
.homepage .rp-hero-badge span, .about-page .rp-hero-badge span, .contacts-page .rp-hero-badge span{display:flex; flex-direction:column; font:400 12.5px/1.3 var(--rp-font-body); color:rgba(255,255,255,.65)}
.homepage .rp-hero-badge strong, .about-page .rp-hero-badge strong, .contacts-page .rp-hero-badge strong{font:600 14px/1.3 var(--rp-font-body); color:#fff}
@media (max-width:900px){
    .homepage .rp-hero, .about-page .rp-hero, .contacts-page .rp-hero{height:auto; min-height:auto; align-items:flex-start}
    .homepage .rp-hero-content, .about-page .rp-hero-content, .contacts-page .rp-hero-content{padding: 132px 0 var(--rp-sp-5)}
    .homepage .rp-hero-content .rp-container, .about-page .rp-hero-content .rp-container, .contacts-page .rp-hero-content .rp-container{gap: var(--rp-sp-3)}
    .homepage .rp-hero-text, .about-page .rp-hero-text, .contacts-page .rp-hero-text{margin-top:0; margin-bottom:0; gap: var(--rp-sp-2)}
    .homepage .rp-hero-badges, .about-page .rp-hero-badges, .contacts-page .rp-hero-badges{display:none}
}
@media (max-width:480px){
    .homepage .rp-hero-content, .about-page .rp-hero-content, .contacts-page .rp-hero-content{padding-top: 116px}
}

/* ===== О КОМПАНИИ ===== */
.homepage .rp-about, .about-page .rp-about, .contacts-page .rp-about{padding: var(--rp-section-py) 0}
.homepage .rp-about .rp-heading, .about-page .rp-about .rp-heading, .contacts-page .rp-about .rp-heading{line-height:1.32}
.homepage .rp-about .rp-heading strong, .about-page .rp-about .rp-heading strong, .contacts-page .rp-about .rp-heading strong{letter-spacing:-0.01em}
.homepage .rp-about-grid, .about-page .rp-about-grid, .contacts-page .rp-about-grid{
    display:grid; grid-template-columns: 1fr 1fr; gap: var(--rp-sp-6);
    align-items:center; margin-bottom: var(--rp-sp-5);
}
.homepage .rp-about-media, .about-page .rp-about-media, .contacts-page .rp-about-media{display:block; width:100%}
.homepage .rp-about-image, .about-page .rp-about-image, .contacts-page .rp-about-image{
    display:block; position:relative; width:100%; border-radius:var(--rp-radius-xl);
    overflow:hidden; aspect-ratio:4/3.2;
}
.homepage .rp-about-image.rp-video-preview, .about-page .rp-about-image.rp-video-preview, .contacts-page .rp-about-image.rp-video-preview{
    aspect-ratio:4/3;
}
.homepage .rp-about-image img, .about-page .rp-about-image img, .contacts-page .rp-about-image img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease}
.homepage .rp-video-preview:hover img, .about-page .rp-video-preview:hover img, .contacts-page .rp-video-preview:hover img{transform:scale(1.03)}
.homepage .rp-video-preview-play, .about-page .rp-video-preview-play, .contacts-page .rp-video-preview-play{
    position:absolute; inset:0; margin:auto; width:76px; height:76px;
    display:flex; align-items:center; justify-content:center;
    background:radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), rgba(12,18,52,.6) 65%);
    border:2px solid rgba(255,255,255,.85);
    border-radius:50%; color:#fff; backdrop-filter:blur(3px);
    box-shadow:0 8px 24px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,.12);
    transition:transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.homepage .rp-video-preview-play svg, .about-page .rp-video-preview-play svg, .contacts-page .rp-video-preview-play svg{width:30px; height:30px; margin-left:4px}
.homepage .rp-video-preview:hover .rp-video-preview-play, .about-page .rp-video-preview:hover .rp-video-preview-play, .contacts-page .rp-video-preview:hover .rp-video-preview-play{
    background:var(--rp-accent); transform:scale(1.1); border-color:#fff;
    box-shadow:0 10px 30px rgba(0,140,255,.45), 0 0 0 10px rgba(255,255,255,.18);
}
.homepage .rp-about-media-caption, .about-page .rp-about-media-caption, .contacts-page .rp-about-media-caption{
    margin:10px 0 0; font-size:13.5px; line-height:1.4; color:var(--rp-text-muted); text-align:center;
}
.homepage .rp-about-text, .about-page .rp-about-text, .contacts-page .rp-about-text{display:flex; flex-direction:column; width:auto}
.homepage .rp-gallery, .about-page .rp-gallery, .contacts-page .rp-gallery{display:grid; grid-template-columns:repeat(4,1fr); gap:var(--rp-sp-2);}
.homepage .rp-gallery-item, .about-page .rp-gallery-item, .contacts-page .rp-gallery-item{width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; border-radius:var(--rp-radius-lg)}
@media (max-width:900px){
    .homepage .rp-about-grid, .about-page .rp-about-grid, .contacts-page .rp-about-grid{grid-template-columns:1fr; gap:var(--rp-sp-3)}
    .homepage .rp-gallery, .about-page .rp-gallery, .contacts-page .rp-gallery{grid-template-columns:repeat(2,1fr)}
}

/* ===== НАПРАВЛЕНИЯ ===== */
.homepage .rp-directions{padding: var(--rp-section-py) 0}
.homepage .rp-directions-grid{
    list-style:none; margin: var(--rp-sp-4) 0 0; padding:0;
    display:grid; grid-template-columns:repeat(3, 1fr); gap:var(--rp-sp-3);
}
@media (max-width:900px){
    .homepage .rp-directions-grid{grid-template-columns:repeat(2, 1fr)}
}
.homepage .rp-direction-card{
    background:#fff; border:1px solid var(--rp-border); border-radius:var(--rp-radius-lg);
    padding: var(--rp-sp-3); transition:transform .2s ease, box-shadow .2s ease;
}
.homepage .rp-direction-card:hover{transform:translateY(-3px); box-shadow:var(--rp-shadow-md)}
.homepage .rp-direction-icon{
    display:flex; align-items:center; justify-content:center;
    width:48px; height:48px; border-radius:50%;
    background: rgba(0,140,255,.1); color:var(--rp-accent); margin-bottom: var(--rp-sp-2);
}
.homepage .rp-direction-icon svg{width:24px; height:24px}
.homepage .rp-direction-card h3{font:700 16px/1.3 var(--rp-font-body); color:var(--rp-dark); margin-bottom:6px}
.homepage .rp-direction-card p{font:400 14px/1.55 var(--rp-font-body); color:var(--rp-text-muted); margin:0}
@media (max-width:640px){
    .homepage .rp-directions-grid{grid-template-columns:1fr; gap:var(--rp-sp-2)}
}

/* ===== КАТАЛОГ ===== */
.homepage .rp-catalog, .about-page .rp-catalog, .contacts-page .rp-catalog{padding: var(--rp-section-py) 0; background:var(--rp-surface-muted)}
.homepage .rp-catalog-grid, .about-page .rp-catalog-grid, .contacts-page .rp-catalog-grid{display:grid; grid-template-columns: 1fr 1fr; gap:var(--rp-sp-6); align-items:start;}
.homepage .rp-catalog-list, .about-page .rp-catalog-list, .contacts-page .rp-catalog-list{display:grid; grid-template-columns:repeat(2,1fr); gap:var(--rp-sp-2); width:auto;}
.homepage .rp-catalog-card, .about-page .rp-catalog-card, .contacts-page .rp-catalog-card{
    background:#fff; border:1px solid var(--rp-border); border-radius:var(--rp-radius-lg);
    overflow:hidden; box-shadow:var(--rp-shadow-sm); transition:transform .2s ease, box-shadow .2s ease;
    text-decoration:none; color:inherit; display:block;
}
.homepage .rp-catalog-card:hover, .about-page .rp-catalog-card:hover, .contacts-page .rp-catalog-card:hover{transform:translateY(-3px); box-shadow:var(--rp-shadow-md)}
.homepage .rp-catalog-card img, .about-page .rp-catalog-card img, .contacts-page .rp-catalog-card img{width:100%; aspect-ratio:1/1; object-fit:cover}
.homepage .rp-catalog-noimage, .about-page .rp-catalog-noimage, .contacts-page .rp-catalog-noimage{
    width:100%; aspect-ratio:1/1; background:#eef1f6; display:flex; align-items:center; justify-content:center;
    color:var(--rp-text-muted); font-size:13px;
}
.homepage .rp-catalog-card-body, .about-page .rp-catalog-card-body, .contacts-page .rp-catalog-card-body{padding: var(--rp-sp-2)}
.homepage .rp-catalog-card-body h3, .about-page .rp-catalog-card-body h3, .contacts-page .rp-catalog-card-body h3{font:700 14px/1.3 var(--rp-font-body); color:var(--rp-dark); margin-bottom:5px}
.homepage .rp-catalog-card-body p, .about-page .rp-catalog-card-body p, .contacts-page .rp-catalog-card-body p{font:400 12.5px/1.4 var(--rp-font-body); color:var(--rp-text-muted); margin:2px 0 0}
.homepage .rp-catalog-more, .about-page .rp-catalog-more, .contacts-page .rp-catalog-more{
    display:inline-flex; align-items:center; gap:4px;
    margin-top:8px; font:600 12.5px/1 var(--rp-font-body); color:var(--rp-accent);
}
.homepage .rp-catalog-more svg, .about-page .rp-catalog-more svg, .contacts-page .rp-catalog-more svg{width:13px; height:13px; transition:transform .2s ease}
.homepage .rp-catalog-card:hover .rp-catalog-more svg, .about-page .rp-catalog-card:hover .rp-catalog-more svg, .contacts-page .rp-catalog-card:hover .rp-catalog-more svg{transform:translateX(3px)}
.homepage .rp-catalog-info, .about-page .rp-catalog-info, .contacts-page .rp-catalog-info{display:flex; flex-direction:column; align-items:flex-start; width:auto}
.homepage .rp-catalog-info .btn, .about-page .rp-catalog-info .btn, .contacts-page .rp-catalog-info .btn{margin-top:var(--rp-sp-4)}
.homepage .rp-catalog-cta-mobile, .about-page .rp-catalog-cta-mobile, .contacts-page .rp-catalog-cta-mobile{display:none; margin-top:var(--rp-sp-3)}
@media (max-width:900px){
    .homepage .rp-catalog-grid, .about-page .rp-catalog-grid, .contacts-page .rp-catalog-grid{grid-template-columns:1fr}
    .homepage .rp-catalog-list, .about-page .rp-catalog-list, .contacts-page .rp-catalog-list{order:2}
    .homepage .rp-catalog-info, .about-page .rp-catalog-info, .contacts-page .rp-catalog-info{order:1}
    .homepage .rp-catalog-info .btn, .about-page .rp-catalog-info .btn, .contacts-page .rp-catalog-info .btn{display:none}
    .homepage .rp-catalog-cta-mobile, .about-page .rp-catalog-cta-mobile, .contacts-page .rp-catalog-cta-mobile{display:inline-flex; width:100%}
}
@media (max-width:480px){
    .homepage .rp-catalog-list, .about-page .rp-catalog-list, .contacts-page .rp-catalog-list{grid-template-columns:1fr 1fr; gap:var(--rp-sp-1)}
}

/* ===== КОНСУЛЬТАЦИЯ ===== */
.homepage .rp-consultation, .about-page .rp-consultation, .contacts-page .rp-consultation{padding: var(--rp-section-py) 0}
.homepage .rp-consultation-grid, .about-page .rp-consultation-grid, .contacts-page .rp-consultation-grid{display:grid; grid-template-columns: 1fr 1fr; gap: var(--rp-sp-6); align-items:stretch;}
.homepage .rp-consultation-copy, .about-page .rp-consultation-copy, .contacts-page .rp-consultation-copy{display:flex; flex-direction:column; justify-content:center; width:auto}
.homepage .rp-consultation-lead, .about-page .rp-consultation-lead, .contacts-page .rp-consultation-lead{font-size:17px; line-height:1.65; color:var(--rp-dark); font-weight:500; margin:0 0 var(--rp-sp-2);}
.homepage .rp-consultation-card, .about-page .rp-consultation-card, .contacts-page .rp-consultation-card{
    background:#fff; border:1px solid var(--rp-border); border-radius:var(--rp-radius-xl);
    box-shadow:var(--rp-shadow-md); padding: var(--rp-sp-4); width:auto; box-sizing:border-box;
}
.homepage .rp-consultation-card #consultation-form, .about-page .rp-consultation-card #consultation-form, .contacts-page .rp-consultation-card #consultation-form{display:flex; flex-direction:column; gap:var(--rp-sp-2)}
.homepage .rp-consultation-card .form-input, .about-page .rp-consultation-card .form-input, .contacts-page .rp-consultation-card .form-input{
    height:48px; border-radius:9px; border:1px solid var(--rp-border);
    padding:0 16px; font:400 15px/1 var(--rp-font-body); color:var(--rp-dark); background:#fbfcfe;
    box-sizing:border-box;
}
.homepage .rp-consultation-card .form-input:focus, .about-page .rp-consultation-card .form-input:focus, .contacts-page .rp-consultation-card .form-input:focus{outline:2px solid var(--rp-accent); outline-offset:1px; border-color:var(--rp-accent)}
@media (max-width:900px){
    .homepage .rp-consultation-grid, .about-page .rp-consultation-grid, .contacts-page .rp-consultation-grid{grid-template-columns:1fr; gap:var(--rp-sp-4)}
}

/* =========================================
   О КОМПАНИИ — страница about.html
   Использует токены и компоненты из .homepage/.about-page выше
   (rp-container, rp-kicker, rp-heading, rp-text, rp-about-grid и т.д.),
   здесь — только то, чего в общей системе не хватает.
========================================= */

.about-page .rp-about-grid:last-child, .contacts-page .rp-about-grid:last-child{margin-bottom:0}
/* Больше воздуха между блоками «Кто мы»/«Производство»/«Команда»/«Контроль качества» */
.about-page .rp-about .rp-about-grid:not(:last-child){margin-bottom: var(--rp-section-py)}
/* Текст и фото выравниваются по верхнему краю, а не по центру — иначе высота блоков
   плавает от текста к тексту и верхние края "пляшут" между секциями. */
.about-page .rp-about .rp-about-grid{align-items:start}
/* Кикер — отдельная строка грида в левой колонке (над текстом либо над фото,
   в зависимости от секции); текст и фото — во второй строке, вровень по верхнему краю. */
.about-page .rp-about .rp-about-grid{grid-template-rows:auto auto; row-gap:0}
.about-page .rp-about .rp-about-grid > .rp-kicker{grid-column:1; grid-row:1}
.about-page .rp-about .rp-about-grid > .rp-about-text,
.about-page .rp-about .rp-about-grid > .rp-about-image{grid-row:2}
.about-page .rp-about .rp-about-grid > .rp-about-text{grid-column:1}
.about-page .rp-about .rp-about-grid > .rp-about-image{grid-column:2}
.about-page .rp-about .rp-about-grid--image-left > .rp-about-image{grid-column:1}
.about-page .rp-about .rp-about-grid--image-left > .rp-about-text{grid-column:2}
@media (max-width:900px){
    .about-page .rp-about .rp-about-grid > .rp-kicker,
    .about-page .rp-about .rp-about-grid > .rp-about-text,
    .about-page .rp-about .rp-about-grid > .rp-about-image{grid-column:1; grid-row:auto}
}

/* ===== HERO ===== */
.about-page .ap-hero{
    position:relative; overflow:hidden;
    padding: 64px 0 var(--rp-sp-5);
    background: linear-gradient(180deg, var(--rp-surface-muted) 0%, #fff 78%);
}
/* Единый компактный ритм между секциями страницы (переопределяет --rp-section-py
   из общих .homepage/.about-page правил только для about-page — на главной не влияет). */
.about-page .rp-about, .contacts-page .rp-about{padding: var(--rp-sp-5) 0}
.about-page .rp-consultation, .contacts-page .rp-consultation{padding: var(--rp-sp-5) 0 var(--rp-section-py)}
.about-page .ap-hero::before{
    content:""; position:absolute; top:-220px; right:-160px; width:520px; height:520px;
    border-radius:50%; pointer-events:none;
    background: radial-gradient(circle, rgba(0,140,255,.14) 0%, rgba(0,140,255,0) 70%);
}
.about-page .ap-hero .rp-about-grid{grid-template-columns: 3fr 2fr}
@media (max-width:900px){
    .about-page .ap-hero .rp-about-grid{grid-template-columns:1fr}
}.about-page .ap-hero-inner{position:relative; z-index:1; max-width:760px}
.about-page .ap-hero h1{
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    line-height:1.22; font-weight:800; color:var(--rp-dark);
    margin: var(--rp-sp-2) 0 var(--rp-sp-3);
}
.about-page .ap-hero-lead{
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height:1.65; color:var(--rp-text-secondary); margin:0; max-width:62ch;
}
.about-page .ap-stats{
    display:grid; grid-template-columns:repeat(4,1fr); gap: var(--rp-sp-3);
    margin-top: var(--rp-sp-5); padding-top: var(--rp-sp-4);
    border-top:1px solid var(--rp-border);
}
.about-page .ap-stat{display:flex; flex-direction:column; gap:4px}
.about-page .ap-stat strong{
    font-family: var(--rp-font-heading);
    font-size: clamp(1.375rem, 2.1vw, 1.875rem);
    font-weight:800; color:var(--rp-dark); line-height:1.15;
}
.about-page .ap-stat span{font-size:13.5px; line-height:1.4; color:var(--rp-text-muted)}
@media (max-width:700px){
    .about-page .ap-stats{grid-template-columns:repeat(2,1fr); gap: var(--rp-sp-3) var(--rp-sp-2)}
}

/* ===== СТАНДАРТЫ / СЕРТИФИКАЦИЯ ===== */
.about-page .ap-standards{padding: var(--rp-sp-5) 0; border-top:1px solid var(--rp-border)}
.about-page .ap-badges{display:flex; flex-wrap:wrap; gap:10px; margin: var(--rp-sp-2) 0 0}
.about-page .ap-badge{
    display:inline-flex; align-items:center; gap:8px;
    padding:9px 18px; border-radius:999px; border:1px solid var(--rp-border);
    background:#fff; font:600 13.5px/1 var(--rp-font-body); color:var(--rp-dark);
}
.about-page .ap-badge svg{width:16px; height:16px; color:var(--rp-accent); flex-shrink:0}

/* ===== FAQ ===== */
.about-page .ap-faq, .contacts-page .ap-faq{padding: var(--rp-sp-5) 0; background:var(--rp-surface-muted)}
.about-page .ap-faq-list, .contacts-page .ap-faq-list{display:flex; flex-direction:column; gap:var(--rp-sp-2); max-width:840px}
.about-page .ap-faq-item, .contacts-page .ap-faq-item{
    background:#fff; border:1px solid var(--rp-border); border-radius:var(--rp-radius-lg);
    overflow:hidden;
}
.about-page .ap-faq-item summary, .contacts-page .ap-faq-item summary{
    cursor:pointer; list-style:none;
    display:flex; align-items:center; justify-content:space-between; gap:var(--rp-sp-2);
    padding: 18px 22px; font:600 15.5px/1.4 var(--rp-font-body); color:var(--rp-dark);
    transition:color var(--transition-fast, .2s ease);
}
.about-page .ap-faq-item summary::-webkit-details-marker, .contacts-page .ap-faq-item summary::-webkit-details-marker{display:none}
.about-page .ap-faq-item summary::after, .contacts-page .ap-faq-item summary::after{
    content:""; flex-shrink:0; width:20px; height:20px; color:var(--rp-text-muted);
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
    -webkit-mask-position:center; mask-position:center;
    transition:transform .2s ease;
}
.about-page .ap-faq-item[open] summary::after, .contacts-page .ap-faq-item[open] summary::after{transform:rotate(180deg)}
.about-page .ap-faq-item summary:hover, .contacts-page .ap-faq-item summary:hover{color:var(--rp-accent)}
.about-page .ap-faq-item summary:focus-visible, .contacts-page .ap-faq-item summary:focus-visible{outline:2px solid var(--rp-accent); outline-offset:-2px}
.about-page .ap-faq-answer, .contacts-page .ap-faq-answer{padding: 0 22px 20px; margin:0; font-size:15px; line-height:1.65; color:var(--rp-text-secondary)}
@media (max-width:640px){
    .about-page .ap-faq-item summary, .contacts-page .ap-faq-item summary{padding:16px 18px}
    .about-page .ap-faq-answer, .contacts-page .ap-faq-answer{padding:0 18px 18px}
}

/* =========================================
   КОНТАКТЫ — страница contacts.html
   Использует токены и компоненты из общего блока выше
   (rp-container, rp-kicker, rp-heading, rp-text, rp-about-grid, rp-consultation,
   ap-faq и т.д.), плюс существующий .map-container.
========================================= */

.contacts-page .cp-hero{
    position:relative; overflow:hidden;
    padding: 64px 0 var(--rp-sp-5);
    background: linear-gradient(180deg, var(--rp-surface-muted) 0%, #fff 78%);
}
.contacts-page .cp-hero::before{
    content:""; position:absolute; top:-220px; right:-160px; width:520px; height:520px;
    border-radius:50%; pointer-events:none;
    background: radial-gradient(circle, rgba(0,140,255,.14) 0%, rgba(0,140,255,0) 70%);
}
.contacts-page .cp-hero-inner{position:relative; z-index:1; max-width:760px}
.contacts-page .cp-hero h1{
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    line-height:1.18; font-weight:800; color:var(--rp-dark);
    margin: var(--rp-sp-2) 0 var(--rp-sp-3);
}
.contacts-page .cp-hero-lead{
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height:1.65; color:var(--rp-text-secondary); margin:0; max-width:62ch;
}

.contacts-page .cp-quick-contacts{
    position:relative; z-index:1;
    display:grid; grid-template-columns:repeat(4,1fr); gap: var(--rp-sp-2);
    margin-top: var(--rp-sp-5);
}
.contacts-page .cp-quick-card{
    display:flex; flex-direction:column; gap:4px;
    padding: var(--rp-sp-3); border-radius:var(--rp-radius-lg);
    background:#fff; border:1px solid var(--rp-border); box-shadow:var(--rp-shadow-sm);
    text-decoration:none; color:inherit;
    transition:transform .2s ease, box-shadow .2s ease;
}
.contacts-page a.cp-quick-card:hover{transform:translateY(-3px); box-shadow:var(--rp-shadow-md)}
.contacts-page .cp-quick-card svg{width:22px; height:22px; color:var(--rp-accent); margin-bottom:6px}
.contacts-page .cp-quick-card strong{font:700 15.5px/1.3 var(--rp-font-body); color:var(--rp-dark)}
.contacts-page .cp-quick-card span{font-size:13px; line-height:1.4; color:var(--rp-text-muted)}
@media (max-width:900px){
    .contacts-page .cp-quick-contacts{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:480px){
    .contacts-page .cp-quick-contacts{grid-template-columns:1fr}
}

.contacts-page .cp-team-grid{
    display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap: var(--rp-sp-3);
    margin-top: var(--rp-sp-3);
}
.contacts-page .cp-team-card{
    display:flex; flex-direction:column; align-items:center; text-align:center;
    padding: var(--rp-sp-4) var(--rp-sp-3);
    background:#fff; border:1px solid var(--rp-border); border-radius:var(--rp-radius-lg);
    box-shadow:var(--rp-shadow-sm);
    transition:transform .2s ease, box-shadow .2s ease;
}
.contacts-page .cp-team-card:hover{transform:translateY(-3px); box-shadow:var(--rp-shadow-md)}
.contacts-page .cp-team-photo{
    width:88px; height:88px; border-radius:50%; overflow:hidden; flex-shrink:0;
    border:3px solid var(--rp-surface-muted); margin-bottom: var(--rp-sp-2);
}
.contacts-page .cp-team-photo img{width:100%; height:100%; object-fit:cover; display:block}
.contacts-page .cp-team-name{font:700 16px/1.3 var(--rp-font-heading); color:var(--rp-dark)}
.contacts-page .cp-team-position{font-size:13.5px; line-height:1.4; color:var(--rp-text-muted); margin-top:2px; margin-bottom: var(--rp-sp-3)}
.contacts-page .cp-team-links{display:flex; flex-direction:column; gap:8px; width:100%; margin-top:auto}
.contacts-page .cp-team-link{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:9px 14px; border-radius:999px; background:var(--rp-surface-muted);
    font:500 13.5px/1.2 var(--rp-font-body); color:var(--rp-dark); text-decoration:none;
    transition:background .2s ease, color .2s ease;
}
.contacts-page .cp-team-link:hover{background:rgba(0,140,255,.1); color:var(--rp-accent)}
.contacts-page .cp-team-link svg{width:15px; height:15px; flex-shrink:0; color:var(--rp-accent)}