/* =========================
   ОСНОВНЫЕ НАСТРОЙКИ (БЕЖЕВЫЙ)
========================== */

:root {
    --bg: #11130f;
    --bg-card: #171a14;
    --beige: #b99a73;
    --beige-light: #c9a87e;
    --beige-dark: #a08060;

    --gold: #c4a47b;
    --gold-light: #d7b98d;

    --text: #f5f1e9;
    --text-muted: #b8b5ad;

    --border: rgba(215, 201, 177, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}


/* =========================
   ФОНОВЫЙ ЛЕС
========================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            rgba(10, 12, 9, 0.55),
            rgba(10, 12, 9, 0.85)
        ),
        url("images/forest.png") center / cover no-repeat;

    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;

    background:
        radial-gradient(circle at 50% 20%,
            rgba(128, 104, 70, 0.12),
            transparent 45%);

    z-index: -1;
    pointer-events: none;
}


/* =========================
   HEADER (компактный, только меню)
========================== */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 60px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4%;

    z-index: 1000;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    background: rgba(12, 10, 8, 0.3);

    transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    background: rgba(12, 10, 8, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;

    flex: 1;
}

.nav-link {
    position: relative;

    font-size: 13px;
    font-weight: 400;
    color: #e4e1d9;

    padding: 20px 0;

    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d8b27e;
}

/* Полоска при наведении (анимация) */
.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 10px;

    height: 1.5px;

    background: #d8b27e;

    transform: scaleX(0);

    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Активный пункт всегда с линией */
.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 10px;

    height: 1.5px;

    background: #d8b27e;

    transform: scaleX(1);
}


/* =========================
   HERO (отступ под хедер)
========================== */

.hero {
    text-align: center;

    padding: 100px 20px 40px;
    background-image: none !important;
    background: transparent !important;
    min-height: auto !important;
}

.hero-label {
    color: var(--beige);

    font-size: 12px;
    letter-spacing: 7px;

    text-transform: uppercase;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-bottom: 17px;
}

.hero-label::before,
.hero-label::after {
    content: "";

    width: 38px;
    height: 1px;

    background: var(--beige);
}

h1 {
    font-family: "Cormorant Garamond", serif;

    font-weight: 400;

    font-size: clamp(52px, 6vw, 78px);

    line-height: 0.95;

    margin-bottom: 20px;
}

.hero-description {
    max-width: 600px;

    margin: auto;

    color: #d1cec5;

    font-size: 17px;
    line-height: 1.6;
}


/* =========================
   КАТАЛОГ
========================== */

.catalog {
    width: min(1160px, 90%);

    margin: 0 auto 70px;
}

.catalog-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}


/* =========================
   КАРТОЧКА
========================== */

.card {
    background: rgba(22, 25, 19, 0.88);

    border: 1px solid var(--border);

    border-radius: 0;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-5px);

    border-color: rgba(185, 154, 115, 0.6);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-image {
    height: 230px;

    position: relative;

    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 18px 19px 17px;
}

.card-title {
    font-family: "Cormorant Garamond", serif;

    font-size: 25px;
    font-weight: 500;

    margin-bottom: 7px;
}

.card-description {
    color: #aaa9a2;
    display: none;
    font-size: 12px;
    line-height: 1.55;

    min-height: 56px;

    max-width: 300px;
}

.card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ded9ce;
    font-size: 12px;
}

.info-icon {
    color: var(--beige);
    font-size: 14px;
}

.card-bottom {
    display: flex;
    justify-content: flex-end;

    margin-top: 15px;
}

/* Стили для ссылки-кнопки "Подробнее" */
.card-bottom a.details {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border: 1px solid rgba(185, 154, 115, 0.55);
    background: rgba(185, 154, 115, 0.08);
    color: #e9e2d6;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s ease, color 0.3s ease;
}

.card-bottom a.details span {
    margin-left: 10px;
    color: var(--beige);
    transition: color 0.3s ease;
}

.card-bottom a.details:hover {
    background: var(--beige);
    color: #171710;
}

.card-bottom a.details:hover span {
    color: #171710;
}


/* =========================
   КНОПКА ПОКАЗАТЬ ЕЩЁ
========================== */

.more {
    text-align: center;

    margin-top: 20px;
}

.more button {
    background: var(--beige);

    border: none;

    color: #ffffff;

    padding: 14px 40px;

    border-radius: 0;

    cursor: pointer;

    font-size: 13px;

    transition: background 0.3s ease, transform 0.3s ease;
}

.more button:hover {
    background: var(--beige-dark);

    transform: translateY(-2px);
}


/* =========================
   ПЛАШКА СО СВОИМ ДИЗАЙНОМ (с фоновой картинкой)
========================== */

.custom-design {
    width: min(1160px, 90%);
    min-height: 320px;
    margin: 0 auto 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.custom-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, 
            rgba(17, 19, 15, 0.92) 0%,
            rgba(17, 19, 15, 0.75) 40%,
            rgba(17, 19, 15, 0.30) 100%
        ),
        url("images/design-bg.jpg") center / cover no-repeat;
    z-index: 0;
    transition: transform 0.6s ease;
}

.custom-design:hover .custom-overlay {
    transform: scale(1.03);
}

.custom-content {
    position: relative;
    z-index: 2;
    padding: 50px 60px;
    max-width: 600px;
}

.custom-label {
    color: var(--beige);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.custom-design h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 16px;
    color: #fff;
}

.custom-design p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
    max-width: 470px;
    margin-bottom: 24px;
}

.custom-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 14px 28px;
    background: var(--beige);
    color: #ffffff;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.custom-button:hover {
    background: var(--beige-dark);
    transform: translateY(-2px);
}

.custom-button span {
    font-size: 18px;
}


/* =========================
   FOOTER (как на главной)
========================== */

.footer {
    width: 100%;

    background: #11120f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1500px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;

    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.5px;

    color: #ffffff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);

    max-width: 450px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-contacts h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
}

.footer-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
}

.contact-item {
    text-decoration: none;

    font-size: 16px;
    font-weight: 400;

    color: rgba(255, 255, 255, 0.8);

    padding: 6px 0;

    transition: color 0.3s ease, padding-left 0.3s ease;

    position: relative;
}

.contact-beige:hover {
    color: #d8b27e;
    padding-left: 6px;
}

.contact-green:hover {
    color: #4d603f;
    padding-left: 6px;
}

.footer-bottom {
    max-width: 1500px;
    margin: 0 auto;

    padding-top: 24px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);

    text-align: center;
}


/* =========================
   МОДАЛЬНОЕ ОКНО
========================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #171a14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #fff;
}

.modal h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #fff;
}

.modal p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 24px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal .form-group label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal .form-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-family: "Manrope", sans-serif;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.modal .form-group input:focus {
    outline: none;
    border-color: #b99a73;
}

.modal .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.modal .submit-btn {
    width: 100%;
    padding: 14px;
    background: #b99a73;
    border: none;
    color: #fff;
    font-size: 16px;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border-radius: 0;
    margin-top: 8px;
}

.modal .submit-btn:hover {
    background: #c9a87e;
    transform: translateY(-2px);
}

.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.modal-success.active {
    display: block;
}

.modal-success .icon {
    font-size: 48px;
    color: #b99a73;
    margin-bottom: 16px;
}

.modal-success h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 8px;
}

.modal-success p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.modal-form.hidden {
    display: none;
}


/* =========================
   КАРТОЧКА - ЦЕНА
========================== */

.card-price {
    font-size: 18px;
    font-weight: 500;
    color: #b99a73;
    margin: 4px 0 10px;
    font-family: "Manrope", sans-serif;
}


/* =========================
   НОВЫЕ КАРТОЧКИ (ПО КНОПКЕ) — БЕЗ АНИМАЦИИ
========================== */

.card.new-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}


/* =========================
   АДАПТИВ
========================== */

@media (max-width: 900px) {

    .header {
        padding: 0 4%;
        height: 60px;
    }

    .navigation {
        gap: 25px;
    }

    .nav-link {
        font-size: 13px;
        padding: 20px 0;
    }

    .nav-link::after,
    .nav-link.active::after {
        bottom: 10px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand h2 {
        font-size: 24px;
    }

    .footer-brand p {
        max-width: 100%;
        font-size: 15px;
    }

    .footer-contacts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px 30px;
    }

    /* Адаптив для плашки */
    .custom-content {
        padding: 40px 40px;
        max-width: 100%;
    }

    .custom-design h2 {
        font-size: 34px;
    }

    .custom-overlay {
        background:
            linear-gradient(135deg,
                rgba(17, 19, 15, 0.92) 0%,
                rgba(17, 19, 15, 0.80) 50%,
                rgba(17, 19, 15, 0.60) 100%),
            url("images/design-bg.jpg") center / cover no-repeat;
    }
}


@media (max-width: 600px) {

    .header {
        height: 50px;
        padding: 0 3%;
    }

    .navigation {
        gap: 20px;
    }

    .nav-link {
        font-size: 11px;
        padding: 16px 0;
    }

    .nav-link::after,
    .nav-link.active::after {
        bottom: 7px;
        height: 1.5px;
    }

    .hero {
        padding-top: 90px;
    }

    h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 14px;
    }

    .catalog {
        width: 92%;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 240px;
    }

    .footer {
        padding: 30px 16px 12px;
    }

    .footer-content {
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-brand h2 {
        font-size: 20px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .footer-contacts h3 {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .footer-contacts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px 20px;
    }

    .contact-item {
        font-size: 14px;
        padding: 4px 0;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    /* Адаптив для плашки */
    .custom-design {
        width: 92%;
        min-height: 300px;
        margin: 0 auto 50px;
    }

    .custom-content {
        padding: 30px 24px;
    }

    .custom-design h2 {
        font-size: 28px;
    }

    .custom-design p {
        font-size: 14px;
    }

    .custom-button {
        padding: 12px 20px;
        font-size: 13px;
    }

    .custom-overlay {
        background:
            linear-gradient(135deg,
                rgba(17, 19, 15, 0.95) 0%,
                rgba(17, 19, 15, 0.85) 60%,
                rgba(17, 19, 15, 0.70) 100%),
            url("images/design-bg.jpg") center / cover no-repeat;
    }

    .modal {
        padding: 30px 20px;
    }

    .modal h2 {
        font-size: 26px;
    }

    .modal .form-group input {
        font-size: 13px;
        padding: 10px 12px;
    }
}