/*
Theme Name: Павильоны116
Theme URI: https://xn--116-5cdbmvh5i.xn--p1ai/
Author: Завод МАФ Казань
Description: Тема для завода по производству бытовок, павильонов и автолавок в Казани. Дизайн "Индустриальный технологичный".
Version: 1.0.0
License: GPL v2 or later
Text Domain: pavilony116
*/

/* ========================================
   CSS VARIABLES / DESIGN TOKENS
   ======================================== */
:root {
    /* Colors */
    --color-primary-dark: #1E2A38;
    --color-bg-light: #F5F7FA;
    --color-accent-orange: #46B9E9;
    --color-accent-orange-hover: #3A9CC4;
    --color-white: #FFFFFF;
    --color-text-dark: #2C3E50;
    --color-text-light: #B0C5D0;
    --color-text-muted: #90A4AE;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --container-padding: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Dividers */
    --color-divider: #46B9E9;
    --color-divider-alt: rgba(70, 185, 233, 0.2);
    
    /* Gradients */
    --gradient-metal: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 50%, rgba(255,255,255,0.03) 100%);
    --gradient-orange-glow: radial-gradient(circle, rgba(70, 185, 233, 0.15) 0%, transparent 60%);
}

/* ========================================
   FONTS (Google Fonts preconnect loaded via functions.php)
   ======================================== */

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-accent-orange);
    color: var(--color-white);
    padding: 12px 28px;
}

.btn-primary:hover {
    background-color: var(--color-accent-orange-hover);
    box-shadow: 0 4px 15px rgba(70, 185, 233, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-accent-orange);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    background: var(--color-primary-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
    padding: 8px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: fit-content;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 6px 16px;
    transition: border-color var(--transition-fast);
}

.site-logo:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-white);
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.logo-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-accent-orange);
    line-height: 1;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 4px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-orange);
    transition: width var(--transition-normal);
}

.header-nav a:hover {
    color: var(--color-accent-orange);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Header Contacts */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    transition: color var(--transition-fast);
}

.header-phone:hover {
    color: var(--color-accent-orange);
}

.header-phone .phone-icon {
    color: var(--color-accent-orange);
    display: flex;
    align-items: center;
}

/* Burger Toggle */
.burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.burger-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-toggle.active span:nth-child(2) {
    opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO — INDUSTRIAL POWER
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background-color: var(--color-primary-dark);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.85);
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background:
        /* Чертёжная сетка */
        repeating-linear-gradient(0deg, rgba(70, 185, 233, 0.015) 0px, rgba(70, 185, 233, 0.015) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(70, 185, 233, 0.015) 0px, rgba(70, 185, 233, 0.015) 1px, transparent 1px, transparent 40px),
        /* Шумовая текстура металла */
        repeating-conic-gradient(rgba(0, 0, 0, 0.02) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px,
        /* Градиент затемнения */
        linear-gradient(135deg,
            rgba(30, 42, 56, 0.92) 0%,
            rgba(30, 42, 56, 0.75) 35%,
            rgba(30, 42, 56, 0.55) 65%,
            rgba(70, 185, 233, 0.08) 100%
        );
}

/* Сварные искры — частицы */
.hero-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(70, 185, 233, 0.6), 0 0 12px 4px rgba(70, 185, 233, 0.2);
    animation: spark-fly var(--dur, 3s) ease-out var(--delay, 0s) infinite;
    opacity: 0;
}

.spark:nth-child(1)  { left: 15%; top: 70%; --dur: 2.8s; --delay: 0s; }
.spark:nth-child(2)  { left: 18%; top: 68%; --dur: 3.2s; --delay: 0.6s; }
.spark:nth-child(3)  { left: 12%; top: 72%; --dur: 2.5s; --delay: 1.2s; }
.spark:nth-child(4)  { left: 20%; top: 65%; --dur: 3.5s; --delay: 1.8s; }
.spark:nth-child(5)  { left: 14%; top: 75%; --dur: 2.9s; --delay: 2.4s; }
.spark:nth-child(6)  { left: 16%; top: 60%; --dur: 3.1s; --delay: 0.3s; }
.spark:nth-child(7)  { left: 10%; top: 78%; --dur: 2.7s; --delay: 1.5s; }
.spark:nth-child(8)  { left: 22%; top: 62%; --dur: 3.4s; --delay: 2.1s; }

@keyframes spark-fly {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
    15% {
        opacity: 1;
        transform: translate(calc(var(--dx, 1) * 30px), calc(var(--dx, -1) * 50px)) scale(1.5);
    }
    30% {
        opacity: 0.8;
        transform: translate(calc(var(--dx, -1) * 60px), calc(var(--dx, 1) * 100px)) scale(1.2);
    }
    60% {
        opacity: 0.2;
        transform: translate(calc(var(--dx, 1) * 90px), calc(var(--dx, -1) * 150px)) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--dx, 1) * 120px), calc(var(--dx, -1) * 200px)) scale(0.3);
    }
}

/* Glow-акценты */
.hero-accent {
    position: absolute;
    top: -30%;
    right: -5%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 185, 233, 0.1) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
    animation: accent-pulse 8s ease-in-out infinite;
}

.hero-accent-two {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 185, 233, 0.05) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
    animation: accent-pulse 10s ease-in-out 3s infinite;
}

@keyframes accent-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 880px;
    padding: 48px 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    backdrop-filter: blur(3px);
    background:
        /* Металлическая пластина */
        repeating-linear-gradient(45deg, transparent, transparent 31px, rgba(255, 255, 255, 0.03) 31px, rgba(255, 255, 255, 0.03) 32px),
        repeating-linear-gradient(-45deg, transparent, transparent 31px, rgba(255, 255, 255, 0.03) 31px, rgba(255, 255, 255, 0.03) 32px),
        rgba(30, 42, 56, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-orange), transparent);
    opacity: 0.6;
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.75rem, 5vw, 3rem);
    color: var(--color-white);
    line-height: 1.12;
    margin-bottom: 20px;
    text-wrap: balance;
    letter-spacing: -0.02em;
    /* Металлическая гравировка */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(70, 185, 233, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.05);
    animation: hero-breath 6s ease-in-out infinite;
}

/* Декоративная оранжевая линия под H1 */
.hero h1::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--color-accent-orange);
    margin: 16px auto 0;
    border-radius: 2px;
    animation: divider-grow 1.5s ease-out 0.3s forwards;
}

@keyframes divider-grow {
    to { width: 80px; }
}

@keyframes hero-breath {
    0%, 100% {
        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.6),
            0 2px 6px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(70, 185, 233, 0.08),
            0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.7),
            0 2px 8px rgba(0, 0, 0, 0.5),
            0 0 45px rgba(70, 185, 233, 0.12),
            0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

.hero h2 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #E8ECF0;
    line-height: 1.5;
    margin-bottom: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: #D8DEE4;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 3D-скевоэффект кнопки */
.btn-lg {
    font-size: 1.1rem;
    padding: 18px 40px;
    box-shadow:
        0 4px 0 var(--color-accent-orange-hover),
        0 6px 25px rgba(70, 185, 233, 0.35);
    transform: translateY(0);
    transition: all 0.15s ease;
}

.btn-lg:active {
    box-shadow:
        0 1px 0 var(--color-accent-orange-hover),
        0 2px 10px rgba(70, 185, 233, 0.2);
    transform: translateY(3px);
}

.hero-cta .btn {
    animation: pulse-cta 3s ease-in-out infinite;
}

.hero-cta .btn:hover {
    animation: none;
    box-shadow:
        0 4px 0 var(--color-accent-orange-hover),
        0 8px 40px rgba(70, 185, 233, 0.55);
    transform: translateY(-2px);
}

.hero-cta-sub {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-cta {
    0%, 100% {
        box-shadow:
            0 4px 0 var(--color-accent-orange-hover),
            0 6px 25px rgba(70, 185, 233, 0.35);
    }
    50% {
        box-shadow:
            0 4px 0 var(--color-accent-orange-hover),
            0 6px 40px rgba(70, 185, 233, 0.6);
    }
}

/* Progress Dots — industrial style */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-dot {
    position: relative;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
}

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.75);
    transform: rotate(45deg);
}

.hero-dot.active {
    border-color: var(--color-accent-orange);
    background: var(--color-accent-orange);
    transform: rotate(45deg);
}

.dot-progress {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    pointer-events: none;
}

.hero-dot.active .dot-progress {
    background: conic-gradient(transparent 0deg, var(--color-accent-orange) 0deg);
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    animation: progress-ring 5s linear infinite;
}

@keyframes progress-ring {
    from { background: conic-gradient(transparent 0deg, transparent 0deg); }
    to   { background: conic-gradient(transparent 0deg, var(--color-accent-orange) 360deg); }
}

/* Scroll-down arrow */
.hero-scroll-arrow {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 32px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hero-scroll-arrow::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--color-accent-orange);
    border-radius: 2px;
    margin-top: 10px;
    animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-timing-function: ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none !important;
}

/* Hero content — slide up */
.hero-content.animate-on-scroll {
    transform: translateY(40px);
    transition-duration: 0.8s;
}

/* Why bento items */
.why-bento-main.animate-on-scroll {
    transform: translateY(30px);
    transition-duration: 0.6s;
}

.why-bento-item.animate-on-scroll:nth-child(1) {
    transform: translateX(20px);
    transition-duration: 0.5s;
    transition-delay: 0.05s;
}

.why-bento-item.animate-on-scroll:nth-child(2) {
    transform: translateX(20px);
    transition-duration: 0.5s;
    transition-delay: 0.1s;
}

.why-bento-item.animate-on-scroll:nth-child(3) {
    transform: translateX(20px);
    transition-duration: 0.5s;
    transition-delay: 0.15s;
}

.why-bento-item.animate-on-scroll:nth-child(4) {
    transform: translateX(20px);
    transition-duration: 0.5s;
    transition-delay: 0.15s;
}

.why-bento-item.animate-on-scroll:nth-child(5) {
    transform: translateX(20px);
    transition-duration: 0.5s;
    transition-delay: 0.2s;
}

/* Calc card & heading */
.calc-heading.animate-on-scroll {
    transform: translateY(30px);
    transition-duration: 0.6s;
}

.calc-card.animate-on-scroll {
    transform: translateY(20px);
    transition-duration: 0.5s;
    transition-delay: 0.1s;
}

/* Catalog heading — slide up */
.catalog-heading.animate-on-scroll {
    transform: translateY(30px);
    transition-duration: 0.6s;
}

/* Card 1 — slide from left */
.catalog-card.animate-on-scroll:nth-child(1) {
    transform: translateX(-40px);
    transition-duration: 0.6s;
}

/* Card 2 — scale up */
.catalog-card.animate-on-scroll:nth-child(2) {
    transform: scale(0.9);
    transition-duration: 0.6s;
    transition-delay: 0.1s;
}

/* Card 3 — slide from right */
.catalog-card.animate-on-scroll:nth-child(3) {
    transform: translateX(40px);
    transition-duration: 0.6s;
    transition-delay: 0.2s;
}

/* SEO text — combo */
.catalog-seo-text.animate-on-scroll {
    transform: translateY(20px) scale(0.97);
    transition-duration: 0.5s;
    transition-delay: 0.3s;
}

/* ========================================
   WHY US SECTION — BENTO GRID 2026
   ======================================== */
.why-section {
    padding: 100px 0;
    background: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-conic-gradient(rgba(255, 255, 255, 0.01) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px;
    pointer-events: none;
}

/* Glow-акцент */
.why-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 185, 233, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.why-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-white);
    text-align: center;
    margin-bottom: 56px;
}

/* Bento Grid — 5 ячеек */
.why-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 20px;
}

/* Большая ячейка (фото) — 2 колонки, 2 строки */
.why-bento-main {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    transition: all var(--transition-normal);
}

.why-bento-main:hover {
    border-color: rgba(70, 185, 233, 0.25);
}

.why-bento-main-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(30,42,56,0.85) 100%), url('/wp-content/uploads/2026/07/workshop-assembly.jpg');
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.why-bento-main:hover .why-bento-main-bg {
    transform: scale(1.03);
}

.why-bento-main-content {
    position: relative;
    z-index: 2;
    padding: 32px 28px;
    color: var(--color-white);
}

.why-bento-main-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.why-bento-main-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
    max-width: 360px;
}

/* Малые ячейки — glass-карты */
.why-bento-item {
    position: relative;
    padding: 28px 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.why-bento-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(70, 185, 233, 0.04) 0%, transparent 60%);
    transition: all var(--transition-slow);
    pointer-events: none;
}

.why-bento-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(70, 185, 233, 0.2);
    transform: translateY(-3px);
}

.why-bento-item:hover::before {
    top: -20%;
    right: -20%;
    opacity: 1.5;
}

.why-bento-icon {
    width: 44px;
    height: 44px;
    background: rgba(70, 185, 233, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-orange);
    transition: all var(--transition-normal);
}

.why-bento-item:hover .why-bento-icon {
    background: rgba(70, 185, 233, 0.2);
    transform: scale(1.1) rotate(-3deg);
}

.why-bento-icon svg {
    width: 22px;
    height: 22px;
}

.why-bento-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-white);
    line-height: 1.3;
}

.why-bento-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .why-bento {
        grid-template-columns: 1fr 1fr;
    }
    .why-bento-main {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .why-bento {
        grid-template-columns: 1fr;
    }
    .why-bento-main {
        grid-column: span 1;
        min-height: 200px;
    }
}

/* ========================================
   CALCULATOR SECTION
   ======================================== */
.calc-section {
    padding: 80px 0;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Диагональная сетка на фоне */
.calc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 39px, rgba(30, 42, 56, 0.02) 39px, rgba(30, 42, 56, 0.02) 40px),
        repeating-linear-gradient(-45deg, transparent, transparent 39px, rgba(30, 42, 56, 0.02) 39px, rgba(30, 42, 56, 0.02) 40px);
    pointer-events: none;
}

/* Decorative accent - large orange circle */
.calc-section::after {
    content: '';
    position: absolute;
    top: -15%;
    right: -8%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(70, 185, 233, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* Decorative small circle bottom left */
.calc-deco {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(70, 185, 233, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Decorative text vertical */
.calc-deco-text {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.55rem;
    color: rgba(30, 42, 56, 0.04);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    pointer-events: none;
    z-index: 0;
}

.calc-deco-text-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.55rem;
    color: rgba(30, 42, 56, 0.04);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    pointer-events: none;
    z-index: 0;
}

.calc-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.calc-card {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: var(--color-primary-dark);
    border-radius: 4px;
    padding: 44px 52px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.15);
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.calc-select-wrap {
    position: relative;
}

.calc-select {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--transition-fast);
}

.calc-select:focus {
    border-color: var(--color-accent-orange);
}

.calc-select option {
    color: var(--color-text-dark);
    background: var(--color-white);
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent-orange);
    border: 2px solid var(--color-white);
    cursor: pointer;
}

.calc-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent-orange);
    border: 2px solid var(--color-white);
    cursor: pointer;
}

.calc-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-light);
    cursor: pointer;
    user-select: none;
}

.calc-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.calc-checkbox input:checked + .checkmark {
    background: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
}

.calc-checkbox input:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

.btn-calc {
    width: 100%;
    padding: 14px 24px;
    margin-top: 4px;
}

.calc-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    text-align: center;
}

.calc-result-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.calc-result-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--color-accent-orange);
    line-height: 1.1;
}

.calc-result-note {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .calc-card {
        grid-template-columns: 1fr;
        padding: 32px 28px;
        gap: 28px;
    }

    .calc-row {
        grid-template-columns: 1fr;
    }

    .calc-result-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .calc-card {
        padding: 24px 18px;
    }
}

/* ========================================
   SECTION DIVIDERS
   ======================================== */
.section-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
    background: var(--color-bg-light);
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section-divider--reverse::before {
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.section-divider--dark {
    background: var(--color-primary-dark);
}

.section-divider--dark::before {
    background: var(--color-bg-light);
}

.section-divider--dark-reverse {
    background: var(--color-primary-dark);
}

.section-divider--dark-reverse::before {
    background: var(--color-bg-light);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.section-divider-line {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent-orange) 20%, var(--color-accent-orange) 80%, transparent);
    opacity: 0.4;
}

/* ========================================
   CATALOG SECTION — METAL PLATES
   ======================================== */
.catalog-section {
    padding: 80px 0;
    background: var(--color-bg-light);
    position: relative;
}

.catalog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(30, 42, 56, 0.015) 59px, rgba(30, 42, 56, 0.015) 60px),
        repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(30, 42, 56, 0.015) 59px, rgba(30, 42, 56, 0.015) 60px);
    pointer-events: none;
}

.catalog-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
}

/* Металлическая пластина */
.catalog-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #FAFBFC 0%, #F0F2F5 100%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 42, 56, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    perspective: 800px;
}

/* Текстурная сетка на карточке */
.catalog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 19px, rgba(30, 42, 56, 0.01) 19px, rgba(30, 42, 56, 0.01) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 19px, rgba(30, 42, 56, 0.01) 19px, rgba(30, 42, 56, 0.01) 20px);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.catalog-card:hover::before {
    opacity: 1;
}

/* Оранжевый загибающийся уголок */
.catalog-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 0 0;
    border-color: transparent var(--color-accent-orange) transparent transparent;
    transition: all var(--transition-normal);
    z-index: 5;
    pointer-events: none;
}

.catalog-card:hover::after {
    border-width: 0 40px 40px 0;
    opacity: 0.95;
}

.catalog-card:hover {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: var(--color-accent-orange);
    transform: translateY(-4px) rotateY(1deg);
}

.catalog-card-img {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--color-text-light);
    z-index: 0;
}

.catalog-card-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(30, 42, 56, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.catalog-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.catalog-card:hover .catalog-card-img img {
    transform: scale(1.06);
}

.catalog-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 10%);
}

.catalog-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary-dark);
    line-height: 1.3;
}

.catalog-card-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    flex: 1;
}

.catalog-card-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-accent-orange);
    line-height: 1;
    margin: 4px 0 8px;
    letter-spacing: -0.02em;
}

.catalog-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent-orange);
    background: transparent;
    border: 2px solid var(--color-accent-orange);
    border-radius: 4px;
    padding: 10px 20px;
    transition: all var(--transition-normal);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.catalog-card-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(70, 185, 233, 0.15), transparent);
    transition: left 0.5s ease;
}

.catalog-card:hover .catalog-card-btn {
    background: var(--color-accent-orange);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(70, 185, 233, 0.2);
}

.catalog-card:hover .catalog-card-btn::before {
    left: 100%;
}

.catalog-seo-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   WORKS / OBJECTS SECTION — PORTFOLIO 2026
   ======================================== */
.works-section {
    padding: 80px 0;
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

.works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 49px, rgba(30, 42, 56, 0.015) 49px, rgba(30, 42, 56, 0.015) 50px),
        repeating-linear-gradient(-45deg, transparent, transparent 49px, rgba(30, 42, 56, 0.015) 49px, rgba(30, 42, 56, 0.015) 50px);
    pointer-events: none;
}

.works-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.works-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.works-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.works-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.works-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent-orange);
    transform: translateY(-4px);
}

.works-card-img {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--color-text-light);
}

.works-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.works-card:hover .works-card-img img {
    transform: scale(1.06);
}

/* Overlay with loupe */
.works-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 56, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
}

.works-card:hover .works-card-overlay {
    background: rgba(30, 42, 56, 0.35);
}

.works-card-loupe {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-accent-orange);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(70, 185, 233, 0.3);
}

.works-card:hover .works-card-loupe {
    opacity: 1;
    transform: scale(1);
}

.works-card-loupe svg {
    width: 22px;
    height: 22px;
}

/* Photo count badge */
.works-card-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(30, 42, 56, 0.7);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-left: 2px solid var(--color-accent-orange);
    pointer-events: none;
}

.works-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-text-light), var(--color-text-muted));
}

.works-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(30, 42, 56, 0.8) 0%, transparent 100%);
    padding: 40px 20px 14px;
    z-index: 2;
    pointer-events: none;
}

.works-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    line-height: 1.3;
}

/* More button */
.works-more {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* Empty state */
.works-empty {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.works-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--color-text-light);
}

.works-empty-icon svg {
    width: 100%;
    height: 100%;
}

.works-empty-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.works-empty-hint {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-section {
    padding: 80px 0;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 49px, rgba(30, 42, 56, 0.01) 49px, rgba(30, 42, 56, 0.01) 50px),
        repeating-linear-gradient(-45deg, transparent, transparent 49px, rgba(30, 42, 56, 0.01) 49px, rgba(30, 42, 56, 0.01) 50px);
    pointer-events: none;
}

.reviews-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.reviews-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.review-card {
    background: var(--color-bg-light);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(30, 42, 56, 0.04);
    transition: all var(--transition-normal);
}

.review-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent-orange);
    transform: translateY(-2px);
}

.review-card-img {
    width: 100%;
    background: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.review-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    padding: 14px 20px;
    line-height: 1.3;
    text-align: center;
}

.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CONTACTS SECTION
   ======================================== */
.contacts-section {
    padding: 80px 0;
    background: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
}

.contacts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-conic-gradient(rgba(255, 255, 255, 0.01) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px;
    pointer-events: none;
}

.contacts-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-white);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.contacts-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacts-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contacts-value {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.contacts-phone {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.contacts-phone:hover {
    color: var(--color-accent-orange);
}

.contacts-link {
    color: var(--color-accent-orange);
    transition: opacity var(--transition-fast);
}

.contacts-link:hover {
    opacity: 0.8;
}

.contacts-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.contacts-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.contacts-action svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contacts-action--max {
    color: var(--color-white);
    border: none;
    background: linear-gradient(90deg, rgba(65, 133, 246, 1) 0%, rgba(73, 48, 224, 1) 48%, rgba(150, 75, 218, 1) 98%);
}

.contacts-action--max:hover {
    opacity: 0.9;
    color: var(--color-white);
}

.contacts-action--vk {
    color: var(--color-white);
    border-color: #4C75A3;
    background: #4C75A3;
}

.contacts-action--vk:hover {
    background: #3B5E84;
    border-color: #3B5E84;
    color: var(--color-white);
}

.contacts-map {
    min-height: 360px;
    border-radius: 4px;
    overflow: hidden;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacts-map {
        min-height: 280px;
    }

    .contacts-map iframe {
        min-height: 280px;
    }

    .contacts-phone {
        font-size: 1.2rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-primary-dark);
    padding: 48px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    padding-bottom: 32px;
    align-items: start;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: block;
}

.footer-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 280px;
    margin-top: 16px;
}

/* Legal links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--color-accent-orange);
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-dev {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-dev a {
    color: var(--color-text-light);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-dev a:hover {
    color: var(--color-accent-orange);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
}

.gallery-modal-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    z-index: 2;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-modal-close svg {
    width: 24px;
    height: 24px;
}

.gallery-modal-image {
    max-width: 85vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.gallery-modal-image img.gallery-fade {
    animation: galleryFade 0.25s ease-out forwards;
}

@keyframes galleryFade {
    from {
        opacity: 0.3;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev { left: 20px; }
.gallery-nav-next { right: 20px; }

.gallery-nav svg {
    width: 28px;
    height: 28px;
}

.gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ========================================
   HOW WE WORK — 4 STEPS TIMELINE
   ======================================== */
.how-section {
    padding: 100px 0;
    background: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
}

.how-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 50px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 50px);
    pointer-events: none;
}

.how-section::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -5%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 185, 233, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.how-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-white);
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

/* Timeline */
.how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Соединительная линия */
.how-steps::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-orange), rgba(70, 185, 233, 0.3), var(--color-accent-orange));
    z-index: 0;
}

.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.how-step-num {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    background: var(--color-accent-orange);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(70, 185, 233, 0.3);
    position: relative;
    transform: rotate(0deg);
    transition: all var(--transition-normal);
}

.how-step:hover .how-step-num {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(70, 185, 233, 0.5);
}

.how-step-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent-orange);
    opacity: 0.8;
    transition: all var(--transition-normal);
}

.how-step:hover .how-step-icon {
    opacity: 1;
    transform: scale(1.15);
}

.how-step-icon svg {
    width: 100%;
    height: 100%;
}

.how-step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    line-height: 1.3;
}

.how-step-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Arrow between steps */
.how-arrow {
    display: none;
}

@media (max-width: 992px) {
    .how-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
    .how-steps::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .how-steps {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .how-arrow {
        display: block;
        text-align: center;
        color: var(--color-accent-orange);
        font-size: 1.5rem;
        margin: -12px 0;
    }
}

/* ========================================
   CERTIFICATES SECTION
   ======================================== */
.cert-section {
    padding: 80px 0;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cert-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(30,42,56,0.012) 79px, rgba(30,42,56,0.012) 80px),
        repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(30,42,56,0.012) 79px, rgba(30,42,56,0.012) 80px);
    pointer-events: none;
}

.cert-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cert-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.cert-card {
    background: var(--color-bg-light);
    border-radius: 4px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid rgba(30, 42, 56, 0.06);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cert-card:hover {
    background: var(--color-white);
    border-color: var(--color-accent-orange);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.cert-icon {
    width: 56px;
    height: 56px;
    color: var(--color-accent-orange);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.cert-card:hover .cert-icon {
    opacity: 1;
    transform: scale(1.1);
}

.cert-icon svg {
    width: 100%;
    height: 100%;
}

.cert-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    line-height: 1.3;
}

.cert-note {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 992px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .site-header .container {
        gap: 16px;
    }

    .header-nav {
        gap: 14px;
    }

    .header-nav a {
        font-size: 0.85rem;
    }

    .header-phone {
        font-size: 0.95rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-primary-dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right var(--transition-normal);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .header-nav.open {
        right: 0;
    }

    .header-nav a {
        font-size: 1.1rem;
    }

    .burger-toggle {
        display: flex;
    }

    .header-contacts .btn {
        display: none;
    }

    .header-phone {
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .hero-dots {
        bottom: 30px;
    }

    .hero {
        min-height: 90vh;
        padding: 100px 0 60px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        padding: 4px 10px;
    }

    .logo-text {
        gap: 10px;
    }

    .logo-brand {
        font-size: 0.82rem;
    }

    .logo-number {
        font-size: 1.1rem;
    }

    .logo-divider {
        height: 16px;
    }

    .header-phone {
        font-size: 0.82rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}