/* ===================================================================
   home.css
   Главная страница: hero, преимущества, услуги, форма, портфолио,
   объекты, отзывы, FAQ, контакты на главной.
   =================================================================== */

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(10, 40, 15, 0.78) 0%, rgba(15, 55, 20, 0.55) 45%, rgba(0, 0, 0, 0.2) 100%),
        var(--hero-bg-image, url("assets/images/fon.jpg")) center/cover no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 68px 20px 0;
    width: 100%;
}

.hero-title {
    font-size: 58px;
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 16px;
    animation: fadeUp 0.7s ease both;
}

.hero-title span {
    color: #6ed875;
}

.hero-sub {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    margin-bottom: 10px;
    animation: fadeUp 0.7s 0.1s ease both;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 34px;
    animation: fadeUp 0.7s 0.15s ease both;
}

.hero-btn {
    animation: fadeUp 0.7s 0.2s ease both;
    display: inline-block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gifts strip in hero */
.hero-gifts {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 40px;
    width: 100%;
}

.gifts-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.gifts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gift-pill {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 60px;
    padding: 8px 16px 8px 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    backdrop-filter: blur(6px);
    transition: transform 0.2s;
    overflow: hidden;
}

.gift-pill:hover {
    transform: translateY(-3px);
}

.gift-pill img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gift-txt {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

/* ─── FEATURES BAR ─── */
.features-bar {
    background: #f2f4f6;
    padding: 20px 0;
}

.feat-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.feat-item {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px 22px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center right;
}

.feat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.68);
    z-index: 0;
}

.feat-item.dark::before {
    background: rgba(14, 88, 32, 0.28);
}

.feat-item.dark {
    background-color: var(--green);
}

.feat-item.dark .feat-title {
    color: #ffffff;
    font-size: 15px;
}

.feat-item.dark .feat-desc {
    color: rgba(255, 255, 255, 0.92);
}

.feat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
}

.feat-text {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.feat-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #1f1f1f;
}

.feat-desc {
    font-size: 12px;
    color: #3e3e3e;
    line-height: 1.45;
    font-weight: 500;
}

/* ─── BLOCK 2: GIFTS ─── */
.gifts-section {
    background: var(--green-bg);
}

.gifts-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 42px;
}

.gift-card-big {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-l);
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

.gift-card-big:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.gcb-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.gcb-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.gcb-desc {
    font-size: 14px;
    color: var(--text-m);
    line-height: 1.5;
}

/* ─── BLOCK 3: SERVICES ─── */
.services-section {
    background: #fff;
}

.services-lead {
    font-size: 17px;
    color: var(--text-m);
    line-height: 1.65;
    max-width: 740px;
    margin-bottom: 48px;
}

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

.service-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--green);
    opacity: 0;
    transition: opacity 0.2s;
}

.service-card:hover {
    border-color: var(--green);
    box-shadow: 0 8px 32px rgba(42, 125, 52, 0.12);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.sc-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}

.sc-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--green);
}

.sc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-list li {
    font-size: 14px;
    color: var(--text-m);
    padding-left: 18px;
    position: relative;
    line-height: 1.45;
}

.sc-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ─── BLOCK 5: PORTFOLIO ─── */
.portfolio-section {
    background: var(--green-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 42px;
}

.p-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-l);
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

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

.p-img {
    height: 200px;
    background: #ddd;
    overflow: hidden;
}

.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.p-card:hover .p-img img {
    transform: scale(1.05);
}

.p-body {
    padding: 22px;
}

.p-title {
    height: 40px;
    overflow: hidden;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
}

.p-prices {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
}

.p-price-item {
    flex: 1;
    background: var(--green-bg);
    border-radius: 8px;
    padding: 10px 12px;
}

.p-price-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-l);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p-price-val {
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
}

.p-price-item.buyout .p-price-val {
    color: var(--green);
}

.p-desc {
    height: 60px;
    overflow: hidden;
    font-size: 13px;
    color: var(--text-m);
    line-height: 1.5;
    margin-bottom: 8px;
}

.p-term {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    background: var(--accent);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.p-btn {
    width: 100%;
    padding: 11px;
    border-radius: 30px;
    font-size: 13px;
}

.portfolio-cta {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    justify-content: center;
}

/* ─── BLOCK 6: ADVANTAGES ─── */
.adv-section {
    background: #fff;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 46px;
}

.adv-card {
    background: var(--green-bg);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.adv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(42, 125, 52, 0.13);
}

.adv-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.adv-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 8px;
}

.adv-desc {
    font-size: 13px;
    color: var(--text-m);
    line-height: 1.5;
}

/* ─── BLOCK 7: OBJECTS ─── */
.objects-section {
    background: var(--green-bg);
}

.objects-hero {
    background: var(--green);
    border-radius: var(--radius);
    padding: 40px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.objects-hero h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.objects-hero p {
    font-size: 16px;
    opacity: 0.85;
}

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

.obj-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-l);
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

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

.obj-img {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

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

.obj-body {
    padding: 18px;
}

.obj-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}

.obj-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    border-radius: 25px;
}

/* ─── BLOCK 8: NUMBERS ─── */
.numbers-section {
    background: var(--text);
    color: #fff;
}

.numbers-section .section-title {
    color: #fff;
}

.numbers-section .section-sub {
    color: rgba(255, 255, 255, 0.7);
}

.numbers-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 56px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
}

.num-item {
    padding: 36px 24px;
    background: #111;
    text-align: center;
    transition: background 0.2s;
}

.num-item:hover {
    background: #1a1a1a;
}

.num-val {
    font-size: 38px;
    font-weight: 900;
    color: var(--green-l);
    line-height: 1;
    margin-bottom: 8px;
}

.num-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* ─── BLOCK 9: REVIEWS ─── */
.reviews-section {
    background: #fff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.review-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.review-card:hover {
    border-color: var(--green);
    box-shadow: 0 6px 24px rgba(42, 125, 52, 0.1);
}

.rv-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.rv-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.rv-name {
    font-weight: 700;
    font-size: 15px;
}

.rv-type {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    background: var(--accent);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 3px;
}

.rv-stars {
    color: #f5a623;
    font-size: 16px;
    margin-bottom: 12px;
}

.rv-text {
    font-size: 14px;
    color: var(--text-m);
    line-height: 1.65;
}

/* ─── BLOCK 10: FAQ ─── */
.faq-section {
    background: var(--green-bg);
}

.faq-list {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-s);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    gap: 12px;
    transition: background 0.2s;
}

.faq-q:hover {
    background: var(--green-bg);
}

.faq-q-text {
    font-weight: 700;
    font-size: 15px;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-a-inner {
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--text-m);
    line-height: 1.65;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.faq-item.open .faq-a {
    max-height: 400px;
}

/* ─── BLOCK 11: CONTACTS ─── */
.contacts-section {
    background: #fff;
    padding-bottom: 0;
}

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

.contacts-map {
    height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e8e8e8;
    position: relative;
    margin-bottom: 0;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contacts-info {
    padding-top: 8px;
}

.contacts-info h2 {
    font-size: 30px;
    margin-bottom: 16px;
}

.contacts-desc {
    font-size: 15px;
    color: var(--text-m);
    line-height: 1.65;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
}

.c-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item a {
    font-weight: 600;
    color: var(--text);
}

.contact-item a:hover {
    color: var(--green);
}

.contacts-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.contacts-btns .btn {
    border-radius: 12px;
    justify-content: flex-start;
    font-size: 14px;
    padding: 13px 20px;
    gap: 10px;
}

.btn-wa {
    background: #25d366;
    color: #fff;
}

.btn-wa:hover {
    background: #1da550;
}

.btn-tg {
    background: #2aabee;
    color: #fff;
}

.btn-tg:hover {
    background: #1a8dc9;
}

.contacts-form-section {
    background: var(--green-bg);
    margin-top: 72px;
    padding: 64px 0;
}

.contacts-form-inner {
    max-width: 540px;
    margin: 24px auto;
    padding: 0 20px;
    text-align: center;
}

.cf-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: var(--shadow);
    margin-top: 32px;
    text-align: left;
}

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

/* ─── RESPONSIVE: home ─── */
@media (max-width: 1024px) {
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-sub {
        font-size: 18px;
    }

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

    .gifts-cards {
        grid-template-columns: 1fr;
    }

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

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

    .objects-hero {
        flex-direction: column;
        text-align: center;
    }

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

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

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

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

    .feat-item.dark {
        background-position: -300px center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .gifts-row {
        grid-template-columns: 1fr;
    }

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

    .form-options {
        grid-template-columns: 1fr;
    }

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

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