/* =====================================================
   Граница Стиля - Main Stylesheet
   ===================================================== */

:root {
    /* Colors */
    /* Brand tokens: «ГРАНИЦА СТИЛЯ» (tech blue + graphite) */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #6EA1FF;
    --accent: #4DD6FF;
    --accent-dark: #19BFEF;
    --secondary: #1F2937;

    /* RGB channels for alpha blends (modern syntax) */
    --primary-rgb: 37 99 235;
    --accent-rgb: 77 214 255;
    --secondary-rgb: 31 41 55;

    /* Neutrals */
    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --bg-dark: #0B1020;
    --bg-dark-2: #0E1730;
    --border: #D8E1EE;
    --bg-dark-rgb: 11 16 32;
    --bg-dark-2-rgb: 14 23 48;

    /* Text */
    --text: #0F172A;
    --text-light: #334155;
    --text-muted: #64748B;

    /* Semantic */
    --success: #12B981;
    --warning: #F6B23C;
    --danger: #EF4444;

    /* Focus */
    --focus-ring: rgb(var(--primary-rgb) / 0.28);
    --focus-ring-strong: rgb(var(--primary-rgb) / 0.38);
    
    /* Typography */
    --font-main: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Focus states (accessibility) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--focus-ring-strong);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--bg-dark);
    color: #fff;
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
}

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

.header-contacts {
    display: flex;
    gap: var(--space-lg);
}

.header-phone {
    color: #fff;
    font-weight: 600;
}

.header-phone:hover {
    color: var(--accent);
}

.header-schedule {
    color: rgb(255 255 255 / 0.75);
}

.header-socials {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
}

/* Navigation */
.header-nav {
    padding: var(--space-md) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.logo.logo--img {
    gap: 10px;
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    font-size: 1.05rem;
}

.brand-name__a {
    color: rgb(var(--secondary-rgb) / 0.92);
}

.brand-name__b {
    color: var(--primary);
}

.footer-logo.footer-logo--img {
    gap: 10px;
    align-items: center;
}

.footer-logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 64px;
    object-fit: contain;
}

.brand-name.brand-name--footer {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.brand-name.brand-name--footer .brand-name__a {
    color: rgb(255 255 255 / 0.92);
}

.brand-name.brand-name--footer .brand-name__b {
    color: var(--primary-light);
}

.logo:hover {
    color: var(--text);
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
}

.logo-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: var(--space-md);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
}

.btn-outline-danger {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--bg-alt);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: var(--space-sm);
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-main);
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

/* Native select polish (works even if JS custom select is blocked/cached) */
select.form-control,
select.filter-select,
select.preview-type {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23636e72' d='M5.6 7.6a1 1 0 0 1 1.4 0L10 10.6l3-3a1 1 0 1 1 1.4 1.4l-3.7 3.7a1 1 0 0 1-1.4 0L5.6 9a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
}

/* =====================================================
   CUSTOM SELECT (Global, no libs)
   ===================================================== */
.gs-select {
    position: relative;
}

.gs-select__native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.gs-select__button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 12px 44px 12px 16px;
    font: inherit;
    line-height: 1.2;
    color: var(--text);
    background: #fff;
    border: 1px solid rgb(var(--secondary-rgb) / 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
    position: relative;
}

.gs-select__button::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: 0.9;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.6 7.6a1 1 0 0 1 1.4 0L10 10.6l3-3a1 1 0 1 1 1.4 1.4l-3.7 3.7a1 1 0 0 1-1.4 0L5.6 9a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
}

.gs-select__button:hover {
    border-color: rgb(var(--secondary-rgb) / 0.18);
    background: linear-gradient(180deg, rgb(var(--secondary-rgb) / 0.02), rgb(255 255 255 / 1));
}

.gs-select__button:focus-visible {
    outline: none;
    border-color: rgb(var(--primary-rgb) / 0.40);
    box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.10);
}

.gs-select__popover {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1200;
    background: #fff;
    border: 1px solid rgb(var(--secondary-rgb) / 0.12);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgb(var(--secondary-rgb) / 0.16);
    padding: 6px;
    max-height: 260px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.gs-select.is-open .gs-select__popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}

.gs-select__option {
    width: 100%;
    min-height: 44px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: var(--text);
    transition: background 160ms ease, border-color 160ms ease;
}

.gs-select__option:hover,
.gs-select__option:focus-visible {
    outline: none;
    background: rgb(var(--secondary-rgb) / 0.04);
    border-color: rgb(var(--secondary-rgb) / 0.10);
}

.gs-select__option[aria-selected="true"] {
    background: rgb(var(--primary-rgb) / 0.08);
    border-color: rgb(var(--primary-rgb) / 0.20);
}

.gs-select__option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon input {
    padding-left: 44px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920') center/cover;
}

.hero-bg--carousel {
    background: none;
}

.hero-bg--carousel .hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 900ms ease;
    will-change: opacity;
}

.hero-bg--carousel .hero-slide.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg--carousel .hero-slide {
        transition: none;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(var(--bg-dark-rgb) / 0.58) 0%, rgb(var(--bg-dark-2-rgb) / 0.54) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgb(var(--accent-rgb) / 0.16);
    border: 1px solid var(--accent);
    border-radius: var(--radius-full);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-features {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
}

.hero-feature i {
    color: var(--success);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-calculator-preview {
    display: flex;
    justify-content: center;
}

.calc-preview-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 100%;
    max-width: 360px;
}

.calc-preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.calc-preview-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
}

.calc-preview-item .label {
    color: rgba(255,255,255,0.6);
}

.calc-preview-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    margin-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.calc-preview-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   ADVANTAGES
   ===================================================== */
.advantages {
    padding: var(--space-3xl) 0;
    background: var(--bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.advantage-card {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
}

.advantage-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.advantage-text {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgb(var(--primary-rgb) / 0.10);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services-section {
    padding: var(--space-3xl) 0;
}

.services-alt {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--accent);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.service-badge.badge-economy {
    background: var(--success);
    color: #fff;
}

.service-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content .btn {
    margin-top: auto;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.service-desc {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    flex-grow: 1;
    min-height: 60px;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.price-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Additional Services */
.additional-services {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
}

.add-service-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.add-service-card:hover {
    background: var(--primary);
    color: #fff;
}

.add-service-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    transition: var(--transition);
}

.add-service-card:hover i {
    color: #fff;
}

.add-service-card h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.add-service-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.add-service-card:hover p {
    color: rgba(255,255,255,0.8);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.cta-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.cta-features {
    list-style: none;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.cta-features i {
    color: var(--accent);
}

.cta-action {
    text-align: center;
}

.cta-compact .cta-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.cta-compact h2 {
    font-size: 1.75rem;
    margin-bottom: 0;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-section {
    padding: var(--space-3xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text {
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.about-certs h4 {
    margin-bottom: var(--space-md);
}

.certs-list {
    display: flex;
    gap: var(--space-lg);
}

.cert-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}

.cert-item i {
    color: var(--accent);
}

.about-images {
    position: relative;
}

.about-image-main img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-small {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid var(--bg);
}

/* =====================================================
   REVIEWS PREVIEW
   ===================================================== */
.reviews-preview {
    padding: var(--space-3xl) 0;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    align-items: stretch;
}

.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.review-author {
    display: flex;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.author-name {
    display: block;
    font-weight: 600;
}

.author-location {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.review-rating {
    color: var(--accent);
}

.review-rating .is-empty-star,
.rating-stars .is-empty-star {
    opacity: 0.32;
}

.review-text {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.review-footer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: auto;
}

.review-footer span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.review-verified {
    color: var(--success);
}

.reviews-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    text-align: center;
}

@media (max-width: 768px) {
    .reviews-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        margin-top: var(--space-lg);
    }

    .reviews-cta .btn {
        width: 100%;
        max-width: 520px;
        justify-content: center;
    }
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-desc {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.contact-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-value {
    font-weight: 600;
    color: var(--text);
}

.contact-socials {
    display: flex;
    gap: var(--space-md);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: #fff;
}

.social-btn.whatsapp { background: #25D366; }
.social-btn.telegram { background: #0088cc; }
.social-btn.vk { background: #4a76a8; }

.contact-form-wrapper {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.form-privacy {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-dark);
    color: #fff;
}

.footer-main {
    padding: var(--space-3xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-lg);
}

.footer-logo:hover {
    color: #fff;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.footer-socials {
    display: flex;
    gap: var(--space-sm);
}

.footer-socials .social-link {
    width: 40px;
    height: 40px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

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

.footer-contacts .contact-list {
    gap: var(--space-md);
}

.footer-contacts .contact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

.footer-contacts .contact-list a {
    color: rgba(255,255,255,0.7);
}

.footer-contacts .contact-list a:hover {
    color: var(--accent);
}

.footer-contacts .contact-list i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: var(--space-lg);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: #fff;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.modal-privacy {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: var(--space-lg);
}

/* =====================================================
   ALERTS
   ===================================================== */
.messages-container {
    position: fixed;
    top: 100px;
    right: var(--space-lg);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(110%); opacity: 0; }
}

.alert-success { border-color: var(--success); }
.alert-error { border-color: var(--danger); }
.alert-warning { border-color: var(--warning); }
.alert-info { border-color: var(--secondary); }

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* =====================================================
   PAGES
   ===================================================== */
.page-header {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* =====================================================
   CALCULATOR
   ===================================================== */
.calculator-page {
    padding: var(--space-2xl) 0;
    background: var(--bg-alt);
    min-height: 100vh;
}

.calculator-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    align-items: start;
}

.calculator-form {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.calc-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border);
}

.calc-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.calc-tab:hover {
    border-color: var(--primary);
}

.calc-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.calc-panel {
    display: none;
}

.calc-panel.active {
    display: block;
}

.calc-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.calc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.calc-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    color: var(--primary);
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.calc-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.calc-field label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    font-size: 0.9375rem;
}

.calc-field input[type="number"],
.calc-field input[type="text"],
.calc-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-field input[type="range"] {
    width: 100%;
    margin-top: var(--space-sm);
}

/* Material Select */
.material-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.material-option input {
    display: none;
}

.material-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.material-card:hover {
    border-color: var(--primary);
}

.material-option input:checked + .material-card {
    background: rgb(var(--primary-rgb) / 0.10);
    border-color: var(--primary);
}

.material-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.material-name {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.color-option input {
    display: none;
}

.color-swatch {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 3px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.color-option:hover .color-swatch {
    transform: scale(1.1);
}

.color-option input:checked + .color-swatch {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / 0.35);
}

/* Toggle Buttons */
.toggle-buttons {
    display: flex;
    gap: var(--space-sm);
}

.toggle-btn input {
    display: none;
}

.toggle-btn span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Checkbox Cards */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.checkbox-card input {
    display: none;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-card:hover .checkbox-content {
    border-color: var(--primary);
}

.checkbox-card input:checked + .checkbox-content {
    background: rgb(var(--primary-rgb) / 0.10);
    border-color: var(--primary);
}

.checkbox-content i {
    font-size: 1.5rem;
    color: var(--primary);
}

.checkbox-title {
    font-weight: 600;
}

.checkbox-price {
    color: var(--primary);
    font-weight: 600;
}

/* Results */
.calculator-results {
    position: sticky;
    top: 100px;
}

.results-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-lg);
}

.results-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border);
}

.results-items {
    margin-bottom: var(--space-lg);
}

.result-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

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

.item-qty {
    text-align: center;
    color: var(--text-light);
}

.item-price {
    text-align: right;
    font-weight: 500;
}

.results-summary {
    padding: var(--space-md) 0;
    border-top: 2px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    color: var(--text-light);
}

.summary-row.discount {
    color: var(--success);
}

.results-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    border-top: 2px solid var(--border);
}

.total-label {
    font-weight: 600;
    font-size: 1.125rem;
}

.total-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.results-timeline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--text-light);
}

.results-timeline i {
    color: var(--primary);
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.results-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-md);
}

.results-help {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.results-help h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.results-help p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.help-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* Promo */
.calc-promo {
    border-bottom: none !important;
}

.promo-input {
    display: flex;
    gap: var(--space-sm);
}

.promo-input input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
}

/* =====================================================
   PORTFOLIO
   ===================================================== */
.portfolio-page {
    padding: var(--space-2xl) 0;
}

.portfolio-filters {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-select {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    min-width: 150px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.portfolio-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex: 0 0 auto;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgb(var(--primary-rgb) / 0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #fff;
    font-weight: 600;
}

.portfolio-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.portfolio-type {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: rgb(var(--primary-rgb) / 0.10);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.portfolio-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.125rem * 1.3 * 2);
}

.portfolio-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    min-height: 1.4em;
}

.portfolio-price {
    margin-left: auto;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.portfolio-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.portfolio-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

.portfolio-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

.portfolio-empty i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

/* =====================================================
   REVIEWS PAGE
   ===================================================== */
.reviews-page {
    padding: var(--space-2xl) 0;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.reviews-stats .stat-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    min-width: 150px;
}

.reviews-stats .stat-icon {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.reviews-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.reviews-stats .stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.reviews-actions {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.review-card-full {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.review-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.review-images {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.review-image {
    position: relative;
    width: 150px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xs);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
}

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-page {
    padding: var(--space-3xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-wrapper {
    display: flex;
    gap: var(--space-3xl);
    max-width: 900px;
    margin: 0 auto;
}

.auth-card {
    flex: 1;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.auth-card-wide {
    max-width: 500px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.auth-subtitle {
    color: var(--text-light);
}

.auth-divider {
    text-align: center;
    margin: var(--space-xl) 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: var(--bg);
    padding: 0 var(--space-md);
    color: var(--text-muted);
}

.auth-alt {
    text-align: center;
}

.auth-alt p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.auth-benefits {
    flex: 1;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
}

.auth-benefits h3 {
    margin-bottom: var(--space-xl);
}

.auth-benefits ul {
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.auth-benefits i {
    color: var(--accent);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.forgot-link {
    color: var(--primary);
    font-size: 0.875rem;
}

.form-errors {
    padding: var(--space-md);
    background: rgba(214, 48, 49, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.error-text {
    color: var(--danger);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* =====================================================
   PROFILE
   ===================================================== */
.profile-page {
    padding: var(--space-2xl) 0;
    min-height: 80vh;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.profile-email {
    color: var(--text-light);
}

.profile-actions {
    display: flex;
    gap: var(--space-md);
}

.profile-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-2xl);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.profile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: var(--transition);
}

.profile-nav-item:hover {
    background: var(--bg-alt);
}

.profile-nav-item.active {
    background: var(--primary);
    color: #fff;
}

.profile-nav-item i {
    margin-right: var(--space-sm);
}

.profile-nav-item .badge {
    padding: 2px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.profile-stats .stat-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.profile-section {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.profile-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    text-align: left;
    max-width: none;
}

.profile-section h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    margin-bottom: 0;
}

.estimates-list,
.applications-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.estimate-card,
.application-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}

.estimate-info,
.application-info {
    flex: 1;
}

.estimate-info h4,
.application-info h4 {
    margin-bottom: var(--space-xs);
}

.estimate-meta,
.application-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.estimate-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.estimate-actions {
    display: flex;
    gap: var(--space-sm);
}

.status-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-draft { background: var(--bg-alt); color: var(--text-light); }
.status-new { background: rgba(0, 184, 148, 0.1); color: var(--success); }
.status-submitted { background: rgba(253, 203, 110, 0.2); color: #e67e22; }
.status-processing { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.status-measurement { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.status-estimate_sent { background: rgba(241, 196, 15, 0.1); color: #f39c12; }
.status-contract { background: rgba(26, 188, 156, 0.1); color: #1abc9c; }
.status-installation { background: rgba(230, 126, 34, 0.1); color: #e67e22; }
.status-completed { background: rgba(46, 204, 113, 0.1); color: #27ae60; }
.status-cancelled { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.empty-state p {
    margin-bottom: var(--space-lg);
}

/* Stages Timeline */
.stages-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.stage-item {
    text-align: center;
    position: relative;
}

.stage-item::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--border);
}

.stage-item:last-child::after {
    display: none;
}

.stage-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    background: var(--bg-alt);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.stage-content h4 {
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.stage-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Estimates Table */
.estimates-table {
    overflow-x: auto;
}

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

.estimates-table th,
.estimates-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.estimates-table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
}

.estimates-table td.price {
    font-weight: 600;
    color: var(--primary);
}

.estimates-table td.actions {
    display: flex;
    gap: var(--space-xs);
}

/* Progress Bar for Applications */
.application-progress {
    margin-top: var(--space-lg);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 2px solid var(--border);
    margin-bottom: var(--space-xs);
}

.progress-step.completed .step-dot {
    background: var(--primary);
    border-color: var(--primary);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-step.completed .step-label {
    color: var(--primary);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--text-light);
}

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

.breadcrumbs i {
    font-size: 0.625rem;
}

/* =====================================================
   PROJECT DETAIL
   ===================================================== */
.project-detail {
    padding: var(--space-2xl) 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
}

.thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.thumb.active,
.thumb:hover {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-type {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgb(var(--primary-rgb) / 0.10);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.project-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-lg);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary);
}

.project-price {
    padding: var(--space-lg);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.project-price .price-label {
    display: block;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.project-price .price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.project-description {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.project-params {
    margin-bottom: var(--space-xl);
}

.project-params h3 {
    margin-bottom: var(--space-md);
}

.project-params ul {
    list-style: none;
}

.project-params li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.project-review {
    padding: var(--space-lg);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.project-review h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.project-review blockquote {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.project-review cite {
    color: var(--text-muted);
}

.project-actions {
    display: flex;
    gap: var(--space-md);
}

.related-projects h2 {
    margin-bottom: var(--space-xl);
}

.portfolio-grid-sm {
    grid-template-columns: repeat(4, 1fr);
}

.portfolio-grid-sm .portfolio-card {
    box-shadow: var(--shadow-sm);
}

.portfolio-grid-sm .portfolio-image {
    height: 150px;
}

.portfolio-grid-sm .portfolio-content {
    padding: var(--space-md);
}

.portfolio-grid-sm .portfolio-title {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .additional-services {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-calculator-preview {
        display: none;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .calculator-results {
        position: static;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        order: -1;
    }
    
    .about-image-small {
        display: none;
    }
    
    .geography-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-wrapper {
        flex-direction: column;
    }
    
    .auth-benefits {
        display: none;
    }
    
    .stages-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Header */
    .header-top {
        padding: var(--space-xs) 0;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .header-socials {
        display: none;
    }
    
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .header-nav {
        padding: var(--space-sm) 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .logo-img {
        height: 34px;
        max-width: 56px;
    }

    .brand-name {
        gap: 8px;
        font-size: 0.95rem;
        letter-spacing: 0.03em;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }
    
    .hero-features {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
    
    .hero-feature {
        font-size: 0.875rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    /* Advantages */
    .advantages {
        padding: var(--space-xl) 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .advantage-card {
        padding: var(--space-lg);
        display: flex;
        flex-direction: row;
        text-align: left;
        gap: var(--space-md);
    }
    
    .advantage-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        margin: 0;
        font-size: 1.25rem;
    }
    
    .advantage-title {
        font-size: 1rem;
        margin-bottom: var(--space-xs);
    }
    
    .advantage-text {
        font-size: 0.875rem;
    }
    
    /* Services */
    .services-section {
        padding: var(--space-xl) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .service-card {
        display: flex;
        flex-direction: row;
    }
    
    .service-image {
        width: 120px;
        min-width: 120px;
        height: auto;
    }
    
    .service-content {
        padding: var(--space-md);
        flex: 1;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-desc {
        font-size: 0.8125rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .service-price {
        margin-bottom: var(--space-sm);
    }
    
    .price-value {
        font-size: 1.25rem;
    }
    
    /* Additional Services */
    .additional-services {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .add-service-card {
        padding: var(--space-md);
    }
    
    .add-service-card i {
        font-size: 1.5rem;
    }
    
    .add-service-card h4 {
        font-size: 0.875rem;
    }
    
    .add-service-card p {
        font-size: 0.75rem;
    }
    
    /* CTA */
    .cta-section {
        padding: var(--space-xl) 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-features li {
        font-size: 0.875rem;
    }
    
    /* About */
    .about-section {
        padding: var(--space-xl) 0;
    }
    
    .about-text {
        font-size: 0.9375rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .certs-list {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .cert-item {
        font-size: 0.8125rem;
    }
    
    /* Reviews */
    .reviews-preview {
        padding: var(--space-xl) 0;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .review-card {
        padding: var(--space-lg);
    }
    
    .review-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .author-name {
        font-size: 0.9375rem;
    }
    
    .review-text {
        font-size: 0.875rem;
    }
    
    .review-footer {
        font-size: 0.75rem;
    }
    
    /* Contact */
    .contact-section {
        padding: var(--space-xl) 0;
    }
    
    .contact-item {
        gap: var(--space-sm);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-socials {
        flex-wrap: wrap;
    }
    
    .social-btn {
        flex: 1;
        min-width: calc(50% - var(--space-sm));
        justify-content: center;
        font-size: 0.875rem;
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-main {
        padding: var(--space-xl) 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-contacts .contact-list {
        align-items: center;
    }
    
    .footer-contacts .contact-list li {
        justify-content: center;
    }
    
    /* Calculator */
    .calculator-page {
        padding: var(--space-lg) 0;
    }
    
    .calculator-header {
        margin-bottom: var(--space-lg);
    }
    
    .calculator-header .page-title {
        font-size: 1.5rem;
    }
    
    .calculator-form {
        padding: var(--space-lg);
    }
    
    /* Стили для калькулятора v2 переопределены в calculator.css */
    .calculator-page.calculator-v2 .calc-tabs {
        flex-direction: row !important;
    }
    
    .calc-tabs:not(.calculator-page.calculator-v2 .calc-tabs) {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .calc-tab:not(.calculator-page.calculator-v2 .calc-tab) {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
    
    .calc-section {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    
    .calc-section-title {
        font-size: 0.9375rem;
        margin-bottom: var(--space-md);
    }
    
    .material-select {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .material-card {
        padding: var(--space-md);
    }
    
    .material-card i {
        font-size: 1.25rem;
    }
    
    .material-name {
        font-size: 0.75rem;
    }
    
    .calc-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .calc-row-3 {
        grid-template-columns: 1fr;
    }
    
    .calc-field label {
        font-size: 0.875rem;
    }
    
    .calc-field input,
    .calc-field select {
        padding: 10px 14px;
        font-size: 0.9375rem;
    }
    
    .color-picker {
        gap: var(--space-xs);
    }
    
    .color-swatch {
        width: 36px;
        height: 36px;
    }
    
    .toggle-buttons {
        flex-direction: column;
    }
    
    .toggle-btn span {
        justify-content: center;
        width: 100%;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .checkbox-content {
        flex-direction: row;
        justify-content: flex-start;
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .checkbox-content i {
        font-size: 1.25rem;
    }
    
    .checkbox-title {
        font-size: 0.9375rem;
    }
    
    /* Results Panel Mobile */
    .results-card {
        padding: var(--space-lg);
    }
    
    .results-title {
        font-size: 1.125rem;
    }
    
    .result-item {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
        padding: var(--space-sm) 0;
    }
    
    .item-name {
        font-weight: 500;
    }
    
    .item-qty {
        text-align: left;
        font-size: 0.8125rem;
    }
    
    .item-price {
        text-align: left;
        color: var(--primary);
    }
    
    .total-value {
        font-size: 1.5rem;
    }
    
    .results-actions .btn {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    /* Portfolio */
    .portfolio-page {
        padding: var(--space-lg) 0;
    }
    
    .portfolio-filters {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group label {
        font-size: 0.875rem;
        margin-bottom: var(--space-xs);
    }
    
    .filter-select {
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .portfolio-image {
        height: 140px;
    }
    
    .portfolio-content {
        padding: var(--space-md);
    }
    
    .portfolio-type {
        font-size: 0.625rem;
    }
    
	    .portfolio-title {
	        font-size: 0.9375rem;
	        -webkit-line-clamp: 3;
	        min-height: calc(0.9375rem * 1.3 * 3);
	    }
    
    .portfolio-meta {
        flex-direction: column;
        gap: var(--space-xs);
        font-size: 0.75rem;
    }
    
	    .portfolio-actions {
	        grid-template-columns: 1fr;
	        gap: 10px;
	    }
    
    .portfolio-actions .btn {
        width: 100%;
        font-size: 0.75rem;
        padding: var(--space-sm);
    }
    
    .portfolio-grid-sm {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Project Detail */
    .project-detail {
        padding: var(--space-lg) 0;
    }
    
    .breadcrumbs {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
    
    .gallery-main img {
        height: 250px;
    }
    
    .gallery-thumbs {
        overflow-x: auto;
        padding-bottom: var(--space-sm);
    }
    
    .thumb {
        width: 60px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .project-price .price-value {
        font-size: 1.5rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-actions .btn {
        width: 100%;
    }
    
    /* Reviews Page */
    .reviews-page {
        padding: var(--space-lg) 0;
    }
    
    .reviews-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
    
    .reviews-stats .stat-card {
        padding: var(--space-md);
        min-width: 100px;
    }
    
    .reviews-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .reviews-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .review-card-full {
        padding: var(--space-lg);
    }
    
    .review-title {
        font-size: 1rem;
    }
    
    .review-images {
        flex-wrap: wrap;
    }
    
    .review-image {
        width: 100px;
        height: 70px;
    }
    
    /* Auth Pages */
    .auth-page {
        padding: var(--space-xl) 0;
    }
    
    .auth-card {
        padding: var(--space-lg);
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Profile */
    .profile-page {
        padding: var(--space-lg) 0;
    }
    
    .profile-header {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .profile-info {
        flex-direction: column;
    }
    
    .profile-avatar {
        margin: 0 auto;
    }
    
    .profile-name {
        font-size: 1.25rem;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xs);
    }
    
    .profile-nav-item {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
    
    .profile-nav-item i {
        margin-right: var(--space-xs);
    }
    
    .profile-nav-item .badge {
        display: none;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .profile-stats .stat-card {
        padding: var(--space-md);
    }
    
    .profile-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .profile-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .profile-section {
        padding: var(--space-lg);
    }
    
    .profile-section h2 {
        font-size: 1rem;
    }
    
    .estimate-card,
    .application-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .estimate-price {
        font-size: 1rem;
    }
    
    .estimate-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stages-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stage-item::after {
        display: none;
    }
    
    .stage-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stage-content h4 {
        font-size: 0.75rem;
    }
    
    .stage-content p {
        font-size: 0.625rem;
    }
    
    /* Tables */
    .estimates-table {
        font-size: 0.875rem;
    }
    
    .estimates-table th,
    .estimates-table td {
        padding: var(--space-sm);
    }
    
    .estimates-table th:nth-child(3),
    .estimates-table td:nth-child(3),
    .estimates-table th:nth-child(5),
    .estimates-table td:nth-child(5) {
        display: none;
    }
    
    /* Application Progress */
    .progress-bar {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .progress-bar::before {
        display: none;
    }
    
    .progress-step {
        flex: 1;
        min-width: calc(33% - var(--space-sm));
    }
    
    .step-dot {
        width: 20px;
        height: 20px;
    }
    
    .step-label {
        font-size: 0.625rem;
    }
    
    /* Modal */
    .modal-container {
        margin: var(--space-sm);
        max-height: calc(100vh - var(--space-lg));
    }
    
    .modal-content {
        padding: var(--space-lg);
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    /* Pagination */
    .pagination {
        gap: var(--space-xs);
    }
    
    .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: var(--space-xl);
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
    
    /* Services horizontal scroll */
    .service-card {
        flex-direction: column;
    }
    
    .service-image {
        width: 100%;
        height: 160px;
    }
    
    /* Additional services */
    .additional-services {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xs);
    }
    
    .add-service-card {
        padding: var(--space-sm);
    }
    
    .add-service-card i {
        font-size: 1.25rem;
        margin-bottom: var(--space-xs);
    }
    
    .add-service-card h4 {
        font-size: 0.6875rem;
    }
    
    .add-service-card p {
        font-size: 0.625rem;
    }
    
    /* Portfolio single column */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    /* Calculator */
    .material-select {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .material-card {
        padding: var(--space-sm);
    }
    
    .color-swatch {
        width: 32px;
        height: 32px;
    }
    
    /* Results */
    .total-value {
        font-size: 1.25rem;
    }
    
    /* Profile */
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .stages-timeline {
        grid-template-columns: 1fr;
    }
    
    /* Review Form */
    .rating-select {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .rating-option {
        width: 100%;
    }
    
    /* Estimates table as cards */
    .estimates-table table,
    .estimates-table thead,
    .estimates-table tbody,
    .estimates-table th,
    .estimates-table td,
    .estimates-table tr {
        display: block;
    }
    
    .estimates-table thead {
        display: none;
    }
    
    .estimates-table tr {
        margin-bottom: var(--space-md);
        padding: var(--space-md);
        background: var(--bg-alt);
        border-radius: var(--radius-md);
    }
    
    .estimates-table td {
        padding: var(--space-xs) 0;
        border: none;
        display: flex;
        justify-content: space-between;
    }
    
    .estimates-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--text-light);
    }
    
    .estimates-table td:nth-child(3),
    .estimates-table td:nth-child(5) {
        display: flex;
    }
    
    .estimates-table td.actions {
        justify-content: flex-start;
        gap: var(--space-sm);
        margin-top: var(--space-sm);
    }
}

/* =====================================================
   MOBILE NAVIGATION (Off-Canvas Menu)
   ===================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
    background: transparent;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100%;
    background: #fff;
    box-shadow: -18px 0 60px rgb(var(--secondary-rgb) / 0.18);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-body {
    flex: 1;
    padding: 16px 14px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 14px;
    color: var(--text);
    opacity: 1;
    font-size: 1.02rem;
    font-weight: 800;
    border-radius: 16px;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
    background: rgb(var(--secondary-rgb) / 0.02);
    border: 1px solid rgb(var(--secondary-rgb) / 0.08);
}

.mobile-nav-link:hover {
    background: rgb(var(--primary-rgb) / 0.08);
    border-color: rgb(var(--primary-rgb) / 0.14);
    color: var(--text);
    transform: translateY(-1px);
}

.mobile-nav-link.active {
    background: var(--primary);
    border-color: rgb(var(--primary-rgb) / 0.60);
    color: #fff;
    box-shadow: 0 14px 34px rgb(var(--primary-rgb) / 0.20);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.125rem;
    color: currentColor;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-md) 0;
}

.mobile-auth-actions {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    display: grid;
    gap: 10px;
}

.mobile-auth-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border-radius: 14px;
}

.mobile-menu-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text);
    font-size: 0.9375rem;
}

.mobile-contact-item i {
    width: 20px;
    color: var(--primary);
}

.mobile-cta {
    margin-top: var(--space-lg);
}

.mobile-cta .btn {
    width: 100%;
    justify-content: center;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* =====================================================
   TOUCH-FRIENDLY ENHANCEMENTS
   ===================================================== */

/* Minimum touch target size (44x44px) */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .mobile-nav-link,
    .filter-select,
    .calc-tab,
    .material-card,
    .color-swatch,
    .checkbox-content,
    .toggle-btn,
    .page-link,
    .profile-nav-item,
    .social-btn {
        min-height: 44px;
    }
    
    /* Increased tap areas */
    input[type="checkbox"] + label,
    input[type="radio"] + label {
        padding: var(--space-sm) 0;
    }
    
    /* Better input focus */
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid var(--focus-ring-strong);
        outline-offset: 2px;
    }
    
    /* Active states for touch feedback */
    .btn:active {
        transform: scale(0.98);
    }
    
    .service-card:active,
    .portfolio-card:active,
    .review-card:active,
    .advantage-card:active {
        transform: scale(0.99);
    }
}

/* =====================================================
   iOS SAFE AREA SUPPORT
   ===================================================== */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
    
    .mobile-menu-content {
        padding-top: env(safe-area-inset-top);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .footer-bottom {
        padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
    }
    
    .modal-container {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Fixed bottom elements */
    .sticky-cta,
    .floating-btn {
        bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
    }
}

/* =====================================================
   STICKY MOBILE CTA
   ===================================================== */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    display: none;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: flex;
        justify-content: center;
    }
    
    .sticky-mobile-cta .btn {
        flex: 1;
        justify-content: center;
    }
    
    /* Add bottom padding to content to prevent overlap */
    .calculator-page,
    .project-detail,
    .portfolio-page {
        padding-bottom: 100px;
    }
}

.sticky-mobile-cta > * {
    pointer-events: auto;
}

.sticky-mobile-cta {
    background: transparent;
}

.sticky-mobile-cta::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
        180deg,
        rgb(248 250 252 / 0.00) 0%,
        rgb(248 250 252 / 0.92) 55%,
        rgb(248 250 252 / 1.00) 100%
    );
    pointer-events: none;
}

.sticky-mobile-cta {
    position: fixed;
}

.sticky-mobile-cta .btn {
    min-height: 52px;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        gap: 12px;
    }

    .sticky-mobile-cta::before {
        display: none; /* Убрать затемняющий белый фон */
    }

    .sticky-mobile-cta a.btn,
    .sticky-mobile-cta button.btn {
        max-width: min(240px, 48vw);
    }
    
    /* Зеленая кнопка "Перезвонить" */
    .sticky-mobile-cta .btn.btn-outline {
        background: var(--success);
        color: #ffffff;
        border-color: var(--success);
        font-weight: 600;
    }
    
    .sticky-mobile-cta .btn.btn-outline:hover {
        background: #10a371;
        border-color: #10a371;
        color: #ffffff;
    }
    
    .sticky-mobile-cta .btn.btn-outline:active {
        background: #0d8f63;
        border-color: #0d8f63;
    }
}

/* =====================================================
   SWIPE INDICATORS FOR GALLERIES
   ===================================================== */
.swipe-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    color: var(--text-light);
    font-size: 0.75rem;
}

.swipe-indicator i {
    animation: swipe-hint 1.5s ease-in-out infinite;
}

@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@media (max-width: 768px) {
    .swipe-indicator {
        display: flex;
    }
    
    /* Horizontal scroll for gallery thumbs */
    .gallery-thumbs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-sm);
        padding-bottom: var(--space-md);
    }
    
    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-thumbs .thumb {
        scroll-snap-align: start;
    }
    
    /* Horizontal scroll for portfolio */
    .portfolio-scroll-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0 calc(-1 * var(--space-md));
        padding: 0 var(--space-md);
    }
    
    .portfolio-scroll-container::-webkit-scrollbar {
        display: none;
    }
    
    .portfolio-scroll-container .portfolio-card {
        scroll-snap-align: start;
    }
}

/* =====================================================
   PULL-TO-REFRESH INDICATOR (Visual only)
   ===================================================== */
.pull-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    color: var(--text-light);
    font-size: 0.875rem;
}

.pull-indicator i {
    margin-right: var(--space-sm);
}

/* =====================================================
   IMPROVED FORM ELEMENTS FOR MOBILE
   ===================================================== */
@media (max-width: 768px) {
    /* Larger form elements */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px 16px;
        border-radius: var(--radius-md);
    }
    
    select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        padding-right: 40px;
    }
    
    /* Better checkbox/radio styling */
    .custom-checkbox,
    .custom-radio {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .custom-checkbox input,
    .custom-radio input {
        width: 24px;
        height: 24px;
    }
    
    /* Form group spacing */
    .form-group {
        margin-bottom: var(--space-lg);
    }
    
    .form-group label {
        margin-bottom: var(--space-sm);
        font-size: 0.9375rem;
    }
    
    /* Error messages */
    .form-error {
        font-size: 0.8125rem;
        margin-top: var(--space-xs);
    }
}

/* =====================================================
   SKELETON LOADING STATES (Mobile optimized)
   ===================================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-alt) 25%,
        #e8e8e8 50%,
        var(--bg-alt) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-image {
    aspect-ratio: 16/9;
}

.skeleton-card {
    padding: var(--space-lg);
}

/* =====================================================
   PRINT STYLES (Mobile-friendly PDF)
   ===================================================== */
@media print {
    .header,
    .footer,
    .mobile-menu,
    .sticky-mobile-cta,
    .btn,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .results-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .result-item {
        grid-template-columns: 1fr auto auto;
    }
}

/* =====================================================
   LANDSCAPE MODE ADJUSTMENTS
   ===================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .modal-container {
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .mobile-menu-content {
        width: 60%;
    }
}

/* =====================================================
   DARK MODE SUPPORT (System preference)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B1020;
        --bg-alt: #0E1730;
        --bg-dark: #070A14;
        --bg-dark-2: #0E1730;
        --border: #1E2A43;

        --text: #E9EEF9;
        --text-light: #B8C4DA;
        --text-muted: #7D8CAA;

        --bg-dark-rgb: 7 10 20;
        --bg-dark-2-rgb: 14 23 48;
    }
    
    .header {
        background: rgb(var(--bg-dark-rgb) / 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .mobile-menu-content {
        background: var(--bg);
    }
    
    .card,
    .service-card,
    .portfolio-card,
    .review-card,
    .advantage-card,
    .calculator-form,
    .results-card,
    .auth-card,
    .profile-section {
        background: var(--bg-alt);
    }
    
    input,
    select,
    textarea {
        background: var(--bg);
        border-color: var(--border);
        color: var(--text);
    }
    
    .btn-outline {
        border-color: var(--text-light);
        color: var(--text);
    }
    
    .skeleton {
        background: linear-gradient(
            90deg,
            var(--bg-alt) 25%,
            #1E2A43 50%,
            var(--bg-alt) 75%
        );
        background-size: 200% 100%;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .mobile-menu,
    .mobile-menu-content {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* =====================================================
   FORCE BRAND THEME (ignore OS dark mode)
   ===================================================== */
:root { color-scheme: light; }

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;

        --bg: #F8FAFC;
        --bg-alt: #F1F5F9;
        --bg-dark: #0B1020;
        --bg-dark-2: #0E1730;
        --border: #D8E1EE;

        --text: #0F172A;
        --text-light: #334155;
        --text-muted: #64748B;

        --bg-dark-rgb: 11 16 32;
        --bg-dark-2-rgb: 14 23 48;
    }
}

/* =====================================================
   HERO V2 (Home)
   Inserted: premium + conversion-focused hero
   ===================================================== */
/* === HERO V2 START === */
.hero.hero-v2 {
    min-height: min(92vh, 820px);
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    isolation: isolate;
}

.hero.hero-v2 .hero-bg {
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.02);
}

.hero.hero-v2 .hero-overlay {
    background:
        radial-gradient(1200px 700px at 20% 30%, rgb(var(--accent-rgb) / 0.04) 0%, rgb(var(--accent-rgb) / 0.00) 55%),
        radial-gradient(900px 600px at 80% 60%, rgb(var(--primary-rgb) / 0.05) 0%, rgb(var(--primary-rgb) / 0.00) 60%),
        linear-gradient(135deg, rgb(var(--bg-dark-rgb) / 0.86) 0%, rgb(var(--bg-dark-2-rgb) / 0.82) 100%);
}

.hero.hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(closest-side at 50% 50%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.hero.hero-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero.hero-v2 .container {
    position: relative;
    z-index: 1;
    gap: clamp(1.5rem, 3vw, 3.5rem);
    grid-template-columns: 1.25fr 0.95fr;
    align-items: center;
}

.hero.hero-v2 .hero-content {
    max-width: 680px;
}

.hero-v2__kicker {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-v2__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: 44px;
    border-radius: var(--radius-full);
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-v2__chip i {
    color: var(--accent);
}

.hero-v2__chip--ghost {
    background: rgba(255, 255, 255, 0.06);
}

.hero-v2__chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.hero-v2__title {
    font-size: clamp(2.1rem, 3.5vw, 3.75rem);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero-v2__subtitle {
    max-width: 42rem;
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.82);
}

.hero-v2__benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-lg);
    margin: var(--space-xl) 0;
    padding: 0;
}

.hero-v2__benefit {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.4;
}

.hero-v2__benefit i {
    color: var(--success);
    margin-top: 2px;
}

.hero-v2__cta {
    gap: var(--space-md);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.hero-v2__cta .btn {
    min-height: 56px;
    border-radius: calc(var(--radius-md) + 2px);
}

.hero-v2__trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.hero-v2__trust-item {
    padding: 14px 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-v2__trust-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.hero-v2__trust-value {
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 1.05rem;
    color: #fff;
}

.hero-v2__trust-label {
    margin-top: 2px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.70);
}

.hero-v2__note {
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.62);
}

/* Right column */
.hero-v2__aside {
    width: 100%;
}

.hero-v2__card {
    width: 100%;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    animation: hero-card-float 8s ease-in-out infinite;
}

.hero-v2__card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
}

@keyframes hero-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-v2__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.12);
}

.hero-v2__card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
}

.hero-v2__card-title i {
    color: var(--accent);
}

.hero-v2__card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: rgb(var(--accent-rgb) / 0.16);
    border: 1px solid rgb(var(--accent-rgb) / 0.32);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hero-v2__card-body {
    padding: 18px;
}

.hero-v2__quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-v2__field {
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.hero-v2__field:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-v2__field-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 6px;
}

.hero-v2__field-value {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-v2__price {
    padding: 14px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(var(--primary-rgb) / 0.26) 0%, rgb(var(--accent-rgb) / 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-v2__price-label {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.hero-v2__price-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #fff;
    line-height: 1.0;
    margin-bottom: 10px;
}

.hero-v2__price-prefix {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
}

.hero-v2__price-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

.hero-v2__price-currency {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.hero-v2__price-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
}

.hero-v2__price-meta i {
    color: rgba(255, 255, 255, 0.85);
    margin-right: 6px;
}

.hero-v2__card-actions {
    padding: 0 18px 18px;
}

.hero-v2__card-actions .btn {
    min-height: 48px;
}

.hero-v2__card-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.875rem;
}

.hero-v2__card-footnote i {
    color: var(--accent);
}

.hero-v2__scroll {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-v2__scroll:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* Mobile-first adjustments */
@media (max-width: 992px) {
    .hero.hero-v2 {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    .hero.hero-v2 .container {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-v2__aside {
        order: 2;
    }

    .hero-v2__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-v2__quick {
        grid-template-columns: 1fr;
    }

    .hero-v2__card {
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero-v2__trust {
        gap: 10px;
        margin-top: var(--space-md);
    }

    .hero-v2__trust-item {
        padding: 10px 10px;
        min-width: 0;
    }

    .hero-v2__trust-value {
        font-size: 0.98rem;
        white-space: nowrap;
    }

    .hero-v2__trust-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-v2__benefits {
        grid-template-columns: 1fr;
        margin: var(--space-lg) 0;
    }

    .hero-v2__cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-v2__cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-v2__card-body,
    .hero-v2__card-actions,
    .hero-v2__card-head {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-v2__price-number {
        font-size: 2rem;
    }
}
/* === HERO V2 END === */

/* =====================================================
   ADVANTAGES V2 (Premium)
   ===================================================== */
/* ADVANTAGES V2 START */
.advantages.advantages-v2 {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--bg);
    overflow: hidden;
    isolation: isolate;

    --adv-card-bg: #ffffff;
    --adv-border: rgb(var(--secondary-rgb) / 0.10);
    --adv-border-hover: rgb(var(--secondary-rgb) / 0.16);
    --adv-shadow: 0 18px 40px rgb(var(--secondary-rgb) / 0.08);
    --adv-shadow-hover: 0 28px 70px rgb(var(--secondary-rgb) / 0.12);
}

.advantages.advantages-v2::before {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(650px 420px at 12% 22%, rgb(var(--primary-rgb) / 0.10) 0%, transparent 60%),
        radial-gradient(520px 360px at 88% 18%, rgb(var(--accent-rgb) / 0.08) 0%, transparent 65%),
        radial-gradient(700px 520px at 78% 88%, rgb(var(--primary-rgb) / 0.07) 0%, transparent 62%);
    filter: blur(2px);
    opacity: 0.9;
}

.advantages.advantages-v2 .container {
    position: relative;
    z-index: 1;
}

.advantages.advantages-v2 .section-header {
    margin-bottom: clamp(1.75rem, 3vw, 3rem);
}

.advantages-v2__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.875rem, 1.4vw, 1.25rem);
    align-items: stretch;
}

.adv-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(1.25rem, 2.2vw, 1.75rem);
    border-radius: 18px;
    background: var(--adv-card-bg);
    border: 1px solid var(--adv-border);
    box-shadow: var(--adv-shadow);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgb(var(--primary-rgb) / 0.00) 0%,
        rgb(var(--primary-rgb) / 0.55) 40%,
        rgb(var(--accent-rgb) / 0.55) 60%,
        rgb(var(--accent-rgb) / 0.00) 100%
    );
    opacity: 0.65;
}

.adv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--adv-shadow-hover);
    border-color: var(--adv-border-hover);
}

.adv-icon {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--primary);
    border: 1px solid rgb(var(--primary-rgb) / 0.16);
    background: linear-gradient(
        135deg,
        rgb(var(--primary-rgb) / 0.06) 0%,
        rgb(var(--accent-rgb) / 0.04) 100%
    );
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.adv-icon::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 24px;
    background: radial-gradient(
        closest-side,
        rgb(var(--accent-rgb) / 0.22),
        transparent 70%
    );
    filter: blur(10px);
    opacity: 0.0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.adv-icon i {
    font-size: 24px;
    line-height: 1;
    transform: translateZ(0);
}

.adv-card:hover .adv-icon {
    transform: translateY(-1px);
    border-color: rgb(var(--primary-rgb) / 0.28);
    background: linear-gradient(
        135deg,
        rgb(var(--primary-rgb) / 0.10) 0%,
        rgb(var(--accent-rgb) / 0.08) 100%
    );
}

.adv-card:hover .adv-icon::before {
    opacity: 1;
}

.adv-title {
    margin-top: 4px;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.adv-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .advantages-v2__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 1.6vw, 1.5rem);
    }
}

@media (min-width: 1200px) {
    .advantages-v2__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Dark mode polish for the section (local only) */
@media (prefers-color-scheme: dark) {
    .advantages.advantages-v2 {
        --adv-card-bg: rgb(var(--bg-dark-2-rgb) / 0.70);
        --adv-border: rgb(255 255 255 / 0.08);
        --adv-border-hover: rgb(255 255 255 / 0.12);
        --adv-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
        --adv-shadow-hover: 0 28px 70px rgb(0 0 0 / 0.45);
    }

    .adv-title { color: var(--text); }
    .adv-text { color: var(--text-light); }
}
/* ADVANTAGES V2 END */

/* =====================================================
   SERVICES V2 (No images, premium)
   ===================================================== */
/* SERVICES V2 START */
.services-section.services-v2 {
    position: relative;
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background: var(--bg);
    overflow: hidden;
    isolation: isolate;

    --svc-card-bg: #ffffff;
    --svc-border: rgb(var(--secondary-rgb) / 0.10);
    --svc-border-hover: rgb(var(--secondary-rgb) / 0.16);
    --svc-shadow: 0 18px 40px rgb(var(--secondary-rgb) / 0.08);
    --svc-shadow-hover: 0 28px 80px rgb(var(--secondary-rgb) / 0.12);
}

.services-section.services-alt.services-v2 {
    background: var(--bg-alt);
}

.services-section.services-v2.services-v2--combined {
    background: var(--bg);
}

.services-v2__group {
    margin-top: clamp(1.25rem, 2.2vw, 2rem);
}

.services-v2__divider {
    height: 1px;
    margin: clamp(1.75rem, 3vw, 2.5rem) 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgb(var(--secondary-rgb) / 0.14) 18%,
        rgb(var(--primary-rgb) / 0.20) 50%,
        rgb(var(--secondary-rgb) / 0.14) 82%,
        transparent 100%
    );
}

.services-v2__group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: clamp(0.9rem, 1.6vw, 1.25rem);
}

.services-v2__group-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.services-v2__group-subtitle {
    margin: 0;
    max-width: 56ch;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-light);
}

.services-v2__anchor {
    scroll-margin-top: 110px;
}

@media (max-width: 768px) {
    .services-v2__group-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.services-section.services-v2::before {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 520px at 12% 22%, rgb(var(--primary-rgb) / 0.10) 0%, transparent 62%),
        radial-gradient(650px 420px at 88% 18%, rgb(var(--accent-rgb) / 0.08) 0%, transparent 64%),
        radial-gradient(900px 620px at 70% 88%, rgb(var(--primary-rgb) / 0.07) 0%, transparent 60%);
    filter: blur(2px);
    opacity: 0.85;
}

.services-section.services-v2 .container {
    position: relative;
    z-index: 1;
}

.services-section.services-v2 .section-title {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.services-section.services-v2 .section-subtitle {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.services-section.services-v2 .services-grid.services-v2__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 1.4vw, 1.25rem);
    align-items: stretch;
}

@media (min-width: 768px) {
    .services-section.services-v2 .services-grid.services-v2__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 1.6vw, 1.5rem);
    }
}

@media (min-width: 1200px) {
    .services-section.services-v2 .services-grid.services-v2__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.services-section.services-v2 .service-card.service-card--v2 {
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--svc-shadow);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
    display: flex;
    height: 100%;
}

.services-section.services-v2 .service-card.service-card--v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--svc-shadow-hover);
    border-color: var(--svc-border-hover);
}

.services-section.services-v2 .service-content.service-content--v2 {
    padding: clamp(1.25rem, 2vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
}

.services-section.services-v2 .service-content.service-content--v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgb(var(--primary-rgb) / 0.00) 0%,
        rgb(var(--primary-rgb) / 0.55) 45%,
        rgb(var(--accent-rgb) / 0.55) 62%,
        rgb(var(--accent-rgb) / 0.00) 100%
    );
    opacity: 0.55;
}

.svc-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 6px;
}

.svc-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    color: var(--primary);
    border: 1px solid rgb(var(--primary-rgb) / 0.16);
    background: linear-gradient(
        135deg,
        rgb(var(--primary-rgb) / 0.06) 0%,
        rgb(var(--accent-rgb) / 0.04) 100%
    );
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.svc-icon::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.22), transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.svc-icon i {
    font-size: 22px;
    line-height: 1;
}

.services-section.services-v2 .service-card.service-card--v2:hover .svc-icon {
    transform: translateY(-1px);
    border-color: rgb(var(--primary-rgb) / 0.28);
    background: linear-gradient(
        135deg,
        rgb(var(--primary-rgb) / 0.10) 0%,
        rgb(var(--accent-rgb) / 0.08) 100%
    );
}

.services-section.services-v2 .service-card.service-card--v2:hover .svc-icon::before {
    opacity: 1;
}

.svc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    min-height: 28px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid rgb(var(--secondary-rgb) / 0.16);
    background: rgb(var(--secondary-rgb) / 0.04);
    color: var(--text-light);
}

.svc-badge.badge-popular {
    border-color: rgb(var(--primary-rgb) / 0.26);
    background: rgb(var(--primary-rgb) / 0.08);
    color: var(--primary-dark);
}

.svc-badge.badge-hit {
    border-color: rgb(var(--accent-rgb) / 0.64);
    background: linear-gradient(
        135deg,
        rgb(var(--accent-rgb) / 0.96) 0%,
        rgb(var(--accent-rgb) / 0.86) 100%
    );
    color: #062331;
    box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.34),
        0 8px 20px rgb(var(--accent-rgb) / 0.35);
}

.svc-badge.badge-economy {
    border-color: rgb(var(--secondary-rgb) / 0.20);
    background: rgb(var(--secondary-rgb) / 0.06);
    color: var(--text-light);
}

.services-section.services-v2 .service-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.services-section.services-v2 .service-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0;
    min-height: 3.4em;
}

.svc-bullets {
    list-style: none;
    padding: 0;
    margin: 2px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.svc-bullets i {
    color: rgb(var(--primary-rgb) / 0.70);
    font-size: 0.875rem;
}

.services-section.services-v2 .service-price {
    margin-top: 6px;
    margin-bottom: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.services-section.services-v2 .price-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.services-section.services-v2 .price-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.services-section.services-v2 .price-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.svc-actions {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.svc-actions .btn {
    min-height: 44px;
}

@media (max-width: 768px) {
    .svc-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-color-scheme: dark) {
    .services-section.services-v2 {
        --svc-card-bg: rgb(var(--bg-dark-2-rgb) / 0.70);
        --svc-border: rgb(255 255 255 / 0.08);
        --svc-border-hover: rgb(255 255 255 / 0.12);
        --svc-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
        --svc-shadow-hover: 0 28px 90px rgb(0 0 0 / 0.45);
    }
}
/* SERVICES V2 END */

/* =====================================================
   Additional Mini (Screenshot-style)
   ===================================================== */
/* ADDITIONAL MINI START */
.additional-mini {
    position: relative;
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    background: linear-gradient(
        180deg,
        rgb(var(--primary-rgb) / 0.06) 0%,
        var(--bg) 40%
    );
}

.additional-mini .container {
    position: relative;
}

.additional-mini__header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.additional-mini__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: rgb(var(--primary-rgb) / 0.10);
    border: 1px solid rgb(var(--primary-rgb) / 0.12);
    color: var(--primary-dark);
}

.additional-mini__title {
    margin-top: 16px;
}

.additional-mini__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 1.8vw, 1.5rem);
    align-items: stretch;
}

@media (min-width: 520px) {
    .additional-mini__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .additional-mini__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .additional-mini__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.additional-mini__card {
    background: rgb(var(--secondary-rgb) / 0.03);
    border: 1px solid rgb(var(--secondary-rgb) / 0.08);
    border-radius: 18px;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    min-height: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    box-shadow: 0 16px 40px rgb(var(--secondary-rgb) / 0.06);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

.additional-mini__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgb(var(--secondary-rgb) / 0.08);
    border-color: rgb(var(--primary-rgb) / 0.14);
    background: rgb(var(--secondary-rgb) / 0.025);
}

.additional-mini__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--primary);
    background: rgb(var(--primary-rgb) / 0.06);
    border: 1px solid rgb(var(--primary-rgb) / 0.10);
}

.additional-mini__icon i {
    font-size: 24px;
    line-height: 1;
}

.additional-mini__card-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.additional-mini__card-sub {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* Убраны темные стили для additional-mini - всегда светлая тема */
/* ADDITIONAL MINI END */

/* =====================================================
   About V2 (No images, editorial + tech)
   ===================================================== */
/* ABOUT V2 START */
.about-section.about-v2 {
    position: relative;
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    background: var(--bg-alt);
    overflow: hidden;
    isolation: isolate;
}

.about-section.about-v2::before {
    content: '';
    position: absolute;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 560px at 18% 20%, rgb(var(--primary-rgb) / 0.10) 0%, transparent 62%),
        radial-gradient(740px 520px at 86% 18%, rgb(var(--accent-rgb) / 0.08) 0%, transparent 64%),
        radial-gradient(980px 620px at 72% 92%, rgb(var(--primary-rgb) / 0.06) 0%, transparent 60%);
    filter: blur(2px);
    opacity: 0.9;
}

.about-section.about-v2 .container {
    position: relative;
    z-index: 1;
}

.about-section.about-v2 .about-grid.about-v2__grid {
    align-items: start;
}

.about-section.about-v2 .section-title {
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.about-v2__text {
    margin: 0 0 var(--space-md);
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 68ch;
}

.about-v2__pills {
    margin-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-v2__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-full);
    background: rgb(255 255 255 / 0.70);
    border: 1px solid rgb(var(--secondary-rgb) / 0.10);
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.about-v2__pill i {
    color: var(--primary);
    font-size: 1rem;
}

.about-v2__pill:hover {
    transform: translateY(-2px);
    border-color: rgb(var(--primary-rgb) / 0.14);
    box-shadow: 0 16px 40px rgb(var(--secondary-rgb) / 0.08);
    background: rgb(255 255 255 / 0.78);
}

.about-v2__aside {
    position: relative;
    display: grid;
    gap: 14px;
    align-content: start;
}

.about-v2__aside::before {
    content: '';
    position: absolute;
    inset: -22px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(closest-side, rgb(var(--primary-rgb) / 0.18), transparent 70%),
        radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.14), transparent 72%);
    filter: blur(18px);
    opacity: 0.7;
}

.about-v2__metrics-card,
.about-v2__hint {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    border: 1px solid rgb(var(--secondary-rgb) / 0.12);
    background: rgb(255 255 255 / 0.82);
    box-shadow: 0 18px 48px rgb(var(--secondary-rgb) / 0.10);
}

.about-v2__metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-v2__metric {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.about-v2__metric:nth-child(1),
.about-v2__metric:nth-child(2) {
    border-bottom: 1px solid rgb(var(--secondary-rgb) / 0.10);
}

.about-v2__metric:nth-child(1),
.about-v2__metric:nth-child(3) {
    border-right: 1px solid rgb(var(--secondary-rgb) / 0.10);
}

.about-v2__metric-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    line-height: 1;
}

.about-v2__metric-label {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.4;
}

.about-v2__hint {
    padding: clamp(1.1rem, 2vw, 1.35rem);
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: start;
}

.about-v2__hint-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(var(--primary-rgb) / 0.14);
    background: linear-gradient(135deg, rgb(var(--primary-rgb) / 0.12), rgb(var(--accent-rgb) / 0.08));
    color: var(--primary);
}

.about-v2__hint-icon i {
    font-size: 22px;
}

.about-v2__hint-title {
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 2px 0 2px;
}

.about-v2__hint-sub {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0 0 10px;
    line-height: 1.5;
}

.about-v2__hint-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgb(var(--secondary-rgb) / 0.10);
    background: rgb(var(--secondary-rgb) / 0.03);
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

.about-v2__hint-row i {
    color: rgb(var(--primary-rgb) / 0.75);
}

.about-v2__hint-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgb(var(--primary-rgb) / 0.14);
    background: rgb(var(--primary-rgb) / 0.06);
    min-height: 44px;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.about-v2__hint-link:hover {
    transform: translateY(-2px);
    border-color: rgb(var(--primary-rgb) / 0.22);
    background: rgb(var(--primary-rgb) / 0.09);
    box-shadow: 0 18px 44px rgb(var(--secondary-rgb) / 0.08);
}

.about-v2__hint-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-strong);
}

@media (max-width: 992px) {
    .about-section.about-v2 .about-grid.about-v2__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-v2__metrics-grid {
        grid-template-columns: 1fr;
    }

    .about-v2__metric {
        min-height: auto;
    }

    .about-v2__metric:nth-child(1),
    .about-v2__metric:nth-child(2) {
        border-bottom: 1px solid rgb(var(--secondary-rgb) / 0.10);
    }

    .about-v2__metric:nth-child(1),
    .about-v2__metric:nth-child(3) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .about-section.about-v2 {
        padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
    }

    .about-section.about-v2 .about-grid.about-v2__grid {
        gap: var(--space-xl);
    }

    .about-v2__text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .about-v2__pill {
        max-width: 100%;
    }

    .about-v2__pill span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .about-v2__metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-v2__metric {
        min-height: 88px;
        padding: 0.9rem;
    }

    .about-v2__metric-value {
        font-size: 1.85rem;
        white-space: nowrap;
    }

    .about-v2__metric-label {
        font-size: 0.875rem;
    }

    .about-v2__hint {
        grid-template-columns: 44px 1fr;
        gap: 10px;
        padding: 0.95rem;
    }

    .about-v2__hint-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}

@media (max-width: 360px) {
    .about-v2__metrics-grid {
        grid-template-columns: 1fr;
    }

    .about-v2__metric-value {
        font-size: 1.75rem;
    }
}

@media (prefers-color-scheme: dark) {
    .about-section.about-v2 {
        background: rgb(var(--bg-dark-2-rgb) / 0.92);
    }

    .about-v2__pill {
        background: rgb(255 255 255 / 0.06);
        border-color: rgb(255 255 255 / 0.10);
        color: rgb(255 255 255 / 0.92);
    }

    .about-v2__pill:hover {
        border-color: rgb(var(--primary-rgb) / 0.22);
        box-shadow: 0 26px 80px rgb(0 0 0 / 0.35);
        background: rgb(255 255 255 / 0.07);
    }

    .about-v2__metrics-card,
    .about-v2__hint {
        background: rgb(255 255 255 / 0.06);
        border-color: rgb(255 255 255 / 0.10);
        box-shadow: 0 26px 90px rgb(0 0 0 / 0.35);
    }

    .about-v2__metric:nth-child(1),
    .about-v2__metric:nth-child(2),
    .about-v2__metric:nth-child(1),
    .about-v2__metric:nth-child(3) {
        border-color: rgb(255 255 255 / 0.10);
    }

    .about-v2__hint-row {
        border-color: rgb(255 255 255 / 0.10);
        background: rgb(255 255 255 / 0.04);
        color: rgb(255 255 255 / 0.78);
    }

    .about-v2__hint-link {
        border-color: rgb(var(--primary-rgb) / 0.22);
        background: rgb(var(--primary-rgb) / 0.10);
        color: rgb(255 255 255 / 0.92);
    }
}
/* ABOUT V2 END */

/* =====================================================
   Legal Pages + Cookies Consent
   ===================================================== */
/* LEGAL PAGES START */
.legal-page {
    padding: var(--space-2xl) 0;
    background: var(--bg);
}

.legal-card {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid rgb(var(--secondary-rgb) / 0.10);
    background: rgb(255 255 255 / 0.86);
    box-shadow: 0 20px 70px rgb(var(--secondary-rgb) / 0.10);
    padding: clamp(1.25rem, 2.8vw, 2rem);
}

.legal-card h2 {
    margin: 1.25rem 0 0.6rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.legal-card p {
    color: var(--text-light);
    line-height: 1.75;
    margin: 0 0 0.9rem;
}

.legal-card ul {
    margin: 0 0 0.9rem 1.1rem;
    color: var(--text-light);
    line-height: 1.75;
}

.legal-muted {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.legal-link {
    color: var(--primary);
    font-weight: 700;
}

.legal-inline-btn {
    margin-left: 10px;
    vertical-align: middle;
}

@media (prefers-color-scheme: dark) {
    .legal-page { background: rgb(var(--bg-dark-2-rgb) / 0.92); }
    .legal-card {
        background: rgb(255 255 255 / 0.06);
        border-color: rgb(255 255 255 / 0.10);
        box-shadow: 0 26px 90px rgb(0 0 0 / 0.35);
    }
    .legal-card p,
    .legal-card ul { color: rgb(255 255 255 / 0.78); }
    .legal-muted { color: rgb(255 255 255 / 0.60); }
}
/* LEGAL PAGES END */

/* COOKIE CONSENT START */
.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1900;
    padding: 0 0 calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.cookie-banner .container {
    pointer-events: auto;
}

.cookie-banner__card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px;
    border-radius: 18px;
    border: 1px solid rgb(var(--secondary-rgb) / 0.12);
    background: rgb(255 255 255 / 0.90);
    box-shadow: 0 22px 70px rgb(var(--secondary-rgb) / 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-banner__text {
    flex: 1;
    min-width: 240px;
}

.cookie-banner__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.cookie-banner__desc {
    margin: 0 0 10px;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cookie-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cookie-banner__links a {
    color: var(--text-light);
    text-decoration: none;
}

.cookie-banner__links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner__dot {
    opacity: 0.6;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.cookie-banner__actions .btn {
    min-height: 44px;
}

@media (max-width: 768px) {
    .cookie-banner__card {
        flex-direction: column;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.cookie-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.cookie-option {
    border-radius: 16px;
    border: 1px solid rgb(var(--secondary-rgb) / 0.10);
    background: rgb(var(--secondary-rgb) / 0.03);
    padding: 12px 12px;
}

.cookie-option__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.cookie-option__row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.cookie-option__text strong {
    display: block;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 2px;
}

.cookie-option__text span {
    display: block;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.cookie-actions .btn {
    min-height: 44px;
}

@media (max-width: 480px) {
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-color-scheme: dark) {
    .cookie-banner__card {
        background: rgb(var(--bg-dark-2-rgb) / 0.78);
        border-color: rgb(255 255 255 / 0.10);
        box-shadow: 0 26px 90px rgb(0 0 0 / 0.45);
    }

    .cookie-banner__title { color: rgb(255 255 255 / 0.92); }
    .cookie-banner__desc { color: rgb(255 255 255 / 0.78); }
    .cookie-banner__links { color: rgb(255 255 255 / 0.62); }
    .cookie-banner__links a { color: rgb(255 255 255 / 0.78); }

    .cookie-option {
        background: rgb(255 255 255 / 0.04);
        border-color: rgb(255 255 255 / 0.10);
    }

    .cookie-option__text strong { color: rgb(255 255 255 / 0.92); }
    .cookie-option__text span { color: rgb(255 255 255 / 0.72); }
}
/* COOKIE CONSENT END */

/* =====================================================
   GS CAROUSEL (Mobile horizontal sections)
   Used on home page for: advantages/services/additional/reviews
   ===================================================== */
.gs-carousel {
    position: relative;
}

.gs-carousel__hint {
    display: none;
}

.gs-carousel__hint[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .gs-carousel {
        isolation: isolate;
        --gs-carousel-surface-rgb: 248 250 252; /* ~= var(--bg) */
        margin-left: calc(-1 * var(--space-md));
        margin-right: calc(-1 * var(--space-md));
        width: calc(100% + 2 * var(--space-md));
    }

    /* If a section uses bg-alt, tune the fade surface */
    .services-section.services-alt .gs-carousel {
        --gs-carousel-surface-rgb: 241 245 249; /* ~= var(--bg-alt) */
    }

    .gs-carousel__hint {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 10px;
        user-select: none;
    }

    .gs-carousel__hint--arrow .gs-carousel__hint-arrow {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: 1px solid rgb(var(--secondary-rgb) / 0.18);
        background: rgb(255 255 255 / 0.82);
        color: rgb(var(--secondary-rgb) / 0.72);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 18px rgb(var(--secondary-rgb) / 0.12);
        animation: gsHintArrowPulse 1.45s ease-in-out infinite;
    }

    .gs-carousel__hint--arrow .gs-carousel__hint-arrow i {
        font-size: 0.875rem;
    }

    .gs-carousel__dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 12px 0 0;
    }

    .gs-carousel__dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        border: none;
        padding: 0;
        background: rgb(var(--secondary-rgb) / 0.22);
        cursor: pointer;
        transition: width 180ms ease, background 180ms ease, transform 180ms ease;
    }

    .gs-carousel__dot.is-active {
        width: 18px;
        background: rgb(var(--primary-rgb) / 0.9);
        transform: translateY(-1px);
    }

    @keyframes gsHintArrowPulse {
        0%,
        100% {
            transform: translateX(0);
            opacity: 0.7;
        }
        45% {
            transform: translateX(5px);
            opacity: 1;
        }
    }

    /* Track (generic) */
    .gs-carousel__track {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        gap: var(--space-lg);
        padding: 0 var(--space-md);
        margin: 0;
        scroll-padding-left: var(--space-md);
        scroll-padding-right: var(--space-md);
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge legacy */
        will-change: scroll-position;
        scroll-behavior: smooth;
    }

    .gs-carousel__track::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    /* Ensure existing grids become horizontal tracks on mobile */
    .advantages-grid,
    .advantages-v2__grid,
    .services-grid,
    .services-v2__grid,
	    .additional-services,
	    .additional-mini__grid,
	    .reviews-slider,
	    .portfolio-grid,
	    .reviews-list {
	        display: flex !important;
	        flex-wrap: nowrap;
	    }

    /* Track should be the only scroll container */
    .gs-carousel__track.advantages-grid,
    .gs-carousel__track.advantages-v2__grid,
    .gs-carousel__track.services-grid,
    .gs-carousel__track.services-v2__grid,
	    .gs-carousel__track.additional-services,
	    .gs-carousel__track.additional-mini__grid,
	    .gs-carousel__track.reviews-slider,
	    .gs-carousel__track.portfolio-grid,
	    .gs-carousel__track.reviews-list {
	        overflow-x: auto;
	        scroll-snap-type: x mandatory;
	        -webkit-overflow-scrolling: touch;
	        gap: var(--space-lg);
        padding: 0 var(--space-md);
        margin: 0;
        scroll-padding-left: var(--space-md);
        scroll-padding-right: var(--space-md);
        will-change: scroll-position;
        scroll-behavior: smooth;
    }

    /* Items */
    .gs-carousel__track > * {
        flex: 0 0 auto;
        width: min(90vw, 360px);
        scroll-snap-align: start;
    }

    /* Premium hint that the row is scrollable (only when JS marks it) */
    .gs-carousel:not(.is-scrollable) .gs-carousel__hint {
        display: none;
    }

    .gs-carousel:not(.is-scrollable) .gs-carousel__dots {
        display: none;
    }

    .gs-carousel.is-scrollable::before,
    .gs-carousel.is-scrollable::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 50px;
        opacity: 0.95;
        pointer-events: none;
        z-index: 2;
    }

    .gs-carousel.is-scrollable::before {
        left: 0;
        background: linear-gradient(
            90deg,
            rgb(var(--gs-carousel-surface-rgb) / 1) 0%,
            rgb(var(--gs-carousel-surface-rgb) / 0) 100%
        );
    }

    .gs-carousel.is-scrollable::after {
        right: 0;
        background: linear-gradient(
            270deg,
            rgb(var(--gs-carousel-surface-rgb) / 1) 0%,
            rgb(var(--gs-carousel-surface-rgb) / 0) 100%
        );
    }

    /* Service cards: keep premium vertical layout inside carousels */
    .gs-carousel__track .service-card {
        flex-direction: column;
    }

	    .gs-carousel__track .service-image {
	        width: 100%;
	        height: 160px;
	        min-width: 0;
	    }

	    /* Portfolio + Reviews cards in carousels */
	    .gs-carousel__track.reviews-list .review-card-full,
	    .gs-carousel__track.portfolio-grid .portfolio-card {
	        width: min(90vw, 420px);
	    }

    /* Advantages cards: иконка и заголовок на одной горизонтальной линии */
    .gs-carousel__track .adv-card {
        min-height: 280px;
        display: grid !important;
        grid-template-columns: 44px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 0.5rem 12px !important;
        align-items: center !important;
        padding: 0.875rem;
    }
    
    .gs-carousel__track .adv-card .adv-icon {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .gs-carousel__track .adv-card .adv-icon i {
        font-size: 20px;
    }
    
    .gs-carousel__track .adv-card .adv-title {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        font-size: 1rem;
        align-self: center !important;
    }
    
    .gs-carousel__track .adv-card .adv-text {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin-top: 0.5rem;
    }
}

@media (max-width: 420px) {
    .gs-carousel__track > * {
        width: min(92vw, 360px);
    }

    .adv-card {
        padding: clamp(1rem, 2vw, 1.75rem);
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .gs-carousel__track > * {
        width: min(85vw, 360px);
    }
}

@media (max-width: 360px) {
    .gs-carousel__track > * {
        width: min(95vw, 340px);
    }

    .adv-card {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .adv-title {
        font-size: 1rem;
    }
}

/* =====================================================
   HOME HERO (Mobile compact + premium)
   ===================================================== */
.hero-v2__benefits-toggle {
    display: none;
}

.hero-v2__card-toggle {
    display: none;
}

.hero-v2__card-details[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .home-page {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    /* Compact hero height/spacing */
    .hero.hero-v2 {
        min-height: auto;
        padding: clamp(1.75rem, 5vw, 2.5rem) 0;
    }

    .hero.hero-v2 .container {
        gap: var(--space-xl);
    }

    .hero-v2__kicker {
        gap: 8px;
        margin-bottom: var(--space-md);
    }

    .hero-v2__chip {
        padding: 8px 12px;
        min-height: 44px;
        font-size: 0.875rem;
    }

    .hero-title.hero-v2__title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        line-height: 1.15;
        margin-bottom: var(--space-md);
    }

    .hero-subtitle.hero-v2__subtitle {
        line-height: 1.45;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        margin-bottom: var(--space-md);
        max-width: none;
    }

    .hero-v2__subtitle-mobile {
        display: inline;
    }

    .hero-v2__subtitle-desktop {
        display: none;
    }

    /* Benefits: show 3 by default, toggle expands */
    .hero-v2__benefits {
        margin: var(--space-md) 0 var(--space-sm);
        gap: 10px;
    }

    .hero-v2__benefits:not(.is-expanded) .hero-v2__benefit:nth-child(n + 3) {
        display: none;
    }

    .hero-v2__benefits-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0;
        margin: 0 0 var(--space-md);
        font-weight: 700;
        color: rgb(255 255 255 / 0.88);
        text-decoration: none;
    }

    .hero-v2__benefits-toggle:hover {
        color: #fff;
    }

    /* CTA buttons: stacked */
    .hero-cta.hero-v2__cta {
        flex-direction: column;
        width: 100%;
        margin-top: var(--space-md);
        margin-bottom: var(--space-md);
    }

    .hero-cta.hero-v2__cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* On mobile, CTAs live only in the sticky bottom panel */
    .hero-cta.hero-v2__cta {
        display: none;
    }

    /* Hide calculator block inside hero on mobile */
    .hero-v2__aside {
        display: none;
    }

    .hero-scroll.hero-v2__scroll {
        display: none;
    }

    /* Trust stats as horizontal strip */
    .hero-v2__trust {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-md);
        justify-content: center;
        margin: var(--space-lg) 0 0;
        padding: 0;
        overflow: visible;
    }

    .hero-v2__trust::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .hero-v2__trust-item {
        width: auto;
        min-width: 0;
        padding: 10px 10px;
        border-radius: 16px;
    }

    .hero-v2__trust-value {
        font-size: 1rem;
    }

    .hero-v2__trust-label {
        font-size: 0.8125rem;
    }

    /* Hide note to avoid extra hero height */
    .hero-v2__note {
        display: none;
    }

    /* Calculator card: compact with optional details */
    .hero-v2__card {
        animation: none;
    }

    .hero-v2__card-head {
        padding: 14px 14px;
    }

    .hero-v2__card-head-actions {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .hero-v2__card-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 6px 10px;
        border-radius: var(--radius-full);
        border: 1px solid rgb(255 255 255 / 0.22);
        background: rgb(255 255 255 / 0.08);
        color: rgb(255 255 255 / 0.92);
        font-weight: 800;
        font-size: 0.8125rem;
        cursor: pointer;
        transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
        white-space: nowrap;
    }

    .hero-v2__card-toggle:hover {
        background: rgb(255 255 255 / 0.12);
        border-color: rgb(255 255 255 / 0.28);
        transform: translateY(-1px);
    }

    .hero-v2__card-toggle:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.22);
    }

    .hero-v2__card-body {
        padding: 14px;
    }

    .hero-v2__quick {
        grid-template-columns: 1fr;
    }

    .hero-v2__price-meta {
        gap: 10px 12px;
    }
}

@media (min-width: 769px) {
    .hero-v2__subtitle-mobile {
        display: none;
    }
}

/* About (home): compact mobile copy */
.about-v2__more-toggle {
    display: none;
}

.about-v2__more[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    /* Скрыть секцию "О компании" на мобильных устройствах */
    .about-section.about-v2 {
        display: none !important;
    }
    
    /* Адаптивная сетка для мобильных */
    .about-section.about-v2 .about-grid.about-v2__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Адаптивный контент */
    .about-v2__content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    /* Убедиться, что контейнер ограничивает ширину */
    .about-section.about-v2 .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: var(--space-md) !important;
        padding-right: var(--space-md) !important;
    }
    
    .about-section.about-v2 .about-grid.about-v2__grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .about-v2__content .section-label {
        font-size: 0.75rem;
        margin-bottom: var(--space-sm);
    }
    
    .about-v2__content .section-title {
        font-size: clamp(1.25rem, 4vw, 1.5rem) !important;
        line-height: 1.3 !important;
        margin-bottom: var(--space-md);
        letter-spacing: -0.01em;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .about-v2__content:not(.is-expanded) .about-v2__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
    
    .about-v2__text {
        font-size: 0.8125rem !important;
        line-height: 1.5 !important;
        margin-bottom: var(--space-sm);
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .about-v2__more {
        margin-top: var(--space-sm);
    }
    
    .about-v2__more .about-v2__text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .about-v2__more-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 44px;
        padding: 0;
        margin-top: 0.5rem;
        margin-bottom: var(--space-md);
        font-weight: 700;
        color: var(--primary);
        font-size: 0.875rem;
    }

    .about-v2__pills {
        margin-top: var(--space-md);
        padding: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-left: calc(-1 * var(--space-md));
        margin-right: calc(-1 * var(--space-md));
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        scroll-padding-right: var(--space-md);
        scroll-padding-left: var(--space-md);
    }

    .about-v2__pills::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .about-v2__pill {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-height: 40px;
        padding: 8px 14px;
        font-size: 0.8125rem;
        white-space: nowrap;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
    
    .about-v2__pill i {
        font-size: 0.875rem;
    }
    
    /* Адаптивный aside */
    .about-v2__aside {
        width: 100% !important;
        max-width: 100% !important;
        gap: var(--space-md);
        margin-top: var(--space-md);
        box-sizing: border-box !important;
    }

    .about-v2__metrics-card {
        box-shadow: var(--shadow-md);
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .about-v2__metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .about-v2__metric {
        min-height: 88px;
        padding: 0.875rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .about-v2__metric-value {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
        line-height: 1.1;
    }

    .about-v2__metric-label {
        font-size: 0.8125rem;
        line-height: 1.3;
        margin-top: 4px;
    }

    /* Remove large CTA inside about; CTA lives in sticky bar */
    .about-v2__hint-link {
        display: none;
    }
    
    /* Скрыть section-label на мобильных */
    .section-label {
        display: none !important;
    }
    
    /* Центрировать заголовок "Свяжитесь с нами" на мобильных */
    .contact-section .contact-info {
        text-align: center;
    }
    
    .contact-section .contact-info .section-title {
        text-align: center;
    }
    
    /* Скрыть contact-label на мобильных */
    .contact-section .contact-label {
        display: none;
    }
    
    /* Скрыть карточку about-v2__hint на мобильных */
    .about-v2__hint {
        display: none !important;
    }
    
    .about-v2__hint-icon {
        width: 44px;
        height: 44px;
    }
    
    .about-v2__hint-icon i {
        font-size: 18px;
    }
    
    .about-v2__hint-title {
        font-size: 0.9375rem;
        margin: 0 0 4px;
    }
    
    .about-v2__hint-sub {
        font-size: 0.8125rem;
        margin: 0 0 8px;
    }
    
    .about-v2__hint-row {
        padding: 8px 10px;
        font-size: 0.8125rem;
        margin-bottom: 8px;
    }
    
    /* Скрыть первую карточку преимуществ на мобильных */
    .advantages-v2__grid .adv-card:first-child {
        display: none;
    }
    
    /* Карточки additional-mini по 2 штуки на мобильных */
    .gs-carousel__track.additional-mini__grid .additional-mini__card {
        width: calc(50% - var(--space-md) / 2);
        min-width: calc(50% - var(--space-md) / 2);
        flex: 0 0 calc(50% - var(--space-md) / 2);
    }
}

@media (max-width: 480px) {
    /* Keep metrics compact 2×2 on small screens (avoid long vertical list) */
    .about-v2__metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Force light UI even when OS/browser is in dark mode */
html,
body {
    background: var(--bg);
    color: var(--text);
}

@media (prefers-color-scheme: dark) {
    :root { color-scheme: light; }

    html,
    body {
        background: var(--bg);
        color: var(--text);
    }

    .header {
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mobile-menu-content,
    .mobile-menu-header,
    .mobile-menu-footer {
        background: #fff;
    }

    .mobile-nav-link,
    .mobile-contact-item,
    .mobile-contact-item a {
        color: var(--text);
        opacity: 1;
    }

    input,
    select,
    textarea {
        background: var(--bg);
        color: var(--text);
        border-color: var(--border);
    }

    /* Neutralize section-specific dark polish */
    .advantages.advantages-v2 {
        --adv-card-bg: #ffffff;
        --adv-border: rgb(var(--secondary-rgb) / 0.10);
        --adv-border-hover: rgb(var(--secondary-rgb) / 0.16);
        --adv-shadow: 0 18px 40px rgb(var(--secondary-rgb) / 0.08);
        --adv-shadow-hover: 0 28px 70px rgb(var(--secondary-rgb) / 0.12);
    }

    .services-section.services-v2 {
        --svc-card-bg: #ffffff;
        --svc-border: rgb(var(--secondary-rgb) / 0.10);
        --svc-border-hover: rgb(var(--secondary-rgb) / 0.16);
        --svc-shadow: 0 18px 40px rgb(var(--secondary-rgb) / 0.08);
        --svc-shadow-hover: 0 28px 80px rgb(var(--secondary-rgb) / 0.12);
    }

    .about-section.about-v2 {
        background: var(--bg-alt);
    }

    .legal-page {
        background: var(--bg);
    }

    .legal-card {
        background: rgb(255 255 255 / 0.86);
        border-color: rgb(var(--secondary-rgb) / 0.10);
        box-shadow: 0 20px 70px rgb(var(--secondary-rgb) / 0.10);
    }

    .legal-page .page-title,
    .legal-card h2,
    .legal-card strong {
        color: var(--text);
    }

    .legal-page .page-subtitle,
    .legal-card p,
    .legal-card ul,
    .legal-card li {
        color: var(--text-light);
    }

    .legal-muted {
        color: var(--text-muted);
    }

    .legal-link {
        color: var(--primary);
    }

    .cookie-banner__card {
        background: rgb(255 255 255 / 0.90);
        border-color: rgb(var(--secondary-rgb) / 0.12);
        box-shadow: 0 22px 70px rgb(var(--secondary-rgb) / 0.14);
    }

    .cookie-banner__title {
        color: var(--text);
    }

    .cookie-banner__desc {
        color: var(--text-light);
    }

    .cookie-banner__links {
        color: var(--text-muted);
    }

    .cookie-banner__links a {
        color: var(--text-light);
    }

    .cookie-option__text strong {
        color: var(--text);
    }

    .cookie-option__text span {
        color: var(--text-light);
    }

    .cookie-option {
        background: rgb(var(--secondary-rgb) / 0.03);
        border-color: rgb(var(--secondary-rgb) / 0.10);
    }
}
