/* style.css - основной стиль сайта Голдхоум (исправленная и упорядоченная версия) */

/* ========== 1. ПЕРЕМЕННЫЕ И ОБЩИЕ СБРОСЫ ========== */
:root {
    --primary: #3bc742;
    --primary-dark: #318337;
    --primary-light: #76d679;
    --black: #000000;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --glow-green: 0 0 30px rgb(73, 201, 79), 0 0 50px rgba(100, 240, 107, 0.726);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    line-height: 1.5;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== 2. HEADER (ШАПКА) ========== */
.header {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
    padding: 0.3rem 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-height: 60px;

}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Логотип */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.25rem;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.header--scrolled .logo {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.8);
    position: absolute;
    pointer-events: none;
    /* можно также display: none, но так плавнее */
}

.logo-img {
    height: 75px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo:hover {
    transform: translateY(-3px) scale(1.02);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 4px 8px rgba(46, 125, 50, 0.4));
    animation: subtle-pulse 0.6s ease;
}

.logo:hover .logo-text {
    color: var(--primary-light);
    text-shadow: 0 0 5px rgba(46, 125, 50, 0.3);
}

@keyframes subtle-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* Десктопная навигация */
.desktop-nav {
    flex: 1;
    margin: 0 1rem;
}

.desktop-nav .nav__list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav__list {
    list-style: none;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-shadow: var(--glow-green);
}

.header--scrolled .nav__link {
    font-size: 1.1rem;
    padding-bottom: 0.1rem;
}

/* Десктопные контакты в шапке (видимы на больших экранах) */
.desktop-only {
    display: flex;
}

.header-contacts {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.desktop-contacts-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.header--scrolled .desktop-contacts-wrapper {
    flex-direction: row;
    /* вместо колонки — строка */
    align-items: center;
    /* вертикальное выравнивание по центру */
    justify-content: flex-end;
    /* прижимаем иконки к правому краю */
}

.phone-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    /* отступ между телефонами */
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    /* плавность для всех свойств */
}

.phone-text-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    /* чтобы номер не переносился */
}

.phone-text-link:first-child {
    margin-left: 0;
}

.phone-text-link:hover {
    color: var(--primary);
}

.header--scrolled .phone-text-group {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.header--scrolled .phone-icon-group {
    display: inline-block !important;
}

.phone-icon-group {
    display: none;
    align-items: center;
}

.icon-link {
    display: inline-block;
    line-height: 1;
    transition: transform 0.2s ease;
}

.icon-link img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: filter 0.2s ease;
}

.icon-link:hover {
    transform: scale(1.2);
}

.icon-link:hover img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgb(126, 250, 132)) drop-shadow(0 0 20px rgba(112, 221, 117, 0.836));
}

/* Бургер-кнопка (только для мобильных) */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.burger-btn span {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Мобильное выезжающее меню */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    display: flex;
    transform: translateX(0);
}

.mobile-nav .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-contacts {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Мобильные иконки в шапке (показываются только на мобильных) */
.mobile-header-contacts {
    display: none;
}

@media (max-width: 768px) {
    .header--scrolled .logo {
        opacity: 0.7;
        transform: scale(0.85);
        visibility: visible;
        position: relative;
        /* отменяем absolute из десктопной версии */
        pointer-events: auto;
        margin: 0 auto;
        /* убираем translateY и другие смещения */
    }

    .header--scrolled .logo-text {
        font-size: 0.9rem;
        /* при желании чуть уменьшаем текст */
    }
}


/* ========== 3. ГЛАВНЫЙ СЛАЙДЕР ========== */
.hero-slider {
    height: 80vh;
    min-height: 500px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* ========== 4. КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--outline:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.5);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* ========== 5. ОБЩИЕ СЕКЦИИ ========== */
.section-padding {
    padding: 1rem 0;
}

.bg-light {
    background-color: var(--gray);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background-color: var(--primary);
    margin-top: 0.5rem;
}

/* ========== 6. О КОМПАНИИ ========== */
.about__content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about__text {
    flex: 2;
    font-size: 1.1rem;
}

.about__stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-gray);
}

/* ========== 7. КАТАЛОГ (ФИЛЬТРЫ + СЕТКА) ========== */
.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.catalog-filters-sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filter-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.filter-group {
    margin-bottom: 1.2rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-range input {
    width: 45%;
    text-align: center;
}

.filter-range span {
    color: var(--dark-gray);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding-bottom: 1.5rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary);
}

.project-card h3 {
    margin: 1rem 0 0.5rem;
}

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* ========== 8. ПРОИЗВОДСТВО ========== */
.teaser-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.teaser-content {
    flex: 1;
}

.teaser-image {
    flex: 1;
}

.teaser-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.teaser-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.production-block {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.production-block.reverse {
    flex-direction: row-reverse;
}

.production-text {
    flex: 1;
}

.production-image {
    flex: 1;
}

.production-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.production-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: var(--gray);
    border-radius: 8px;
    border-bottom: 4px solid var(--primary);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* ========== 9. НОВОСТИ ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-light);
}

.news-card.full {
    grid-column: 1 / -1;
}

.news-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.news-card h3 {
    margin-bottom: 0.75rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: var(--transition);
}

.read-more:hover {
    text-decoration: underline;
    text-shadow: var(--glow-green);
    transform: translateX(3px);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-detail .news-content {
    max-width: 900px;
    margin: 0 auto;
}

.news-main-image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.news-video video {
    width: 100%;
    border-radius: 8px;
}

.news-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.news-back {
    text-align: center;
    margin-top: 2rem;
}

/* ========== 10. КОНТАКТЫ ========== */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contacts__list {
    list-style: none;
    margin: 2rem 0;
}

.contacts__list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    transition: var(--transition);
}

.contacts__list li:hover {
    transform: translateX(5px);
}

.contacts__list li::before {
    content: "✔";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.contacts__list li:hover::before {
    text-shadow: var(--glow-green);
}

.contacts__list a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contacts__list a:hover {
    text-decoration: underline;
    text-shadow: var(--glow-green);
}

.contacts__map iframe {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    transition: var(--transition);
}

.contacts__map iframe:hover {
    box-shadow: var(--shadow-md);
}

.contacts__additional {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* ========== 11. ДЕТАЛЬНАЯ СТРАНИЦА ДОМА ========== */
.house-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.house-gallery {
    border-radius: 8px;
    overflow: hidden;
}

.house-gallery .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.house-gallery .swiper-slide img:hover {
    transform: scale(1.02);
}

.house-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.house-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.house-specs {
    list-style: none;
    margin-bottom: 1.5rem;
}

.house-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.house-description {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.house-description h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.house-description p {
    line-height: 1.6;
}

.house-plans {
    margin-top: 2rem;
    text-align: center;
}

.house-plans h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.plans-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.plans-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    max-height: 500px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.plans-gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.house-plan img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.house-plan img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.house-back {
    text-align: center;
    margin-top: 2rem;
}

/* Переключатель цен */
.house-prices-switch {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.price-slider-container {
    margin: 1rem 0;
}

.price-slider {
    width: 100%;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.price-label {
    font-size: 0.9rem;
    text-align: center;
    flex: 1;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 6px;
    transition: background 0.2s;
    background: white;
}

.price-label.active {
    background: var(--primary);
    color: white;
}

.selected-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 0.8rem;
    text-align: center;
}

.price-description {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    border-left: 3px solid var(--primary);
}

/* ========== 12. СТРАНИЦЫ (ШАПКА) ========== */
.page-header {
    background: linear-gradient(135deg, var(--black) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ========== 13. FOOTER ========== */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding-top: 3rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__col h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 0.5rem;
}

.footer__col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer__col a:hover {
    color: var(--primary);
    text-shadow: var(--glow-green);
}

.footer__bottom {
    background-color: #111;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* ========== 14. LIGHTBOX (МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ) ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========== 15. COOKIE CONSENT ========== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    color: var(--white);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-top: 2px solid var(--primary);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* ========== 16. ПЛАВАЮЩАЯ КНОПКА ОБРАТНОЙ СВЯЗИ (FEEDBACK) ========== */
.feedback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.3s, filter 0.3s;
    z-index: 999;
    /* Постоянная пульсация */
    animation: pulse 1.5s infinite ease-in-out;
}

/* Пульсация */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 199, 66, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 199, 66, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 199, 66, 0);
        transform: scale(1);
    }
}

/* Подпрыгивание (будет добавляться JS) */
.feedback-btn.bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.feedback-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    /* принудительно одна строка */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    /* вертикальное выравнивание текста */
    z-index: 1000;
}

.feedback-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent var(--primary);
}

.feedback-btn:hover .feedback-label {
    opacity: 1;
    visibility: visible;
}

/* На мобильных скрываем подпись */
@media (max-width: 768px) {
    .feedback-label {
        display: none;
    }
}

.feedback-btn:hover {
    transform: scale(1.5);
    filter: brightness(1.2);
    /* делает кнопку ярче */
    background: var(--primary);
    animation: none;
    /* оставляем тот же цвет, яркость даст filter */
}

.feedback-btn span {
    font-size: 28px;
    color: white;
}

.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.feedback-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.feedback-close:hover {
    color: var(--primary);
}

.feedback-modal-content h3 {
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-size: 1.6rem;
    text-align: center;
}

.feedback-modal-content .form-group {
    margin-bottom: 1.2rem;
}

.feedback-modal-content .form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.feedback-modal-content .form-group input,
.feedback-modal-content .form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.2s;
}

.feedback-modal-content .form-group input:focus,
.feedback-modal-content .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.feedback-modal-content .checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-modal-content .checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.feedback-modal-content .checkbox input {
    width: auto;
}

.consent-warning {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    background: #f8d7da;
    padding: 0.4rem;
    border-radius: 6px;
    text-align: center;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

/* ========== 17. АДАПТИВНОСТЬ ========== */
@media (max-width: 1100px) {
    .container {
        padding: 0 1rem;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .nav__link {
        font-size: 1rem;
    }

    .nav__list {
        gap: 1rem;
    }

    .logo-img {
        height: 60px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .header__container {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {

    /* Переключение на мобильную версию */
    .desktop-nav,
    .desktop-only {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .mobile-header-contacts {
        display: flex;
        gap: 0.8rem;
        align-items: center;
    }

    .mobile-header-contacts .icon-link img {
        width: 22px;
        height: 22px;
    }

    .header__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 70px;
        position: relative;
    }

    .logo {
        position: static;
        transform: none;
        margin: 0;
        flex-shrink: 1;
        text-align: center;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav__link {
        font-size: 1rem;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about__content,
    .teaser-wrapper,
    .production-block,
    .production-block.reverse,
    .contacts__wrapper,
    .house-detail__grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    /* каталог */
    .catalog-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .catalog-filters-sidebar {
        position: static;
        top: 0;
    }

    .checkbox-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .plans-gallery img {
        width: 100%;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 0.3rem 0.8rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== АККОРДЕОН О КОМПАНИИ ========== */
/* ========== АККОРДЕОН О КОМПАНИИ ========== */
.about-accordion {
    margin-top: 2rem;
}

.accordion-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    background: var(--white);
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
    border-left: 4px solid var(--primary);
    position: relative;
}

.accordion-header::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.accordion-item.active .accordion-header::after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-header:hover {
    background: #f9f9f9;
}

/* Анимация контента */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.3s ease 0.1s;
    background: var(--white);
    border-top: 0 solid #eee;
}

.accordion-item.active .accordion-content {
    max-height: 600px;
    /* подберите под своё содержимое, можно больше */
    opacity: 1;
    border-top-width: 1px;
    transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.3s ease 0.1s, border-top-width 0.1s linear 0.4s;
}

/* Внутренняя раскладка (текст + картинка) */
.accordion-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0 1.5rem;
}

.accordion-text {
    flex: 2;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-gray);
    padding-bottom: 1rem;
}

.accordion-text p {
    text-indent: 1.5em;
    /* или 2em, 25px — на ваш вкус */
    margin: 0 0 0.75em 0;
    /* убираем лишние отступы, оставляем нижний */
}

.accordion-image {
    flex: 1;
    text-align: center;
    align-self: center;
}

.accordion-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, opacity 0.3s ease 0.2s;
    opacity: 0;
    transform: translateX(20px);
}

.accordion-item.active .accordion-image img {
    opacity: 1;
    transform: translateX(0);
}

.accordion-image img:hover {
    transform: scale(1.02);
}

/* На мобильных устройствах картинку скрываем, контент идёт в колонку */
@media (max-width: 768px) {
    .accordion-image {
        display: none;
    }

    .accordion-content {
        display: block;
        padding: 0 1.5rem;
    }

    .accordion-item.active .accordion-content {
        max-height: 800px;
        /* больше места для текста на мобилке */
    }

    .accordion-text {
        padding-bottom: 1rem;
    }

    .desktop-contacts-wrapper {
        display: none;
    }

    /* Переключение на мобильную версию */
    .desktop-nav,
    .desktop-only {
        display: none;
    }

    /* Скрываем десктопный блок с телефонами и иконками */
    .desktop-contacts-wrapper {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .mobile-header-contacts {
        display: flex;
        gap: 0.8rem;
        align-items: center;
    }

    .mobile-header-contacts .icon-link img {
        width: 22px;
        height: 22px;
    }


}

/* ========== ФИКСИРОВАННЫЕ ЯРЛЫЧКИ СОЦСЕТЕЙ СЛЕВА ========== */
.fixed-socials {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--black);
    padding: 0.5rem 0.8rem;
    border-radius: 0 8px 8px 0;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateX(-75%);
    /* скрываем текст, оставляя только иконку */
    width: fit-content;
}

.social-link img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s;
}

.social-link span {
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* При наведении выезжаем и показываем текст */
.social-link:hover {
    transform: translateX(0%);
    background: var(--primary);
}

.social-link:hover span {
    opacity: 1;
    visibility: visible;
}

.social-link:hover img {
    transform: scale(1.1);
}

/* Индивидуальные цвета при наведении (опционально) */
.social-telegram:hover {
    background: #0088cc;
}

.social-max:hover {
    background: #ff5a00;
}

/* На мобильных – можно скрыть или сделать меньше */
@media (max-width: 768px) {
    .fixed-socials {
        top: auto;
        bottom: 80px;
        transform: none;
        flex-direction: row;
        gap: 0.8rem;
        left: 10px;
    }

    .social-link {
        transform: translateX(0);
        padding: 0.4rem;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.7);
    }

    .social-link span {
        display: none;
    }

    .social-link img {
        width: 24px;
        height: 24px;
    }
}

/* Бегущая строка акций */
.ticker-section {
    background: var(--primary-dark);
    color: white;
    padding: 0.7rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-container {
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.ticker-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0 1rem;
    display: inline-block;
}

.ticker-link:hover {
    text-decoration: underline;
}

.ticker-arrow {
    margin-left: 0.5rem;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .ticker-link {
        font-size: 0.8rem;
    }
}

/* Карусель акций */
.promotion-slider-section {
    background: var(--primary-dark);
    color: white;
    padding: 0.7rem 0;
    overflow: hidden;
    position: relative;
}

.promotion-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.promotion-slider {
    position: relative;
    width: 100%;
    min-height: 60px;
}

.promotion-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}

.promotion-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.promotion-slide.prev {
    transform: translateX(-100%);
}

.promotion-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0 1rem;
    text-align: center;
    transition: text-shadow 0.3s;
}

.promotion-link strong {
    font-weight: 800;
}

.promotion-arrow {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.promotion-link:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Анимация подсветки (например, бледное свечение) */
.promotion-slide.active.highlight .promotion-link {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    transition: text-shadow 0.3s;
}

@media (max-width: 768px) {
    .promotion-link {
        font-size: 0.8rem;
    }
}

/* ========== БЛОК ТИПОВ ДОМОВ (ВКЛАДКИ) ========== */
.house-types-tabs {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: var(--gray);
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-btn:hover {
    background: rgba(59, 199, 66, 0.1);
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.tab-text {
    flex: 1;
}

.tab-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tab-text p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tab-text ul {
    margin: 1rem 0 1.5rem;
    list-style: none;
}

.tab-text li {
    margin-bottom: 0.5rem;
}

.tab-image {
    flex: 1;
    text-align: center;
}

.tab-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.tab-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid #ddd;
    }

    .tab-btn.active::after {
        display: none;
    }

    .tab-btn.active {
        background: var(--primary-light);
        color: white;
    }

    .tab-inner {
        flex-direction: column;
    }

    .tab-text {
        text-align: center;
    }

    .tab-image img {
        max-width: 80%;
    }
}

/* ========== ВЫПАДАЮЩЕЕ МЕНЮ НАВИГАЦИИ ========== */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--black);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 110;
    list-style: none;
    padding: 0.5rem 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: var(--primary-dark);
    color: white;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .nav-item.dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        background: rgba(0, 0, 0, 0.9);
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin-left: 1rem;
    }

    .nav-item.dropdown.open .dropdown-menu {
        visibility: visible;
        max-height: 300px;
        padding: 0.5rem 0;
    }

    .dropdown-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
}

#promotion,
#newslatest,
#services,
#popular-projects,
#building {
    scroll-margin-top: 70px;
}

.works-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.works-gallery img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.works-gallery img:hover {
    transform: scale(1.02);
}