/*
Theme Name: Formex
Theme URI: https://formex.kg
Description: Formex — контент из БД WordPress. Заявки: CRM → Email.
Version: 1.0
Author: Formex
*/

:root {
    --deep-red: #B32B47;
    --black: #000000;
    --white: #ffffff;
    --gray-bg: #F9FAFB;
    --text-gray: #4B5563;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
body { font-family: 'Helvetica World', Arial, sans-serif; color: var(--black); line-height: 1.6; overflow-x: hidden; min-height: 100vh; min-height: 100dvh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.header { position: sticky; top: 0; background: #fff; z-index: 9999; padding: 15px 0; border-bottom: 1px solid #eee; transform: translateZ(0); backface-visibility: hidden; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.logo:hover img { opacity: 0.9; }
.nav-link.active { color: var(--deep-red); }
.nav-list { display: flex; list-style: none; gap: 25px; }
.nav-link { text-decoration: none; color: #333; font-weight: 700; font-size: 13px; text-transform: uppercase; transition: color 0.2s; }
.nav-link:hover { color: var(--deep-red); }

/* Иконка «Заказать звонок» в шапке (только мобильная, слева от гамбургера) */
.header-call-icon { display: none; }

/* Языковой переключатель (dropdown) + кнопка */
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-dropdown { position: relative; }
.lang-dropdown-trigger { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--text-gray); background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.lang-dropdown-trigger:hover { border-color: var(--deep-red); color: var(--deep-red); }
.lang-dropdown-chevron { font-size: 10px; opacity: 0.7; transition: transform 0.25s; }
.lang-dropdown.is-open .lang-dropdown-chevron { transform: rotate(180deg); }
.lang-dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 140px; padding: 6px 0; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); list-style: none; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s, visibility 0.2s, transform 0.2s; z-index: 100; }
.lang-dropdown.is-open .lang-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown-menu li { margin: 0; }
.lang-dropdown-menu a { display: block; padding: 10px 16px; font-size: 14px; color: var(--black); text-decoration: none; transition: background 0.15s, color 0.15s; }
.lang-dropdown-menu a:hover { background: var(--gray-bg); color: var(--deep-red); }
.lang-dropdown-menu a[aria-current="true"] { color: var(--deep-red); font-weight: 700; }

/* Кнопка меню (мобильная) */
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); transition: 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { height: 75vh; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero.jpg') center/cover; display: flex; align-items: center; color: #fff; }
.hero-content { max-width: 700px; }
.hero h1 { font-size: 60px; line-height: 1.1; margin: 20px 0; opacity: 0; transform: translateY(30px); }
.hero-btns { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.badge { background: var(--deep-red); padding: 5px 12px; font-weight: bold; font-size: 11px; }
.section-title { font-size: 36px; margin-bottom: 50px; }
.catalog-title-link { display: block; text-decoration: none; color: inherit; font-weight: 700; transition: color 0.25s; }
.catalog-title-link:hover { color: var(--deep-red); }
.dealer-box { padding: 60px 40px; }
.dealer-box h2 { margin-bottom: 15px; }
.dealer-box p { margin-bottom: 25px; opacity: 0.9; }
.form-header { text-align: center; margin-bottom: 40px; }
.form-header h2 { margin-bottom: 10px; }
.form-header p { color: var(--text-gray); }
.main-form textarea { min-height: 120px; resize: vertical; margin-bottom: 20px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.preview-section { text-align: center; max-width: 700px; margin: 0 auto; }
.preview-section .red-line { text-align: left; }
.preview-section h2 { margin-bottom: 20px; }
.preview-section p { margin-bottom: 25px; color: var(--text-gray); }
/* BIG BLOCKS: text + visual/cards */
.big-block { min-height: 0; }
.big-block-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.big-block--reverse .big-block-inner { direction: rtl; }
.big-block--reverse .big-block-inner > * { direction: ltr; }
.big-block-text { padding: 20px 0; }
.big-block-title { font-size: 38px; font-weight: 900; margin-bottom: 25px; line-height: 1.2; }
.big-block-desc { font-size: 17px; color: var(--text-gray); margin-bottom: 30px; line-height: 1.7; }
.big-block-stats { display: flex; gap: 40px; margin-bottom: 35px; }
.big-stat { text-align: left; }
.big-stat strong { display: block; font-size: 42px; color: var(--deep-red); line-height: 1; }
.big-stat span { font-size: 14px; color: var(--text-gray); }
.big-block-list { list-style: none; margin-bottom: 30px; }
.big-block-list li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--text-gray); }
.big-block-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--deep-red); border-radius: 50%; }
.big-block-visual { min-height: 400px; display: flex; align-items: center; }
.big-block-img-wrap { width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 24px 24px 0 var(--gray-bg); }
.big-block-img-wrap img { width: 100%; height: auto; display: block; }
.big-block-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.big-block-cards .product-card { text-decoration: none; color: inherit; display: block; }
.big-block-cards .product-card:hover { border-color: var(--deep-red); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

/* Каталог на главной: кнопка сверху + квадратные карточки с zoom */
.catalog-section { padding: 80px 0 100px; }
.catalog-section-header { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
.catalog-section-header .red-line { margin-bottom: 12px; }
.catalog-section-btn { text-decoration: none; }
.catalog-section-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card--square { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: 0.35s; position: relative; }
.product-card--square:hover { border-color: var(--deep-red); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.product-card--square .prod-img-wrap { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; position: relative; background: #f5f5f5; }
.product-card--square .prod-img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform 0.5s ease; }
.product-card--square:hover .prod-img { transform: scale(1.08); }
.product-card--square .prod-tag { position: absolute; top: 16px; left: 16px; background: var(--black); color: #fff; padding: 6px 12px; font-size: 11px; font-weight: bold; z-index: 2; }
.product-card--square .prod-info { padding: 24px; }
.product-card--square .prod-info h3 { font-size: 20px; margin-bottom: 10px; }
.product-card--square .prod-desc { font-size: 13px; margin: 8px 0 10px; }
.product-card--square .prod-specs { list-style: none; margin: 0; font-size: 13px; color: #666; }
.product-card--square .prod-specs li { margin-bottom: 4px; }
.catalog-section .catalog-tabs { margin-top: 24px; }
/* Панели каталога на главной (блок «Каталог продукции») */
.catalog-panels { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.catalog-panel { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 24px 32px; font-size: 18px; font-weight: 700; transition: border-color 0.25s, box-shadow 0.25s, color 0.25s; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.catalog-panel:hover { border-color: var(--deep-red); box-shadow: 0 8px 32px rgba(0,0,0,0.1); color: var(--deep-red); }
.catalog-panel::after { content: '→'; margin-left: 12px; opacity: 0.7; }

/* Каталог (страница): фильтры + карточки категорий (как товары) */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.catalog-filter { padding: 12px 22px; font-size: 14px; font-weight: 700; color: #555; background: #fff; border: 2px solid #e5e5e5; border-radius: 10px; cursor: pointer; transition: all 0.25s; font-family: inherit; }
.catalog-filter:hover { border-color: var(--deep-red); color: var(--deep-red); }
.catalog-filter.active { background: var(--deep-red); color: #fff; border-color: var(--deep-red); }
.catalog-category-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.catalog-category-card { display: block; text-decoration: none; color: inherit; }
.catalog-category-card--hidden { display: none !important; }
@media (max-width: 1024px) { .catalog-category-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .catalog-category-cards { grid-template-columns: 1fr; gap: 20px; } .catalog-filters { gap: 8px; margin-bottom: 24px; } .catalog-filter { padding: 10px 16px; font-size: 13px; } }

/* Сертификаты на странице каталога — карусель в один ряд (средний размер) */
.catalog-certificates { padding: 80px 0; }
.catalog-certificates-intro { max-width: 640px; margin: 16px auto 0; text-align: center; color: var(--text-gray); font-size: 15px; line-height: 1.6; }
.certificates-carousel { position: relative; margin-top: 32px; max-width: 840px; margin-left: auto; margin-right: auto; }
.certificates-carousel-track-wrap { overflow: hidden; }
.certificates-carousel-track { display: flex; gap: 20px; transition: transform 0.4s ease-out; }
.certificates-carousel .certificate-card { flex: 0 0 190px; min-width: 190px; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: box-shadow 0.25s, transform 0.25s; }
.certificates-carousel .certificate-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.certificate-card-img-wrap { display: block; aspect-ratio: 3/4; overflow: hidden; background: #f5f4f2; }
.certificate-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.certificate-card-caption { display: block; padding: 12px 14px; font-size: 12px; color: #666; text-align: center; border-top: 1px solid #eee; }
.certificates-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,0.12); color: var(--deep-red); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.2s, box-shadow 0.2s; }
.certificates-carousel-btn:hover { background: var(--deep-red); color: #fff; box-shadow: 0 4px 18px rgba(179, 43, 71, 0.35); }
.certificates-carousel-btn--prev { left: -20px; }
.certificates-carousel-btn--next { right: -20px; }
.certificates-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.certificates-carousel-dots button { width: 9px; height: 9px; border: none; border-radius: 50%; background: #ddd; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s; }
.certificates-carousel-dots button:hover { background: #bbb; }
.certificates-carousel-dots button.is-active { background: var(--deep-red); transform: scale(1.2); }
@media (max-width: 768px) {
    .certificates-carousel { max-width: 100%; margin-top: 28px; }
    .certificates-carousel .certificate-card { flex: 0 0 155px; min-width: 155px; }
    .certificates-carousel-btn { width: 36px; height: 36px; font-size: 16px; left: 0; right: auto; }
    .certificates-carousel-btn--next { right: 0; left: auto; }
}

/* Отзывы на странице каталога — карусель как у сертификатов (тот же размер и стиль) */
.catalog-reviews { padding: 80px 0; }
.reviews-carousel { position: relative; margin-top: 32px; max-width: 840px; margin-left: auto; margin-right: auto; }
.reviews-carousel-track-wrap { overflow: hidden; }
.reviews-carousel-track { display: flex; gap: 20px; transition: transform 0.4s ease-out; }
.reviews-carousel .review-card { flex: 0 0 190px; min-width: 190px; }
.reviews-carousel .review-card--scan { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: box-shadow 0.25s, transform 0.25s; padding: 0; display: flex; flex-direction: column; }
.reviews-carousel .review-card--scan:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.review-scan-link { display: block; aspect-ratio: 3/4; overflow: hidden; background: #f5f4f2; }
.review-scan-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.review-scan-caption { margin: 0; padding: 12px 14px; font-size: 12px; color: #666; text-align: center; border-top: 1px solid #eee; }
/* Текстовый отзыв (без скана) */
.reviews-carousel .review-card--text { flex: 0 0 190px; min-width: 190px; background: #fff; border: 1px solid #eee; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: box-shadow 0.25s, transform 0.25s; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; min-height: 260px; }
.reviews-carousel .review-card--text:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.review-card--text .review-text { font-size: 12px; line-height: 1.55; color: var(--text-gray); margin: 0 0 10px; font-style: italic; flex: 1; }
.review-card--text .review-author { font-size: 11px; color: #888; margin: 0; }
.reviews-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,0.12); color: var(--deep-red); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.2s, box-shadow 0.2s; }
.reviews-carousel-btn:hover { background: var(--deep-red); color: #fff; box-shadow: 0 4px 18px rgba(179, 43, 71, 0.35); }
.reviews-carousel-btn--prev { left: -20px; }
.reviews-carousel-btn--next { right: -20px; }
.reviews-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.reviews-carousel-dots button { width: 9px; height: 9px; border: none; border-radius: 50%; background: #ddd; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s; }
.reviews-carousel-dots button:hover { background: #bbb; }
.reviews-carousel-dots button.is-active { background: var(--deep-red); transform: scale(1.2); }
.catalog-consult { padding: 80px 0; }
.catalog-consult .preview-section p { margin-bottom: 24px; }
@media (min-width: 769px) {
    .reviews-carousel .review-card { flex: 0 0 190px; min-width: 190px; }
}
@media (min-width: 1025px) {
    .reviews-carousel .review-card { flex: 0 0 190px; min-width: 190px; }
}
@media (max-width: 768px) {
    .reviews-carousel { max-width: 100%; margin-top: 28px; }
    .reviews-carousel .review-card { flex: 0 0 155px; min-width: 155px; }
    .reviews-carousel .review-card--text { flex: 0 0 155px; min-width: 155px; min-height: 220px; }
    .reviews-carousel-btn { width: 36px; height: 36px; font-size: 16px; left: 0; right: auto; }
    .reviews-carousel-btn--next { right: 0; left: auto; }
}
@media (max-width: 640px) {
    .reviews-carousel .review-card { flex: 0 0 155px; min-width: 155px; }
    .reviews-carousel .review-card--text { flex: 0 0 155px; min-width: 155px; min-height: 200px; padding: 10px 12px; }
    .review-scan-caption { padding: 10px 12px; font-size: 11px; }
    .review-card--text .review-text { font-size: 11px; }
    .review-card--text .review-author { font-size: 10px; }
}
@media (max-width: 1024px) { .catalog-section-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .catalog-section-cards { grid-template-columns: 1fr; } .catalog-panel { padding: 18px 20px; font-size: 16px; } }
.big-block-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.big-block-steps .prod-step { margin: 0; }

/* Блок производство на главной — чёрный фон */
.production-block { background: #000; color: #fff; }
.production-block .big-block-title { color: #fff; }
.production-block .big-block-desc { color: #b0b0b0; }
.production-block .big-block-list li { color: #b0b0b0; }
.production-block .big-block-list li::before { background: var(--deep-red); }
.production-block .prod-step { background: #111; border-bottom-color: transparent; color: #fff; }
.production-block .prod-step:hover { border-bottom-color: var(--deep-red); }
.production-block .prod-step p { color: #999; }
.big-block-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.big-block-projects .project-item { height: 320px; text-decoration: none; color: inherit; display: block; }

/* Реализованные объекты на главной: кнопка сверху + квадратные карточки с zoom, чуть крупнее */
.projects-section { padding: 80px 0 100px; }
.projects-section-container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.projects-section-header { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 44px; }
.projects-section-header .red-line { margin-bottom: 12px; }
.projects-section-btn { text-decoration: none; }
.projects-section-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.project-card--square { display: block; text-decoration: none; color: inherit; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.08); transition: 0.35s; }
.project-card--square:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.14); }
.project-card--square .project-card-img-wrap { aspect-ratio: 1; overflow: hidden; position: relative; background: #111; }
.project-card--square .project-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.project-card--square:hover .project-card-img-wrap img { transform: scale(1.08); }
.project-card--square .project-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 28px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; opacity: 1; transform: translateY(0); transition: 0.4s; }
.project-card--square:hover .project-overlay { opacity: 1; transform: translateY(0); }
.project-card--square .project-overlay h4 { font-size: 22px; margin-bottom: 6px; }
.project-card--square .project-overlay p { font-size: 14px; opacity: 0.9; margin: 0; }
@media (max-width: 1024px) { .projects-section-cards { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 640px) { .projects-section-cards { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 1024px) {
    .big-block-inner { grid-template-columns: 1fr; gap: 40px; }
    .big-block--reverse .big-block-inner { direction: ltr; }
    .big-block-cards { grid-template-columns: 1fr 1fr; }
    .big-block-projects { grid-template-columns: 1fr 1fr; }
    .big-block-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .big-block-cards { grid-template-columns: 1fr; }
    .big-block-projects { grid-template-columns: 1fr; }
    .big-block-title { font-size: 28px; }
}

/* ABOUT */
.section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { width: 100%; border-radius: 4px; box-shadow: 20px 20px 0 var(--gray-bg); }
.about-stats { display: flex; gap: 40px; margin-top: 30px; }
.stat-item strong { display: block; font-size: 42px; color: var(--deep-red); }

/* PAGE HERO (inner pages) */
.page-hero { height: 50vh; background-size: cover; background-position: center; display: flex; align-items: center; color: #fff; }
.page-hero h1 { font-size: 52px; max-width: 700px; }
.page-hero p { margin-top: 15px; opacity: 0.95; max-width: 600px; }

/* ABOUT PAGE: story grid, timeline, values, cert */
.about-story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.story-visual { position: relative; }
.experience-badge { position: absolute; top: -20px; left: -20px; background: var(--deep-red); color: #fff; padding: 30px; text-align: center; z-index: 2; }
.experience-badge span { display: block; font-size: 40px; font-weight: 900; }
.timeline { position: relative; padding: 40px 0; }
.timeline::before { content: ''; position: absolute; left: 50px; top: 0; width: 2px; height: 100%; background: #eee; }
.timeline-item { position: relative; padding-left: 100px; margin-bottom: 60px; }
.time-year { position: absolute; left: 0; top: 0; background: var(--black); color: #fff; padding: 5px 15px; font-weight: bold; }
.timeline-item::after { content: ''; position: absolute; left: 46px; top: 10px; width: 10px; height: 10px; background: var(--deep-red); border-radius: 50%; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.value-item { padding: 25px; background: var(--gray-bg); border-left: 4px solid var(--deep-red); }
.value-item h4 { margin-bottom: 10px; }
.value-item p { font-size: 14px; color: var(--text-gray); }
.cert-header { text-align: center; margin-bottom: 20px; }
.cert-header h2 { margin-bottom: 10px; }
.cert-header p { color: var(--text-gray); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.cert-card { border: 1px solid #eee; padding: 40px; text-align: center; background: var(--gray-bg); transition: 0.3s; }
.cert-card:hover { background: #fff; box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: var(--deep-red); }
.cert-icon { font-size: 50px; margin-bottom: 20px; }

/* CATALOG B2B */
.gray-bg { background: var(--gray-bg); }
.catalog-title-btn { text-decoration: none; color: #000; display: inline-block; margin-bottom: 50px; }
.catalog-title-btn h2 { font-size: 42px; font-weight: 900; transition: 0.3s; }
.catalog-title-btn:hover h2 { color: var(--deep-red); transform: translateX(10px); }
/* Вкладки каталога */
.catalog-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.catalog-tab { padding: 14px 28px; font-size: 15px; font-weight: 700; color: #555; background: #fff; border: 2px solid #e5e5e5; border-radius: 10px; cursor: pointer; transition: all 0.25s; }
.catalog-tab:hover { border-color: var(--deep-red); color: var(--deep-red); background: #fff; }
.catalog-tab.active { background: var(--deep-red); color: #fff; border-color: var(--deep-red); }
.catalog-category { animation: catalogFadeIn 0.4s ease; }
.catalog-category--hidden { display: none !important; }
@keyframes catalogFadeIn { from { opacity: 0; } to { opacity: 1; } }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: #fff; border: 1px solid #eee; position: relative; transition: 0.4s; }
.catalog-grid .product-card { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
.catalog-grid .product-card.js-card-anim { opacity: 0; transform: translateY(28px); transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.35s ease; }
.catalog-grid .product-card.visible { opacity: 1; transform: translateY(0); }
.catalog-grid .product-card.visible:hover { transform: translateY(-8px) !important; box-shadow: 0 16px 48px rgba(0,0,0,0.12); border-color: var(--deep-red); }
.catalog-grid .product-card .prod-img { transition: transform 0.5s ease; }
.catalog-grid .product-card:hover .prod-img { transform: scale(1.06); }
.prod-tag { position: absolute; top: 15px; left: 15px; background: var(--black); color: #fff; padding: 4px 10px; font-size: 11px; font-weight: bold; z-index: 2; }
.prod-img { height: 240px; background-size: cover; background-position: center; }
.prod-info { padding: 25px; }
.prod-desc { font-size: 14px; color: var(--text-gray); line-height: 1.5; margin: 10px 0 12px; }
.prod-specs { list-style: none; margin: 15px 0; font-size: 13px; color: #666; }
.prod-btns { display: flex; gap: 15px; border-top: 1px solid #f0f0f0; padding-top: 15px; }
.btn-small { font-size: 12px; font-weight: bold; color: #888; border: 1px solid #eee; padding: 5px 10px; text-decoration: none; display: inline-block; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.btn-small:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.btn-small-red { font-size: 12px; font-weight: bold; color: var(--deep-red); text-decoration: none; display: inline-block; transition: transform 0.2s ease, color 0.2s ease; cursor: pointer; }
.btn-small-red:hover { transform: scale(1.05); color: #8a1f37; }
.prod-btns a { text-decoration: none; }

/* PRODUCTION ROW */
.production-intro { max-width: 720px; margin: 0 auto 40px; font-size: 16px; line-height: 1.7; color: var(--text-gray); text-align: center; }
.production-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.prod-step { background: #fff; padding: 50px 30px; text-align: center; border-bottom: 4px solid transparent; transition: 0.3s; }
.prod-step:hover { border-color: var(--deep-red); transform: translateY(-5px); }
.step-icon { width: 56px; height: 56px; margin: 0 auto 20px; display: block; color: var(--deep-red); }
.step-icon svg { width: 100%; height: 100%; display: block; }
.production-block .prod-step .step-icon { color: var(--deep-red); }
.production-block .prod-step:hover .step-icon { color: #fff; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-item { position: relative; height: 450px; overflow: hidden; }
.project-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.project-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; opacity: 1; transform: translateY(0); transition: 0.4s; }
.project-item:hover .project-overlay { opacity: 1; transform: translateY(0); }
.project-item:hover img { transform: scale(1.1); }

/* Материалы: новостные/статейные блоки — слева картинка, справа заголовок и текст */
.materials-articles { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.materials-articles--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.materials-articles--grid .materials-article { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.materials-articles--grid .materials-article-body { padding: 24px; }
.materials-article { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: box-shadow 0.25s, border-color 0.25s; }
.materials-article:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); border-color: var(--deep-red); }
a.materials-article--link { text-decoration: none; color: inherit; cursor: pointer; }
.materials-article-img { aspect-ratio: 4/3; overflow: hidden; background: #f0f0f0; }
.materials-article-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.materials-article-body { padding: 24px 32px 24px 0; min-width: 0; }
.materials-article-title { font-size: 22px; font-weight: 900; margin-bottom: 12px; line-height: 1.3; color: var(--black); }
.materials-article-text { font-size: 15px; line-height: 1.6; color: var(--text-gray); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) {
    .materials-articles--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .materials-articles--grid { grid-template-columns: 1fr; gap: 24px; }
    .materials-article { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .materials-article-img { aspect-ratio: 16/9; }
    .materials-article-body { padding: 24px 20px; }
}

/* Полная статья в разделе Новости — показывается только одна (по якорю) */
.materials-article-full-wrap { margin-top: 48px; padding-top: 32px; border-top: 1px solid #eee; }
.materials-article-full { display: none; max-width: 720px; margin: 0 auto 64px; }
.materials-article-full:target { display: block; }
.materials-article-full:last-child { margin-bottom: 0; }
.materials-article-back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--deep-red); text-decoration: none; margin-bottom: 20px; transition: opacity 0.2s; }
.materials-article-back:hover { opacity: 0.85; }
.materials-article-full-title { font-size: 28px; font-weight: 900; margin-bottom: 20px; line-height: 1.3; }
.materials-article-full-img { margin-bottom: 24px; border-radius: 12px; overflow: hidden; background: #f0f0f0; }
.materials-article-full-img img { width: 100%; height: auto; display: block; }
.materials-article-full-body { font-size: 16px; line-height: 1.7; color: var(--text-gray); }
.materials-article-full-body p { margin: 0 0 16px; }
.materials-article-full-body p:last-child { margin-bottom: 0; }
.materials-article-full-body a { color: var(--deep-red); font-weight: 600; }

/* Кейсы: карточки как в блоке «Наши проекты» */
.projects-cases-intro { max-width: 640px; margin: -20px auto 40px; color: var(--text-gray); font-size: 16px; line-height: 1.6; }

/* Раскрывающаяся панель от карточки — 46% экрана */
.project-detail-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9998; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s, visibility 0.3s; }
.project-detail-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.project-detail-panel { position: fixed; z-index: 9999; background: #fff; box-shadow: 8px 0 40px rgba(0,0,0,0.15); overflow: hidden; display: flex; flex-direction: column; transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1), top 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.4s cubic-bezier(0.22, 1, 0.36, 1); visibility: hidden; }
.project-detail-panel.is-open { visibility: visible; }
.project-detail-panel.is-expanded { overflow-y: auto; }
.project-detail-panel .project-detail-body { opacity: 0; transition: opacity 0.25s ease 0.15s; }
.project-detail-panel.is-expanded .project-detail-body { opacity: 1; }
.project-detail-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: none; background: #f0f0f0; border-radius: 50%; font-size: 28px; line-height: 1; color: #333; cursor: pointer; z-index: 2; transition: background 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center; padding: 0; opacity: 0; }
.project-detail-panel.is-expanded .project-detail-close { opacity: 1; }
.project-detail-close:hover { background: var(--deep-red); color: #fff; }
.project-detail-img-wrap { width: 100%; flex-shrink: 0; overflow: hidden; background: #f0f0f0; position: relative; }
.project-detail-panel:not(.is-expanded) .project-detail-img-wrap { flex: 1; min-height: 0; }
.project-detail-panel.is-expanded .project-detail-img-wrap { aspect-ratio: 4/3; }
.project-detail-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Карусель изображений в панели проекта */
.project-detail-gallery { position: relative; width: 100%; height: 100%; overflow: hidden; }
.project-detail-gallery-track { display: flex; height: 100%; transition: transform 0.35s ease-out; will-change: transform; }
.project-detail-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.project-detail-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-detail-prev, .project-detail-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,0.9); color: #333; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.15); transition: background 0.2s, color 0.2s; }
.project-detail-prev:hover, .project-detail-next:hover { background: var(--deep-red); color: #fff; }
.project-detail-prev { left: 12px; }
.project-detail-next { right: 12px; }
.project-detail-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.project-detail-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.project-detail-dot:hover { background: rgba(255,255,255,0.8); }
.project-detail-dot.is-active { background: #fff; box-shadow: 0 0 0 2px var(--deep-red); }
.project-detail-body { padding: 28px 24px 40px; flex: 1; }
.project-detail-title { font-size: 22px; font-weight: 900; margin-bottom: 16px; line-height: 1.3; color: var(--black); }
.project-detail-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--deep-red); text-transform: uppercase; margin-bottom: 8px; }
.project-detail-desc { font-size: 15px; line-height: 1.6; color: var(--text-gray); margin: 0; }
.projects-grid .project-item { cursor: pointer; }
@media (max-width: 900px) {
        .project-detail-panel.is-expanded { width: 92vmin !important; height: 92vmin !important; left: 4vmin !important; top: 4vmin !important; }
    }

/* DEALER & FORM */
.dealer-section { background: rgba(0,0,0,0.2); color: var(--black); text-align: center; }
.form-wrapper { background: #fff; border: 1px solid #eee; padding: 60px; max-width: 900px; margin: 0 auto; box-shadow: 0 30px 60px rgba(0,0,0,0.05); }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
input, textarea { width: 100%; padding: 15px; border: 1px solid #ddd; outline: none; }
input:focus { border-color: var(--deep-red); }

/* Контакты: пиктограммы вместо эмодзи */
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; }
.contact-item .contact-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--deep-red); }
.contact-item .contact-icon svg { width: 100%; height: 100%; display: block; }
.contact-item .contact-text { line-height: 1.5; }
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; color: var(--deep-red); }

.footer-contacts .contact-item { margin-top: 12px; color: #888; }
.footer-contacts .contact-icon { color: var(--deep-red); }
.footer-contacts .contact-item a { color: #888; }
.footer-contacts .contact-item a:hover { color: #fff; }

/* FOOTER */
.footer { background: #000; color: #fff; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.footer-menu h4, .footer-contacts h4 { color: var(--deep-red); text-transform: uppercase; margin-bottom: 25px; font-size: 15px; }
.footer-menu ul { list-style: none; }
.footer-menu li { margin-bottom: 12px; }
.footer-menu a { color: #888; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-menu a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { border-top: 1px solid #111; padding: 30px 0; text-align: center; color: #444; font-size: 12px; }

/* COMMON & ANIMATIONS */
.btn-red { background: var(--deep-red); color: #fff; border: none; padding: 15px 35px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.btn-red:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(179, 43, 71, 0.45); }
.btn-red:active { transform: scale(0.98); }
.btn-outline { border: 2px solid #fff; color: #fff; padding: 13px 35px; text-decoration: none; margin-left: 10px; font-weight: bold; display: inline-block; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.btn-outline:hover { transform: scale(1.04); box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25); }
.btn-outline:active { transform: scale(0.98); }
.red-line { color: var(--deep-red); font-weight: 900; letter-spacing: 2px; font-size: 11px; margin-bottom: 15px; display: block; }
.red-line--large { font-size: 22px; letter-spacing: 4px; margin-bottom: 28px; }
.js-fade-in { opacity: 0; transform: translateY(20px); transition: 1s; }
.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ========== АДАПТИВ: ПЛАНШЕТЫ ========== */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .header-wrap { gap: 20px; }
    .nav-list { gap: 18px; }
    .nav-link { font-size: 12px; }
    .hero h1 { font-size: 42px; }
    .hero-content { max-width: 100%; }
    .section { padding: 70px 0; }
    .big-block-title { font-size: 32px; }
    .big-block-desc { font-size: 16px; }
    .big-block-stats { gap: 30px; }
    .big-stat strong { font-size: 36px; }
    .big-block-img-wrap { box-shadow: 16px 16px 0 var(--gray-bg); }
    .catalog-section { padding: 60px 0 80px; }
    .projects-section { padding: 60px 0 80px; }
    .projects-section-container { padding: 0 24px; }
    .dealer-box { padding: 50px 30px; }
    .form-wrapper { padding: 40px 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 50px; }
    .footer-brand { grid-column: 1 / -1; }
    .about-grid { gap: 40px; }
    .production-row { grid-template-columns: 1fr; gap: 20px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-item { height: 360px; }
    .catalog-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .catalog-tabs { margin-bottom: 32px; }
    .page-hero h1 { font-size: 40px; }
    .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
    .values-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr 1fr; }
    .timeline-item { padding-left: 80px; }
    .timeline::before { left: 30px; }
    .timeline-item::after { left: 26px; }
    .time-year { font-size: 13px; padding: 4px 12px; }
}

/* ========== АДАПТИВ: ТЕЛЕФОНЫ ========== */
@media (max-width: 768px) {
    /* Вертикальная адаптация: безопасные зоны (вырезы, индикатор жестов) */
    body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .header { padding-top: calc(4px + env(safe-area-inset-top)); }
    .footer-bottom { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .footer-bottom .container { padding-bottom: env(safe-area-inset-bottom); }
    .btn-red { padding: 14px 28px; }
    main { min-height: calc(100vh - 1px); min-height: calc(100dvh - 1px); }

    .lang-dropdown-trigger { padding: 10px 14px; font-size: 15px; }
    .lang-dropdown-menu a { padding: 12px 18px; font-size: 15px; }
    .nav-toggle { display: flex; order: 3; }
    .nav { width: 100%; flex-direction: column; padding: 0 24px; gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.35s ease; border: none; order: 4; background: transparent; }
    body.nav-open .nav { max-height: 80vh; overflow-y: auto; }
    .nav-list { flex-direction: column; gap: 0; align-items: stretch; padding: 12px 0 0; border-top: 1px solid #eee; margin-top: 12px; }
    .nav-list li { border-bottom: 1px solid #eee; }
    .nav-link { display: block; padding: 14px 0; font-size: 14px; color: #333; }
    .header-wrap { flex-wrap: wrap; position: relative; gap: 4px; }
    .logo { order: 0; margin-right: auto; }
    .header-call-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; order: 2; margin-left: -8px; color: var(--deep-red); text-decoration: none; border-radius: 6px; transition: background 0.2s, color 0.2s; }
    .header-call-icon:hover { background: var(--gray-bg); color: var(--deep-red); }
    .header-call-icon svg { flex-shrink: 0; width: 16px; height: 16px; }
    /* Переключатель языков справа, выпадающее меню раскрывается влево и вверх */
    .header-actions { order: 5; width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 10px; max-height: 0; overflow: visible; opacity: 0; transition: max-height 0.35s ease, opacity 0.25s ease; padding-top: 0; margin-top: 0; }
    body.nav-open .header-actions { max-height: 120px; opacity: 1; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eee; }
    .header-actions .btn-red { display: none !important; }
    .lang-dropdown-menu { top: auto; bottom: calc(100% + 6px); right: 0; left: auto; transform: translateY(4px); }
    .lang-dropdown.is-open .lang-dropdown-menu { transform: translateY(0); }
    .header { padding: 4px 0; }
    .logo img { height: 48px; }
    .nav-toggle { padding: 3px; }
    .nav-toggle span { width: 18px; height: 2px; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .hero { height: 65vh; height: 65dvh; min-height: 340px; max-height: 500px; }
    .hero h1 { font-size: 32px; margin: 16px 0; }
    .hero-btns { flex-direction: column; margin-top: 20px; gap: 12px; }
    .hero-btns .btn-outline { margin-left: 0; }
    .section { padding: 36px 0 44px; }
    .section-title { font-size: 28px; margin-bottom: 24px; }
    .big-block-title { font-size: 26px; margin-bottom: 20px; }
    .big-block-desc { font-size: 15px; margin-bottom: 24px; }
    .big-block-stats { flex-wrap: wrap; gap: 24px; margin-bottom: 28px; }
    .big-stat strong { font-size: 32px; }
    .big-stat span { font-size: 13px; }
    .big-block-list li { margin-bottom: 10px; padding-left: 20px; font-size: 15px; }
    .big-block-visual { min-height: 280px; }
    .big-block-img-wrap { box-shadow: 12px 12px 0 var(--gray-bg); }
    .prod-step { padding: 36px 24px; }
    .step-icon { width: 44px; height: 44px; margin-bottom: 16px; }

    .catalog-section { padding: 36px 0 44px; }
    .catalog-section-header { margin-bottom: 22px; }
    .catalog-section-cards { gap: 18px; }
    .projects-section { padding: 36px 0 44px; }
    .projects-section-header { margin-bottom: 22px; }
    .projects-section-cards { gap: 18px; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card--square .project-overlay { padding: 24px 20px; }
    .project-card--square .project-overlay h4 { font-size: 18px; }

    .dealer-section .dealer-box { padding: 40px 24px; }
    .dealer-box h2 { font-size: 24px; }
    .preview-section p { margin-bottom: 20px; }
    .input-group { grid-template-columns: 1fr; }
    .form-wrapper { padding: 30px 20px; }
    .contact-layout { gap: 40px; }

    .catalog-certificates { padding: 44px 0 36px; }
    .catalog-reviews { padding: 44px 0 36px; }
    .catalog-consult { padding: 44px 0 36px; }
    .preview-section { padding: 0 16px; }
    .materials-articles { gap: 24px; margin-top: 28px; }
    .materials-article-full-wrap { margin-top: 36px; padding-top: 24px; }
    .materials-article-full { margin-bottom: 48px; }
    .materials-article-back { margin-bottom: 16px; }
    .materials-article-full-title { font-size: 24px; margin-bottom: 16px; }
    .materials-article-full-img { margin-bottom: 18px; }
    .production-row { gap: 20px; }
    .prod-step { padding: 28px 20px; }
    .form-header { margin-bottom: 28px; }
    .contact-item { margin-bottom: 12px; }

    .footer { padding: 36px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; text-align: center; }
    .footer-brand { text-align: center; }
    .footer-menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
    .footer-menu li { margin-bottom: 8px; }
    .footer-bottom { padding: 24px 0; font-size: 11px; }
    .footer-bottom .container { padding: 0 16px; }

    .about-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .about-stats { justify-content: center; }
    .about-img img { box-shadow: 12px 12px 0 var(--gray-bg); }
    .catalog-tabs { margin-bottom: 28px; gap: 10px; }
    .catalog-tab { padding: 12px 20px; font-size: 14px; }
    .catalog-grid { grid-template-columns: 1fr; gap: 24px; }
    .prod-info { padding: 20px; }
    .page-hero { height: 40vh; height: 40dvh; min-height: 220px; max-height: 320px; }
    .page-hero .container { padding-top: env(safe-area-inset-top); }
    .page-hero h1 { font-size: 28px; }
    .page-hero p { font-size: 14px; margin-top: 10px; }
    .about-story-grid { gap: 32px; text-align: left; }
    .cert-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
    .cert-card { padding: 28px 20px; }
    .cert-icon { font-size: 40px; }
    .timeline-item { padding-left: 70px; margin-bottom: 40px; }
    .timeline::before { left: 20px; }
    .timeline-item::after { left: 16px; }
    .time-year { font-size: 12px; padding: 4px 10px; }
}

/* ========== АДАПТИВ: МАЛЕНЬКИЕ ТЕЛЕФОНЫ (вертикальная адаптация) ========== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 28px 0 36px; }
    .section-title { font-size: 24px; margin-bottom: 20px; }
    .hero h1 { font-size: 26px; margin: 12px 0; }
    .hero { min-height: 300px; max-height: 420px; }
    .page-hero { min-height: 180px; max-height: 260px; }
    .page-hero h1 { font-size: 24px; }
    .page-hero p { font-size: 13px; margin-top: 8px; }
    .big-block-title { font-size: 22px; margin-bottom: 16px; }
    .big-block-desc { margin-bottom: 20px; }
    .big-block-stats { gap: 18px; margin-bottom: 22px; }
    .catalog-section { padding: 28px 0 36px; }
    .projects-section { padding: 28px 0 36px; }
    .projects-section-header { margin-bottom: 18px; }
    .catalog-certificates { padding: 32px 0 28px; }
    .catalog-reviews { padding: 32px 0 28px; }
    .catalog-consult { padding: 32px 0 28px; }
    .btn-red, .btn-outline { padding: 12px 24px; font-size: 14px; }
    .catalog-tab { padding: 10px 18px; font-size: 13px; }
    .product-card--square .prod-info { padding: 18px; }
    .product-card--square .prod-info h3 { font-size: 18px; }
    .footer-grid { padding-bottom: 24px; gap: 24px; }
    .footer-bottom { padding: 20px 0; }
    .materials-article-full-title { font-size: 22px; }
    .prod-step { padding: 24px 16px; }
    .step-icon { width: 40px; height: 40px; margin-bottom: 12px; }
}
