/* ============================================
   БЛОК: CSS ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   ============================================ */

:root {
    /* Основные шрифты */
    --font-heading: 'Cy Grotesk Grand', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

    /* Цветовая палитра */
    --brand-primary: #00b359;
    --brand-secondary: #07B361;
    --brand-light: #e6f7ef;
    --brand-dark: #00994d;

    --dark-bg: #2d2d2d;
    --darker-bg: #1a1a1a;
    --light-bg-1: #EDEDED;
    --light-bg-2: #DEDEDE;
    --light-bg-3: #f8f8f8;

    --white: #ffffff;
    --black: #000000;

    --text-primary: #262626;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-on-dark: #ffffff;

    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Размеры и отступы */
    --container-width: 1800px;
    --section-padding: 80px 0;

    /* Закругления */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;

    /* Тени */
    --shadow-sm: 0 2px 8px var(--shadow-color);
    --shadow-md: 0 4px 16px var(--shadow-color);
    --shadow-lg: 0 8px 32px var(--shadow-color);
    --shadow-xl: 0 12px 48px var(--shadow-color);

    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* END BLOCK: CSS ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ */

/* ============================================
   БЛОК: СБРОС СТИЛЕЙ И БАЗОВАЯ ТИПОГРАФИКА
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Типографика заголовков */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

/* Параграфы и текст */
p {
    margin-bottom: 1rem;
    font-weight: 400;
}

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

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

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

/* Ссылки */
a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-secondary);
}

/* Кнопки */
button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-normal);
    background: none;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

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

.btn-primary:hover {
    background-color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-secondary:hover {
    background-color: var(--brand-light);
    transform: translateY(-2px);
}

/* END BLOCK: СБРОС СТИЛЕЙ И БАЗОВАЯ ТИПОГРАФИКА */

/* ============================================
   БЛОК: ACTIVE NAVIGATION INDICATOR
   ============================================ */

.nav-item {
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width var(--transition-normal);
    opacity: 0;
}

.nav-item.active .nav-indicator {
    width: 100%;
    opacity: 1;
}

.nav-item.active .nav-link {
    color: var(--brand-primary);
    font-weight: 600;
}

/* END BLOCK: ACTIVE NAVIGATION INDICATOR */

/* ============================================
   БЛОК: ОБЩИЕ КОМПОНЕНТЫ
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Карточки (общие стили) */
.card {
    background: var(--white);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

/* END BLOCK: ОБЩИЕ КОМПОНЕНТЫ */

/* ============================================
   БЛОК: HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: transform var(--transition-normal);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

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

.header-contacts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--dark-bg);
    transition: color var(--transition-fast);
}

.phone-link:hover {
    color: var(--brand-primary);
}

.callback-btn {
    padding: 10px 24px;
    background: var(--brand-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-normal);
}

.callback-btn:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    padding: 8px;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark-bg);
    transition: var(--transition-normal);
    display: block;
}

/* END BLOCK: HEADER */

/* ============================================
   БЛОК: HERO SECTION
   ============================================ */

.hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
    background: var(--light-bg-1);
    position: relative;
    overflow: hidden;
}

.hero-card {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 179, 89, 0.9) 0%,
        rgba(0, 179, 89, 0.5) 25%,
        transparent 50%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    max-width: 1200px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8rem;
    line-height: 1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 8rem;
    font-weight: 400;
    opacity: 1;
}

.price-badge {
    display: inline-block;
    background: var(--brand-primary);
    color: var(--white);
    padding: 1rem 4rem;
    border-radius: var(--radius-2xl);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: var(--dark-bg);
    border-radius: var(--radius-large);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    margin: auto 0;
}

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

.stat-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 192px;
    height: 160px;
    background: var(--brand-secondary);
    filter: blur(60px);
    opacity: 0.9;
    transition: opacity var(--transition-normal);
}

.stat-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: center;
}

/* Общие стили для верхней части */
.stat-number,
.stat-card:nth-child(2) .stat-label {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Общие стили для нижней части */
.stat-description,
.stat-text {
    flex: 0 0 auto;
    margin-top: auto;
}

.stat-description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.3;
}

.stat-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

/* END BLOCK: HERO SECTION */

/* ============================================
   БЛОК: SERVICES SECTION (Преимущества)
   ============================================ */

.services-section {
    padding: var(--section-padding);
    background: var(--light-bg-2);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.service-icon-wrapper {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 179, 89, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    stroke: var(--brand-primary);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.service-description {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 400;
    flex: 1;
}

/* END BLOCK: SERVICES SECTION */

/* ============================================
   БЛОК: PROJECTS SECTION - КАРУСЕЛЬ
   ============================================ */

.projects-section {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
}

.projects-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 20px;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 20px;
    margin: -20px;
}

.projects-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.carousel-btn:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Карточки проектов */
.project-card {
    background: var(--white);
    border-radius: var(--radius-large);
    overflow: hidden;
    transition: all var(--transition-normal);
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

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

.project-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    min-height: 3.5rem;
}

.project-description {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

/* Плашки с характеристиками */
.project-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--brand-light);
    color: var(--brand-primary);
    border-radius: var(--radius-medium);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Кнопка подробнее */
.project-details-btn {
    padding: 12px 24px;
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: auto;
    width: 100%;
}

.project-details-btn:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* END BLOCK: PROJECTS SECTION - КАРУСЕЛЬ */

/* ============================================
   БЛОК: СВАЙП ИНДИКАТОР
   ============================================ */

.swipe-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem auto 0;
    opacity: 0;
    text-align: center;
    max-width: 300px;
}

.swipe-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

.swipe-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@keyframes swipeHint {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

/* END BLOCK: СВАЙП ИНДИКАТОР */

/* ============================================
   БЛОК: МОДАЛЬНЫЕ ОКНА
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

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

.modal-container {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-large);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.modal-close:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: rotate(90deg);
}

/* END BLOCK: МОДАЛЬНЫЕ ОКНА */

/* ============================================
   БЛОК: ОБНОВЛЕННОЕ МОДАЛЬНОЕ ОКНО ПРОЕКТА
   ============================================ */

.project-modal {
    max-width: 1400px !important;
    width: 95%;
    max-height: 90vh;
    padding: 2rem;
}

.project-modal-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    height: 100%;
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Левая часть: Галерея + Кнопка */
.project-modal-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-project-header {
    display: none;
}

.desktop-project-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-price {
    margin-bottom: 1.5rem;
}

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

/* Галерея проекта */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    position: relative;
    height: 400px;
    border-radius: var(--radius-large);
    overflow: hidden;
    background: var(--light-bg-1);
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.zoom-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.zoom-btn:hover {
    background: var(--brand-primary);
    transform: scale(1.1);
}

.zoom-btn:hover svg {
    stroke: var(--white);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 1.5rem;
}

.gallery-next {
    right: 1.5rem;
}

.gallery-counter {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-medium);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2;
}

/* Миниатюры */
.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) var(--light-bg-1);
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--light-bg-1);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 3px;
}

.gallery-thumb {
    width: 100px;
    height: 75px;
    border-radius: var(--radius-small);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--brand-primary);
    transform: scale(1.05);
}

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

/* Форма связи в проекте */
.project-contact-form {
    margin-top: auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--brand-light) 0%, rgba(0, 179, 89, 0.1) 100%);
    border-radius: var(--radius-large);
    border: 2px solid var(--brand-primary);
    transition: transform var(--transition-normal);
}

.project-contact-form:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-input, .contact-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.contact-input:focus, .contact-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 179, 89, 0.1);
}

.contact-input.error {
    border-color: #ff3860;
    background-color: rgba(255, 56, 96, 0.05);
}

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

.contact-project-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-project-btn:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-note {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 1rem;
}

.form-agreement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.form-agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-primary);
}

/* Правая часть: Информация */
.project-modal-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Характеристики проекта */
.project-specs {
    background: var(--light-bg-1);
    border-radius: var(--radius-large);
    padding: 1.5rem;
}

.specs-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.spec-item {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-medium);
    transition: transform var(--transition-fast);
    border-left: 3px solid var(--brand-primary);
}

.spec-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.spec-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Описание проекта */
.project-description-full {
    padding: 1.5rem;
    background: var(--light-bg-1);
    border-radius: var(--radius-large);
}

.description-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

#modalProjectDescription {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* END BLOCK: ОБНОВЛЕННОЕ МОДАЛЬНОЕ ОКНО ПРОЕКТА */

/* ============================================
   БЛОК: REVIEWS SECTION - ОБНОВЛЕННАЯ
   ============================================ */

.reviews-section {
    padding: var(--section-padding);
    background: var(--light-bg-3);
    position: relative;
}

/* Карусель отзывов */
.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 20px;
    margin-bottom: 2rem;
}

.reviews-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 20px;
    margin: -20px;
}

.reviews-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

/* Кнопки карусели */
.reviews-carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.reviews-carousel-btn:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.reviews-carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Карточка отзыва */
.review-card {
    background: var(--white);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 520px;
}

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

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--brand-light);
}

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

.reviewer-info {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.review-date {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Рейтинг с новыми звездами */
.review-rating {
    display: flex;
    gap: 4px;
    margin-top: 0.25rem;
}

.star {
    color: var(--brand-secondary);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.review-card:hover .star:not(.empty) {
    transform: scale(1.2);
    animation: starTwinkle 0.5s ease;
}

@keyframes starTwinkle {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.2); }
}

/* Текст отзыва */
.review-text {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    position: relative;
}

/* Градиент для обрезки текста */
.review-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--white));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.review-card:hover .review-text::after {
    opacity: 1;
}

/* Изображение проекта */
.review-project-image {
    height: 160px;
    border-radius: var(--radius-medium);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.review-project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.review-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

/* Индикатор свайпа для отзывов */
.reviews-swipe-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem auto 0;
    opacity: 0;
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.reviews-swipe-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

.reviews-swipe-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Кнопка "Все отзывы" */
.reviews-more-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.reviews-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--brand-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.reviews-more-btn:hover {
    background: var(--white);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.reviews-more-btn svg {
    transition: transform var(--transition-normal);
}

.reviews-more-btn:hover svg {
    transform: translateX(5px);
}

/* END BLOCK: REVIEWS SECTION - ОБНОВЛЕННАЯ */

/* ============================================
   БЛОК: Рассчет стоимости
   ============================================ */

.quiz-section {
    padding: 80px 28px;
    background-color: #EDEDED;
}

.quiz-container {
    max-width: 1600px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.quiz-title {
    font-family: 'Cy Grotesk Grand', sans-serif;
    font-size: 48px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--brand-secondary);
}

.quiz-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #DEDEDE;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    width: 20%;
    height: 100%;
    background-color: var(--brand-secondary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    text-align: center;
}

.quiz-content {
    position: relative;
    min-height: 300px;
}

.quiz-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.quiz-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

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

.quiz-question {
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-secondary);
}

.question-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--Grey-main);
    text-align: center;
}

.quiz-options {
    font-family: 'Montserrat', sans-serif;
    display: grid;
    gap: 15px;
}

.quiz-option {
    background-color: #F5F5F5;
    border: 2px solid transparent;
    border-radius: 100px;
    padding: 20px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quiz-option:hover {
    background-color: var(--brand-secondary);
    color: var(--text-on-dark);
    transform: translateY(-2px);
}

.quiz-option.selected {
    background-color: var(--brand-secondary);
    color: var(--text-on-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.quiz-input {
    width: 46rem;
    padding: 20px;
    border: 2px solid var(--brand-primary);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.quiz-input:focus {
    outline: none;
    border-color: var(--brand-secondary);
}

.quiz-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #F5F5F5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-checkbox:hover {
    background: #e8e8e8;
}

.quiz-checkbox.selected {
    background: var(--brand-secondary);
    color: var(--text-on-dark);
}

.quiz-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-secondary);
}

.quiz-checkbox.selected input[type="checkbox"] {
    accent-color: var(--text-on-dark);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.quiz-nav-btn {
    background-color: var(--brand-secondary);
    color: var(--text-on-dark);
    border: none;
    border-radius: 100px;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.quiz-nav-btn:disabled {
    background-color: #DEDEDE;
    color: #999;
    cursor: not-allowed;
}

.quiz-nav-btn:hover:not(:disabled) {
    background-color: var(--text-primary);
}

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

.submit-btn:disabled {
    background-color: #DEDEDE;
    color: #999;
    cursor: not-allowed;
}

/* END BLOCK: Рассчет стоимости */

/* ============================================
   БЛОК: Баннер
   ============================================ */

.banner-section {
    padding: 0;
    background-color: #EDEDED;
}

.banner-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    color: var(--brand-light);
    background-color: var(--brand-secondary);
    padding: 10px 50px;
    border-radius: 100px;
}

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

.banner-container {
    width: 100%;
    height: 500px;
    background-image: url('/img/index/bgblock.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    max-width: 1800px;
    padding: 0 20px;
}

.banner-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--brand-light);
    line-height: 1.3;
}

.banner-text span {
    color: var(--brand-secondary);
}

/* END BLOCK: Баннер */

/* ============================================
   БЛОК: FAQ SECTION
   ============================================ */

.faq-section {
    padding: var(--section-padding);
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--brand-primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    padding-left: 0.5rem;
}

.faq-question h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--brand-primary);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Активное состояние */
.faq-item.active {
    border-color: var(--brand-primary);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* END BLOCK: FAQ SECTION */

/* ============================================
   БЛОК: JOURNAL SECTION
   ============================================ */

.journal-section {
    padding: var(--section-padding);
    background: var(--light-bg-1);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.journal-card {
    background: var(--white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.journal-image {
    height: 200px;
    overflow: hidden;
}

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

.journal-card:hover .journal-image img {
    transform: scale(1.1);
}

.journal-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.journal-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.journal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.journal-description {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
}

/* END BLOCK: JOURNAL SECTION */

/* ============================================
   БЛОК: CONTACT BANNER
   ============================================ */

.contact-banner {
    padding: var(--section-padding);
    background: var(--light-bg-2);
}

.contact-banner-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.contact-banner-text {
    grid-column: 1 / -1;
    text-align: center;
}

.contact-banner-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-banner-subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-banner-image {
    border-radius: var(--radius-large);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-md);
}

.contact-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.contact-banner-image:hover img {
    transform: scale(1.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 179, 89, 0.1);
}

.form-group input.error {
    border-color: #ff3860;
    background-color: rgba(255, 56, 96, 0.05);
}

.submit-btn {
    padding: 1rem 8rem;
    background: var(--brand-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.submit-btn:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-agreement {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

/* END BLOCK: CONTACT BANNER */

/* ============================================
   БЛОК: FOOTER
   ============================================ */

.footer {
    background: var(--darker-bg);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 65px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-normal);
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-contacts h4,
.footer-nav h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-phone {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.footer-phone:hover {
    color: var(--brand-primary);
}

.footer-email,
.footer-address,
.footer-working-hours {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--brand-primary);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    transition: color var(--transition-fast);
}

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

/* END BLOCK: FOOTER */

/* ============================================
   БЛОК: МОДАЛЬНОЕ ОКНО ОБРАТНОГО ЗВОНКА
   ============================================ */

#callbackModal .modal-container,
#thankYouModal .modal-container {
    max-width: 500px;
    padding: 2.5rem;
    text-align: center;
}

.modal-content {
    width: 100%;
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

#callbackForm .form-group {
    margin-bottom: 0.5rem;
}

#callbackForm textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    font-family: var(--font-body);
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: all var(--transition-fast);
}

#callbackForm textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 179, 89, 0.1);
}

.privacy-link {
    color: var(--brand-primary);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--brand-secondary);
}

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

.success-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* END BLOCK: МОДАЛЬНОЕ ОКНО ОБРАТНОГО ЗВОНКА */

/* ============================================
   БЛОК: СИСТЕМА УВЕДОМЛЕНИЙ (POP-UP)
   ============================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.3s ease forwards;
    max-width: 400px;
    width: 90%;
    font-family: var(--font-body);
}

.notification-content {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.notification-success .notification-content {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
}

.notification-error .notification-content {
    background: linear-gradient(135deg, #ff3860 0%, #ff6b8b 100%);
    color: white;
}

.notification-icon {
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

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

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

/* END BLOCK: СИСТЕМА УВЕДОМЛЕНИЙ */

/* ============================================
   БЛОК: ЛОАДЕР ДЛЯ КНОПОК
   ============================================ */

.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* END BLOCK: ЛОАДЕР ДЛЯ КНОПОК */

/* ============================================
   БЛОК: СООБЩЕНИЯ ОБ ОШИБКАХ
   ============================================ */

.error-message {
    color: #ff3860;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* END BLOCK: СООБЩЕНИЯ ОБ ОШИБКАХ */

/* ============================================
   БЛОК: ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ДЛЯ JS
   ============================================ */

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Задержки для анимации */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

/* Ленивая загрузка изображений */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Анимация загрузки */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Стили для элементов, которые не должны анимироваться при загрузке */
.header,
.footer,
.modal,
.quiz-section,
.banner-section,
.contact-banner {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Анимация для элементов при скролле */
body.animations-loaded .service-card,
body.animations-loaded .project-card,
body.animations-loaded .review-card,
body.animations-loaded .stat-card,
body.animations-loaded .faq-item,
body.animations-loaded .section-header,
body.animations-loaded .hero-title,
body.animations-loaded .hero-subtitle,
body.animations-loaded .price-badge {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Анимация снизу вверх */
body.animations-loaded .animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для статистики */
body.animations-loaded .stats-grid .stat-card:nth-child(1) { transition-delay: 0.1s; }
body.animations-loaded .stats-grid .stat-card:nth-child(2) { transition-delay: 0.2s; }
body.animations-loaded .stats-grid .stat-card:nth-child(3) { transition-delay: 0.3s; }

/* Анимация для сервисных карточек */
body.animations-loaded .services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
body.animations-loaded .services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
body.animations-loaded .services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }

/* Анимация для проектов */
body.animations-loaded .projects-grid .project-card:nth-child(1) { transition-delay: 0.1s; }
body.animations-loaded .projects-grid .project-card:nth-child(2) { transition-delay: 0.2s; }
body.animations-loaded .projects-grid .project-card:nth-child(3) { transition-delay: 0.3s; }
body.animations-loaded .projects-grid .project-card:nth-child(4) { transition-delay: 0.4s; }
body.animations-loaded .projects-grid .project-card:nth-child(5) { transition-delay: 0.5s; }

/* Анимация для отзывов */
body.animations-loaded .reviews-grid .review-card:nth-child(1) { transition-delay: 0.1s; }
body.animations-loaded .reviews-grid .review-card:nth-child(2) { transition-delay: 0.2s; }
body.animations-loaded .reviews-grid .review-card:nth-child(3) { transition-delay: 0.3s; }
body.animations-loaded .reviews-grid .review-card:nth-child(4) { transition-delay: 0.4s; }
body.animations-loaded .reviews-grid .review-card:nth-child(5) { transition-delay: 0.5s; }
body.animations-loaded .reviews-grid .review-card:nth-child(6) { transition-delay: 0.6s; }

/* Анимация для FAQ */
body.animations-loaded .faq-list .faq-item:nth-child(1) { transition-delay: 0.1s; }
body.animations-loaded .faq-list .faq-item:nth-child(2) { transition-delay: 0.2s; }
body.animations-loaded .faq-list .faq-item:nth-child(3) { transition-delay: 0.3s; }
body.animations-loaded .faq-list .faq-item:nth-child(4) { transition-delay: 0.4s; }
body.animations-loaded .faq-list .faq-item:nth-child(5) { transition-delay: 0.5s; }

/* Анимация для заголовков секций */
body.animations-loaded .section-header {
    transition-delay: 0.1s;
}

/* Анимация для героя */
body.animations-loaded .hero-title { transition-delay: 0.2s; }
body.animations-loaded .hero-subtitle { transition-delay: 0.4s; }
body.animations-loaded .price-badge { transition-delay: 0.6s; }

/* Отключение анимаций для пользователей, предпочитающих уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    body.animations-loaded .service-card,
    body.animations-loaded .project-card,
    body.animations-loaded .review-card,
    body.animations-loaded .stat-card,
    body.animations-loaded .faq-item,
    body.animations-loaded .section-header,
    body.animations-loaded .hero-title,
    body.animations-loaded .hero-subtitle,
    body.animations-loaded .price-badge {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* END BLOCK: ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ДЛЯ JS */

/* ============================================
   БЛОК: PORTFOLIO
   ============================================ */

/* Стили для портфолио */
.portfolio-section {
    padding: var(--section-padding);
    background: var(--light-bg-1);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.portfolio-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.portfolio-view-btn {
    padding: 0.75rem 1.5rem;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-medium);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portfolio-view-btn:hover {
    background: var(--brand-secondary);
    transform: scale(1.05);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.portfolio-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.portfolio-location,
.portfolio-year,
.portfolio-status {
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-small);
}

.portfolio-location {
    background: var(--brand-light);
    color: var(--brand-primary);
}

.portfolio-year {
    background: var(--light-bg-2);
    color: var(--text-secondary);
}

.portfolio-status.completed {
    background: #e6f7ef;
    color: var(--brand-primary);
}

.portfolio-status.in-progress {
    background: #fff3e6;
    color: #ff9900;
}

.portfolio-description {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}
