/* ============================================
   Солнечная Поляна — Landing Page Styles
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #333;
    background: #fdf8f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .25s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- TOP BAR ---------- */
.top-bar {
    background: #2d6a2e;
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.top-bar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.top-bar__link {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar__link:hover {
    color: #c8e6c9;
}

/* ---------- HEADER ---------- */
.header {
    background: #fdf8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

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

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

.header__logo-icon {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    display: block;
}

.header__logo-subtitle {
    font-size: 12px;
    color: #888;
    display: block;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    position: relative;
    padding: 4px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4CAF50;
    transition: width .3s;
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
    width: 100%;
}

.header__nav-link:hover {
    color: #2d6a2e;
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: .3s;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- HERO ---------- */
.hero {
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero__content {
    flex: 1;
    min-width: 0;
}

.hero__label {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: #2d4a1a;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

.hero__label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 50px;
    background: #4CAF50;
    border-radius: 2px;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 900;
    color: #1a3a0a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__leaf {
    font-size: 36px;
    vertical-align: middle;
}

.hero__location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.hero__btn {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 40px;
    border-radius: 40px;
    transition: background .3s, transform .3s, box-shadow .3s;
    box-shadow: 0 4px 20px rgba(76,175,80,.3);
}

.hero__btn:hover {
    background: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(76,175,80,.45);
    color: #fff;
}

.hero__visual {
    flex: 1;
    position: relative;
    min-width: 0;
}

.hero__house {
    position: relative;
    text-align: center;
}

.hero__house-img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,.12));
}

.hero__floating-leaf {
    position: absolute;
    font-size: 24px;
    animation: floatLeaf 6s ease-in-out infinite;
}

.hero__floating-leaf--1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.hero__floating-leaf--2 {
    bottom: 30%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes floatLeaf {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

.hero__info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.hero__card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    transition: box-shadow .3s;
}

.hero__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.hero__card-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__card-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #555;
    margin-top: 4px;
}

/* ---------- SECTION TITLE ---------- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #1a3a0a;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4CAF50;
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ---------- ADVANTAGES ---------- */
.advantages {
    padding: 80px 0;
    background: #fff;
}

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

.advantages__item {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    transition: transform .3s, box-shadow .3s;
    background: #fdf8f0;
}

.advantages__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.advantages__icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantages__name {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.advantages__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ---------- VIDEO ---------- */
.video {
    padding: 80px 0;
    background: #fdf8f0;
}

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

.video__placeholder {
    position: relative;
    background: linear-gradient(135deg, #2d6a2e 0%, #4CAF50 100%);
    border-radius: 16px;
    padding: 120px 40px;
    text-align: center;
    cursor: pointer;
    transition: transform .3s;
    overflow: hidden;
}

.video__placeholder:hover {
    transform: scale(1.02);
}

.video__play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: background .3s;
}

.video__placeholder:hover .video__play-btn {
    background: rgba(255,255,255,.35);
}

.video__caption {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

/* ---------- REVIEWS ---------- */
.reviews {
    padding: 80px 0;
    background: #fff;
}

.reviews__slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.reviews__track {
    display: flex;
    transition: transform .5s ease;
}

.reviews__item {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.reviews__stars {
    color: #FFB300;
    font-size: 24px;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.reviews__text {
    font-size: 18px;
    font-style: italic;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.reviews__author {
    font-size: 15px;
    font-weight: 600;
    color: #2d6a2e;
}

.reviews__controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.reviews__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    background: transparent;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s, color .3s;
}

.reviews__btn:hover {
    background: #4CAF50;
    color: #fff;
}

/* ---------- CONTACTS ---------- */
.contacts {
    padding: 80px 0;
    background: #fdf8f0;
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacts__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts__input,
.contacts__textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: border-color .3s;
}

.contacts__input:focus,
.contacts__textarea:focus {
    border-color: #4CAF50;
}

.contacts__textarea {
    resize: vertical;
    min-height: 80px;
}

.contacts__submit {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background .3s, transform .2s;
    box-shadow: 0 4px 16px rgba(76,175,80,.3);
}

.contacts__submit:hover {
    background: #388E3C;
    transform: translateY(-2px);
}

.contacts__privacy {
    font-size: 12px;
    color: #999;
    text-align: center;
}

.contacts__privacy a {
    color: #4CAF50;
    text-decoration: underline;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 8px;
}

.contacts__info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
}

.contacts__info-item strong {
    display: block;
    color: #222;
    margin-bottom: 2px;
}

.contacts__info-item a {
    color: #4CAF50;
}

.contacts__info-item a:hover {
    text-decoration: underline;
}

/* ---------- MAP ---------- */
.map {
    width: 100%;
    background: #ddd;
}

.map__embed iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: 0;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #1a3a0a;
    color: #c8e6c9;
    padding: 40px 0;
}

.footer__inner {
    text-align: center;
}

.footer__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: block;
}

.footer__subtitle {
    font-size: 13px;
    color: #81C784;
    display: block;
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer__links a {
    font-size: 14px;
    color: #a5d6a7;
    transition: color .3s;
}

.footer__links a:hover {
    color: #fff;
}

.footer__copy {
    font-size: 13px;
    color: #6b8f6b;
}

/* ---------- MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
}

.modal__content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    z-index: 1;
    animation: modalIn .3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color .3s;
}

.modal__close:hover {
    color: #333;
}

.modal__icon {
    width: 64px;
    height: 64px;
    background: #4CAF50;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal__content h3 {
    font-size: 22px;
    color: #222;
    margin-bottom: 8px;
}

.modal__content p {
    font-size: 15px;
    color: #666;
}

/* ---------- ANIMATIONS (scroll reveal) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__label {
        padding-left: 0;
        font-size: 22px;
    }

    .hero__label::before {
        display: none;
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__location {
        justify-content: center;
    }

    .hero__info-cards {
        max-width: 360px;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .top-bar__inner {
        justify-content: center;
        gap: 20px;
        font-size: 13px;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fdf8f0;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }

    .header__nav.open {
        display: flex;
    }

    .header__burger {
        display: flex;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__label {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .reviews__item {
        padding: 24px 16px;
    }

    .reviews__text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 26px;
    }

    .hero__btn {
        padding: 14px 28px;
        font-size: 14px;
    }

    .hero__info-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero__card {
        padding: 12px 14px;
    }
}
