:root {
    --forest-green: #1b3a24;
    --forest-light: #2b5638;
    --sand-beige: #f4f1ea;
    --sand-dark: #e2ded4;
    --text-dark: #222222;
    --text-gray: #666666;
    --white: #ffffff;
    --accent: #c29b38;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(230, 201, 125, 0.32), transparent 24%),
        radial-gradient(circle at bottom right, rgba(25, 86, 55, 0.18), transparent 30%),
        linear-gradient(135deg, #f3eedf 0%, #e5ddd0 28%, #f9f4ea 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    animation: floatGlow 16s ease-in-out infinite alternate;
}

body::before {
    left: -140px;
    top: 80px;
    background: rgba(212, 170, 82, 0.22);
}

body::after {
    right: -90px;
    bottom: 100px;
    background: rgba(34, 89, 56, 0.16);
    animation-delay: 2s;
}

@keyframes floatGlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(30px, -20px, 0) scale(1.12);
    }
    100% {
        transform: translate3d(-18px, 18px, 0) scale(1.06);
    }
}

header, .about-section, footer {
    position: relative;
    z-index: 1;
}

/* Навігація */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 40, 28, 0.72);
    backdrop-filter: blur(18px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 40px rgba(16, 35, 24, 0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 26px;
}

.logo {
    color: var(--white);
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 18px rgba(255, 209, 109, 0.3);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(194, 155, 56, 0.35);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d9b866 0%, #c39a3d 45%, #b58321 100%);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    box-shadow: 0 10px 28px rgba(194, 155, 56, 0.28);
    position: relative;
    overflow: hidden;
    animation: goldPulse 3.5s ease-in-out infinite;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.45), transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.9s ease;
    animation: btnShine 2.8s ease-in-out infinite;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 34px rgba(194, 155, 56, 0.36);
    filter: brightness(1.05);
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--forest-green);
}

/* Головний екран (Hero) */
.hero {
    min-height: 100vh;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    text-align: center;
    color: var(--white);
    padding: 150px 20px 120px;
    background: linear-gradient(135deg, rgba(11, 28, 20, 0.72), rgba(14, 54, 35, 0.52)),
        url('https://images.unsplash.com/photo-1510312305653-8ed496efae75?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.7;
    animation: heroFloat 14s ease-in-out infinite alternate;
}

.hero::before {
    width: 360px;
    height: 360px;
    background: rgba(187, 149, 71, 0.22);
    left: 10%;
    top: 15%;
}

.hero::after {
    width: 420px;
    height: 420px;
    background: rgba(92, 145, 101, 0.18);
    right: 8%;
    bottom: 12%;
    animation-delay: 2s;
}

@keyframes heroFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(30px, -20px, 0) scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 20px;
    margin: 0 auto;
    transform: translate3d(0, 0, 0);
    transition: transform 0.18s ease-out;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* Форма швидкого пошуку */
.quick-search {
    position: relative;
    z-index: 10;
    width: min(100%, 980px);
    margin: 0 auto;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    padding: 20px 30px;
    border-radius: 18px;
    box-shadow: 0 22px 45px rgba(12, 21, 16, 0.18);
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(27,58,36,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: quickSearchIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quick-search::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 40%, transparent 70%);
    transform: translateX(-120%);
    animation: quickSearchShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.quick-search:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 52px rgba(12, 21, 16, 0.24);
}

.search-field {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    animation: fieldReveal 0.75s ease both;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.search-field input, .search-field select {
    padding: 10px 12px;
    border: 1px solid rgba(27,58,36,0.12);
    border-radius: 10px;
    font-family: inherit;
    outline: none;
    background: rgba(244, 241, 234, 0.9);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.search-field input:focus, .search-field select:focus {
    border-color: rgba(194, 155, 56, 0.7);
    box-shadow: 0 0 0 4px rgba(194, 155, 56, 0.12);
    transform: translateY(-1px);
    background: rgba(255,255,255,0.98);
}

.quick-search .btn {
    flex-shrink: 0;
    margin-left: auto;
    min-width: 180px;
    padding: 18px 34px;
    border-radius: 999px;
    font-size: clamp(1.05rem, 1.6vw, 1.8rem);
}

@keyframes quickSearchIn {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes quickSearchShine {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes fieldReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 10px 28px rgba(194, 155, 56, 0.28), 0 0 0 rgba(194, 155, 56, 0.2);
    }
    50% {
        box-shadow: 0 14px 36px rgba(194, 155, 56, 0.38), 0 0 18px rgba(194, 155, 56, 0.2);
    }
}

@keyframes btnShine {
    0% {
        transform: translateX(-140%);
        opacity: 0.2;
    }
    35% {
        opacity: 1;
    }
    100% {
        transform: translateX(140%);
        opacity: 0.2;
    }
}

/* Секція «Про нас» */
.about-section {
    padding: 90px 20px 90px;
    max-width: 1280px;
    margin: 0 auto;
}

.about-intro {
    position: relative;
    max-width: 1040px;
    margin: 0 auto 60px;
    padding: 52px 42px 38px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255,255,255,0.66), rgba(245,239,230,0.88));
    border: 1px solid rgba(27, 58, 36, 0.08);
    box-shadow: 0 25px 60px rgba(25, 48, 34, 0.09), inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
}

.about-intro::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -8%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194, 155, 56, 0.24), transparent 65%);
    animation: slowPulse 10s ease-in-out infinite alternate;
}

.about-intro::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 58, 36, 0.12), transparent 68%);
    animation: slowPulse 13s ease-in-out infinite alternate;
}

.floating-badge {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(194, 155, 56, 0.45);
    background: rgba(194, 155, 56, 0.08);
    color: var(--forest-green);
    font-size: 0.72rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 0 18px rgba(194, 155, 56, 0.18);
}

.about-section .section-title {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    font-size: clamp(2.3rem, 3vw, 3.4rem);
    color: var(--forest-green);
    margin-bottom: 28px;
    padding-bottom: 12px;
}

.about-section .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 120px;
    height: 4px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(194, 155, 56, 0.45);
}

.story-text {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-gray);
}

.story-text p {
    margin-bottom: 18px;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.8;
}

@keyframes slowPulse {
    0% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.7; }
    100% { transform: scale(1.18) translate3d(16px, -12px, 0); opacity: 1; }
}

.reviews-title {
    margin-top: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(246,240,230,0.8));
    backdrop-filter: blur(14px);
    padding: 30px 26px;
    border-radius: 24px;
    border: 1px solid rgba(27, 58, 36, 0.08);
    box-shadow: 0 18px 40px rgba(23, 45, 31, 0.08);
    text-align: center;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
    overflow: hidden;
    transform-style: preserve-3d;
}

.about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(194, 155, 56, 0.12), rgba(27, 58, 36, 0.04), rgba(255,255,255,0.2));
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.about-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-3deg) scale(1.01);
    border-color: rgba(194, 155, 56, 0.45);
    box-shadow: 0 26px 50px rgba(23, 45, 31, 0.14);
}

.about-card:hover::before {
    transform: translateX(100%);
}

.about-card i {
    position: relative;
    z-index: 1;
    font-size: 42px;
    color: var(--forest-green);
    margin-bottom: 20px;
    text-shadow: 0 8px 20px rgba(27, 58, 36, 0.12);
}

.about-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    color: var(--forest-green);
}

.about-card p {
    position: relative;
    z-index: 1;
}

/* Каталог та фільтри */
.catalog-section {
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-grid {
    position: relative;
    z-index: 1;
    margin-top: 34px;
}

.review-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(247,242,233,0.8));
    border: 1px solid rgba(31, 52, 38, 0.08);
    border-radius: 28px;
    padding: 30px 28px 26px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.review-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(194, 155, 56, 0.1), rgba(24, 92, 61, 0.04), rgba(255,255,255,0.35));
    transform: translateX(-100%);
    transition: transform 0.9s ease;
}

.review-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-3deg);
    border-color: rgba(194, 155, 56, 0.42);
    box-shadow: 0 30px 60px rgba(17, 35, 25, 0.14);
}

.review-card:hover::before {
    transform: translateX(110%);
}

.review-card > * {
    position: relative;
    z-index: 1;
}

.review-card h4 {
    color: var(--forest-green);
    font-size: 1.05rem;
    line-height: 1.3;
}

.review-card p {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.8;
    font-size: 1.02rem;
}

.review-card img {
    width: 64px;
    height: 64px;
    border: 3px solid rgba(194, 155, 56, 0.7);
    box-shadow: 0 12px 25px rgba(194, 155, 56, 0.2);
    object-fit: cover;
    border-radius: 50%;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--forest-green);
    color: var(--white);
    border-color: var(--forest-green);
}

.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.house-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.house-card:hover {
    transform: translateY(-5px);
}

.house-slider {
    position: relative;
    height: 250px;
}

.house-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.house-info {
    padding: 20px;
}

.house-info h3 {
    font-size: 20px;
    color: var(--forest-green);
    margin-bottom: 10px;
}

.house-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    background: var(--sand-beige);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-gray);
}

.house-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--sand-dark);
    padding-top: 15px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--forest-green);
}

/* Модальне вікно / Калькулятор */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.calc-group {
    margin-bottom: 20px;
}

.calc-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.calc-group input[type="date"], .calc-group input[type="text"], .calc-group input[type="tel"], .calc-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--sand-dark);
    border-radius: 6px;
    font-family: inherit;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 20px;
    text-align: right;
}

/* Контакти та карта */
.contacts-section {
    padding: 150px 20px 80px;
    max-width: 1220px;
    margin: 0 auto;
}

.contact-hero {
    text-align: center;
    margin-bottom: 32px;
}

.contact-hero .section-title {
    display: block;
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    color: var(--forest-green);
    margin: 18px 0 12px;
    position: relative;
    display: inline-block;
}

.contact-hero .section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 18px rgba(194, 155, 56, 0.4);
}

.contact-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 1.08rem;
    line-height: 1.8;
}

.contact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin: 26px 0 38px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(27,58,36,0.07);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(22, 39, 31, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 46px rgba(22,39,31,0.12);
}

.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(194,155,56,0.16), rgba(27,58,36,0.07));
    color: var(--forest-green);
    font-size: 1.1rem;
}

.info-card label {
    display: block;
    color: var(--text-gray);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    margin-bottom: 6px;
}

.info-card a,
.info-card span {
    color: var(--forest-green);
    text-decoration: none;
    font-weight: 600;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.map-container {
    position: relative;
    height: 460px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(27,58,36,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.map-container:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.12);
}

.map-overlay {
    position: absolute;
    left: 22px;
    top: 22px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(12, 26, 19, 0.72);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
}

.map-overlay strong {
    font-size: 1.05rem;
}

.map-overlay span {
    font-size: 0.79rem;
    opacity: 0.85;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(1.18) contrast(1.04);
}

.contact-form {
    background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(246,240,230,0.82));
    padding: 30px 28px;
    border-radius: 28px;
    border: 1px solid rgba(27,58,36,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 48px rgba(0,0,0,0.12);
}

.form-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.form-header h3 {
    color: var(--forest-green);
    font-size: 2rem;
    line-height: 1.1;
}

.form-header span {
    color: var(--accent);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(27,58,36,0.12);
    border-radius: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(194, 155, 56, 0.6);
    box-shadow: 0 0 0 4px rgba(194, 155, 56, 0.12), inset 0 1px 0 rgba(255,255,255,0.5);
}

.form-group input.success {
    border-color: #2e7d32;
    background-color: #f1f8f1;
}

.form-group input.error {
    border-color: #c62828;
    background-color: #fde8e8;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Футер */
footer {
    background: var(--forest-green);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

@media (max-width: 980px) {
    .nav-container {
        padding: 18px 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 130px;
    }

    .quick-search {
        width: min(100%, 860px);
        padding: 18px 18px;
    }
}

@media (max-width: 720px) {
    .hero {
        min-height: 780px;
        padding: 120px 16px 72px;
    }

    .hero-content {
        width: 100%;
        padding: 0;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
        line-height: 1.08;
    }

    .hero p {
        font-size: 1rem;
        max-width: 560px;
        margin: 0 auto 20px;
    }

    .quick-search {
        flex-wrap: wrap;
        gap: 12px;
        border-radius: 22px;
        padding: 16px 14px;
    }

    .search-field {
        flex: 1 1 100%;
    }

    .quick-search .btn {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        padding: 16px 20px;
        font-size: 1.1rem;
    }

    .about-section,
    .catalog-section,
    .contacts-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .about-grid,
    .houses-grid,
    .contact-stats,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.4rem;
        letter-spacing: 1.4px;
    }

    .nav-links a {
        font-size: 0.92rem;
    }

    .btn {
        width: 100%;
        max-width: 310px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 14px 12px;
    }

    .nav-links {
        gap: 10px 14px;
    }

    .nav-links a {
        font-size: 0.86rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .search-field input,
    .search-field select {
        padding: 12px 10px;
    }

    .quick-search {
        width: 100%;
    }

    .about-card,
    .review-card,
    .info-card,
    .contact-form {
        border-radius: 18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    footer {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 390px) {
    body {
        overflow-x: hidden;
    }

    .nav-container {
        padding: 12px 10px;
        gap: 8px;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px 16px;
    }

    .nav-links a {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .hero {
        min-height: 720px;
        padding: 110px 12px 54px;
    }

    .hero h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
        line-height: 1.08;
        letter-spacing: 0;
        word-break: break-word;
    }

    .hero p {
        font-size: 0.93rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .quick-search {
        padding: 12px 10px;
        gap: 10px;
        border-radius: 18px;
    }

    .search-field {
        flex-basis: 100%;
    }

    .search-field label {
        font-size: 11px;
    }

    .search-field input,
    .search-field select {
        min-height: 46px;
        font-size: 16px;
        padding: 12px 11px;
    }

    .quick-search .btn {
        min-height: 48px;
        font-size: 1.02rem;
        padding: 12px 18px;
    }

    .floating-badge {
        letter-spacing: 0.12rem;
        font-size: 0.64rem;
        padding: 8px 14px;
    }

    .about-section,
    .catalog-section,
    .contacts-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-hero .section-title,
    .about-section .section-title,
    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.1;
    }

    .story-text p {
        font-size: 0.96rem;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .form-header h3 {
        font-size: 1.7rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 14px;
    }

    .contact-form {
        padding: 20px 14px;
    }

    .btn {
        max-width: none;
        width: 100%;
        font-size: 1rem;
    }

    .info-card {
        padding: 16px 14px;
    }

    .review-card,
    .about-card {
        padding: 20px 16px;
    }
}