* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1A1A1A;
    background: #FFFFFF;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.header {
    background: #FFFFFF;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 31px;
    font-weight: 700;
    color: #1FA85A;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(54%) sepia(22%) saturate(1290%) hue-rotate(94deg) brightness(95%) contrast(90%);
}

.nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #1A1A1A;
    font-weight: 500;
    transition: 0.25s;
}

.nav a:hover {
    color: #1FA85A;
}

/* VIDEO BACKGROUND */
.hero {
    position: relative;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: -1;
}

/* SOUND BUTTON */
/* Контейнер кнопки */
.sound-btn-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
}

/* Кнопка */
.sound-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.95);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
}

/* Иконка динамика */
.sound-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Пульсация */
.sound-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    top: 0;
    left: 0;
    animation: pulse 1.8s infinite ease-out;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Включённый звук — зелёная обводка */
.sound-btn.sound-on {	
    border-color: #4caf50;
}

/* Hover */
.sound-btn:hover {
    background: rgba(0,0,0,0.55); /* тот же фон, что и без hover */
    border-color: rgba(255,255,255,0.95); /* та же обводка */
}

/* FADE-IN TEXT */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 700px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* BUTTONS */
.btn {
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: 0.3s;
}

.primary {
    background: #1FA85A;
    color: white;
}

.primary:hover {
    background: #19914D;
}

.outline {
    border: 2px solid white;
    color: white;
}

.outline:hover {
    background: white;
    color: #1FA85A;
}

.small {
    padding: 8px 18px;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.center {
    text-align: center;
    margin-bottom: 40px;
}

/* CARDS */
.card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

/* GRID */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* GALLERY */
.gallery-swiper {
    width: 100%;
    height: 420px;
    border-radius: 12px;
}

.gallery-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.swiper-button-prev,
.swiper-button-next {
    color: #1FA85A;
}

.swiper-pagination-bullet-active {
    background: #1FA85A;
}

/* FLATS */
.price {
    color: #1FA85A;
}

/* CONTACTS */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.map-card iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 12px;
}

/* FORM */
.contact-form {
    display: grid;
    gap: 15px;
}

input,
select {
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: 0.2s;
}

input:focus,
select:focus {
    border-color: #1FA85A;
}

/* WIDE FORM BLOCK */
.form-wide {
    background: white;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 900px;
    margin: auto;
}

.form-wide h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
}

.form-wide .contact-form {
    display: grid;
    gap: 18px;
}

.form-wide input,
.form-wide select {
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.form-wide button {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* FOOTER */
.footer {
    background: #1FA85A;
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

/* ADAPTIVE */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 32px;
    }
    .nav {
        display: none;
    }
}

/* Фото планировок */
.plan-img {
    width: 45%;
    height: 145px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

/* Увеличение при наведении */
.plan-img:hover {
    transform: scale(1.05);
}

/* Lightbox фон */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Lightbox активен */
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Большое изображение */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.card p {
    margin-bottom: 10px;   /* расстояние между строками */
    line-height: 1.5;      /* высота строки */
}

.section h2 {
    margin-top: 60px;
}
/* Контейнер карты */
.map-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

/* Сама карта */
.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;

    /* Премиум‑стиль */
    filter: grayscale(40%) brightness(90%) contrast(115%) saturate(90%);
    transition: 0.4s ease;
}

/* При наведении — карта оживает */
.map-frame:hover {
    filter: grayscale(0%) brightness(100%) contrast(120%) saturate(110%);
}

/* Кастомный зелёный маркер поверх карты */
.map-marker {
    position: absolute;
    width: 34px;
    height: 34px;
    background: #4caf50;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    z-index: 10;
    animation: markerPop 0.4s ease-out;
}

/* Анимация появления маркера */
@keyframes markerPop {
    0% { transform: translate(-50%, -80%) scale(0.4); opacity: 0; }
    100% { transform: translate(-50%, -100%) scale(1); opacity: 1; }
}

/* Пульсация вокруг маркера */
.map-marker::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(76, 175, 80, 0.6);
    top: -3px;
    left: -3px;
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Градиентная кнопка в стиле GREEN CITY */
.btn-gradient {
    background: linear-gradient(135deg, #1FA85A 0%, #16924C 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    width: 100%;
}

/* Hover — чуть ярче и глубже */
.btn-gradient:hover {
    background: linear-gradient(135deg, #22B965 0%, #138544 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 168, 90, 0.35);
}


