/* ==========================================
   ИдеалСтрой - Современный сайт ремонта
   Стили с улучшенной организацией
   ========================================== */

/* === ОСНОВНЫЕ НАСТРОЙКИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #c9a962;
    --accent-light: #e8d5a3;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --bg-light: #f8f7f4;

    /* Переменные для анимаций */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === АНИМАЦИИ === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Класс для элементов с анимацией при скролле */
.animate-on-scroll {
    opacity: 0;
    transition: var(--transition-smooth);
}

.animate-on-scroll.animated {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll.animate-left.animated {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-on-scroll.animate-right.animated {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-on-scroll.animate-scale.animated {
    animation: scaleIn 0.6s ease-out forwards;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === HEADER (ШАПКА САЙТА) === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 5%;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-text .ideal {
    color: var(--white);
    transition: color 0.4s;
}

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

header.scrolled .logo-text .ideal {
    color: var(--primary);
}

.logo-sub {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.4s;
}

header.scrolled .logo-sub {
    color: var(--text-light);
}

/* Навигация */
nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}

header.scrolled nav a {
    color: var(--text);
}

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

/* Правая часть header */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.4s;
}

header.scrolled .phone-link {
    color: var(--primary);
}

.btn-header {
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.4);
}

/* Контакт дизайнера */
.designer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

header.scrolled .designer-contact {
    background: rgba(255, 255, 255, 1);
}

.designer-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 8px rgba(201, 169, 98, 0.3);
}

.btn-designer {
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-designer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.4);
}

/* === HERO (ГЛАВНЫЙ БАННЕР) === */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(26, 26, 46, 0.93) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(26, 26, 46, 0.5) 100%);
    animation: overlayPulse 10s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        background: linear-gradient(100deg, rgba(26, 26, 46, 0.93) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(26, 26, 46, 0.5) 100%);
    }
    50% {
        background: linear-gradient(100deg, rgba(26, 26, 46, 0.88) 0%, rgba(26, 26, 46, 0.75) 50%, rgba(26, 26, 46, 0.45) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.4);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 54px);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

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

.hero-text > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.8;
    max-width: 480px;
}

/* Цена на первом экране */
.hero-price {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-price span {
    color: var(--accent);
    font-size: 24px;
}

/* Промо-баннер с акцией */
.hero-promo {
    display: inline-block;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--accent-light);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

/* Список преимуществ в Hero */
.hero-list {
    list-style: none;
    margin-bottom: 30px;
}

.hero-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-list li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* Кнопки */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(201, 169, 98, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Статистика в Hero */
.hero-stats {
    display: flex;
    gap: 35px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.hero-stat-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Галерея в Hero */
.hero-gallery {
    position: relative;
}

.hero-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-gallery-item:hover img {
    transform: scale(1.05);
}

.hero-gallery-item:nth-child(1) {
    height: 180px;
}

.hero-gallery-item:nth-child(2) {
    height: 180px;
    margin-top: 25px;
}

.hero-gallery-item:nth-child(3) {
    grid-column: span 2;
    height: 150px;
}

.hero-badge {
    position: absolute;
    top: -10px;
    left: -15px;
    background: var(--white);
    padding: 15px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hero-badge-text {
    font-size: 11px;
    color: var(--text-light);
}

.hero-badge-text strong {
    display: block;
    font-size: 15px;
    color: var(--primary);
}

/* === TRUST BAR (БАР ДОВЕРИЯ) === */
.trust-bar {
    background: var(--white);
    padding: 22px 5%;
    border-bottom: 1px solid #eee;
}

.trust-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.trust-item span {
    font-size: 20px;
}

.trust-item strong {
    font-size: 13px;
    font-weight: 600;
}

/* === ОБЩИЕ СТИЛИ СЕКЦИЙ === */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.5vw, 42px);
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* === УСЛУГИ === */
.services {
    padding: 90px 5%;
    background: var(--bg-light);
}

.services-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-light);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card-img {
    width: 40%;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.service-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
}

.service-card-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}

/* === BEFORE/AFTER (ДО/ПОСЛЕ) === */
.before-after {
    padding: 90px 5%;
    background: var(--primary);
}

.before-after .section-title {
    color: var(--white);
}

.before-after .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.ba-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ba-card {
    display: flex;
    flex-direction: column;
}

.ba-card-title {
    text-align: center;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    opacity: 0.8;
}

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

@media (max-width: 768px) {
    .ba-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.ba-slider-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.ba-slider-wrapper:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: ew-resize;
    background: #222;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.ba-image.before {
    z-index: 1;
}

.ba-image.after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 10;
    width: 4px;
    background: var(--white);
    transform: translateX(-50%);
    cursor: ew-resize;
}

.ba-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
}

.ba-label {
    position: absolute;
    bottom: 18px;
    padding: 10px 22px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 5;
}

.ba-label.before-label {
    left: 18px;
    background: rgba(0, 0, 0, 0.7);
}

.ba-label.after-label {
    right: 18px;
    background: var(--accent);
    color: var(--primary);
}

.ba-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 35px;
}

.ba-info-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px;
    border-radius: 14px;
    text-align: center;
}

.ba-info-item strong {
    display: block;
    font-size: 22px;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    margin-bottom: 4px;
}

.ba-info-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* === КОМАНДА === */
.team {
    padding: 90px 5%;
    background: var(--white);
}

.team-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.team-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
}

.team-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 38px);
    color: var(--primary);
    margin-bottom: 20px;
}

.team-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.team-stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 14px;
}

.team-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.team-stat-text {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === КАЛЬКУЛЯТОР === */
.calculator {
    padding: 90px 5%;
    background: var(--white);
}

.calculator-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.calculator-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #eee;
}

.calc-group {
    margin-bottom: 35px;
}

.calc-group:last-child {
    margin-bottom: 0;
}

.calc-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Опции типа ремонта */
.calc-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.calc-option {
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-option:hover {
    border-color: var(--accent-light);
    transform: translateY(-3px);
}

.calc-option.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.05), rgba(201, 169, 98, 0.1));
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.2);
}

.option-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.option-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.option-price {
    font-size: 11px;
    color: var(--text-light);
}

/* Range slider */
.calc-range-container {
    position: relative;
    padding-top: 30px;
}

.calc-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 10px;
    outline: none;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(201, 169, 98, 0.4);
    transition: all 0.3s;
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(201, 169, 98, 0.4);
}

.range-value {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* Чекбоксы */
.calc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid #eee;
    transition: all 0.3s;
}

.calc-checkbox:hover {
    border-color: var(--accent-light);
}

.calc-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s;
}

.calc-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    border-color: var(--accent);
}

.calc-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
}

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

/* Результат калькулятора */
.calculator-result {
    position: sticky;
    top: 100px;
}

.result-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.result-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    animation: priceUpdate 0.3s ease-out;
}

@keyframes priceUpdate {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.result-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

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

.result-item span {
    color: rgba(255, 255, 255, 0.7);
}

.result-item strong {
    color: var(--white);
    font-weight: 700;
}

.result-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 169, 98, 0.4);
}

.result-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: italic;
}

/* === ПОРТФОЛИО === */
.portfolio {
    padding: 90px 5%;
    background: var(--bg-light);
}

.portfolio-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.portfolio-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    opacity: 0;
    transition: opacity 0.4s;
}

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

.portfolio-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    width: fit-content;
}

.portfolio-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--white);
    margin-bottom: 4px;
}

.portfolio-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* === FAQ === */
.faq {
    padding: 90px 5%;
    background: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.faq-arrow {
    font-size: 12px;
    color: var(--accent);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 69px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* === ПРОЦЕСС РАБОТЫ === */
.process {
    padding: 90px 5%;
    background: var(--white);
}

.process-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

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

.process-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 35px;
    right: -8px;
    font-size: 18px;
    color: var(--accent);
}

.process-number {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    transition: all 0.4s;
}

.process-item:hover .process-number {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.process-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.process-desc {
    font-size: 11px;
    color: var(--text-light);
}

/* === КОНТАКТЫ === */
.contacts {
    padding: 90px 5%;
    background: var(--white);
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-content a {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

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

.contact-content p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.contacts-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, var(--bg-light), #e0e0e0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    text-align: center;
    padding: 40px;
}

.map-icon {
    font-size: 64px;
    opacity: 0.5;
}

.map-placeholder p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.map-hint {
    font-size: 12px;
    max-width: 300px;
    line-height: 1.6;
}

.contacts-social {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contacts-social h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    background: var(--bg-light);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--white);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon {
    font-size: 20px;
}

/* === CTA (ПРИЗЫВ К ДЕЙСТВИЮ) === */
.cta {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.cta-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.5vw, 38px);
    color: var(--white);
    margin-bottom: 15px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* === VISUALIZATIONS VS RESULT SLIDERS === */
.visualizations-section {
    padding: 90px 5%;
    background: var(--bg-light);
}

.viz-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.viz-card {
    display: flex;
    flex-direction: column;
}

.viz-slider-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.viz-slider-wrapper:hover {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.viz-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: ew-resize;
    background: #f5f5f5;
}

.viz-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.viz-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.viz-image.design {
    z-index: 1;
}

.viz-image.result {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.viz-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 10;
    width: 4px;
    background: var(--white);
    transform: translateX(-50%);
    cursor: ew-resize;
}

.viz-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
}

.viz-label {
    position: absolute;
    bottom: 18px;
    padding: 10px 22px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 5;
}

.viz-label.design-label {
    left: 18px;
    background: rgba(0, 0, 0, 0.7);
}

.viz-label.result-label {
    right: 18px;
    background: var(--accent);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .viz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .viz-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* === FOOTER (ПОДВАЛ) === */
footer {
    background: var(--primary);
    padding: 60px 5% 25px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    line-height: 1.7;
    font-size: 13px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-decoration: none;
}

/* === ПЛАВАЮЩИЕ КНОПКИ === */
.floating-buttons {
    position: fixed;
    bottom: 22px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 5px 18px rgba(37, 211, 102, 0.4);
}

.callback-btn {
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    box-shadow: 0 5px 18px rgba(201, 169, 98, 0.4);
}

.float-btn svg {
    width: 28px;
    height: 28px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn:active {
    transform: scale(0.95);
}

/* === ОТЗЫВЫ === */
.reviews {
    padding: 90px 5%;
    background: var(--bg-light);
}

.reviews-header {
    text-align: center;
    margin-bottom: 20px;
}

.reviews-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.reviews-stars {
    color: #FFB800;
    font-size: 24px;
}

.reviews-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.reviews-count {
    font-size: 14px;
    color: var(--text-light);
}

.reviews-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.review-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
}

.review-date {
    font-size: 11px;
    color: var(--text-light);
}

.review-stars {
    color: #FFB800;
    font-size: 14px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.7;
}

.review-service {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 12px;
}

.reviews-cta {
    text-align: center;
    margin-top: 40px;
}

.reviews-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--accent);
    transition: all 0.3s;
}

.reviews-cta a:hover {
    background: var(--accent);
    color: var(--primary);
}

.avito-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00AAFF;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* === ДИЗАЙН ИНТЕРЬЕРОВ === */
.design {
    padding: 90px 5%;
    background: var(--white);
}

.design-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: center;
}

.design-photo {
    position: relative;
}

.design-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--bg-light), #e0e0e0);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    border: 2px dashed #ccc;
    min-height: 500px;
}

.design-photo-placeholder span {
    font-size: 80px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.design-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    min-height: 500px;
}

.design-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--primary);
    padding: 18px 25px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 15px 30px rgba(201, 169, 98, 0.4);
}

.design-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 36px);
    color: var(--primary);
    margin-bottom: 15px;
}

.design-info > p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.design-features {
    list-style: none;
    margin-bottom: 25px;
}

.design-features li {
    padding: 10px 0;
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
}

.design-features li:last-child {
    border-bottom: none;
}

.design-features li span {
    font-size: 18px;
}

.design-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.design-gallery-item {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-light), #e8e8e8);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 11px;
    border: 1px dashed #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.design-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.design-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === ПРОЦЕСС ДИЗАЙНА === */
.design-process {
    padding: 90px 5%;
    background: var(--bg-light);
}

.design-process-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.design-process-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 16px;
    transition: all 0.4s;
    border: 1px solid #eee;
}

.design-process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.design-process-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}

.design-process-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.design-process-item p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

/* === ТАРИФЫ ДИЗАЙНА === */
.design-prices {
    max-width: 1200px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.design-price-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    border: 2px solid #eee;
    transition: all 0.4s;
    cursor: pointer;
}

.design-price-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.design-price-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.05), rgba(201, 169, 98, 0.1));
}

.design-price-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.design-price-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.design-price-card p {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 10px;
    min-height: 28px;
    line-height: 1.4;
}

.design-price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    font-family: Georgia, 'Times New Roman', serif;
}

.design-price-value span {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light);
}

.design-price-term {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 6px;
}

/* === МОДАЛЬНЫЕ ОКНА === */
.package-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.package-modal.active {
    display: flex;
}

.package-modal-content {
    background: var(--white);
    padding: 35px;
    border-radius: 22px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.package-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.package-modal-close:hover {
    color: var(--primary);
}

.package-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
}

.package-modal-icon {
    font-size: 40px;
}

.package-modal-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    color: var(--primary);
}

.package-modal-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.package-modal-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.package-modal-term {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.package-modal-list {
    list-style: none;
    margin-bottom: 20px;
}

.package-modal-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.package-modal-list li:last-child {
    border-bottom: none;
}

.package-modal-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

.package-modal-note {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 20px;
}

.package-modal-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.package-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 169, 98, 0.4);
}

/* Обычная модалка (для заказа) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 22px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-content > p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 14px;
}

.modal-content input {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Форма валидации */
.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

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

.form-group input.error {
    border-color: #ff4444;
    animation: shake 0.3s;
}

.form-group input.success {
    border-color: #4CAF50;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    display: block;
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    font-weight: 500;
}

/* Чекбокс согласия на обработку ПД */
.consent-group {
    margin-bottom: 10px;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.3;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none;
}

.consent-checkbox:hover {
    background: #f0f0f0;
}

.consent-checkbox input[type="checkbox"] {
    display: none;
}

.consent-checkmark {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.consent-checkbox input:checked + .consent-checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.consent-checkbox input:checked + .consent-checkmark::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.consent-text {
    color: #888;
}

.consent-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.consent-text a:hover {
    text-decoration: underline;
}

.consent-text a:hover {
    color: #a68b4b;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 169, 98, 0.4);
}

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

.btn-loader {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.success-message {
    text-align: center;
    padding: 30px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin: 0 auto 15px;
    animation: scaleIn 0.5s ease-out;
}

.success-message h4 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-light);
    font-size: 14px;
}

.modal-content button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* === АДАПТИВНОСТЬ === */

/* Планшеты */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-gallery {
        display: none;
    }

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

    .service-card {
        flex-direction: column;
    }

    .service-card-img {
        width: 100%;
        min-height: 200px;
    }

    .team-content {
        grid-template-columns: 1fr;
    }

    .team-image {
        order: -1;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .design-content {
        grid-template-columns: 1fr;
    }

    .design-photo {
        max-width: 400px;
        margin: 0 auto;
    }

    .design-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-container {
        grid-template-columns: 1fr;
    }

    .calculator-result {
        position: static;
    }

    .calc-options {
        grid-template-columns: 1fr;
    }

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

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

    .faq-item.active .faq-answer {
        padding: 0 30px 25px 30px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    header {
        padding: 10px 3%;
    }

    header.scrolled {
        padding: 8px 3%;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .logo-icon svg {
        width: 26px;
        height: 26px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-sub {
        display: none;
    }

    nav {
        display: none;
    }

    .header-right .phone-link {
        display: none;
    }

    .header-right .btn-header {
        display: none !important; /* Скрыто на мобильных для лучшей видимости дизайнера */
    }

    /* Контакт дизайнера на мобильных */
    .designer-contact {
        padding: 6px 12px 6px 6px;
        gap: 8px;
    }

    .designer-photo {
        width: 38px;
        height: 38px;
    }

    .btn-designer {
        padding: 8px 14px;
        font-size: 10px;
    }

    .hero-tag {
        font-size: 10px;
        padding: 8px 14px;
        margin-top: 70px;
    }

    .hero-text h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .hero-text > p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-price {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .hero-price span {
        font-size: 19px;
    }

    .hero-promo {
        font-size: 13px;
        padding: 10px 14px;
        margin-bottom: 15px;
    }

    .hero-list li {
        font-size: 13px;
        padding: 6px 0;
    }

    .hero-list {
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 13px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .hero-stat {
        min-width: 80px;
    }

    .hero-stat-number {
        font-size: 28px;
    }

    .hero-stat-text {
        font-size: 9px;
    }

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

    .process-item:not(:last-child)::after {
        display: none;
    }

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

    .ba-info {
        grid-template-columns: 1fr;
    }

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

    .team-stats {
        grid-template-columns: 1fr;
    }

    .floating-buttons {
        bottom: 100px;
        right: 15px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

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

    .design-prices {
        grid-template-columns: 1fr;
    }

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

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .comparison-card {
        padding: 20px;
    }

    .comparison-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .comparison-images {
        height: 300px;
    }

    .comparison-handle-circle {
        width: 40px;
        height: 40px;
    }

    .comparison-labels {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .comparison-label-before,
    .comparison-label-after {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* === ЛАЙТБОКС ДЛЯ ПОРТФОЛИО === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 20px;
}

.lightbox-caption span {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.lightbox-caption h3 {
    font-size: 24px;
    margin: 10px 0;
    color: white;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    padding: 16px 20px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    user-select: none;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.portfolio-item {
    cursor: pointer;
    position: relative;
}

.portfolio-item::after {
    content: '🔍 Посмотреть';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 1;
}

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

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption h3 {
        font-size: 18px;
    }
    
    .portfolio-item::after {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Кнопка MAX вместо WhatsApp */
.max-btn {
    background: linear-gradient(135deg, #6B46C1, #9333EA) !important;
}

.max-btn:hover {
    background: linear-gradient(135deg, #9333EA, #A855F7) !important;
    transform: translateY(-3px);
}

/* Обновленные стили для кнопки MAX с логотипом */
.max-btn svg {
    width: 32px;
    height: 32px;
}

.max-btn {
    background: white !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3) !important;
}

.max-btn:hover {
    background: #f8f9ff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4) !important;
}

/* Логотип MAX на кнопке */
.max-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* === EXIT INTENT POPUP === */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.exit-popup-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    text-align: center;
}

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

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.exit-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.exit-popup-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

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

.exit-popup-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.exit-popup-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.exit-popup-subtitle strong {
    color: var(--accent);
    font-weight: 700;
}

.exit-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.exit-popup-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.exit-popup-benefits li:last-child {
    border-bottom: none;
}

.exit-popup-benefits li span {
    color: #10b981;
    font-size: 20px;
    font-weight: bold;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0 20px;
}

.exit-popup-form input {
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.exit-popup-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.1);
}

.exit-popup-btn {
    background: linear-gradient(135deg, var(--accent), #a68b4b);
    color: var(--primary);
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

.exit-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 169, 98, 0.4);
}

.exit-popup-btn:active {
    transform: translateY(0);
}

.exit-popup-note {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
}

.exit-popup-success {
    display: none;
    text-align: center;
    padding: 30px;
}

.exit-popup-success.active {
    display: block;
}

.exit-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.exit-popup-success h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.exit-popup-success p {
    font-size: 16px;
    color: #666;
}

/* Адаптив для popup */
@media (max-width: 768px) {
    .exit-popup-content {
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .exit-popup-title {
        font-size: 24px;
    }
    
    .exit-popup-subtitle {
        font-size: 16px;
    }
    
    .exit-popup-icon {
        font-size: 50px;
    }
    
    .exit-popup-benefits li {
        font-size: 14px;
    }
    
    .exit-popup-btn {
        font-size: 16px;
        padding: 16px;
    }
}
