/* ==========================================================================
   ДИЗАЙН-СИСТЕМА И ОСНОВНЫЕ СТИЛИ (STYLE.CSS)
   Премиальная тема: тёмный графит, тёплый беж, изумрудный акцент, glassmorphism
   ========================================================================== */

:root {
    /* Цветовая палитра */
    --bg-primary: #0f1115;
    --bg-secondary: #171a21;
    --bg-card: rgba(26, 31, 41, 0.75);
    --bg-card-hover: rgba(35, 42, 56, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(16, 185, 129, 0.4);
    
    /* Акцентные цвета */
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.35);
    --accent-emerald-dark: #059669;
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    --accent-coral: #f43f5e;
    
    /* Текстовые цвета */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #34d399;
    
    /* Скругления и тени */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 35px var(--accent-emerald-glow);
    --shadow-gold: 0 0 25px var(--accent-gold-glow);
    
    /* Шрифты */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Анимации */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Базовый сброс */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Фоновые градиенты свечения */
.bg-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glow-circle-1 {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(60px);
}

.glow-circle-2 {
    position: absolute;
    top: 40%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0) 70%);
    filter: blur(80px);
}

.glow-circle-3 {
    position: absolute;
    bottom: -10%;
    left: 20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0) 70%);
    filter: blur(90px);
}

/* Общий контейнер */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   ШАПКА (HEADER)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition-smooth);
    background: rgba(15, 17, 21, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(15, 17, 21, 0.92);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

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

.logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #047857 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: var(--shadow-glow);
}

.logo-text h2 {
    font-size: 20px;
    letter-spacing: -0.5px;
    margin: 0;
}

.logo-text span {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-city-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-secondary);
}

.header-city-badge svg {
    color: var(--accent-emerald);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    text-align: right;
}

.phone-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
}

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

.work-hours {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-emerald-dark) 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px var(--accent-emerald-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, var(--accent-emerald) 100%);
}

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

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Пульсирующий эффект на кнопке */
.btn-pulse::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(30deg) translateY(-100%);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: rotate(30deg) translateY(-100%); }
    20%, 100% { transform: rotate(30deg) translateY(100%); }
}

/* ==========================================================================
   ГЛАВНЫЙ ЭКРАН (HERO SECTION)
   ========================================================================== */

.hero-section {
    padding-top: 150px;
    padding-bottom: 70px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 46px;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* Сетка преимуществ на главном */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.feature-item:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.feature-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Баннер с акцией / превью справа */
.hero-visual-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 37, 50, 0.9) 0%, rgba(18, 22, 30, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-subtle);
}

.hero-image-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.hero-visual-card:hover .hero-image-wrap img {
    transform: scale(1.03);
}

.promo-badge-float {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, #e11d48 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
    letter-spacing: 0.5px;
}

.promo-timer-box {
    background: rgba(15, 17, 21, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.timer-label strong {
    display: block;
    color: var(--accent-gold);
    font-size: 14px;
}

.timer-digits {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.timer-segment {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 38px;
    text-align: center;
    color: var(--text-primary);
}

/* ==========================================================================
   СЕКЦИИ СТРАНИЦЫ
   ========================================================================== */

section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.section-title {
    font-size: 38px;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==========================================================================
   ПОРТФОЛИО / НАШИ РАБОТЫ С ФИЛЬТРАМИ
   ========================================================================== */

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-emerald);
    color: #ffffff;
    border-color: var(--accent-emerald);
    box-shadow: 0 4px 15px var(--accent-emerald-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.portfolio-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img-wrap img {
    transform: scale(1.06);
}

.portfolio-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
}

.portfolio-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.portfolio-specs {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portfolio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.portfolio-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-emerald);
}

.portfolio-price span {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    font-weight: 400;
}

/* ==========================================================================
   БЛОК СРАВНЕНИЯ (ПОЧЕМУ МЫ)
   ========================================================================== */

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

.comparison-card {
    border-radius: var(--radius-xl);
    padding: 36px;
    position: relative;
}

.comparison-bad {
    background: rgba(30, 20, 25, 0.5);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.comparison-good {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(20, 35, 30, 0.6) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 20px;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.comparison-list li strong {
    color: var(--text-primary);
}

.icon-bad {
    color: var(--accent-coral);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-good {
    color: var(--accent-emerald);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   ЭТАПЫ РАБОТЫ (STEPS)
   ========================================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    position: absolute;
    top: 14px;
    right: 18px;
    line-height: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.step-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   ОТЗЫВЫ (REVIEWS)
   ========================================================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
}

.review-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
}

.review-stars {
    color: var(--accent-gold);
    font-size: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #2a3346 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-emerald);
    border: 1px solid var(--border-color);
}

.author-info h4 {
    font-size: 15px;
    margin: 0;
}

.author-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ (АККОРДЕОН)
   ========================================================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item.active {
    border-color: var(--border-highlight);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    user-select: none;
}

.faq-icon {
    font-size: 20px;
    color: var(--accent-emerald);
    transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

/* ==========================================================================
   ПОДВАЛ (FOOTER)
   ========================================================================== */

.site-footer {
    background: #090b0e;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 14px;
    max-width: 320px;
}

.footer-title {
    font-size: 16px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА И УВЕДОМЛЕНИЯ
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 20px;
}

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

.modal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    padding: 36px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Тост-уведомление */
.toast-notice {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 10000;
    transform: translateY(120px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

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

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }
    
    .header-city-badge,
    .header-phone .work-hours {
        display: none;
    }
    
    .phone-link {
        font-size: 15px;
    }
    
    .hero-section {
        padding-top: 110px;
        padding-bottom: 50px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .portfolio-grid,
    .reviews-grid,
    .comparison-grid,
    .steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}
