
:root {
    /* Primitive Color Tokens */
    --color-white: rgba(255, 255, 255, 1);
    --color-black: rgba(0, 0, 0, 1);
    --color-cream-50: rgba(252, 252, 249, 1);
    --color-cream-100: rgba(255, 255, 253, 1);
    --color-gray-200: rgba(245, 245, 245, 1);
    --color-gray-300: rgba(167, 169, 169, 1);
    --color-gray-400: rgba(119, 124, 124, 1);
    --color-slate-500: rgba(98, 108, 113, 1);
    --color-brown-600: rgba(94, 82, 64, 1);
    --color-charcoal-700: rgba(31, 33, 33, 1);
    --color-charcoal-800: rgba(38, 40, 40, 1);
    --color-slate-900: rgba(19, 52, 59, 1);
    --color-teal-300: rgba(50, 184, 198, 1);
    --color-teal-400: rgba(45, 166, 178, 1);
    --color-teal-500: rgba(33, 128, 141, 1);
    --color-teal-600: rgba(29, 116, 128, 1);
    --color-teal-700: rgba(26, 104, 115, 1);
    --color-teal-800: rgba(41, 150, 161, 1);
    --color-red-400: rgba(255, 84, 89, 1);
    --color-red-500: rgba(192, 21, 47, 1);
    --color-orange-400: rgba(230, 129, 97, 1);
    --color-orange-500: rgba(168, 75, 47, 1);
    /* RGB versions for opacity control */
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;
    --color-slate-500-rgb: 98, 108, 113;
    --color-red-500-rgb: 192, 21, 47;
    --color-red-400-rgb: 255, 84, 89;
    --color-orange-500-rgb: 168, 75, 47;
    --color-orange-400-rgb: 230, 129, 97;
    /* Background color tokens (Light Mode) */
    --color-bg-1: rgba(59, 130, 246, 0.08);
    /* Light blue */
    --color-bg-2: rgba(245, 158, 11, 0.08);
    /* Light yellow */
    --color-bg-3: rgba(34, 197, 94, 0.08);
    /* Light green */
    --color-bg-4: rgba(239, 68, 68, 0.08);
    /* Light red */
    --color-bg-5: rgba(147, 51, 234, 0.08);
    /* Light purple */
    --color-bg-6: rgba(249, 115, 22, 0.08);
    /* Light orange */
    --color-bg-7: rgba(236, 72, 153, 0.08);
    /* Light pink */
    --color-bg-8: rgba(6, 182, 212, 0.08);
    /* Light cyan */
    /* Semantic Color Tokens (Light Mode) */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);
    /* Common style patterns */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    /* RGB versions for opacity control */
    --color-success-rgb: 33, 128, 141;
    --color-error-rgb: 192, 21, 47;
    --color-warning-rgb: 168, 75, 47;
    --color-info-rgb: 98, 108, 113;
    /* Typography */
    --font-family-base: "Inter", "FKGroteskNeue", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-display: "Onest", "Inter", system-ui, sans-serif;
    --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 30px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 550;
    --font-weight-bold: 600;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --letter-spacing-tight: -0.01em;
    /* Spacing */
    --space-0: 0;
    --space-1: 1px;
    --space-2: 2px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    /* Border Radius */
    --radius-sm: 6px;
    --radius-base: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    /* Animation */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}


/* Dark mode colors */

@media (prefers-color-scheme: dark) {
     :root {
        /* RGB versions for opacity control (Dark Mode) */
        --color-gray-400-rgb: 119, 124, 124;
        --color-teal-300-rgb: 50, 184, 198;
        --color-gray-300-rgb: 167, 169, 169;
        --color-gray-200-rgb: 245, 245, 245;
        /* Background color tokens (Dark Mode) */
        --color-bg-1: rgba(29, 78, 216, 0.15);
        /* Dark blue */
        --color-bg-2: rgba(180, 83, 9, 0.15);
        /* Dark yellow */
        --color-bg-3: rgba(21, 128, 61, 0.15);
        /* Dark green */
        --color-bg-4: rgba(185, 28, 28, 0.15);
        /* Dark red */
        --color-bg-5: rgba(107, 33, 168, 0.15);
        /* Dark purple */
        --color-bg-6: rgba(194, 65, 12, 0.15);
        /* Dark orange */
        --color-bg-7: rgba(190, 24, 93, 0.15);
        /* Dark pink */
        --color-bg-8: rgba(8, 145, 178, 0.15);
        /* Dark cyan */
        /* Semantic Color Tokens (Dark Mode) */
        --color-background: var(--color-charcoal-700);
        --color-surface: var(--color-charcoal-800);
        --color-text: var(--color-gray-200);
        --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
        --color-primary: var(--color-teal-300);
        --color-primary-hover: var(--color-teal-400);
        --color-primary-active: var(--color-teal-800);
        --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
        --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
        --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
        --color-border: rgba(var(--color-gray-400-rgb), 0.3);
        --color-error: var(--color-red-400);
        --color-success: var(--color-teal-300);
        --color-warning: var(--color-orange-400);
        --color-info: var(--color-gray-300);
        --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
        --color-btn-primary-text: var(--color-slate-900);
        --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
        --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
        --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
        --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);
        /* Common style patterns - updated for dark mode */
        --focus-ring: 0 0 0 3px var(--color-focus-ring);
        --focus-outline: 2px solid var(--color-primary);
        --status-bg-opacity: 0.15;
        --status-border-opacity: 0.25;
        --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        /* RGB versions for dark mode */
        --color-success-rgb: var(--color-teal-300-rgb);
        --color-error-rgb: var(--color-red-400-rgb);
        --color-warning-rgb: var(--color-orange-400-rgb);
        --color-info-rgb: var(--color-gray-300-rgb);
    }
}


/* Data attribute for manual theme switching */

[data-color-scheme="dark"] {
    /* RGB versions for opacity control (dark mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;
    /* Colorful background palette - Dark Mode */
    --color-bg-1: rgba(29, 78, 216, 0.15);
    /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15);
    /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15);
    /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15);
    /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15);
    /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15);
    /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15);
    /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15);
    /* Dark cyan */
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);
    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
    /* RGB versions for opacity control (light mode) */
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;
    /* Semantic Color Tokens (Light Mode) */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    /* RGB versions for light mode */
    --color-success-rgb: var(--color-teal-500-rgb);
    --color-error-rgb: var(--color-red-500-rgb);
    --color-warning-rgb: var(--color-orange-500-rgb);
    --color-info-rgb: var(--color-slate-500-rgb);
}


/* Base styles */

html {
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}


/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    letter-spacing: var(--letter-spacing-tight);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin: 0 0 var(--space-16) 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard);
}

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

code,
pre {
    font-family: var(--font-family-mono);
    font-size: calc(var(--font-size-base) * 0.95);
    background-color: var(--color-secondary);
    border-radius: var(--radius-sm);
}

code {
    padding: var(--space-1) var(--space-4);
}

pre {
    padding: var(--space-16);
    margin: var(--space-16) 0;
    overflow: auto;
    border: 1px solid var(--color-border);
}

pre code {
    background: none;
    padding: 0;
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    border: none;
    text-decoration: none;
    position: relative;
}

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

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

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

.btn--primary:active {
    background: var(--color-primary-active);
}

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

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

.btn--secondary:active {
    background: var(--color-secondary-active);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn--outline:hover {
    background: var(--color-secondary);
}

.btn--sm {
    padding: var(--space-4) var(--space-12);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn--lg {
    padding: var(--space-10) var(--space-20);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
}

.btn--full-width {
    width: 100%;
}

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


/* Form elements */

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-8) var(--space-12);
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

select.form-control {
    padding: var(--space-8) var(--space-12);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: var(--select-caret-light);
    background-repeat: no-repeat;
    background-position: right var(--space-12) center;
    background-size: 16px;
    padding-right: var(--space-32);
}


/* Add a dark mode specific caret */

@media (prefers-color-scheme: dark) {
    select.form-control {
        background-image: var(--select-caret-dark);
    }
}


/* Also handle data-color-scheme */

[data-color-scheme="dark"] select.form-control {
    background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
    background-image: var(--select-caret-light);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: var(--focus-outline);
}

.form-label {
    display: block;
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.form-group {
    margin-bottom: var(--space-16);
}


/* Card component */

.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card__body {
    padding: var(--space-16);
}

.card__header,
.card__footer {
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-card-border-inner);
}


/* Status indicators - simplified with CSS variables */

.status {
    display: inline-flex;
    align-items: center;
    padding: var(--space-6) var(--space-12);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.status--success {
    background-color: rgba( var(--color-success-rgb, 33, 128, 141), var(--status-bg-opacity));
    color: var(--color-success);
    border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
    background-color: rgba( var(--color-error-rgb, 192, 21, 47), var(--status-bg-opacity));
    color: var(--color-error);
    border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
    background-color: rgba( var(--color-warning-rgb, 168, 75, 47), var(--status-bg-opacity));
    color: var(--color-warning);
    border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
    background-color: rgba( var(--color-info-rgb, 98, 108, 113), var(--status-bg-opacity));
    color: var(--color-info);
    border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}


/* Container layout */

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-16);
    padding-left: var(--space-16);
}

@media (min-width: 640px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }
}


/* Utility classes */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-16 {
    gap: var(--space-16);
}

.m-0 {
    margin: 0;
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mx-8 {
    margin-left: var(--space-8);
    margin-right: var(--space-8);
}

.my-8 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.p-0 {
    padding: 0;
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.px-8 {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.px-16 {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
}

.block {
    display: block;
}

.hidden {
    display: none;
}


/* Accessibility */

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

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}


/* Dark mode specifics */

[data-color-scheme="dark"] .btn--outline {
    border: 1px solid var(--color-border-secondary);
}

@font-face {
    font-family: 'FKGroteskNeue';
    src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}


/* END PERPLEXITY DESIGN SYSTEM */


/* RusVertikal - Light Orange Theme */

:root {
    /* Brand palette — logo orange #FF6B35 */
    --brand-orange: #FF6B35;
    --brand-orange-hover: #ff8555;
    --brand-orange-rgb: 255, 107, 53;
    --surface-0: #f7f6f4;
    --surface-1: #ffffff;
    --surface-2: #f0eeeb;

    --color-primary: var(--brand-orange);
    --color-secondary: var(--surface-2);
    --color-dark: #222222;
    --color-heading: #1E2A3A;
    --color-text: #333333;
    --color-text-secondary: #444444;
    --color-orange-primary: var(--brand-orange);
    --color-orange-light: var(--brand-orange-hover);
    --color-orange-dark: #e55a28;
    --color-orange-400: var(--brand-orange);
    --color-orange-400-rgb: var(--brand-orange-rgb);
    --color-orange-500-rgb: 229, 90, 40;
    --color-dark-bg: var(--surface-0);
    --color-dark-surface: var(--surface-1);
    --color-background: var(--surface-0);
    --color-surface: var(--surface-1);
    --chrome-bg: linear-gradient(180deg, #222222 0%, #1a1a1a 100%);
    --chrome-bg-glass: linear-gradient(180deg, rgba(34, 34, 34, 0.98) 0%, rgba(26, 26, 26, 0.96) 100%);
    --chrome-text: #f0f0f0;
    --chrome-muted: rgba(255, 255, 255, 0.64);
    --chrome-border: rgba(255, 255, 255, 0.08);
    --container-xl: 1200px;
    --transition: all var(--duration-normal) var(--ease-standard);
    --site-header-h: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background: var(--color-background);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--site-header-h, 56px);
}

.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-24);
}


/* ===================== */


/* PRELOADER - 3D LOADER */


/* ===================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(circle farthest-corner at center, var(--color-slate-500) 0%, var(--color-charcoal-700) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--duration-normal) var(--ease-standard), visibility var(--duration-normal) var(--ease-standard);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    perspective: 800px;
}

.inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
}

.inner.one {
    left: 0%;
    top: 0%;
    animation: rotate-one 1s linear infinite;
    border-bottom: 3px solid var(--color-orange-primary);
}

.inner.two {
    right: 0%;
    top: 0%;
    animation: rotate-two 1s linear infinite;
    border-right: 3px solid var(--color-orange-primary);
}

.inner.three {
    right: 0%;
    bottom: 0%;
    animation: rotate-three 1s linear infinite;
    border-top: 3px solid var(--color-orange-primary);
}

@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}


/* ===================== */


/* HEADER - ТЕМНЫЙ */


/* ===================== */

/* Site header — MasTek pattern, RV colors */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--site-header-h);
    background: rgba(26, 26, 26, 0.92);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 16px;
    max-width: none;
}

@media (min-width: 1200px) {
    .site-header__bar {
        padding: 0 24px;
    }
}

.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    min-width: 120px;
}

.site-header__logo-img {
    height: 34px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .site-header__logo-img { height: 26px; }
}

.site-header__nav {
    display: none;
    align-items: center;
    gap: 28px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .site-header__nav {
        display: flex;
    }
}

.site-header__nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 0;
    position: relative;
    transition: color 0.2s ease;
}

.site-header__nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.site-header__nav .nav-link:hover,
.site-header__nav .nav-link.active {
    color: #fff;
    background: none;
}

.site-header__nav .nav-link:hover::after,
.site-header__nav .nav-link.active::after {
    transform: scaleX(1);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.site-header__phone {
    display: none;
    height: 36px;
    align-items: center;
    padding: 0 12px;
    margin-right: 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-header__phone:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (min-width: 768px) {
    .site-header__phone {
        display: inline-flex;
    }
}

.site-header__icon-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-header__icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-header__cta {
    display: none;
    height: 36px;
    align-items: center;
    margin: 0 6px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-header__cta:hover {
    background: var(--brand-orange-hover);
}

@media (min-width: 640px) {
    .site-header__cta {
        display: inline-flex;
    }
}

.site-header__burger {
    position: relative;
    display: block;
    width: 18px;
    height: 14px;
}

.site-header__burger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}

.site-header__burger span:nth-child(1) { top: 0; }
.site-header__burger span:nth-child(2) { top: 6px; }
.site-header__burger span:nth-child(3) { top: 12px; }

.site-header__menu-btn.is-open .site-header__burger span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.site-header__menu-btn.is-open .site-header__burger span:nth-child(2) {
    opacity: 0;
}

.site-header__menu-btn.is-open .site-header__burger span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

.site-header__progress {
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.site-header__progress-bar {
    height: 100%;
    width: 100%;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.header-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    width: min(370px, calc(100vw - 1.5rem));
    padding: 12px;
    border-radius: 24px;
    background: #fff;
    color: var(--color-heading);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
    z-index: 1001;
}

.header-popover[hidden] {
    display: none !important;
}

.header-popover__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-0);
}

.header-popover__row + .header-popover__row {
    margin-top: 8px;
}

.header-popover__label {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.header-popover__value {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 600;
}

.header-popover__meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.header-popover__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-popover__pill--dark {
    background: var(--color-heading);
    color: #fff;
}

.header-popover__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.header-popover__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
}

.header-popover__btn--wa {
    background: #25d366;
}

.header-popover__btn--max {
    background: #6b4eff;
}

.header-popover__cta {
    display: flex;
    width: 100%;
    height: 44px;
    margin-top: 8px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.header-menu {
    position: fixed;
    inset: var(--site-header-h) 0 0 0;
    z-index: 999;
    overflow-y: auto;
    background: #141414;
    color: #fff;
}

.header-menu[hidden] {
    display: none !important;
}

.header-menu__glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 85% 20%, rgba(var(--brand-orange-rgb), 0.16), transparent 70%);
}

.header-menu__inner {
    position: relative;
    display: grid;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 64px;
}

@media (min-width: 768px) {
    .header-menu__inner {
        grid-template-columns: 1.2fr 1fr 1fr;
        padding: 64px 32px;
    }
}

.header-menu__eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.header-menu__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.header-menu__list li + li {
    margin-top: 12px;
}

.header-menu__list a {
    font-family: var(--font-family-display);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-menu__list a:hover {
    color: var(--brand-orange);
}

.header-menu__list--sm a {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
}

.header-menu__phone {
    display: block;
    margin-top: 20px;
    font-family: var(--font-family-display);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.header-menu__email {
    display: block;
    margin-top: 12px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.header-menu__meta {
    margin: 24px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.header-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
}

.header-menu__outline {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.header-menu__outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

h1, h2, h3, .hero-title, .page-title, .section-title {
    font-family: var(--font-family-display);
}

.main-header {
    background: var(--chrome-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--chrome-text);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 88px;
}

.main-header .nav-link {
    color: #e8e8e8;
}

.main-header .nav-link:hover,
.main-header .nav-link.active {
    color: var(--brand-orange);
}

.main-header .header-quiz-link__sub {
    color: rgba(255, 255, 255, 0.62);
}

.header-content {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    align-items: center;
    gap: var(--space-20);
    flex-wrap: nowrap;
    min-height: 88px;
    padding: var(--space-10) 0;
}

.logo-link {
    justify-self: start;
}

.main-nav {
    justify-self: center;
}

.header-contacts {
    justify-self: end;
}

.logo-link {
    text-decoration: none;
    color: var(--color-text);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding: 0;
    background: none;
    border-radius: 0;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo-mark {
    height: 68px;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    letter-spacing: 0.05em;
    white-space: nowrap;
    line-height: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-24);
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
    padding: var(--space-8) var(--space-4);
    border-radius: 0;
    position: relative;
    background: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-orange);
    background: none;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-link:focus {
    outline: none;
}

.nav-link:focus-visible {
    color: var(--brand-orange);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.header-cta {
    padding: 11px 22px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    box-shadow: none;
    letter-spacing: 0.02em;
}

.header-cta:hover {
    box-shadow: 0 6px 24px rgba(var(--brand-orange-rgb), 0.4);
}

.contact-icon {
    color: var(--color-text);
    padding: var(--space-8);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-icon:hover {
    background: rgba(var(--color-orange-400-rgb), 0.15);
    color: var(--color-orange-primary);
}


/* ===================== */


/* FOOTER - ТЕМНЫЙ С ОРАНЖЕВОЙ ЛИНИЕЙ */


/* ===================== */

.main-footer {
    background: var(--chrome-bg);
    color: var(--chrome-text);
    padding: clamp(56px, 7vw, 80px) 0 var(--space-32);
    margin-top: 0;
    border-top: 1px solid rgba(var(--brand-orange-rgb), 0.28);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-orange-rgb), 0.55), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-32);
    margin-bottom: var(--space-32);
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: var(--space-16);
    font-weight: var(--font-weight-semibold);
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 10px;
    background: var(--brand-orange);
    border-radius: var(--radius-full);
}

.footer-section p {
    margin-bottom: var(--space-10);
    line-height: 1.65;
    color: var(--chrome-muted);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--brand-orange);
    text-decoration: none;
}

.footer-links a {
    color: var(--chrome-muted);
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-orange);
    transform: translateX(3px);
}

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

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

.social-links {
    display: flex;
    gap: var(--space-16);
    align-items: center;
}

.social-icon {
    color: var(--color-text);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(var(--brand-orange-rgb), 0.1);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.2);
}

.social-icon svg {
    width: var(--space-24);
    height: var(--space-24);
}

.social-icon:hover {
    color: var(--color-white);
    background: var(--color-orange-primary);
    transform: translateY(-3px);
}

.main-footer .social-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.main-footer .social-icon:hover {
    color: #ffffff;
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(var(--brand-orange-rgb), 0.35);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-24);
    margin-top: var(--space-32);
    border-top: 1px solid var(--chrome-border);
    color: rgba(255, 255, 255, 0.42);
    font-size: var(--font-size-sm);
}


/* ===================== */


/* BUTTONS - ОРАНЖЕВЫЕ */


/* ===================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    cursor: pointer;
    border: none;
    transition: transform 0.25s var(--ease-standard), box-shadow 0.25s var(--ease-standard), background 0.25s;
    text-align: center;
    line-height: 1.2;
    gap: var(--space-8);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8555 100%);
    color: var(--color-white);
    box-shadow: 0 6px 24px rgba(var(--brand-orange-rgb), 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-orange-hover) 0%, #ff9a6a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(var(--brand-orange-rgb), 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(var(--brand-orange-rgb), 0.12);
    transform: translateY(-2px);
    border-color: rgba(var(--brand-orange-rgb), 0.45);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.55);
    color: var(--brand-orange);
}

.btn-outline:hover {
    background: rgba(var(--brand-orange-rgb), 0.12);
    border-color: var(--brand-orange);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 12px 20px;
    font-size: var(--font-size-sm);
}


/* ===================== */


/* MODAL STYLES */


/* ===================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    animation: fadeIn var(--duration-normal) var(--ease-standard);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface-1);
    color: var(--color-text);
    padding: var(--space-40) var(--space-36);
    border-radius: 16px;
    max-width: 560px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn var(--duration-normal) var(--ease-standard);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.15);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.modal-content--form {
    max-width: 520px;
    padding: clamp(40px, 5vw, 52px) clamp(32px, 4vw, 44px);
}

.modal-content--form .modal-title {
    padding-right: 40px;
    margin-bottom: var(--space-28);
}

.modal-content--form .form-group {
    margin-bottom: var(--space-24);
}

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

.modal-close {
    position: absolute;
    top: var(--space-16);
    right: var(--space-16);
    font-size: var(--font-size-3xl);
    color: var(--color-text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(var(--color-orange-400-rgb), 0.2);
    color: var(--color-orange-primary);
}

.modal-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-20);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}


/* ===================== */


/* FORM STYLES */


/* ===================== */

.form-group {
    margin-bottom: var(--space-20);
}

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

.form-label.required::after {
    content: ' *';
    color: var(--color-orange-primary);
}

.form-control {
    width: 100%;
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
}

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

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-family-base);
}

select.form-control {
    cursor: pointer;
}

.form-success {
    display: none;
    padding: var(--space-20);
    background: rgba(var(--color-success-rgb), 0.2);
    color: var(--color-success);
    border: 1px solid var(--color-success);
    border-radius: var(--radius-base);
    margin-top: var(--space-20);
    text-align: center;
}

.form-success.show {
    display: block;
}


/* ===================== */


/* SERVICES GRID */


/* ===================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.service-card {
    background: var(--surface-1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s var(--ease-standard), box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(var(--brand-orange-rgb), 0.15);
    border-color: rgba(var(--brand-orange-rgb), 0.35);
}

.service-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-services-grid .service-image {
    height: 140px;
}

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

.service-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-16);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}

.service-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-20);
    line-height: var(--line-height-normal);
    flex: 1;
}

.service-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
    width: 100%;
    margin-top: auto;
    padding-top: var(--space-8);
}

.service-buttons .btn {
    width: 100%;
}


/* SERVICE DETAIL IN MODAL */

.service-features {
    list-style: none;
    margin: var(--space-20) 0;
}

.service-features li {
    padding: var(--space-10) 0;
    padding-left: var(--space-24);
    position: relative;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-orange-primary);
    font-weight: var(--font-weight-bold);
}

.service-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.service-images img {
  cursor: pointer;
  border-radius: 10px;
  transition: box-shadow 0.22s, transform 0.21s;
  box-shadow: 0 1px 11px #0002;
  position: relative;
  object-fit: cover;
  width: 100%;
  height: 190px;
  z-index: 1;
}
.service-images .img-hover-text {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: rgba(26,26,26,0.8);
  color: #fff;
  padding: 9px 20px;
  font-size: 1.12rem;
  border-radius: 6px;
  z-index: 2;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.service-images img:hover,
.service-images img:focus {
  box-shadow: 0 3px 24px #FF6B3555, 0 2px 14px #0004;
  transform: scale(1.04);
}
.service-images img:hover + .img-hover-text,
.service-images img:focus + .img-hover-text {
  opacity: 1;
}

/* Если картинки в grid, то позиционирование фиксируем */
.service-images {
  position: relative;
}
.service-images .service-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#galleryImg.zoomed {
  cursor: zoom-out;
  transition: transform 0.15s;
}


/* ===================== */


/* HERO SECTION */


/* ===================== */

.hero {
    position: relative;
    isolation: isolate;
    background: url('../../fonnew.png') 62% center / cover no-repeat;
    padding: clamp(64px, 10vh, 108px) 0 clamp(72px, 11vh, 112px);
    text-align: center;
    color: #ffffff;
    min-height: clamp(480px, 72vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.78) 38%, rgba(8, 8, 10, 0.42) 62%, rgba(8, 8, 10, 0.28) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 45%, rgba(247, 246, 244, 0.06) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 56px;
    background: var(--surface-0);
    clip-path: ellipse(125% 100% at 50% 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.1rem, 4.5vw, 3.35rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-20);
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
    animation: slideInDown 0.8s ease;
    max-width: 640px;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    margin-bottom: var(--space-24);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 540px;
    animation: slideInUp 0.8s ease;
}

.hero-cta {
    display: flex;
    gap: var(--space-16);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.3s backwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-20);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
    border-radius: 14px;
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===================== */


/* SECTIONS */


/* ===================== */

section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: var(--space-40);
    color: var(--color-heading);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-hover));
    margin: var(--space-16) auto 0;
    border-radius: var(--radius-full);
}


/* ===================== */


/* PRICE TEASER (above advantages) */
/* ===================== */

.price-teaser {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-10);
    padding: var(--space-24) var(--space-28);
    margin-bottom: var(--space-40);
    background: var(--surface-1);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.12);
    border-left: none;
    border-radius: 16px;
    text-align: left;
    font-size: var(--font-size-lg);
    color: var(--color-text);
    line-height: 1.55;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.price-teaser__main {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-6);
}

.price-teaser__sub {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}

.price-teaser__highlight {
    color: var(--brand-orange);
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.price-teaser__highlight--free {
    color: var(--color-success);
}

.price-teaser__note {
    width: 100%;
    margin-top: var(--space-8);
    font-size: var(--font-size-sm, 0.8rem);
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

.work-showcase {
    margin: 0 0 var(--space-48);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-24);
    align-items: stretch;
}

.work-showcase__card {
    position: relative;
    padding: var(--space-24);
    border-radius: 16px;
    background: var(--surface-1);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    transition: transform 0.3s var(--ease-standard), box-shadow 0.3s, border-color 0.3s;
}

.work-showcase__card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-orange-rgb), 0.35);
    box-shadow: 0 16px 48px rgba(var(--brand-orange-rgb), 0.12);
}

.work-showcase__card::before {
    display: none;
}

.work-showcase__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: var(--space-8) 0 var(--space-8);
    padding-bottom: var(--space-10);
    color: var(--color-text);
    line-height: var(--line-height-tight);
    border-bottom: 1px solid rgba(var(--color-orange-400-rgb), 0.2);
}

.work-showcase__desc {
    margin: 0 0 var(--space-14);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.55;
    flex-shrink: 0;
}

.work-showcase__mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
    flex: 1 1 auto;
    margin-top: auto;
    min-height: 0;
    align-content: start;
}

.work-showcase__mosaic-hero {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.work-showcase__mosaic-cell {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 0;
    border-radius: var(--radius-base);
}

.work-showcase__media {
    flex: 1 1 auto;
    margin-top: auto;
    height: 220px;
    min-height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.35);
}

.work-showcase__thumb {
    width: 100%;
    display: block;
    cursor: pointer;
    transition:
        transform var(--duration-normal) var(--ease-standard),
        box-shadow var(--duration-normal) var(--ease-standard),
        filter var(--duration-normal) var(--ease-standard);
}

.work-showcase__thumb--fill {
    height: 100%;
    min-height: 220px;
    border-radius: var(--radius-md);
    border: none;
    object-fit: cover;
}

.work-showcase__thumb:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.work-showcase__thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    filter: brightness(1.05);
    z-index: 1;
}

@media (max-width: 1024px) {
    .work-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .work-showcase {
        grid-template-columns: 1fr;
    }
    .work-showcase__card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .work-showcase__mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .work-showcase__mosaic-hero {
        max-height: min(220px, 50vw);
    }
    .work-showcase__media {
        min-height: 220px;
    }
    .work-showcase__thumb--fill {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .price-teaser {
        flex-direction: column;
        gap: var(--space-8);
        padding: var(--space-12) var(--space-16);
        font-size: var(--font-size-base);
    }
    .price-teaser__highlight {
        font-size: var(--font-size-lg);
    }
}


.advantages-section {
    background: var(--surface-0);
}

.services-preview-section {
    background: linear-gradient(180deg, transparent 0%, rgba(var(--brand-orange-rgb), 0.04) 50%, transparent 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-32);
}

.advantage-card {
    background: var(--surface-1);
    padding: var(--space-32) var(--space-24);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s var(--ease-standard), box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.1);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(var(--brand-orange-rgb), 0.15);
    border-color: rgba(var(--brand-orange-rgb), 0.35);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-20);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-hover));
    border-radius: var(--radius-full);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(var(--brand-orange-rgb), 0.35);
}

.advantage-icon svg {
    width: var(--space-32);
    height: var(--space-32);
}

.advantage-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-10);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}

.advantage-card p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}


/* ===================== */


/* VALUES ICONS */


/* ===================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-32);
}

.value-card {
    background: var(--surface-1);
    padding: var(--space-32) var(--space-24);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.3s var(--ease-standard), box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.1);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(var(--brand-orange-rgb), 0.15);
    border-color: rgba(var(--brand-orange-rgb), 0.35);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-20);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-hover));
    border-radius: var(--radius-full);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(var(--brand-orange-rgb), 0.35);
}

.value-icon svg {
    width: var(--space-32);
    height: var(--space-32);
}

.value-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-10);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}

.value-card p {
    color: var(--color-text-secondary);
}


/* ===================== */


/* PORTFOLIO */


/* ===================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-32);
}

.portfolio-card {
    background: var(--surface-1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s var(--ease-standard), box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.1);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(var(--brand-orange-rgb), 0.15);
    border-color: rgba(var(--brand-orange-rgb), 0.35);
}

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

.portfolio-content {
    padding: var(--space-32);
}

.portfolio-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-16);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}

.portfolio-content p {
    color: var(--color-text-secondary);
}

.portfolio-meta {
    display: flex;
    gap: var(--space-20);
    margin: var(--space-16) 0;
    flex-wrap: wrap;
}

.portfolio-meta-item {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.portfolio-meta-item strong {
    color: var(--color-orange-primary);
}

.portfolio-testimonial {
    background: rgba(var(--color-orange-400-rgb), 0.1);
    padding: var(--space-16);
    border-left: 4px solid var(--color-orange-primary);
    margin-top: var(--space-20);
    font-style: italic;
    color: var(--color-text);
    border-radius: var(--radius-sm);
}


/* ===================== */


/* MOBILE MENU */


/* ===================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: var(--space-6);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-8);
    border-radius: var(--radius-sm);
    transition: background var(--duration-normal) var(--ease-standard);
}

.mobile-menu-toggle:hover {
    background: rgba(var(--color-orange-400-rgb), 0.15);
}

.mobile-menu-toggle span {
    width: var(--space-24);
    height: 2px;
    background: var(--color-orange-primary);
    border-radius: var(--radius-sm);
    transition: transform var(--duration-normal) var(--ease-standard), opacity 0.2s ease, background var(--duration-normal) var(--ease-standard);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* mobile nav expanded */

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: var(--space-12) 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(var(--color-orange-400-rgb), 0.3);
    }
    .main-nav.open {
        display: block;
    }
    .main-nav .nav-list {
        flex-direction: column;
        gap: 15px;
        padding: var(--space-8) var(--space-16);
    }
    .nav-link {
        border-radius: var(--radius-base);
    }
    .mobile-menu-toggle {
        display: flex;
    }
}


/* ===================== */


/* PAGE CONTENT */


/* ===================== */

.page-header {
    position: relative;
    text-align: center;
    padding: 36px 0 28px;
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-0) 100%);
    border-bottom: 1px solid rgba(var(--brand-orange-rgb), 0.12);
    overflow: hidden;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-12);
    color: var(--color-heading);
    letter-spacing: -0.02em;
    text-shadow: none;
}

.page-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}


/* ===================== */


/* CONTACT PAGE */


/* ===================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.contact-info {
    background: var(--surface-1);
    padding: var(--space-32);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.12);
}

.contact-info-item {
    margin-bottom: var(--space-24);
}

.contact-info-item h3 {
    color: var(--color-orange-primary);
    margin-bottom: var(--space-10);
    font-weight: var(--font-weight-semibold);
}

.contact-info-item p {
    color: var(--color-text-secondary);
}

.contact-info-item a {
    color: var(--color-orange-primary);
}

.contact-icons-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-12);
    margin-top: var(--space-20);
}

.contact-icon-card {
    background: rgba(var(--color-orange-400-rgb), 0.1);
    border: 1px solid rgba(var(--color-orange-400-rgb), 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-16);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--color-text);
}

.contact-icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(var(--color-orange-400-rgb), 0.3);
    background: rgba(var(--color-orange-400-rgb), 0.2);
}

.contact-icon-card svg {
    width: 28px;
    height: 28px;
    margin-bottom: var(--space-8);
    color: var(--color-orange-primary);
}

.contact-icon-card span {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}


/* ===================== */


/* FOOTER CONTACTS */


/* ===================== */

.footer-contacts-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-10);
    margin-top: var(--space-12);
}

.footer-contact-card {
    background: rgba(var(--color-orange-400-rgb), 0.1);
    border: 1px solid rgba(var(--color-orange-400-rgb), 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-card svg {
    width: 18px;
    height: 18px;
    margin-bottom: var(--space-4);
}

.footer-contact-card span {
    font-size: var(--font-size-xs);
    opacity: 0.9;
}

.footer-contact-card:hover {
    background: rgba(var(--color-orange-400-rgb), 0.2);
    transform: translateY(-2px);
}


/* ===================== */


/* RESPONSIVE */


/* ===================== */


/* Tablet tweaks */

@media (max-width: 1024px) {
    .section-title {
        font-size: var(--font-size-3xl);
    }
    .hero {
        padding: 100px 0;
        background: linear-gradient(135deg, rgba(var(--color-charcoal-700-rgb, 31, 33, 33), 0.95), rgba(var(--color-orange-400-rgb), 0.7)), url('../../fonnew.png') center/cover;
    }
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    .services-grid,
    .advantages-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: var(--space-20);
    }
}


/* Mobile */

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-icons-row,
    .footer-contacts-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .logo-text {
        font-size: 1rem;
    }
    .logo-img,
    .logo-mark,
    .logo img {
        height: 56px;
    }
    .header-contacts {
        gap: var(--space-8);
    }
    .contact-icon {
        padding: var(--space-6);
    }
    .contact-icon svg {
        width: var(--space-20);
        height: var(--space-20);
    }
}


/* Mobile portrait responsive breakpoint */

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-16);
    }
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    .section-title {
        font-size: var(--font-size-2xl);
    }
    .contact-icons-row,
    .footer-contacts-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        padding: var(--space-32) 0;
        background: linear-gradient(135deg, rgba(var(--color-charcoal-700-rgb, 31, 33, 33), 0.95), rgba(var(--color-orange-400-rgb), 0.7)), url('../../fonnew.png') center/cover;
    }
    .hero-cta {
        gap: var(--space-12);
    }
    .btn {
        padding: var(--space-10) var(--space-20);
        font-size: var(--font-size-sm);
    }
    .modal-content {
        padding: var(--space-16);
        margin: var(--space-16);
    }
    .service-content,
    .advantage-card,
    .value-card,
    .portfolio-content,
    .contact-info {
        padding: var(--space-20);
    }
    section {
        padding: var(--space-24) 0;
    }
    .work-showcase__card {
        padding: var(--space-16);
    }
    .work-showcase__card::before {
        left: var(--space-16);
        right: var(--space-16);
    }
    .work-showcase__title {
        font-size: var(--font-size-lg);
    }
    .services-grid,
    .advantages-grid,
    .values-grid,
    .portfolio-grid {
        gap: var(--space-20);
    }
    .footer-content {
        gap: var(--space-24);
    }
    .social-links {
        justify-content: center;
        gap: var(--space-12);
    }
}

:root,
html,
body {
    color-scheme: light !important;
    background: #f7f6f4 !important;
    --color-background: #f7f6f4 !important;
    --color-surface: #ffffff !important;
    --color-text: #333333 !important;
    --color-text-secondary: #444444 !important;
    --color-primary: #FF6B35 !important;
    --color-primary-hover: #FF8555 !important;
    --color-primary-active: #DF4420 !important;
}


/* Светлая тема независимо от системных настроек */

@media (prefers-color-scheme: light),
(prefers-color-scheme: dark) {
     :root {
        --color-background: #f7f6f4 !important;
        --color-surface: #ffffff !important;
        --color-text: #333333 !important;
        --color-text-secondary: #444444 !important;
        --color-primary: #FF6B35 !important;
        --color-primary-hover: #FF8555 !important;
    }
    html,
    body {
        background: #f7f6f4 !important;
        color: #333333 !important;
    }
}


[data-color-scheme="light"],
[data-color-scheme="dark"] {
    --color-background: #f7f6f4 !important;
    --color-surface: #ffffff !important;
    --color-text: #1f1f1f !important;
    --color-primary: #FF6B35 !important;
}
/* Основное модальное окно для галереи */
#galleryModal.modal {
  display: none;
  position: fixed;
  z-index: 12000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 20, 20, 0.96);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}

#galleryModal.modal.active {
  display: flex;
}

.gallery-modal-content {
  position: relative;
  background: #222;
  border-radius: 18px;
  box-shadow: 0 6px 40px #000a;
  padding: 32px 40px 24px 40px;
  max-width: 860px;
  width: 96vw;
  max-height: 88vh;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60vh;
  min-height: 320px;
  gap: 0;
}

#galleryImg {
  max-width: 72vw;
  max-height: 54vh;
  box-shadow: 0 0 32px #0007;
  border-radius: 12px;
  transition: transform 0.2s;
  object-fit: contain;
  margin: 0 18px;
  background: #191919;
  cursor: zoom-in;
}

#galleryImg[style*="scale"] {
  cursor: zoom-out;
}

.gallery-nav {
  background: rgba(40,40,40,0.88);
  border: none;
  font-size: 2.6rem;
  color: #ffc360;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  margin: 0 8px;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  user-select: none;
}

.gallery-nav:hover {
  background: #FF6B35;
  color: #fff;
}

#galleryThumbs {
  width: 100%;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 0 0;
  justify-content: center;
}

.gallery-caption {
  min-height: 28px;
  margin-top: -6px;
  text-align: center;
  font-weight: var(--font-weight-semibold);
  color: var(--color-orange-primary);
}

.gallery-thumb {
  height: 64px;
  width: 90px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  background: #333;
  transition: border 0.2s, opacity 0.2s;
}

.gallery-thumb.active, .gallery-thumb:hover {
  border: 2px solid #FF6B35;
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #fff2;
  color: #FF6B35;
}

/* Для маленьких экранов */
@media (max-width: 600px) {
  .gallery-modal-content {
    padding: 12px 4px 6px 4px;
    min-width: 0;
    max-width: 99vw;
    border-radius: 8px;
  }
  .gallery-main {
    height: 36vh;
    min-height: 110px;
  }
  #galleryImg {
    max-width: 90vw;
    max-height: 34vh;
  }
  .gallery-thumb {
    width: 60px;
    height: 36px;
  }
}
/* Фиксированная адаптивная модалка галереи для мобильных */
@media (max-width: 600px) {
  #galleryModal.modal.active,
  #galleryModal.modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .gallery-modal-content {
    padding: 10px 4px 16px 4px !important;
    min-width: 0 !important;
    max-width: 99vw !important;
    width: 100vw !important;
    max-height: 95vh !important;
    height: auto !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .gallery-main {
    width: 100vw !important;
    max-width: 97vw !important;
    min-height: 220px !important;
    height: 310px !important;
    position: relative !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    overflow: visible !important;
  }
  #galleryImg {
    display: block !important;
    background: #191919 !important;
    border-radius: 13px !important;
    max-width: 95vw !important;
    max-height: 310px !important;
    min-height: 180px !important;
    min-width: 0 !important;
    object-fit: contain !important;
    margin: 0 9px !important;
    box-shadow: 0 0 15px #0008 !important;
    transition: transform 0.18s !important;
  }
  .gallery-nav {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 13 !important;
    background: rgba(40,40,40,0.98) !important;
    color: #FF6B35 !important;
    border: none !important;
    font-size: 2.3rem !important;
    padding: 7px 14px !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    user-select: none !important;
    opacity: 1 !important;
    box-shadow: 0 2px 12px #2227 !important;
    transition: background 0.2s, color 0.2s !important;
  }
  #galleryPrev.gallery-nav {
    left: 7px !important;
  }
  #galleryNext.gallery-nav {
    right: 7px !important;
  }
  .gallery-thumbs {
    width: 100vw !important;
    padding: 8px 0 0 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    justify-content: center !important;
  }
  .gallery-thumb {
    width: 62px !important;
    height: 38px !important;
    border-radius: 7px !important;
    object-fit: cover !important;
    opacity: 0.7;
    border: 2px solid transparent !important;
    background: #333 !important;
    transition: border 0.18s, opacity 0.18s !important;
  }
  .gallery-thumb.active,
  .gallery-thumb:hover {
    border: 2px solid #FF6B35 !important;
    opacity: 1 !important;
  }
  .modal-close {
    position: absolute !important;
    top: 11px !important;
    right: 11px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 2.1rem !important;
    z-index: 15 !important;
    background: none !important;
    color: #ddd !important;
  }
}

/* Делаем стрелки всегда видимыми, даже если фото маленькое */
.gallery-nav {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 15 !important;
}

/* Фиксация размеров и размещения стрелок на всех устройствах */
.gallery-main {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#galleryPrev.gallery-nav {
  left: 20px;
}
#galleryNext.gallery-nav {
  right: 20px;
}
.gallery-modal-content {
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* ===================== */
/* QUIZ */
/* ===================== */

.quiz-cta-section {
    padding: clamp(56px, 7vw, 80px) 0;
    background: linear-gradient(180deg, var(--surface-0) 0%, #ffffff 100%);
}

.quiz-cta-section__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-40);
    padding: clamp(28px, 4vw, 40px) clamp(28px, 4vw, 44px);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.14);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.quiz-cta-section__badge {
    display: inline-block;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-orange);
    margin-bottom: var(--space-12);
    font-weight: var(--font-weight-semibold);
}

.quiz-cta-section__title {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    margin: 0 0 var(--space-12);
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 640px;
}

.quiz-cta-section__subtitle {
    margin: 0;
    color: var(--color-text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

.quiz-cta-section__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
    flex-shrink: 0;
}

.quiz-cta-section__btn {
    min-width: 220px;
    white-space: nowrap;
}

.quiz-cta-section__hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.quiz-modal.active {
    align-items: flex-start;
    padding: var(--space-16);
    overflow-y: auto;
    overflow-x: hidden;
}

.quiz-modal__content {
    max-width: 640px;
    width: 100%;
    padding: clamp(36px, 4vw, 48px) clamp(28px, 3.5vw, 40px);
    margin: auto;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.15);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.quiz-modal__content--wide {
    max-width: 720px;
}

.quiz-modal__close {
    top: var(--space-16);
    right: var(--space-16);
}

.quiz-modal__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-28);
    align-items: start;
    max-width: 640px;
    margin: 0 auto;
}

.quiz-modal__layout--intro {
    max-width: 100%;
}

.quiz-modal__main {
    min-width: 0;
}

.quiz-step[hidden] {
    display: none !important;
}

.quiz-progress {
    display: none;
    margin-bottom: var(--space-28);
}

.quiz-progress--visible {
    display: block;
    animation: quizFadeIn 0.3s var(--ease-standard);
}

.quiz-progress__label {
    margin: 0 0 var(--space-12);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

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

.quiz-progress__segment {
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.35s var(--ease-standard), transform 0.35s var(--ease-standard);
}

.quiz-progress__segment--active {
    background: linear-gradient(90deg, var(--color-orange-primary), #ffb347);
}

.quiz-progress__segment--current {
    transform: scaleY(1.35);
    box-shadow: 0 0 12px rgba(var(--color-orange-400-rgb), 0.45);
}

.quiz-step {
    width: 100%;
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-intro-banner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid rgba(var(--color-orange-400-rgb), 0.2);
    aspect-ratio: 21 / 9;
    min-height: 220px;
    max-height: 320px;
    background: #0a0a0a;
}

.quiz-intro-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.quiz-intro-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: 52%;
    margin-left: auto;
    padding: var(--space-20) var(--space-28) var(--space-20) var(--space-16);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(8, 8, 8, 0.55) 18%,
        rgba(8, 8, 8, 0.92) 42%,
        rgba(8, 8, 8, 0.97) 100%
    );
    z-index: 1;
}

.quiz-intro-banner__tag {
    display: inline-block;
    margin: 0 0 var(--space-10);
    padding: var(--space-4) var(--space-10);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-orange-primary);
    background: rgba(var(--color-orange-400-rgb), 0.15);
    border: 1px solid rgba(var(--color-orange-400-rgb), 0.35);
    border-radius: var(--radius-full);
}

.quiz-intro-banner__title {
    margin: 0 0 var(--space-8);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-white);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.quiz-intro-banner__lead {
    margin: 0 0 var(--space-16);
    font-size: var(--font-size-sm);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    max-width: 280px;
}

.quiz-intro-banner__btn {
    min-width: 148px;
    padding: var(--space-10) var(--space-24);
    font-size: var(--font-size-sm);
    box-shadow: 0 8px 24px rgba(var(--color-orange-400-rgb), 0.35);
}

.quiz-q-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin: 0 0 var(--space-24);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.quiz-options--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-10);
}

.quiz-opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-12);
    text-align: left;
    width: 100%;
    min-height: 64px;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    font-family: inherit;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.quiz-opt:hover {
    border-color: rgba(var(--color-orange-400-rgb), 0.55);
    background: rgba(var(--color-orange-400-rgb), 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.quiz-opt--selected {
    border-color: var(--color-orange-primary);
    background: rgba(var(--color-orange-400-rgb), 0.14);
    box-shadow: 0 0 0 1px rgba(var(--color-orange-400-rgb), 0.35), 0 8px 28px rgba(var(--color-orange-400-rgb), 0.15);
}

.quiz-opt--selected .quiz-opt__icon {
    color: var(--color-orange-primary);
}

.quiz-opt--selected .quiz-opt__check {
    opacity: 1;
    transform: scale(1);
}

.quiz-opt--muted {
    opacity: 0.92;
}

.quiz-opt__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.quiz-opt__icon svg {
    display: block;
}

.quiz-opt__label {
    flex: 1;
    width: 100%;
    line-height: 1.35;
    font-weight: var(--font-weight-medium);
}

.quiz-opt__check {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange-primary);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s, transform 0.25s var(--ease-standard);
}

.quiz-opt--custom {
    justify-content: center;
    border-style: dashed;
    color: var(--color-text-secondary);
    margin-top: var(--space-4);
}

.quiz-opt--custom:hover,
.quiz-opt--custom.quiz-opt--selected {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.quiz-options--hidden {
    display: none !important;
}

.quiz-custom {
    margin-top: var(--space-16);
    padding: var(--space-20);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.2);
}

.quiz-custom__input {
    width: 100%;
    min-height: 100px;
    margin-bottom: var(--space-16);
    padding: var(--space-14) var(--space-16);
    font-size: var(--font-size-base);
    resize: vertical;
}

.quiz-custom__btn {
    width: 100%;
    min-height: 52px;
}

.quiz-form {
    max-width: 480px;
    padding: var(--space-8) 0;
}

.quiz-form .form-group {
    margin-bottom: var(--space-20);
}

.quiz-form .form-control {
    min-height: 52px;
    padding: var(--space-14) var(--space-16);
    font-size: var(--font-size-base);
    border-radius: 12px;
}

.quiz-submit {
    width: 100%;
    min-height: 56px;
    margin-bottom: var(--space-12);
    font-size: var(--font-size-lg);
}

.quiz-form-error {
    display: none;
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin: 0 0 var(--space-12);
}

.quiz-form-error.visible {
    display: block;
}

.quiz-back-link {
    width: 100%;
}

.quiz-nav-row {
    display: none !important;
}

.quiz-back-link--bar {
    max-width: 140px;
}

.quiz-done {
    text-align: center;
    padding: var(--space-32) 0 var(--space-24);
}

.quiz-done__check {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-20);
    border-radius: var(--radius-full);
    background: rgba(var(--color-success-rgb), 0.12);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-done__check-svg {
    display: block;
}

.quiz-done__circle {
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
    animation: quizCircleDraw 0.6s var(--ease-standard) forwards;
}

.quiz-done__tick {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: quizTickDraw 0.4s var(--ease-standard) 0.45s forwards;
}

@keyframes quizCircleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes quizTickDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.quiz-done__title {
    margin: 0 0 var(--space-10);
    font-size: var(--font-size-2xl);
}

.quiz-done__text {
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-24);
}

.quiz-modal__aside {
    position: sticky;
    top: var(--space-8);
}

.quiz-aside-card {
    padding: var(--space-16);
    border-radius: var(--radius-md);
    background: rgba(var(--color-orange-400-rgb), 0.08);
    border: 1px solid rgba(var(--color-orange-400-rgb), 0.2);
}

.quiz-aside-card__lead {
    margin: 0 0 var(--space-14);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--color-text);
}

.quiz-aside-card__list {
    margin: 0;
    padding-left: var(--space-16);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .quiz-cta-section__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-24);
    }
    .quiz-cta-section__title,
    .quiz-cta-section__subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    .quiz-cta-section__action {
        width: 100%;
    }
    .quiz-cta-section__btn {
        width: 100%;
    }
    .quiz-modal.active {
        padding: 0;
        align-items: stretch;
    }
    .quiz-modal__content {
        min-height: 100dvh;
        max-width: none;
        margin: 0;
        border-radius: 0;
        border: none;
        padding: var(--space-20) var(--space-16) var(--space-24);
    }
    .quiz-modal__layout {
        grid-template-columns: 1fr;
    }
    .quiz-modal__aside {
        display: none;
    }
    .quiz-options--grid {
        grid-template-columns: 1fr;
    }
    .quiz-opt {
        min-height: 60px;
        padding: var(--space-16);
    }
    .quiz-intro-banner {
        aspect-ratio: auto;
        min-height: 280px;
        max-height: none;
    }
    .quiz-intro-banner__overlay {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
        padding: var(--space-20);
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(8, 8, 8, 0.75) 45%,
            rgba(8, 8, 8, 0.96) 100%
        );
    }
    .quiz-intro-banner__lead {
        max-width: none;
    }
}

/* ===================== */
/* GLOBAL REDESIGN V2    */
/* ===================== */

.hero {
    min-height: clamp(480px, 72vh, 720px);
    text-align: left;
}

.hero .hero-title {
    color: #ffffff;
}

.hero .container {
    width: 100%;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: clamp(20px, 4vw, 40px);
}

.hero-topbar__schedule {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.3;
}

.hero-topbar__hours {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.02em;
}

.hero-topbar__phone {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    text-decoration: none;
}

.hero-topbar__phone:hover {
    color: var(--brand-orange);
}

.hero-topbar__max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.hero-topbar__max img {
    width: 22px;
    height: 22px;
    display: block;
}

.hero-content {
    max-width: none;
    margin: 0;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 var(--space-28);
    padding: 0;
}

.hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.92);
}

.hero-features li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(var(--brand-orange-rgb), 0.25);
    flex-shrink: 0;
}

.hero-cta {
    justify-content: flex-start;
    gap: 14px;
}

.hero-link {
    display: inline-block;
    margin-top: var(--space-20);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
}

.btn-hero-light {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.btn-hero-light:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.work-section__header {
    margin-bottom: var(--space-40);
}

.work-section__header .section-subtitle {
    margin-left: 0;
}

.price-teaser {
    padding: 32px 40px;
    margin-bottom: 64px;
}

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

.section-header .section-title {
    margin-bottom: var(--space-12);
}

.section-header .section-title::after {
    margin-top: var(--space-12);
}

.section-subtitle {
    margin: 0 auto;
    max-width: 640px;
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.work-showcase--bento {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.work-showcase--bento .work-showcase__card--featured {
    min-height: 0;
}

.work-showcase__stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    min-width: 0;
    height: 100%;
}

.work-showcase__stack .work-showcase__card {
    min-height: 0;
    height: 100%;
}

.work-showcase__mosaic--compact {
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(140px, 180px);
    gap: 8px;
    min-height: 140px;
    margin-top: var(--space-16);
}

.work-showcase__mosaic--compact .work-showcase__mosaic-hero {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
}

.work-showcase__mosaic--compact .work-showcase__mosaic-cell {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
}

.work-showcase__media {
    flex: 1;
    min-height: 180px;
    max-height: 220px;
}

.work-showcase__thumb--fill {
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: 220px;
    object-fit: cover;
}

.services-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.service-buttons--stack {
    margin-top: auto;
    padding-top: var(--space-8);
}

.advantages-grid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.advantages-grid--2col .advantage-card {
    padding: 40px 32px;
}

.services-grid--bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.services-grid--bento .service-card--featured {
    grid-row: auto;
}

.service-buttons--stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
    width: 100%;
    margin-top: auto;
    padding-top: var(--space-8);
}

.service-buttons--stack .btn {
    width: 100%;
}

.page-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.page-section--narrow {
    padding: clamp(48px, 6vw, 80px) 0;
}

.page-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.portfolio-grid {
    gap: 32px;
}

.about-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 60px;
}

.about-block__title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.about-block__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.about-mission {
    background: linear-gradient(135deg, rgba(var(--brand-orange-rgb), 0.12), rgba(255, 133, 85, 0.08));
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-orange);
    margin-bottom: 60px;
}

.about-mission__title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.about-mission__text {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-style: italic;
    margin: 0;
}

.contacts-main {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--surface-0);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background: var(--surface-1);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    margin-bottom: 24px;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-info-card:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 8px 24px rgba(var(--brand-orange-rgb), 0.2);
}

.contact-info-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.contact-info-card a {
    color: var(--brand-orange);
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-info-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-orange), #ff8555);
    color: white;
    flex-shrink: 0;
    font-size: 18px;
}

.contact-form-wrapper {
    background: var(--surface-1);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.contact-form-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.quick-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 48px 0 0;
}

.quick-contact-card {
    background: var(--surface-1);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.2);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.quick-contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-orange);
    box-shadow: 0 12px 32px rgba(var(--brand-orange-rgb), 0.2);
}

.quick-contact-card .icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-orange), #ff8555);
    color: white;
}

.quick-contact-card .icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.quick-contact-card h3 {
    font-size: 16px;
    margin: 0;
    color: var(--color-text);
}

.quick-contact-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}

.map-wrapper {
    margin-top: 48px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.25);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

.btn-full {
    width: 100%;
}

.quiz-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-12);
    margin-top: var(--space-20);
    padding: var(--space-16) var(--space-20);
    list-style: none;
    background: rgba(var(--brand-orange-rgb), 0.08);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.2);
    border-radius: var(--radius-md);
}

.quiz-trust-bar li {
    position: relative;
    padding-left: var(--space-20);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.quiz-trust-bar li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange);
}

.quiz-opt--full {
    margin-top: var(--space-12);
}

.quiz-opt:not(:has(.quiz-opt__icon))::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange);
    flex-shrink: 0;
    opacity: 0.75;
}

.quiz-opt__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange);
    flex-shrink: 0;
    opacity: 0.75;
}

.quiz-fab {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
    max-width: 260px;
    padding: var(--space-16) var(--space-16) var(--space-14);
    background: var(--surface-1);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.35);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
}

.quiz-fab--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quiz-fab__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.quiz-fab__close:hover {
    background: rgba(var(--brand-orange-rgb), 0.2);
    color: var(--color-text);
}

.quiz-fab__text {
    margin: var(--space-8) 0 0;
    padding-right: var(--space-20);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    line-height: 1.35;
}

.quiz-fab__btn {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--font-size-sm);
}

@media (max-width: 1024px) {
    .work-showcase--bento {
        grid-template-columns: 1fr;
    }

    .services-grid--bento .service-card--featured {
        grid-row: auto;
    }

    .services-grid--home {
        grid-template-columns: 1fr;
    }

    .page-services-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        text-align: center;
        padding-bottom: 88px;
    }

    .hero-title,
    .hero-subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-content,
    .hero-cta {
        text-align: center;
        justify-content: center;
    }

    .hero-link {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-topbar {
        justify-content: center;
    }

    .hero-topbar__schedule {
        align-items: center;
        text-align: center;
    }

    .advantages-grid--2col {
        grid-template-columns: 1fr;
    }

    .quiz-trust-bar {
        grid-template-columns: 1fr;
    }

    .quiz-fab {
        top: auto;
        bottom: 24px;
        right: 16px;
        left: auto;
        max-width: calc(100vw - 32px);
    }

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

    .logo-text {
        font-size: 0.95rem;
    }

    .work-showcase--bento {
        gap: 24px;
    }

    .work-showcase__stack {
        gap: 24px;
    }

    .work-showcase__mosaic--compact {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .work-showcase__mosaic--compact .work-showcase__mosaic-hero {
        grid-column: 1 / -1;
    }
}

/* ===================== */
/* PREMIUM POLISH V3     */
/* ===================== */

.work-section {
    padding: clamp(40px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
    background: var(--surface-0);
}

.advantages-section {
    padding: clamp(64px, 8vw, 96px) 0;
    background: linear-gradient(180deg, var(--surface-0) 0%, rgba(var(--brand-orange-rgb), 0.04) 100%);
}

.advantages-section .section-header {
    margin-top: 0;
    margin-bottom: var(--space-48);
    padding-top: 0;
    border-top: none;
}

.work-showcase {
    margin-bottom: 0;
}

.advantages-grid--2col {
    gap: 24px;
}

.section-header .section-title {
    margin-bottom: var(--space-16);
}

.quiz-fab {
    display: none !important;
}

.contact-dock {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.contact-dock__panel {
    display: flex;
    flex-direction: column;
    min-width: 240px;
    padding: 8px;
    background: rgba(22, 22, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    backdrop-filter: blur(12px);
}

.contact-dock--open .contact-dock__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.contact-dock__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.contact-dock__link:hover {
    background: rgba(var(--brand-orange-rgb), 0.12);
    color: var(--color-white);
}

.contact-dock__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
}

.contact-dock__icon--phone {
    color: var(--brand-orange);
}

.contact-dock__icon--mail {
    color: #5dade2;
}

.contact-dock__icon--tg {
    color: #29b6f6;
}

.contact-dock__icon--quiz {
    color: var(--brand-orange);
}

.contact-dock__link--btn {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    padding-top: 16px;
    border-radius: 0 0 12px 12px;
}

.contact-dock__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: none;
    border-radius: 18px 18px 6px 18px;
    background: linear-gradient(135deg, var(--brand-orange), #ff8555);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(var(--brand-orange-rgb), 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.03em;
}

.contact-dock__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(var(--brand-orange-rgb), 0.55);
}

.contact-dock--open .contact-dock__toggle {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-full);
}

.main-nav ul {
    gap: var(--space-32);
}

.nav-link {
    font-size: var(--font-size-base);
    letter-spacing: 0.01em;
}

.page-section {
    padding-top: clamp(48px, 6vw, 72px);
}

.services-preview-section {
    padding: clamp(64px, 8vw, 96px) 0;
}

@media (max-width: 1100px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-link,
    .header-contacts,
    .main-nav {
        justify-self: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        min-height: 72px;
        padding: var(--space-6) 0;
    }

    .logo-img,
    .logo img {
        height: 60px;
    }

    .header-cta .btn,
    .header-cta {
        padding: 10px 16px;
        font-size: 13px;
    }

    .contact-dock {
        right: 16px;
        bottom: 16px;
    }

    .contact-dock__toggle-text {
        display: none;
    }

    .contact-dock__toggle {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .contact-dock__panel {
        min-width: 220px;
    }

    .page-header {
        padding: 72px 0 56px;
    }
}

/* ===================== */
/* UX POLISH V3.1        */
/* ===================== */

.header-quiz-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 10px 18px;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.35);
    border-radius: 12px;
    background: rgba(var(--brand-orange-rgb), 0.07);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
    text-align: right;
}

.header-quiz-link:hover {
    border-color: rgba(var(--brand-orange-rgb), 0.6);
    background: rgba(var(--brand-orange-rgb), 0.12);
    transform: translateY(-1px);
}

.header-quiz-link__title {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--brand-orange);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.header-quiz-link__sub {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.2;
}

.scroll-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 22, 24, 0.96);
    color: var(--color-text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(12px);
}

.scroll-top:not([hidden]) {
    display: flex;
}

.scroll-top:hover {
    border-color: rgba(var(--brand-orange-rgb), 0.5);
    color: var(--brand-orange);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.quiz-progress__top {
    display: grid;
    grid-template-columns: 88px 1fr 88px;
    align-items: center;
    margin-bottom: var(--space-8);
}

.quiz-progress__top .quiz-progress__label {
    grid-column: 2;
    margin: 0;
    text-align: center;
}

.quiz-back-inline {
    grid-column: 1;
    justify-self: start;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    transition: color 0.2s ease;
}

.quiz-back-inline:hover {
    color: var(--brand-orange);
}

.quiz-back-inline[hidden] {
    visibility: hidden;
}

.contact-dock__heading {
    margin: 4px 12px 8px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.contact-dock__toggle-icon--open {
    display: none;
}

.contact-dock--open .contact-dock__toggle-icon--closed {
    display: none;
}

.contact-dock--open .contact-dock__toggle-icon--open {
    display: block;
}

.contact-dock__icon--wa {
    color: #25d366;
}

.contact-dock__icon--map {
    color: var(--brand-orange);
}

.modal-content--service {
    max-width: 860px;
    width: 94%;
    padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 48px);
}

.service-detail__title {
    padding-right: 48px;
    margin-bottom: var(--space-16);
}

.service-detail__desc {
    margin-bottom: var(--space-28);
    line-height: 1.65;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.service-detail .service-features {
    margin-bottom: var(--space-8);
}

.service-detail__gallery-title {
    margin: var(--space-32) 0 var(--space-20);
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.service-detail .service-images {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-detail .service-images img {
    height: clamp(200px, 28vw, 280px);
    border-radius: 12px;
}

.service-detail__actions {
    margin-top: var(--space-36);
    padding-top: var(--space-8);
}

@media (max-width: 768px) {
    .header-quiz-link {
        padding: 8px 12px;
    }

    .header-quiz-link__title {
        font-size: 12px;
    }

    .header-quiz-link__sub {
        display: none;
    }

    .scroll-top {
        left: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

    .logo-img,
    .logo img {
        height: 60px;
    }

    .modal-content--service {
        padding: 32px 20px;
    }

    .service-detail .service-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-detail .service-images img {
        height: 140px;
    }
}

/* ===================== */
/* SITE FAB (contacts)   */
/* ===================== */

.site-fixed-widgets {
    position: fixed;
    inset: 0;
    z-index: 9995;
    pointer-events: none;
    isolation: isolate;
}

.site-fixed-widgets #scrollTopBtn {
    pointer-events: auto;
}

/* Блок плавающих кнопок с закрытым меню занимает пол-экрана справа — касания ловят только сами кнопки */
.site-fixed-widgets #contactDock { pointer-events: none; }
.site-fixed-widgets #contactDock .site-fab__circle,
.site-fixed-widgets #contactDock .site-fab__pill,
.site-fixed-widgets #contactDock.site-fab--open .site-fab__menu { pointer-events: auto; }

#contactDock {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 9996 !important;
}

#scrollTopBtn {
    position: fixed !important;
    left: 24px !important;
    bottom: 24px !important;
    z-index: 9996 !important;
}

#scrollTopBtn[hidden] {
    display: none !important;
}

#scrollTopBtn:not([hidden]) {
    display: inline-flex !important;
}

.site-fab--right {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9996;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.site-fab__menu {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    padding: 8px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    backdrop-filter: blur(16px);
}

.site-fab--open .site-fab__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.site-fab__menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    transition: background 0.18s ease;
}

.site-fab__menu-item:hover {
    background: rgba(var(--brand-orange-rgb), 0.08);
}

.site-fab__menu-item--muted {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.site-fab__menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--surface-2);
    color: var(--color-text);
}

.site-fab__menu-icon--wa {
    padding: 0;
    background: transparent;
}

.site-fab__menu-icon--wa img {
    display: block;
    border-radius: 6px;
}

.site-fab__menu-icon--tg {
    color: #29b6f6;
}

.site-fab__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.site-fab__circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(var(--brand-orange-rgb), 0.45);
    background: #ffffff;
    color: var(--brand-orange);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(12px);
}

.site-fab__circle:hover {
    transform: translateY(-2px);
    border-color: var(--brand-orange);
    box-shadow: 0 8px 24px rgba(var(--brand-orange-rgb), 0.2);
}

.site-fab__icon--close {
    display: none;
}

.site-fab--open .site-fab__icon--menu {
    display: none;
}

.site-fab--open .site-fab__icon--close {
    display: block;
}

.site-fab__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand-orange), #ff8555);
    color: var(--color-white);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(var(--brand-orange-rgb), 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.site-fab__pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(var(--brand-orange-rgb), 0.55);
}

.site-fab__circle--top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9996;
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), 0 10px 32px rgba(0, 0, 0, 0.5);
}

.site-fab__circle--top:not([hidden]) {
    display: inline-flex;
}

.site-fab__circle--top:hover {
    color: var(--brand-orange);
    border-color: rgba(var(--brand-orange-rgb), 0.5);
}

/* Hide legacy widgets */
.contact-dock,
.scroll-top {
    display: none !important;
}

/* ===================== */
/* ROOF CALCULATOR       */
/* ===================== */

.calculator-section {
    padding-bottom: clamp(72px, 10vw, 120px);
}

.calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

.roof-calculator {
    background: var(--surface-1);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.18);
    border-radius: 18px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.roof-calculator__top-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.roof-calculator__cta-top,
.roof-calculator__cta-bottom {
    min-width: min(100%, 320px);
}

.roof-calculator__title {
    text-align: center;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    margin: 0 0 24px;
    color: var(--color-text);
}

.roof-calculator__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.roof-calculator__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.18s ease;
}

.roof-calculator__row:last-child {
    border-bottom: none;
}

.roof-calculator__row:hover {
    background: rgba(var(--brand-orange-rgb), 0.06);
}

.roof-calculator__check {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-orange);
    cursor: pointer;
}

.roof-calculator__row-name {
    font-size: 15px;
    line-height: 1.35;
    color: var(--color-text);
}

.roof-calculator__row-price {
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--brand-orange);
    white-space: nowrap;
}

.roof-calculator__area {
    margin-bottom: 28px;
}

.roof-calculator__area-label {
    display: block;
    margin-bottom: 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.roof-calculator__stepper {
    display: flex;
    align-items: stretch;
    max-width: 280px;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.35);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.roof-calculator__stepper-btn {
    width: 48px;
    border: none;
    background: rgba(var(--brand-orange-rgb), 0.1);
    color: var(--brand-orange);
    font-size: 22px;
    cursor: pointer;
    transition: background 0.18s ease;
    font-family: inherit;
}

.roof-calculator__stepper-btn:hover {
    background: rgba(var(--brand-orange-rgb), 0.2);
}

.roof-calculator__area-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--color-text);
    text-align: center;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    font-family: inherit;
    outline: none;
}

.roof-calculator__totals {
    margin-bottom: 16px;
    padding-top: 8px;
}

.roof-calculator__totals-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
}

.roof-calculator__total-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 16px;
}

.roof-calculator__dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    min-width: 20px;
    margin-bottom: 4px;
}

.roof-calculator__total-row strong {
    font-size: 18px;
    color: var(--brand-orange);
    white-space: nowrap;
}

.roof-calculator__note {
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.45;
}

.roof-calculator__cta-bottom {
    width: 100%;
}

.calculator-aside__card {
    position: sticky;
    top: 100px;
    background: linear-gradient(160deg, rgba(var(--brand-orange-rgb), 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(var(--brand-orange-rgb), 0.22);
    border-radius: 16px;
    padding: 28px 24px;
}

.calculator-aside__card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.calculator-aside__card p {
    margin: 0 0 16px;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.calculator-aside__list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.calculator-aside__list li {
    position: relative;
    padding: 8px 0 8px 22px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.calculator-aside__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-orange);
    font-weight: bold;
}

.calculator-aside__card .btn {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .calculator-aside__card {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-fab--right {
        right: 14px;
        bottom: 14px;
    }

    .site-fab__circle--top {
        left: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }

    .site-fab__circle {
        width: 48px;
        height: 48px;
    }

    .site-fab__menu {
        min-width: 200px;
    }

    .roof-calculator__row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .roof-calculator__row-price {
        grid-column: 2;
        justify-self: start;
        font-size: 14px;
    }
}

/* ===================== */
/* SITE CORRECTIONS 2026 */
/* ===================== */

.page-section--compact-top {
    padding-top: 32px;
}

.section-header--left {
    text-align: left;
    margin-bottom: var(--space-32);
}

.section-header--left .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

.social-icon--max {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border-color: transparent;
}

.social-icon--wa {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border-color: transparent;
}

.social-icon--max img,
.social-icon--wa img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
}

.social-icon--max:hover,
.main-footer .social-icon--max:hover,
.social-icon--wa:hover,
.main-footer .social-icon--wa:hover {
    background: transparent;
    border-color: transparent;
    transform: translateY(-3px) scale(1.06);
}

.social-icon--max:hover,
.main-footer .social-icon--max:hover {
    box-shadow: 0 8px 24px rgba(85, 51, 238, 0.35);
}

.social-icon--wa:hover,
.main-footer .social-icon--wa:hover {
    box-shadow: 0 8px 24px rgba(35, 179, 58, 0.35);
}

.site-fab__menu-icon--max {
    padding: 0;
    background: transparent;
}

.site-fab__menu-icon--max img {
    display: block;
    border-radius: 6px;
}

.icon-wrapper--max {
    background: transparent;
    padding: 0;
}

.icon-wrapper--wa {
    background: transparent;
    padding: 0;
}

.icon-wrapper--wa img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
}

.icon-wrapper--max img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
}

.messenger-bar {
    padding: clamp(40px, 5vw, 56px) 0;
    background: var(--chrome-bg);
    border-top: 1px solid rgba(var(--brand-orange-rgb), 0.2);
    position: relative;
}

.messenger-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-orange-rgb), 0.45), transparent);
}

.messenger-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: clamp(24px, 3vw, 32px);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.messenger-bar__title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin: 0 0 8px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.messenger-bar__subtitle {
    margin: 0;
    color: var(--chrome-muted);
    line-height: 1.5;
}

.messenger-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.messenger-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.messenger-bar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.messenger-bar__btn--max {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    gap: 10px;
}

.messenger-bar__btn--max:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 28px rgba(85, 51, 238, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.messenger-bar__btn--tg {
    background: rgba(42, 171, 238, 0.12);
    border-color: rgba(42, 171, 238, 0.35);
    color: #7dd3fc;
}

.messenger-bar__btn--tg:hover {
    background: rgba(42, 171, 238, 0.2);
    border-color: rgba(42, 171, 238, 0.5);
}

.messenger-bar__btn--phone {
    background: rgba(var(--brand-orange-rgb), 0.12);
    border-color: rgba(var(--brand-orange-rgb), 0.35);
    color: #ffb899;
}

.messenger-bar__btn--phone:hover {
    background: rgba(var(--brand-orange-rgb), 0.2);
    border-color: var(--brand-orange);
    color: #ffffff;
}

.messenger-bar__btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    font-weight: var(--font-weight-bold);
    font-size: 13px;
}

@media (max-width: 768px) {
    .messenger-bar__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .messenger-bar__actions {
        flex-direction: column;
    }

    .messenger-bar__btn {
        justify-content: center;
    }
}

/* ===================== */
/* GLOBAL POLISH V4      */
/* ===================== */

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(var(--brand-orange-rgb), 0.25);
    color: var(--color-text);
}

.section-title {
    letter-spacing: -0.025em;
    color: var(--color-heading);
}

.page-title {
    color: var(--color-heading);
}

h1, h2, h3,
.contact-form-wrapper h2,
.contact-info-card h3,
.service-content h3,
.work-showcase__title {
    color: var(--color-heading);
}

.hero .hero-title,
.main-footer h3,
.main-footer h4,
.messenger-bar__title {
    color: inherit;
}

.hero .hero-title {
    color: #ffffff;
}

.main-footer h3,
.main-footer h4 {
    color: #ffffff;
}

.messenger-bar__title {
    color: #ffffff;
}

.section-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
}

.page-header {
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-0) 100%);
    box-shadow: inset 0 -1px 0 rgba(var(--brand-orange-rgb), 0.1);
}

.contact-info-card__icon--max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    vertical-align: middle;
    margin-right: 4px;
    overflow: hidden;
}

.icon-wrapper--max img {
    display: block;
}

.contact-info-card__icon--max img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
}

.social-icon--max img {
    display: block;
}

.messenger-bar__btn-icon-img {
    display: block;
    flex-shrink: 0;
}

.service-card,
.advantage-card,
.work-showcase__card,
.contact-info-card,
.quick-contact-card {
    border-radius: 18px;
}

.service-card:hover,
.advantage-card:hover,
.work-showcase__card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.contact-info-card,
.quick-contact-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-info-card:hover,
.quick-contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--brand-orange-rgb), 0.12);
}

.footer-section--brand .footer-tagline {
    max-width: 280px;
    line-height: 1.65;
}

.main-footer .footer-links li {
    margin-bottom: 12px;
}

.header-quiz-link {
    border-color: rgba(var(--brand-orange-rgb), 0.45);
    background: rgba(var(--brand-orange-rgb), 0.1);
}

.header-quiz-link:hover {
    background: rgba(var(--brand-orange-rgb), 0.16);
    border-color: rgba(var(--brand-orange-rgb), 0.65);
}

.header-quiz-link__title {
    color: var(--brand-orange);
}

.form-control {
    border-radius: 12px;
    border-color: rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: rgba(var(--brand-orange-rgb), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--brand-orange-rgb), 0.12);
}

@media (max-width: 768px) {
    .quiz-cta-section__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quiz-cta-section__title,
    .quiz-cta-section__subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .quiz-cta-section__action {
        width: 100%;
    }

    .quiz-cta-section__btn {
        width: 100%;
    }
}

/* Site guard (remote kill-switch overlay) */
#siteGuardOverlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: linear-gradient(180deg, #222222 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.site-guard__card {
    max-width: 420px;
    width: 100%;
    padding: 36px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.site-guard__badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffb899;
    background: rgba(var(--brand-orange-rgb), 0.15);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.25);
}

.site-guard__title {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    color: #ffffff;
    letter-spacing: -0.02em;
}

.site-guard__message {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

/* Reviews */
.reviews-section {
    padding-top: 0;
}

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.reviews-summary {
    background: var(--surface-1);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.16);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    align-self: start;
}

.reviews-summary__score {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-heading);
}

.reviews-summary__stars {
    margin: 12px 0;
}

.reviews-summary__count {
    margin: 0;
    color: var(--color-text-secondary);
}

.reviews-form-card {
    background: var(--surface-1);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.16);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.reviews-form-card h2,
.reviews-list-header h2 {
    margin: 0 0 12px;
    color: var(--color-heading);
}

.reviews-form-card__hint {
    margin: 0 0 20px;
    color: var(--color-text-secondary);
}

.star-rating {
    display: flex;
    gap: 8px;
}

.star-rating__btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--brand-orange-rgb), 0.25);
    border-radius: 12px;
    background: var(--surface-2);
    color: #c8c2bc;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.star-rating__btn:hover,
.star-rating__btn.is-active {
    color: #f5a623;
    border-color: rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.12);
    transform: translateY(-1px);
}

.reviews-form-success {
    margin-top: 16px;
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.reviews-list-header {
    margin-bottom: 20px;
}

.review-card {
    background: var(--surface-1);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.14);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.review-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card__name {
    color: var(--color-heading);
}

.review-card__text {
    margin: 0 0 12px;
    color: var(--color-text);
    line-height: 1.6;
}

.review-card__date {
    display: block;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.review-stars {
    display: inline-flex;
    gap: 2px;
}

.review-stars__item {
    color: #d8d2cb;
    font-size: 16px;
}

.review-stars__item.is-active {
    color: #f5a623;
}

.reviews-empty {
    margin: 0;
    color: var(--color-text-secondary);
}

.reviews-preview-section {
    padding: clamp(48px, 6vw, 72px) 0;
    background: linear-gradient(180deg, var(--surface-0) 0%, #ffffff 100%);
}

.reviews-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.reviews-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reviews-admin-page {
    background: var(--surface-0);
    min-height: 100vh;
    padding: 40px 0;
}

.reviews-admin h1 {
    margin-bottom: 8px;
    color: var(--color-heading);
}

.reviews-admin__intro {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.reviews-admin-login {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin-bottom: 24px;
}

.reviews-admin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.reviews-admin-list {
    display: grid;
    gap: 16px;
}

.reviews-admin-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 18px;
}

.reviews-admin-item--pending {
    border-color: rgba(245, 166, 35, 0.35);
}

.reviews-admin-item--approved {
    border-color: rgba(35, 179, 58, 0.35);
}

.reviews-admin-item__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.reviews-admin-item__status {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
}

.reviews-admin-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 14px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.reviews-admin-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 900px) {
    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .reviews-admin-login {
        flex-direction: column;
    }
}

/* Главный экран — покадровый рендер (roof-sequence.js), фото как запасной вариант */
.roof-pie-track {
    position: relative;
    height: 820vh;
    padding: 0;
    background: #121212;
}

.roof-pie-stage {
    position: sticky;
    top: var(--site-header-h, 56px);
    height: calc(100vh - var(--site-header-h, 56px));
    height: calc(100svh - var(--site-header-h, 56px));
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse 55% 60% at 62% 58%, rgba(var(--brand-orange-rgb), 0.16), transparent 70%),
        radial-gradient(ellipse 40% 35% at 20% 10%, rgba(255, 255, 255, 0.05), transparent 70%),
        linear-gradient(180deg, #1b1b1b 0%, #111 100%);
}

.roof-pie__canvas,
.roof-pie__lines,
.roof-pie__labels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.roof-pie__canvas {
    display: block;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.roof-pie-stage.has-seq.is-ready .roof-pie__canvas {
    opacity: 1;
}

/* Фото, если кадры не загрузились */
.roof-pie-stage.is-fallback {
    background: #121212 url('../img/roof-pie/cutaway.jpg') 62% 50% / cover no-repeat;
}

.roof-pie-stage.is-fallback .roof-pie__lines,
.roof-pie-stage.is-fallback .roof-pie__labels {
    display: none;
}

.roof-pie__lines {
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.roof-pie__line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1;
    opacity: 0;
    transition: opacity 0.35s ease, stroke 0.35s ease;
}

.roof-pie__line.is-visible { opacity: 1; }
.roof-pie__line.is-active { stroke: var(--brand-orange); }

.roof-pie__line-dot {
    fill: #fff;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.roof-pie__line-dot.is-visible { opacity: 1; }

.roof-pie__labels {
    pointer-events: none;
    z-index: 3;
}

.roof-pie__chip {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0;
    transition: opacity 0.35s ease, color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    will-change: transform;
}

.roof-pie__chip.is-visible { opacity: 1; }

.roof-pie__chip.is-active {
    color: #fff;
    background: rgba(var(--brand-orange-rgb), 0.16);
    border-color: rgba(var(--brand-orange-rgb), 0.55);
}

.roof-pie__chip-num {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.roof-pie__chip.is-active .roof-pie__chip-num {
    background: var(--brand-orange);
    color: #fff;
}

.roof-pie__copy {
    position: absolute;
    left: clamp(16px, 4vw, 56px);
    top: clamp(28px, 7vh, 72px);
    z-index: 4;
    max-width: 420px;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.roof-pie__skip,
.roof-pie__dots {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.roof-pie-stage.is-pie .roof-pie__skip,
.roof-pie-stage.is-pie .roof-pie__dots {
    opacity: 1;
    pointer-events: auto;
}

/* Первый экран поверх 3D-дома: бывший hero */
.rp-hero {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    will-change: opacity, transform;
}

.rp-hero.is-hidden * {
    pointer-events: none !important;
}

.rp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 13, 12, 0.82) 0%, rgba(14, 13, 12, 0.55) 34%, rgba(14, 13, 12, 0) 62%);
}

.rp-hero__content {
    position: absolute;
    left: clamp(16px, 5vw, 80px);
    top: 50%;
    width: min(640px, calc(100% - 32px));
    transform: translateY(-50%);
    pointer-events: auto;
}

.rp-hero__badge {
    display: inline-flex;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.rp-hero__title {
    margin: 22px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(2.3rem, 4.6vw, 4.1rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: #fff;
}

.rp-hero__subtitle {
    margin: 22px 0 0;
    max-width: 520px;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.rp-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.rp-hero__features li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.rp-hero__features li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(var(--brand-orange-rgb), 0.18);
}

.rp-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.rp-hero__link {
    display: inline-block;
    margin-top: 22px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.rp-hero__link:hover {
    color: #fff;
    border-color: var(--brand-orange);
}

.rp-hero__contacts {
    position: absolute;
    right: clamp(16px, 4vw, 56px);
    top: clamp(20px, 4vh, 40px);
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}

.rp-hero__schedule {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.rp-hero__hours {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
}

.rp-hero__phone {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.rp-hero__max {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rp-hero__max:hover {
    border-color: var(--brand-orange);
    background: rgba(var(--brand-orange-rgb), 0.14);
}

.roof-pie__eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.roof-pie__title {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #fff;
}

.roof-pie__title span {
    color: rgba(255, 255, 255, 0.45);
}

.roof-pie__lead {
    margin: 18px 0 0;
    max-width: 340px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.roof-pie__card {
    position: absolute;
    left: clamp(16px, 4vw, 56px);
    bottom: clamp(24px, 7vh, 72px);
    z-index: 4;
    width: min(360px, calc(100% - 32px));
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(24, 24, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.roof-pie__card.is-visible {
    opacity: 1;
    transform: none;
}

/* смена слоя: текст мягко уходит и возвращается, карточка остаётся на месте */
.roof-pie__card > * {
    transition: opacity 0.22s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}

.roof-pie__card.is-swapping > * {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
}

.roof-pie__card-num {
    display: block;
    font-size: 11px;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--brand-orange);
    font-variant-numeric: tabular-nums;
}

.roof-pie__card-title {
    display: block;
    margin-top: 10px;
    font-family: var(--font-family-display);
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 400;
    line-height: 1.15;
}

.roof-pie__card-desc {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

.roof-pie__card-meta {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
}

.roof-pie__dots {
    position: absolute;
    right: clamp(14px, 2.5vw, 32px);
    top: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.roof-pie__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: height 0.3s ease, background 0.3s ease;
}

.roof-pie__dots button.is-done { background: rgba(255, 255, 255, 0.55); }

.roof-pie__dots button.is-active {
    height: 24px;
    background: var(--brand-orange);
}

.roof-pie__skip {
    position: absolute;
    right: clamp(16px, 4vw, 56px);
    top: clamp(24px, 5vh, 48px);
    z-index: 4;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.roof-pie__skip:hover { color: #fff; }

.roof-pie__cue {
    position: absolute;
    left: 50%;
    bottom: clamp(20px, 4vh, 36px);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    transform: translateX(-50%);
    transition: opacity 0.4s ease;
}

.roof-pie__cue span {
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, transparent, var(--brand-orange));
    animation: roofCue 1.8s ease-in-out infinite;
}

@keyframes roofCue {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.roof-pie-stage.is-exploring .roof-pie__cue { opacity: 0; }

@media (max-width: 900px) {
    .roof-pie-track { height: 720vh; }

    .rp-hero::before {
        background: linear-gradient(180deg, rgba(14, 13, 12, 0.85) 0%, rgba(14, 13, 12, 0.6) 45%, rgba(14, 13, 12, 0) 70%);
    }

    .rp-hero__content {
        top: 20px;
        transform: none;
    }

    .rp-hero__badge { font-size: 10.5px; padding: 7px 12px; }

    .rp-hero__title { margin-top: 14px; font-size: 1.95rem; }

    .rp-hero__subtitle { margin-top: 12px; font-size: 14px; }

    .rp-hero__features { margin-top: 12px; font-size: 12.5px; gap: 6px 14px; }

    .rp-hero__cta { margin-top: 18px; gap: 8px; }

    .rp-hero__cta .btn { flex: 1 1 auto; padding-left: 16px; padding-right: 16px; }

    .rp-hero__link { display: none; }

    .rp-hero__contacts { display: none; }

    .roof-pie__cue { display: none; }

    .roof-pie__copy {
        top: 20px;
        right: 16px;
        max-width: none;
    }

    .roof-pie__title { font-size: 2rem; }

    .roof-pie__lead { font-size: 14px; margin-top: 10px; }

    .roof-pie-stage.is-exploring .roof-pie__lead { opacity: 0; }

    .roof-pie__card {
        left: 16px;
        right: 16px;
        bottom: 124px; /* над плавающими кнопками сайта */
        width: auto;
        padding: 16px 18px;
        border-radius: 20px;
    }

    .roof-pie__card-desc { font-size: 13px; }

    .roof-pie__card-meta { margin-top: 10px; padding-top: 10px; }

    .roof-pie__chip { font-size: 11.5px; padding: 5px 10px 5px 5px; gap: 7px; }

    .roof-pie__chip-num { min-width: 20px; height: 20px; font-size: 10px; }

    /* на телефоне название слоя — в карточке, у выноски только номер */
    .roof-pie__chip-text { display: none; }

    .roof-pie__chip { padding-right: 5px; }

    .roof-pie__dots { right: 8px; gap: 8px; }

    .roof-pie__dots button { width: 6px; height: 6px; }

    .roof-pie__dots button.is-active { height: 18px; }

    .roof-pie__skip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .roof-pie__cue span { animation: none; }
    .roof-pie__card, .roof-pie__card > * { transition: none; }
}

/* Lenis — плавный скролл */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* =====================================================================
   Редизайн: дизайн-система и новые секции (ui.js)
   ===================================================================== */

/* ---------- Кнопки-таблетки, как CTA в шапке ---------- */
.btn,
.btn-lg,
.btn-sm,
.btn--sm,
.btn--lg,
.messenger-bar__btn,
.roof-calculator__stepper-btn,
.gallery-nav {
    border-radius: 999px;
}

.btn {
    padding: 15px 30px;
    font-weight: 600;
    letter-spacing: 0.005em;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-lg { padding: 17px 34px; }
.btn-sm { padding: 10px 20px; }

.btn-primary {
    background: var(--brand-orange);
    box-shadow: 0 10px 30px -12px rgba(var(--brand-orange-rgb), 0.75);
}

.btn-primary:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -14px rgba(var(--brand-orange-rgb), 0.85);
}

.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Заголовки секций ---------- */
.section-head {
    max-width: 720px;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.section-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.section-head .section-title {
    margin: 0;
    text-align: left;
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.section-head .section-title::after { display: none; }

.section-head .section-subtitle {
    margin: 14px 0 0;
    text-align: left;
    max-width: 560px;
}

/* ---------- Появление блоков ---------- */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

[data-reveal-stagger] {
    opacity: 1;
    transform: none;
}

[data-reveal-stagger] > * {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

[data-reveal-stagger].is-in > * {
    opacity: 1;
    transform: none;
}

/* ---------- Слайдер работ ---------- */
.ws {
    position: relative;
    height: min(92vh, 860px);
    min-height: 560px;
    overflow: hidden;
    background: #0f0f0f;
    color: #fff;
    outline: none;
}

.ws__slides,
.ws__slide,
.ws__shade {
    position: absolute;
    inset: 0;
}

.ws__slide {
    opacity: 0;
    transition: opacity 1.1s ease;
    cursor: zoom-in;
}

.ws__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 7.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ws__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.ws__slide.is-active img { transform: scale(1.02); }

.ws__slide.is-leaving img {
    transform: scale(1.0);
    transition-duration: 1.2s;
}

.ws__shade {
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.55) 38%, rgba(10, 10, 10, 0.05) 70%),
        linear-gradient(0deg, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0) 38%);
}

.ws__ui {
    position: relative;
    z-index: 3;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(40px, 7vh, 80px) clamp(16px, 4vw, 56px) clamp(28px, 5vh, 48px);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.ws__ui > * { pointer-events: auto; }

.ws__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.ws__text {
    margin-top: auto;
    max-width: 620px;
}

.ws__text > * {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ws__text.is-in > * { opacity: 1; transform: none; }
.ws__text.is-in > :nth-child(2) { transition-delay: 0.08s; }
.ws__text.is-in > :nth-child(3) { transition-delay: 0.16s; }
.ws__text.is-in > :nth-child(4) { transition-delay: 0.24s; }

.ws__sub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.ws__line {
    width: 34px;
    height: 1px;
    background: currentColor;
}

.ws__title {
    margin: 16px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
}

.ws__desc {
    margin: 18px 0 0;
    max-width: 500px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.ws__actions { margin-top: 28px; }

.ws__count {
    margin-left: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 500;
}

.ws__bottom {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
    margin-top: clamp(28px, 5vh, 48px);
}

.ws__nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ws__btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ws__btn:hover {
    background: #fff;
    border-color: #fff;
    color: #111;
}

.ws__prev:hover { transform: translateX(-3px); }
.ws__next:hover { transform: translateX(3px); }

.ws__counter {
    min-width: 72px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

.ws__counter b {
    font-weight: 500;
    color: #fff;
}

.ws__progress {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.ws__progress span {
    display: block;
    height: 100%;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
}

.ws__dots {
    display: flex;
    gap: 8px;
}

.ws__dot {
    width: 54px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ws__dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws__dot:hover { opacity: 0.8; }

.ws__dot.is-active {
    opacity: 1;
    border-color: var(--brand-orange);
    transform: translateY(-3px);
}

/* ---------- Галерея преимуществ ---------- */
.hg-section {
    padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
    background: var(--surface-0);
}

.hg {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}

.hg__track {
    display: flex;
    gap: 12px;
    height: clamp(460px, 68vh, 640px);
}

.hg__card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #161616;
    color: #fff;
    outline: none;
    transition: flex-grow 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.hg__card.is-active { flex-grow: 4.2; }

.hg__poster,
.hg__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.8s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.hg__poster {
    filter: grayscale(1) brightness(0.55);
    transform: scale(1.08);
}

.hg__video { opacity: 0; }

.hg__card.is-active .hg__poster {
    filter: none;
    transform: scale(1);
    animation: hgKen 14s ease-in-out infinite alternate;
}

.hg__card.is-active.has-video .hg__video { opacity: 1; }

@keyframes hgKen {
    from { transform: scale(1); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hg__label {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    transition: opacity 0.4s ease;
}

.hg__label span {
    font-size: 12px;
    color: var(--brand-orange);
}

.hg__card.is-active .hg__label { opacity: 0; }

.hg__glass {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 420px;
    padding: 22px 24px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.hg__card.is-active .hg__glass {
    opacity: 1;
    transform: none;
    transition-delay: 0.25s;
}

.hg__num {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--brand-orange);
    font-variant-numeric: tabular-nums;
}

.hg__title {
    margin: 10px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
}

.hg__text {
    margin: 10px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

/* курсор-точка */
.hg__cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, width 0.3s ease, height 0.3s ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
    .hg,
    .hg * { cursor: none; }
    .hg.is-hover .hg__cursor { opacity: 1; }
}

/* ---------- Факты ---------- */
.facts {
    padding: clamp(40px, 5vw, 64px) 0;
    background: var(--surface-0);
}

.facts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
    padding: 0;
}

.facts__item {
    padding: clamp(24px, 3vw, 36px);
    background: #fff;
}

.facts__num {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #151515;
    font-variant-numeric: tabular-nums;
}

.facts__num span { color: var(--brand-orange); }

.facts__label {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6d6a66;
}

/* ---------- Услуги: видео при наведении ---------- */
.service-card {
    border-radius: 24px;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 24px 48px -32px rgba(40, 30, 20, 0.35);
}

.service-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #1a1a1a;
}

.service-media .service-image,
.service-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.service-video { opacity: 0; }
.service-card:hover .service-media .service-image { transform: scale(1.07); }
.service-media.has-video:hover .service-video { opacity: 1; }

/* ---------- Квиз: фон двигается скроллом ---------- */
.quiz-cta-section {
    position: relative;
    overflow: hidden;
    padding: clamp(96px, 14vw, 180px) 0;
    background: #101010;
}

.quiz-cta-section__bg {
    position: absolute;
    inset: 0;
}

.quiz-cta-section__bg img,
.quiz-cta-section__bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-cta-section__bg img {
    transform: scale(1.18);
    will-change: transform;
}

.quiz-cta-section__bg video {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.quiz-cta-section.has-video .quiz-cta-section__bg video,
.quiz-cta-section__bg.has-video video { opacity: 1; }

.quiz-cta-section__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.7), rgba(12, 12, 12, 0.45) 50%, rgba(12, 12, 12, 0.8));
}

.quiz-cta-section .container { position: relative; }

.quiz-cta-section__inner {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    color: #fff;
}

.quiz-cta-section__title { color: #fff; }
.quiz-cta-section__subtitle,
.quiz-cta-section__hint { color: rgba(255, 255, 255, 0.7); }

.quiz-cta-section .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Модалка проекта ---------- */
.pm {
    position: fixed;
    inset: 0;
    z-index: 10050; /* выше плавающих кнопок и чата */
    display: grid;
    place-items: center;
    padding: clamp(0px, 3vw, 32px);
}

.pm[hidden] { display: none; }

.pm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pm__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    max-height: 100%;
    overflow-y: auto;
    border-radius: 28px;
    background: #141414;
    color: #fff;
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.98);
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pm.is-open .pm__backdrop,
.pm.is-open .pm__panel {
    opacity: 1;
    transform: none;
}

.pm__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px 18px;
}

.pm__head > div { flex: 1; }

.pm__eyebrow {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.pm__title {
    margin: 8px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 500;
    color: #fff;
}

.pm__counter {
    padding-top: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}

.pm__close,
.pm__nav {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pm__close:hover,
.pm__nav:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.pm__stage {
    position: relative;
    margin: 0 28px;
    aspect-ratio: 16 / 10;
    max-height: 64vh;
    border-radius: 20px;
    overflow: hidden;
    background: #0b0b0b;
}

.pm__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.pm__img.is-front {
    opacity: 1;
    transform: none;
}

.pm__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.pm__nav--prev { left: 16px; }
.pm__nav--next { right: 16px; }

.pm__thumbs {
    display: flex;
    gap: 10px;
    margin: 14px 28px 0;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pm__thumbs::-webkit-scrollbar { display: none; }

.pm__thumb {
    flex: 0 0 auto;
    width: 92px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.pm__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm__thumb:hover { opacity: 0.85; }

.pm__thumb.is-active {
    opacity: 1;
    border-color: var(--brand-orange);
}

.pm__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    padding: 20px 28px 28px;
}

.pm__desc {
    flex: 1 1 420px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.pm__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pm__tags span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .ws {
        height: 86svh;
        min-height: 520px;
    }

    .ws__shade {
        background: linear-gradient(0deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.15) 100%);
    }

    .ws__bottom { flex-wrap: wrap; }
    .ws__dots { display: none; }
    .ws__btn { width: 46px; height: 46px; }

    .hg { padding: 0; }

    .hg__track {
        height: auto;
        gap: 12px;
        padding: 0 16px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .hg__track::-webkit-scrollbar { display: none; }

    .hg__card,
    .hg__card.is-active {
        flex: 0 0 80vw;
        height: min(120vw, 520px);
        scroll-snap-align: center;
    }

    .hg__poster {
        filter: none;
        transform: none;
    }

    .hg__label { display: none; }

    .hg__glass {
        opacity: 1;
        transform: none;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }

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

    .quiz-cta-section__inner { border-radius: 22px; }

    .pm { padding: 0; }

    .pm__panel {
        height: 100%;
        border-radius: 0;
    }

    .pm__head { padding: 18px 16px 12px; }
    .pm__stage { margin: 0; border-radius: 0; aspect-ratio: 4 / 5; max-height: 62vh; }
    .pm__nav { width: 40px; height: 40px; }
    .pm__thumbs { margin: 12px 16px 0; }
    .pm__foot { padding: 16px; }
    .pm__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ws__slide img,
    .hg__card,
    .hg__poster { transition: none; animation: none; }
}

/* ---------- Шапка внутренних страниц ---------- */
.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(380px, 58vh, 560px);
    overflow: hidden;
    background: #111;
    color: #fff;
}

.page-hero__media,
.page-hero__media img,
.page-hero__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__media img { transform: scale(1.15); will-change: transform; }

.page-hero__media video {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.page-hero.has-video .page-hero__media video { opacity: 1; }

.page-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(12, 12, 12, 0.92) 0%, rgba(12, 12, 12, 0.35) 55%, rgba(12, 12, 12, 0.55) 100%),
        linear-gradient(90deg, rgba(12, 12, 12, 0.6), transparent 60%);
}

.page-hero__inner {
    position: relative;
    width: 100%;
    padding-top: 80px;
    padding-bottom: clamp(36px, 6vw, 64px);
}

.page-hero__crumbs {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.page-hero__crumbs a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.page-hero__crumbs a:hover { color: var(--brand-orange); }

.page-hero__title {
    margin: 18px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
    color: #fff;
}

.page-hero__subtitle {
    margin: 18px 0 0;
    max-width: 620px;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Услуги: главы на весь экран ---------- */
.svc-chapter {
    position: relative;
    height: 170vh;
    background: #0f0f0f;
}

.svc-chapter__sticky {
    position: sticky;
    top: var(--site-header-h, 56px);
    height: calc(100vh - var(--site-header-h, 56px));
    height: calc(100svh - var(--site-header-h, 56px));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.svc-chapter__media,
.svc-chapter__media img,
.svc-chapter__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svc-chapter__media img { transform: scale(1.15); will-change: transform; }

.svc-chapter__media video {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.svc-chapter.has-video .svc-chapter__media video { opacity: 1; }

.svc-chapter__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.35) 50%, rgba(10, 10, 10, 0.1) 100%);
}

.svc-chapter__inner {
    position: relative;
    width: 100%;
}

.svc-chapter__card {
    max-width: 520px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 28px;
    background: rgba(18, 18, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    color: #fff;
}

.svc-chapter__num {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--brand-orange);
    font-variant-numeric: tabular-nums;
}

.svc-chapter__title {
    margin: 14px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
}

.svc-chapter__desc {
    margin: 16px 0 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
}

.svc-chapter__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.svc-chapter__points li {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.svc-chapter__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    border-color: #fff;
    color: #111;
    transform: translateY(-2px);
}

/* ---------- Портфолио: сетка проектов и кейсы ---------- */
.ws--page { height: min(84vh, 780px); }

.projects-section { background: var(--surface-0); }

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pg__card {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #161616;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.pg__card--wide {
    grid-column: span 2;
    aspect-ratio: auto;
}

.pg__media,
.pg__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pg__media img {
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.pg__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 55%);
}

.pg__card:hover .pg__media img { transform: scale(1.06); }

.pg__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
}

.pg__cat {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.pg__title {
    font-family: var(--font-family-display);
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 500;
    line-height: 1.15;
}

.pg__meta {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.pg__meta span {
    display: inline-block;
    transition: transform 0.35s ease;
}

.pg__card:hover .pg__meta span { transform: translateX(4px); }

.cases-section .portfolio-card {
    border-radius: 24px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .project-grid { grid-template-columns: 1fr; }
    .pg__card--wide { grid-column: auto; aspect-ratio: 4 / 5; }
    .svc-chapter { height: 150vh; }
    .svc-chapter__sticky { align-items: flex-end; padding-bottom: 20px; }
    .svc-chapter__media::after { background: linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.3) 60%, rgba(10, 10, 10, 0.2) 100%); }
    .svc-chapter__card { border-radius: 22px; }
    .page-hero { min-height: 340px; }
}

/* Над анимацией без backdrop-filter: размытие пересчитывалось на каждом кадре и тормозило скролл */
.roof-pie-stage .roof-pie__card,
.roof-pie-stage .roof-pie__chip,
.roof-pie-stage .rp-hero__badge,
.roof-pie-stage .rp-hero__max {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.roof-pie-stage .roof-pie__card { background: rgba(22, 21, 20, 0.9); }
.roof-pie-stage .roof-pie__chip { background: rgba(22, 21, 20, 0.88); }
.roof-pie-stage .roof-pie__chip.is-active { background: rgba(58, 32, 22, 0.92); }
.roof-pie-stage .rp-hero__badge { background: rgba(30, 28, 26, 0.7); }

/* Финал анимации: служебные элементы уходят до того, как сцена уедет */
.roof-pie__dots,
.roof-pie__skip,
.roof-pie__labels,
.roof-pie__lines {
    transition: opacity 0.5s ease;
}

.roof-pie-stage.is-outro .roof-pie__labels,
.roof-pie-stage.is-outro .roof-pie__lines,
.roof-pie-stage.is-outro .roof-pie__dots,
.roof-pie-stage.is-outro .roof-pie__skip {
    opacity: 0;
    pointer-events: none;
}

/* «Почему мы» наезжает на конец анимации светлым листом */
.hg-section--sheet {
    position: relative;
    z-index: 2;
    margin-top: -56px;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .hg-section--sheet {
        margin-top: -32px;
        border-radius: 28px 28px 0 0;
    }
}

/* ---------- Модалка фото v2: всегда помещается в экран, поля заполнены размытым фото ---------- */
.pm__panel {
    height: min(92vh, 940px);
    max-height: none;
    overflow: hidden;
}

.pm__stage {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    max-height: none;
    isolation: isolate;
}

.pm__bg {
    position: absolute;
    inset: -12%;
    z-index: -1;
    width: 124%;
    height: 124%;
    object-fit: cover;
    filter: blur(42px) brightness(0.45) saturate(1.2);
    transition: opacity 0.5s ease;
}

.pm__img {
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.pm__thumbs {
    flex: 0 0 auto;
    gap: 10px;
    margin: 0;
    padding: 14px 28px 4px;
    scroll-padding: 0 28px;
}

.pm__thumb {
    width: 96px;
    height: 66px;
    border: 0;
    border-radius: 12px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: opacity 0.3s ease, outline-color 0.3s ease, transform 0.3s ease;
}

.pm__thumb.is-active {
    outline-color: var(--brand-orange);
    transform: translateY(-2px);
}

.pm__foot { flex: 0 0 auto; }

.pm--simple .pm__desc,
.pm--simple .pm__tags { display: none; }

.pm--simple .pm__foot { justify-content: flex-end; }

.pm__close { flex: 0 0 auto; }

@media (max-width: 900px) {
    .pm__panel { height: 100%; }
    .pm__stage { aspect-ratio: auto; max-height: none; }
    .pm__thumbs { padding: 12px 16px 4px; }
    .pm__thumb { width: 76px; height: 54px; }
}

/* ---------- Портфолио: слайдер — первый экран страницы ---------- */
.ws--page {
    height: calc(100vh - var(--site-header-h, 56px));
    height: calc(100svh - var(--site-header-h, 56px));
    max-height: 920px;
}

.ws__head .page-hero__crumbs { margin-bottom: 14px; }

.ws__h1 {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
    color: #fff;
}

.ws__lead {
    margin: 14px 0 0;
    max-width: 440px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.ws--page .ws__title { font-size: clamp(1.8rem, 3.6vw, 3rem); }

/* ---------- Главная: услуги-плитки ---------- */
.svc-section {
    padding: clamp(72px, 9vw, 120px) 0;
    background: var(--surface-0);
}

.svc-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.svc-section__head .section-head { margin-bottom: 0; }

.svc-section__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.svc-section__all:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.svc-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.svc-tile {
    position: relative;
    aspect-ratio: 3 / 4.2;
    border-radius: 26px;
    overflow: hidden;
    background: #151515;
    color: #fff;
    isolation: isolate;
}

.svc-tile__img,
.svc-tile__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.svc-tile__video { opacity: 0; }
.svc-tile.has-video:hover .svc-tile__video { opacity: 1; }
.svc-tile:hover .svc-tile__img { transform: scale(1.06); }

.svc-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.45) 45%, rgba(10, 10, 10, 0.05) 75%);
    transition: background 0.5s ease;
    pointer-events: none;
}

.svc-tile:hover::after {
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.65) 60%, rgba(10, 10, 10, 0.2) 100%);
}

.svc-tile__link {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-tile:hover .svc-tile__link {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    transform: rotate(45deg);
}

.svc-tile__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px;
}

.svc-tile__num {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--brand-orange);
}

.svc-tile__title {
    margin: 10px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    font-weight: 500;
    line-height: 1.18;
    color: #fff;
}

/* описание и кнопки выезжают при наведении (анимация высоты через grid-rows) */
.svc-tile__more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-tile__more > div {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.svc-tile:hover .svc-tile__more,
.svc-tile:focus-within .svc-tile__more { grid-template-rows: 1fr; }

.svc-tile:hover .svc-tile__more > div,
.svc-tile:focus-within .svc-tile__more > div {
    opacity: 1;
    transition-delay: 0.12s;
}

.svc-tile__text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
}

.svc-tile__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 16px;
}

.svc-tile__actions .btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.svc-tile__detail {
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.svc-tile__detail:hover { text-decoration-color: var(--brand-orange); }

@media (max-width: 1100px) {
    .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px), (hover: none) {
    .svc-tile__more { grid-template-rows: 1fr; }
    .svc-tile__more > div { opacity: 1; }
}

@media (max-width: 600px) {
    .svc-section__head { flex-direction: column; align-items: flex-start; }
    .svc-tiles { grid-template-columns: 1fr; }
    .svc-tile { aspect-ratio: 4 / 4.4; }
}

/* ---------- «Услуги»: одна сцена с перетекающими фонами ---------- */
.story {
    position: relative;
    padding: 0;
    background: #0d0d0d;
    color: #fff;
}

.story__media {
    position: sticky;
    top: var(--site-header-h, 56px);
    height: calc(100vh - var(--site-header-h, 56px));
    height: calc(100svh - var(--site-header-h, 56px));
    overflow: hidden;
    z-index: 0;
}

.story__bg {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.story__bg img,
.story__bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 7s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.8s ease;
}

.story__bg video { opacity: 0; }
.story__bg.has-video video { opacity: 1; }
.story__bg.is-active { opacity: 1; }
.story__bg.is-active img,
.story__bg.is-active video { transform: scale(1.0); }

.story__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.45) 45%, rgba(10, 10, 10, 0.1) 100%),
        linear-gradient(0deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0) 40%);
}

.story__dots {
    position: absolute;
    right: clamp(14px, 2.5vw, 32px);
    top: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.story__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: height 0.4s ease, background 0.4s ease;
}

.story__dot.is-active {
    height: 26px;
    background: var(--brand-orange);
}

.story__steps {
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * (100vh - var(--site-header-h, 56px)));
    margin-top: calc(-1 * (100svh - var(--site-header-h, 56px)));
}

.story__step {
    min-height: calc(100vh - var(--site-header-h, 56px));
    min-height: calc(100svh - var(--site-header-h, 56px));
    display: flex;
    align-items: center;
    padding: 12vh 0;
}

.story__step .container { width: 100%; }

.story__step--intro {
    align-items: flex-end;
    padding-bottom: clamp(48px, 9vh, 96px);
}

.story__intro { max-width: 760px; }

.story__intro-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.story__intro-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.story__intro-link span {
    font-size: 11px;
    color: var(--brand-orange);
}

.story__intro-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
}

.story__card {
    max-width: 540px;
    padding: clamp(26px, 3vw, 38px);
    border-radius: 28px;
    background: rgba(16, 16, 16, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.story__num {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--brand-orange);
    font-variant-numeric: tabular-nums;
}

.story__title {
    margin: 14px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
}

.story__desc {
    margin: 16px 0 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
}

.story__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.story__points li {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.story__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

@media (max-width: 900px) {
    .story__shade { background: linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.35) 60%, rgba(10, 10, 10, 0.25) 100%); }
    .story__step { align-items: flex-end; padding: 10vh 0 6vh; }
    .story__card { border-radius: 22px; }
    .story__dots { right: 8px; }
}

/* ---------- Кнопка «тихая»: на светлом фоне ---------- */
.btn-quiet {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

.btn-quiet:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Модалка услуги ---------- */
#serviceDetailModal.active {
    display: grid;
    place-items: center;
    padding: clamp(0px, 3vw, 32px);
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#serviceDetailModal .sd-modal {
    width: min(1120px, 100%);
    max-width: none;
    max-height: min(88vh, 860px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
}

.sd {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    height: min(88vh, 860px);
}

.sd__media {
    position: relative;
    overflow: hidden;
    background: #111;
}

.sd__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: sdKen 16s ease-in-out infinite alternate;
}

@keyframes sdKen {
    from { transform: scale(1.04); }
    to { transform: scale(1.14) translate3d(-2%, -1%, 0); }
}

.sd__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.1) 55%);
}

.sd__media-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: clamp(24px, 3vw, 40px);
}

.sd__eyebrow {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.sd__title {
    margin: 12px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
}

.sd__body {
    position: relative;
    overflow-y: auto;
    padding: clamp(28px, 3.4vw, 48px);
    padding-top: clamp(64px, 6vw, 72px);
}

.sd__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.35s ease;
}

.sd__close:hover {
    background: #1a1a1a;
    color: #fff;
    transform: rotate(90deg);
}

.sd__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #45423e;
}

.sd__h {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 30px 0 14px;
    font-family: var(--font-family-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #151515;
}

.sd__h span {
    font-family: var(--font-family-base);
    font-size: 13px;
    font-weight: 500;
    color: #8a857e;
}

.sd__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f6f4f0;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2825;
}

.sd__features svg {
    flex: 0 0 auto;
    margin-top: 1px;
    padding: 3px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(var(--brand-orange-rgb), 0.14);
    color: var(--brand-orange);
}

.sd__gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sd__thumb {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #eee;
    cursor: zoom-in;
}

.sd__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sd__thumb:hover img { transform: scale(1.08); }

.sd__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    #serviceDetailModal.active { padding: 0; }
    #serviceDetailModal .sd-modal { max-height: 100%; height: 100%; border-radius: 0; }
    .sd { grid-template-columns: 1fr; grid-template-rows: 38vh minmax(0, 1fr); height: 100%; }
    .sd__features { grid-template-columns: 1fr; }
    .sd__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sd__close { position: fixed; top: 14px; right: 14px; z-index: 3; }
}

/* ---------- Главная: отзывы ---------- */
.rv-section {
    padding: clamp(72px, 9vw, 120px) 0;
    background: #fff;
}

.rv-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.rv-section__aside { position: sticky; top: 100px; }

.rv-score {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    padding: 20px 24px;
    border-radius: 22px;
    background: #f6f4f0;
}

.rv-score__num {
    font-family: var(--font-family-display);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #151515;
}

.rv-score__stars {
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--brand-orange);
}

.rv-score__label {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #6d6a66;
}

.rv-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.rv-section__list {
    display: grid;
    gap: 14px;
}

.rv-skeleton {
    height: 320px;
    border-radius: 24px;
    background: linear-gradient(100deg, #f4f2ee 30%, #fbfaf8 50%, #f4f2ee 70%) 0 0 / 200% 100%;
    animation: rvShimmer 1.4s linear infinite;
}

@keyframes rvShimmer { to { background-position: -200% 0; } }

.rv-empty {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 4vw, 52px);
    border-radius: 28px;
    background:
        radial-gradient(ellipse 60% 70% at 100% 0%, rgba(var(--brand-orange-rgb), 0.16), transparent 70%),
        #151515;
    color: #fff;
}

.rv-empty__quote {
    display: block;
    font-family: Georgia, serif;
    font-size: 110px;
    line-height: 0.7;
    color: var(--brand-orange);
}

.rv-empty__title {
    margin: 18px 0 0;
    max-width: 440px;
    font-family: var(--font-family-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
}

.rv-empty__text {
    margin: 14px 0 24px;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* карточки отзывов (главная и страница «Отзывы») */
.review-card {
    padding: 24px 26px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 24px 48px -36px rgba(40, 30, 20, 0.35);
}

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

.review-card__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(var(--brand-orange-rgb), 0.14);
    font-weight: 700;
    color: var(--brand-orange);
}

.review-card__head .review-stars { margin-left: auto; }

@media (max-width: 900px) {
    .rv-section__grid { grid-template-columns: 1fr; }
    .rv-section__aside { position: static; }
}

/* ---------- Квиз + мессенджеры в одной карточке ---------- */
.quiz-cta-section__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 28px;
}

.quiz-cta-section__action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 230px;
}

.quiz-cta-section__badge {
    color: var(--brand-orange);
}

.quiz-cta-section__contacts {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.quiz-cta-section__contacts-text {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.quiz-cta-section__contacts-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qc-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.qc-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.qc-link--tel { color: #fff; }

@media (max-width: 900px) {
    .quiz-cta-section__inner { grid-template-columns: 1fr; }
    .quiz-cta-section__action { min-width: 0; }
    .quiz-cta-section__contacts { flex-direction: column; align-items: flex-start; }
}

/* ---------- Контакты ---------- */
.ct {
    padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px);
    background: var(--surface-0);
}

.ct__quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: calc(-1 * clamp(80px, 10vw, 120px));
    position: relative;
    z-index: 2;
}

.ct-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 22px 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 30px 60px -36px rgba(40, 30, 20, 0.45);
    color: #151515;
    text-decoration: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, background 0.3s ease, color 0.3s ease;
}

.ct-tile:hover {
    transform: translateY(-4px);
    background: #151515;
    color: #fff;
    box-shadow: 0 36px 70px -34px rgba(0, 0, 0, 0.6);
}

.ct-tile__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(var(--brand-orange-rgb), 0.12);
    color: var(--brand-orange);
}

.ct-tile--wa .ct-tile__icon { background: rgba(37, 211, 102, 0.14); }
.ct-tile--max .ct-tile__icon { background: rgba(124, 77, 255, 0.12); }

.ct-tile__label {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #8a857e;
    transition: color 0.3s ease;
}

.ct-tile:hover .ct-tile__label { color: rgba(255, 255, 255, 0.55); }

.ct-tile__value {
    font-family: var(--font-family-display);
    font-size: 1.12rem;
    font-weight: 500;
}

.ct-tile__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #b5afa7;
    transition: color 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-tile:hover .ct-tile__arrow {
    color: var(--brand-orange);
    transform: rotate(45deg);
}

.ct__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    margin-top: clamp(32px, 4vw, 56px);
    align-items: stretch;
}

.ct-info {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3.4vw, 44px);
    border-radius: 28px;
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(var(--brand-orange-rgb), 0.16), transparent 70%),
        #151515;
    color: #fff;
}

.ct-info__title {
    margin: 0 0 22px;
    font-family: var(--font-family-display);
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 500;
    color: #fff;
}

.ct-info__row {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-info__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-orange);
}

.ct-info__label {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.ct-info__value {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: #fff;
}

.ct-info__value a {
    color: #fff;
    text-decoration: none;
}

.ct-info__value a:hover { color: var(--brand-orange); }

.ct-info__note {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
}

.ct-info__route {
    align-self: flex-start;
    margin-top: auto;
    gap: 8px;
}

.ct-form.contact-form-wrapper {
    padding: clamp(28px, 3.4vw, 44px);
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 30px 60px -40px rgba(40, 30, 20, 0.35);
}

.ct-form__title {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 500;
    color: #151515;
}

.ct-form__lead {
    margin: 10px 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #6d6a66;
}

.ct-form .form-control {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f6f3;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ct-form .form-control:focus {
    border-color: var(--brand-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--brand-orange-rgb), 0.12);
    outline: none;
}

.ct-map {
    position: relative;
    margin-top: 18px;
    height: clamp(320px, 42vw, 460px);
    border-radius: 28px;
    overflow: hidden;
    background: #ddd;
}

.ct-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.85) contrast(1.05);
}

.ct-map__card {
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45);
}

.ct-map__label {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.ct-map__addr {
    margin: 6px 0 10px;
    font-family: var(--font-family-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: #151515;
}

.ct-map__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #151515;
    text-decoration: none;
}

.ct-map__link:hover { color: var(--brand-orange); }

@media (max-width: 1000px) {
    .ct__quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ct__quick { margin-top: -40px; gap: 10px; }
    .ct-tile { padding: 16px; }
    .ct-tile__value { font-size: 0.95rem; }
}

.page-hero--overlap .page-hero__inner { padding-bottom: clamp(110px, 13vw, 170px); }

/* ---------- Калькулятор ---------- */
.calc { background: var(--surface-0); }

.calc__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.roof-calculator.calc__card {
    padding: clamp(26px, 3.4vw, 44px);
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 30px 60px -40px rgba(40, 30, 20, 0.35);
}

.calc__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.roof-calculator__title.calc__title {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 500;
    line-height: 1.1;
    text-align: left;
    color: #151515;
}

.calc__lead {
    margin: 10px 0 0;
    font-size: 15px;
    color: #6d6a66;
}

.calc__step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a857e;
}

.calc__step span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #151515;
    font-size: 12px;
    letter-spacing: 0;
    color: #fff;
}

.calc__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.calc__list .roof-calculator__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #faf9f7;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.calc__list .roof-calculator__row:hover { border-color: rgba(0, 0, 0, 0.18); }

.calc__list .roof-calculator__check {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    border-radius: 7px;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    background: #fff center / 14px no-repeat;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.calc__list .roof-calculator__check:checked {
    border-color: var(--brand-orange);
    background-color: var(--brand-orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.calc__list .roof-calculator__row:has(.roof-calculator__check:checked) {
    border-color: rgba(var(--brand-orange-rgb), 0.55);
    background: rgba(var(--brand-orange-rgb), 0.06);
    box-shadow: 0 10px 24px -18px rgba(var(--brand-orange-rgb), 0.8);
}

.calc__list .roof-calculator__row-name {
    flex: 1;
    font-size: 14px;
    line-height: 1.35;
    color: #2a2825;
}

.calc__list .roof-calculator__row-price {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: #151515;
    white-space: nowrap;
}

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

.calc__stepper .roof-calculator__stepper-btn {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    font-size: 22px;
    color: #151515;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.calc__stepper .roof-calculator__stepper-btn:hover {
    background: #151515;
    color: #fff;
}

.calc__area-field {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 16px;
    background: #faf9f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.calc__area-field input {
    width: 130px;
    border: 0;
    background: none;
    font-family: var(--font-family-display);
    font-size: 2rem;
    font-weight: 500;
    color: #151515;
    outline: none;
    -moz-appearance: textfield;
}

.calc__area-field input::-webkit-outer-spin-button,
.calc__area-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc__area-field span {
    font-size: 15px;
    color: #8a857e;
}

.calc__range {
    width: 100%;
    margin: 22px 0 6px;
    accent-color: var(--brand-orange);
}

.calc__range-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a39d95;
}

.calc__aside {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 12px;
}

.calc__total {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(26px, 3vw, 36px);
    border-radius: 28px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--brand-orange-rgb), 0.2), transparent 70%),
        #151515;
    color: #fff;
}

.calc__total-label {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.calc__total-sum {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(2.2rem, 3.6vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.calc__total-sum strong { font-weight: 500; }

.calc__total-for {
    margin: 0 0 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.calc__total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.calc__total-row strong { color: #fff; }

.calc__total .btn { width: 100%; }
.calc__total .btn-lg { margin-top: 8px; }

.calc__note {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
}

.calc__perks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.calc__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: #2a2825;
}

.calc__perks li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(var(--brand-orange-rgb), 0.15);
}

@media (max-width: 1000px) {
    .calc__grid { grid-template-columns: 1fr; }
    .calc__aside { position: static; }
}

@media (max-width: 640px) {
    .calc__list { grid-template-columns: 1fr; }
    .calc__head { flex-direction: column; }
}

/* ---------- Портфолио: крупные объекты — кейсы с чередованием ---------- */
.cases-section .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.cases-section .portfolio-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: 440px;
    border-radius: 28px;
    overflow: hidden;
    border: 0;
    background: #151515;
    color: #fff;
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.6);
}

.cases-section .portfolio-card:nth-child(even) .portfolio-image { order: 2; }

.cases-section .portfolio-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cases-section .portfolio-card:hover .portfolio-image { transform: scale(1.04); }

.cases-section .portfolio-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 52px);
    background: transparent;
}

.cases-section .portfolio-content h3 {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
}

.cases-section .portfolio-content > p {
    margin: 14px 0 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.cases-section .portfolio-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
}

.cases-section .portfolio-meta-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.cases-section .portfolio-meta-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.cases-section .portfolio-testimonial {
    position: relative;
    margin: 22px 0 0;
    padding: 0 0 0 46px;
    border: 0;
    background: none;
    font-size: 15.5px;
    font-style: normal;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.cases-section .portfolio-testimonial::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -14px;
    font-family: Georgia, serif;
    font-size: 64px;
    line-height: 1;
    color: var(--brand-orange);
}

@media (max-width: 900px) {
    .cases-section .portfolio-card { grid-template-columns: 1fr; }
    .cases-section .portfolio-card:nth-child(even) .portfolio-image { order: 0; }
    .cases-section .portfolio-image { min-height: 240px; height: 260px; }
    .cases-section .portfolio-meta { grid-template-columns: 1fr; }
}

.rv-score[hidden] { display: none; }

/* Видео в карточках: отдельный слой GPU, без пересчёта соседей */
.hg__card { contain: layout paint; }
.hg__video,
.svc-tile__video,
.story__bg video,
.quiz-cta-section__bg video,
.page-hero__media video {
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ---------- Калькулятор: площадь ---------- */
.calc__area-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}

.calc__qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: #f4f2ee;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.calc__qty-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #151515;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.calc__qty-btn:hover {
    background: #151515;
    color: #fff;
}

.calc__qty-btn:active { transform: scale(0.94); }

.calc__qty-field {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    min-width: 150px;
    padding: 0 10px;
    cursor: text;
}

.calc__qty-field input {
    width: 4.2ch;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-family-display);
    font-size: 2rem;
    font-weight: 500;
    text-align: right;
    color: #151515;
    outline: none;
    -moz-appearance: textfield;
    font-variant-numeric: tabular-nums;
}

.calc__qty-field input::-webkit-outer-spin-button,
.calc__qty-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc__qty-field span {
    font-size: 15px;
    font-weight: 500;
    color: #8a857e;
}

.calc__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calc__presets button {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #45423e;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.calc__presets button:hover { border-color: rgba(0, 0, 0, 0.3); }

.calc__presets button.is-active {
    background: #151515;
    border-color: #151515;
    color: #fff;
}

/* ползунок: светлая дорожка с оранжевой заливкой */
.calc__range {
    --fill: 14%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    margin: 28px 0 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-orange) 0 var(--fill), #e8e4de var(--fill) 100%);
    cursor: pointer;
    outline: none;
}

.calc__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    border: 0;
    box-shadow: 0 0 0 6px rgba(var(--brand-orange-rgb), 0.22), 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.calc__range:active::-webkit-slider-thumb { transform: scale(1.1); }

.calc__range::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    border: 0;
    box-shadow: 0 0 0 6px rgba(var(--brand-orange-rgb), 0.22), 0 4px 10px rgba(0, 0, 0, 0.18);
}

.calc__range::-moz-range-track { background: transparent; }

.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(var(--brand-orange-rgb), 0.35), 0 4px 10px rgba(0, 0, 0, 0.18); }

.calc__qty-field input { letter-spacing: -0.02em; font-variant-numeric: normal; }

/* ---------- О компании: команда ---------- */
.team .section-head { margin-bottom: 28px; }

.team__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.team-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 48px -36px rgba(40, 30, 20, 0.4);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 60px -34px rgba(40, 30, 20, 0.5);
}

.team-card__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eee;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    display: block;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card__body { padding: 18px 20px 20px; }

.team-card__name {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #151515;
}

.team-card__role {
    margin: 4px 0 12px;
    font-size: 14px;
    color: #6d6a66;
}

.team-card__exp {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--brand-orange-rgb), 0.12);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-orange);
}

@media (max-width: 900px) {
    .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .team-card__body { padding: 14px; }
    .team-card__name { font-size: 1rem; }
}

/* ---------- Портфолио: подробные кейсы ---------- */
.cases {
    display: grid;
    gap: 28px;
}

.case {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(20px, 3vw, 44px);
    padding: clamp(16px, 2vw, 22px);
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 40px 80px -60px rgba(40, 30, 20, 0.45);
}

.case:nth-child(even) .case__gallery { order: 2; }

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

.case__main {
    position: relative;
    flex: 1;
    min-height: 360px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #111;
    cursor: zoom-in;
}

.case__main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.case__main:hover img { transform: scale(1.04); }

.case__count {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.72);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.case__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.case__thumb {
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #eee;
    cursor: zoom-in;
}

.case__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.case__thumb:hover img { transform: scale(1.08); }

.case__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(8px, 1.6vw, 22px) clamp(4px, 1vw, 14px);
}

.case__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.case__title {
    margin: 12px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #151515;
}

.case__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 20px;
}

.case__facts div {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f6f4f0;
}

.case__facts span {
    display: block;
    font-size: 12px;
    color: #8a857e;
}

.case__facts strong {
    display: block;
    margin-top: 2px;
    font-family: var(--font-family-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #151515;
}

.case__text,
.case__purpose,
.case__result {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: #45423e;
}

.case__purpose { margin-top: 10px; }

.case__result {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(var(--brand-orange-rgb), 0.08);
    color: #2a2825;
}

.case__more {
    width: 100%;
    margin-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.case__more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-weight: 600;
    color: #151515;
    cursor: pointer;
    list-style: none;
}

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

.case__more summary::after {
    content: '+';
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f1eee9;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.case__more[open] summary::after { transform: rotate(45deg); }

.case__more h4 {
    margin: 4px 0 8px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a857e;
}

.case__materials,
.case__steps {
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #45423e;
}

.case__steps li,
.case__materials li { margin-bottom: 6px; }

.case__body > .btn { margin-top: 22px; }

@media (max-width: 900px) {
    .case { grid-template-columns: 1fr; border-radius: 24px; }
    .case:nth-child(even) .case__gallery { order: 0; }
    .case__main { min-height: 260px; }
    .case__facts { grid-template-columns: 1fr 1fr 1fr; }
    .case__facts strong { font-size: 1rem; }
}

.svc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-tile { aspect-ratio: 4 / 4.3; }
@media (max-width: 1100px) { .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-tiles { grid-template-columns: 1fr; } }

/* ---------- О компании: ценности ---------- */
.vcards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.vcard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 26px 24px 28px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 48px -38px rgba(40, 30, 20, 0.4);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.vcard::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-orange-rgb), 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.vcard:hover,
.vcard--dark {
    background: #151515;
    color: #fff;
    box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.55);
}

.vcard:hover { transform: translateY(-4px); }
.vcard:hover::after,
.vcard--dark::after { opacity: 1; }

.vcard__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.vcard__num {
    font-family: var(--font-family-display);
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(0, 0, 0, 0.12);
    transition: color 0.4s ease;
}

.vcard:hover .vcard__num,
.vcard--dark .vcard__num { color: var(--brand-orange); }

.vcard__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(var(--brand-orange-rgb), 0.12);
    color: var(--brand-orange);
    transition: background 0.4s ease;
}

.vcard:hover .vcard__icon,
.vcard--dark .vcard__icon { background: rgba(255, 255, 255, 0.08); }

.vcard__title {
    margin: auto 0 0;
    padding-top: 40px;
    font-family: var(--font-family-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: inherit;
}

.vcard__text {
    margin: 10px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #6d6a66;
    transition: color 0.4s ease;
}

.vcard:hover .vcard__text,
.vcard--dark .vcard__text { color: rgba(255, 255, 255, 0.68); }

@media (max-width: 1000px) {
    .vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vcard { min-height: 250px; }
}

@media (max-width: 560px) {
    .vcards { grid-template-columns: 1fr; }
    .vcard { min-height: 0; }
    .vcard__title { padding-top: 28px; }
}

/* в колонке «О компании» — сетка 2×2 */
.vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vcard { min-height: 240px; padding: 28px 30px 30px; }
.vcard__title { padding-top: 32px; font-size: 1.5rem; }
.vcard__text { max-width: 360px; font-size: 15px; }
@media (max-width: 560px) { .vcards { grid-template-columns: 1fr; } .vcard { min-height: 0; } }

/* ---------- Главный экран на телефоне: дом сверху, текст снизу ---------- */
@media (max-width: 900px) {
    .rp-hero::before {
        background: linear-gradient(0deg, rgba(12, 11, 10, 0.96) 0%, rgba(12, 11, 10, 0.88) 38%, rgba(12, 11, 10, 0.25) 62%, rgba(12, 11, 10, 0) 75%);
    }

    .rp-hero__content {
        top: auto;
        bottom: 92px; /* над плавающими кнопками сайта */
        left: 18px;
        right: 18px;
        width: auto;
        transform: none;
    }

    .rp-hero__badge { font-size: 10px; padding: 6px 11px; letter-spacing: 0.12em; }
    .rp-hero__title { margin-top: 12px; font-size: 1.85rem; line-height: 1.08; }
    .rp-hero__subtitle { margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
    .rp-hero__features { margin-top: 10px; font-size: 12.5px; }
    .rp-hero__cta { margin-top: 16px; flex-wrap: nowrap; }
    .rp-hero__cta .btn { flex: 1 1 0; min-width: 0; padding: 14px 10px; font-size: 14px; }

    /* пирог: заголовок сверху, компактная карточка снизу */
    .roof-pie__copy { top: 18px; left: 18px; }
    .roof-pie__title { font-size: 1.7rem; }
    .roof-pie__card {
        left: 14px;
        right: 14px;
        bottom: 88px;
        padding: 14px 16px;
        border-radius: 18px;
    }
    .roof-pie__card-title { margin-top: 6px; font-size: 1.15rem; }
    .roof-pie__card-desc { margin-top: 6px; font-size: 13px; line-height: 1.45; }
    .roof-pie__card-meta { display: none; }
}

@media (max-width: 900px) {
    .site-fab,
    .scroll-top-btn,
    #scrollTopBtn {
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    body.rv-pie-on .site-fab,
    body.rv-pie-on #scrollTopBtn {
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
    }

    .rp-hero__content { bottom: 26px; }
    .roof-pie__card { bottom: 18px; }
}

@media (max-width: 480px) {
    .rp-hero__cta .btn { white-space: nowrap; font-size: 13.5px; padding: 14px 8px; }
    .facts__item { padding: 18px 16px; }
    .facts__num { font-size: 1.7rem; white-space: nowrap; }
    .facts__label { font-size: 12.5px; }
}

/* =====================================================================
   Квиз: фото и сводка ответов слева, вопросы справа
   ===================================================================== */
#quizModal.active {
    display: grid;
    place-items: center;
    padding: clamp(0px, 3vw, 32px);
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

#quizModal .qz {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    width: min(1040px, 100%);
    max-width: none;
    height: min(86vh, 720px);
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: #fff;
    color: #151515;
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
    animation: qzIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes qzIn {
    from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* левая колонка */
.qz__aside {
    position: relative;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.qz__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: sdKen 18s ease-in-out infinite alternate;
}

.qz__aside::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(12, 12, 12, 0.94) 0%, rgba(12, 12, 12, 0.6) 55%, rgba(12, 12, 12, 0.25) 100%),
        radial-gradient(ellipse 80% 50% at 0% 100%, rgba(var(--brand-orange-rgb), 0.22), transparent 70%);
}

.qz__aside-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: clamp(24px, 3vw, 36px);
}

.qz__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.qz__aside-title {
    margin: 10px 0 20px;
    font-family: var(--font-family-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
}

.qz__summary {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qz__summary li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.qz__summary span { color: rgba(255, 255, 255, 0.5); }

.qz__summary strong {
    font-weight: 600;
    text-align: right;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.4s ease;
}

.qz__summary li.is-filled {
    background: rgba(var(--brand-orange-rgb), 0.14);
    border-color: rgba(var(--brand-orange-rgb), 0.35);
}

.qz__summary li.is-filled strong { color: #fff; }

/* правая колонка */
.qz__main {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: clamp(28px, 3.4vw, 48px);
    padding-top: clamp(24px, 3vw, 36px);
}

.qz__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #151515;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.35s ease;
}

.qz__close:hover {
    background: #151515;
    color: #fff;
    transform: rotate(90deg);
}

#quizModal .qz__progress {
    display: none;
    margin: 0 56px 28px 0;
}

#quizModal .qz__progress.quiz-progress--visible { display: block; }

#quizModal .quiz-progress__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

#quizModal .quiz-progress__label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a857e;
}

.qz__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #151515;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.qz__back:hover { background: #151515; color: #fff; }

#quizModal .quiz-progress__segments {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

#quizModal .quiz-progress__segment {
    height: 4px;
    border-radius: 999px;
    background: #ece8e2;
    overflow: hidden;
    position: relative;
}

#quizModal .quiz-progress__segment::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#quizModal .quiz-progress__segment--active::after { transform: scaleX(1); }

#quizModal .qz__step.qz-enter > * {
    animation: qzStep 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#quizModal .qz__step.qz-enter > :nth-child(2) { animation-delay: 0.05s; }
#quizModal .qz__step.qz-enter > :nth-child(3) { animation-delay: 0.1s; }
#quizModal .qz__step.qz-enter > :nth-child(4) { animation-delay: 0.15s; }
#quizModal .qz__step.qz-enter > :nth-child(5) { animation-delay: 0.2s; }

@keyframes qzStep {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to { opacity: 1; transform: none; }
}

.qz__tag {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(var(--brand-orange-rgb), 0.12);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--brand-orange);
}

#quizModal .qz__title {
    margin: 18px 56px 0 0;
    font-family: var(--font-family-display);
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: left;
    color: #151515;
}

#quizModal #quizStep-question .qz__title,
#quizModal #quizStep-contact .qz__title { margin-top: 0; }

.qz__lead {
    margin: 14px 0 0;
    max-width: 480px;
    font-size: 15.5px;
    line-height: 1.6;
    color: #6d6a66;
}

.qz__trust {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.qz__trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #2a2825;
}

.qz__trust li::before {
    content: '';
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(var(--brand-orange-rgb), 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B35' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.qz__start {
    align-self: flex-start;
    gap: 10px;
    margin-top: 32px;
}

.qz__note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #a39d95;
}

/* варианты ответов */
#quizModal .quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
}

#quizModal .quiz-options--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#quizModal .quiz-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 48px 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 18px;
    background: #faf9f7;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: #151515;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

#quizModal .quiz-opt:hover {
    border-color: rgba(0, 0, 0, 0.22);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -20px rgba(0, 0, 0, 0.35);
}

#quizModal .quiz-opt__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--brand-orange);
    transition: background 0.25s ease, color 0.25s ease;
}

#quizModal .quiz-opt__check {
    position: absolute;
    right: 16px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    color: transparent;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#quizModal .quiz-opt__check svg { width: 14px; height: 14px; }

#quizModal .quiz-opt--selected {
    border-color: var(--brand-orange);
    background: rgba(var(--brand-orange-rgb), 0.06);
    box-shadow: 0 14px 28px -20px rgba(var(--brand-orange-rgb), 0.8);
}

#quizModal .quiz-opt--selected .quiz-opt__check {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
    color: #fff;
}

#quizModal .quiz-opt--selected .quiz-opt__icon {
    background: var(--brand-orange);
    color: #fff;
}

#quizModal .quiz-opt--muted {
    background: transparent;
    border-style: dashed;
    color: #6d6a66;
}

/* форма */
.qz__form { margin-top: 24px; max-width: 460px; }

#quizModal .qz__form .form-control {
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f6f3;
    font-size: 16px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#quizModal .qz__form .form-control:focus {
    border-color: var(--brand-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--brand-orange-rgb), 0.12);
    outline: none;
}

#quizModal .quiz-submit {
    width: 100%;
    margin-top: 8px;
}

/* готово */
#quizModal .quiz-done {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: auto 0;
    padding-top: 40px;
    text-align: left;
}

#quizModal .quiz-done__check {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(var(--brand-orange-rgb), 0.12);
    color: var(--brand-orange);
}

#quizModal .quiz-done .btn { margin-top: 28px; }

#quizModal .qz__step:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* телефон: фото-полоса сверху, вопросы ниже на весь экран */
@media (max-width: 860px) {
    #quizModal.active { padding: 0; }

    #quizModal .qz {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .qz__aside { min-height: 150px; }
    .qz__aside-title { margin-bottom: 0; font-size: 1.35rem; }
    .qz__summary { display: none; }
    .qz__aside-body { padding: 20px; }

    .qz__main { padding: 22px 18px 28px; }

    .qz__close {
        position: fixed;
        top: 14px;
        right: 14px;
        background: rgba(255, 255, 255, 0.92);
    }

    #quizModal .qz__progress { margin-right: 0; }
    #quizModal .qz__title { margin-right: 0; font-size: 1.6rem; }
    #quizModal .quiz-options--grid { grid-template-columns: 1fr; }
    #quizModal .quiz-opt { min-height: 58px; }
    .qz__start { align-self: stretch; }
}

/* квиз: фиксированная ширина окна на всех шагах, плашка по размеру текста, без старых маркеров */
#quizModal.active { display: flex; align-items: center; justify-content: center; }
#quizModal .qz { width: min(1040px, 100%); flex: 0 0 auto; }
.qz__tag { align-self: flex-start; }
#quizModal .quiz-progress__top { justify-content: flex-start; }
#quizModal .quiz-opt::before,
#quizModal .quiz-opt::after { content: none; display: none; }
@media (max-width: 860px) { #quizModal .qz { width: 100%; } }

/* Главный экран: видеорежим (аппаратная перемотка видео вместо canvas) */
.roof-pie__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.roof-pie-stage.has-video .roof-pie__canvas { opacity: 0; }

/* Телефон: горизонтальные жесты в слайдере, галерее и просмотре фото отдаём сайту, вертикальные — странице */
.ws, .pm__stage { touch-action: pan-y; }
@media (max-width: 900px) {
    .hg__track {
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---------- Заставка главной: пока докачивается анимация ---------- */
.preloader.rv-loader {
    background:
        radial-gradient(ellipse 60% 50% at 50% 60%, rgba(var(--brand-orange-rgb), 0.14), transparent 70%),
        #111;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.rv-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(320px, 78vw);
}

.rv-loader__logo {
    width: 100%;
    height: auto;
    opacity: 0;
    animation: rvLoaderIn 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rv-loader__roof {
    width: 120px;
    margin: 34px 0 26px;
    overflow: visible;
}

.rv-loader__roof-line {
    fill: none;
    stroke: var(--brand-orange);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: rvRoofDraw 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.rv-loader__roof-line--2 { stroke: rgba(255, 255, 255, 0.55); animation-delay: 0.18s; }
.rv-loader__roof-line--3 { stroke: rgba(255, 255, 255, 0.25); animation-delay: 0.36s; }

@keyframes rvRoofDraw {
    0% { stroke-dashoffset: 160; }
    45%, 70% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -160; }
}

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

.rv-loader__bar {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.rv-loader__bar span {
    display: block;
    height: 100%;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
}

.rv-loader__text {
    margin: 14px 0 0;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .rv-loader__roof-line { animation: none; stroke-dashoffset: 0; }
}
