@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Tenor+Sans&display=swap');

/* Сброс стандартных отступов и box-model */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Плавный скролл по якорям */
html {
    scroll-behavior: smooth;
}

/* Основные стили страницы: шрифт, цвета, фон */
body {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    background: #FBF9F1;
    color: #56423C;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
}

button {
    border: none;
    background: none;
}

/* Параметры контейнера */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */
.header {
    background: #FFFDF5;
    border-bottom: 1px solid #A64B2A1A;
}

.header .container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.menu__btn {
    color: #A64B2A;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #A64B2A;
}
/* ===== END HEADER ===== */


/* ===== HERO / WELCOME ===== */
.welcome__est {
    margin-top: 48px;
    font-size: 12px;
    font-weight: 500;
}

.welcome__title {
    margin-top: 12px;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    color: #1B1C17;
}

.welcome__description {
    margin-top: 12px;
}

.welcome__btn {
    display: inline-block;
    margin-top: 28px;
    padding: 16px 32px;
    background: #873415;
    border-radius: 6px;
    font-weight: 300;
    color: #FFFFFF;
    cursor: pointer;
}

.welcome__btn:hover {
    background: #6F2E12;
}
/* ===== END HERO / WELCOME ===== */


/* ===== POPULAR PRODUCTS ===== */
.popular__title {
    margin-top: 56px;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.3;
    color: #1B1C17;
}

/* Сетка карточек товаров */
.cards,
.catalog__grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    display: block;
    padding: 24px 24px;
    background: #F5F4EC;
    border: 1px solid #8734151A;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card__img {
    width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.card__title {
    margin-top: 16px;
    font-size: 28px;
    font-weight: 600;
    color: #1B1C17;
}

.card__description {
    margin-top: 8px;
}

.price {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
}

.card__btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    background: #873415;
    font-weight: 300;
    color: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.card__btn:hover {
    background: #6F2E12;
}
/* ===== END POPULAR PRODUCTS ===== */

/* ===== CTA (призыв к действию) ===== */
.cta {
    margin-top: 64px;
    text-align: center;
}

.cta__title {
    font-size: 28px;
    font-weight: 600;
    color: #1B1C17; 
}

.cta__description {
    margin-top: 12px;
    font-size: 14px;
}

.cta__btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: #873415;
    color: #FFFFFF;
    border-radius: 6px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.cta__btn:hover {
    background: #6F2E12;
}
/* ===== END CTA (призыв к действию) ===== */

/* ===== MOBILE MENU ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;

    z-index: 900;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile__menu {
    position: fixed;
    top: 0;
    left: 0;

    width: 85%;
    max-width: 320px;
    height: 100vh;

    background: #F6F3EA;
    padding: 20px;

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    z-index: 1000;

    display: flex;
    flex-direction: column;
}

.mobile__menu.active {
    transform: translateX(0);
}

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

.menu__logo {
    font-size: 20px;
    font-weight: 600;
    color: #A64B2A;
}

.menu__close {
    background: none;
    border: none;
    cursor: pointer;
}

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

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

    padding: 14px 16px;
    border-radius: 10px;

    font-size: 16px;
    color: #3E2E2A;

    transition: background 0.2s ease;
}

.menu__item:hover {
    background: #E8DED5;
}

.menu__item.active {
    background: #E6D8CD;
    font-weight: 500;
}

.menu__icon {
    width: 20px;
    height: 20px;
    display: block;
}
/* ===== END MOBILE MENU ===== */

/* ===== FOOTER ===== */
.footer {
    margin-top: 64px;
    padding: 40px 0 20px;
    background: #F5F4EC;
    border-top: 1px solid #A64B2A1A;
}

.footer__top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__brand {
    text-align: center;
}

.footer__logo {
    font-size: 20px;
    font-weight: 600;
    color: #A64B2A;
}

.footer__text {
    margin-top: 8px;
    font-size: 14px;
}

.footer__content {
    display: flex;
    justify-content: center;
    gap: 64px;
    text-align: center;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.footer__nav-title {
    font-weight: 600;
    color: #A64B2A;
}

.footer__nav a {
    font-size: 14px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__contacts-title {
    font-weight: 600;
    color: #A64B2A;
}

.footer__contacts a {
    font-size: 14px;
}

.footer__bottom {
    margin-top: 32px;
    font-size: 12px;
    opacity: 0.7;
    text-align: center;
}
/* ===== END FOOTER ===== */

/* ===== PRODUCT PAGE ===== */

.breadcrumbs {
    margin-top: 16px;
    font-size: 14px;
    color: #8A7A75;
}

.breadcrumbs a:hover {
    color: #A64B2A;
}

.product__wrapper {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery__main img {
    max-width: 100%;
    height: auto;

    border-radius: 12px;
    cursor: zoom-in;
}

.gallery__thumbs {
    display: flex;
    gap: 8px;
}

.thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;

    width: 100%;
    max-width: 90px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #873415;
}

.thumb:hover {
    transform: scale(1.03);
}

.product__title {
    margin-top: 12px;
    font-size: 28px;
    font-weight: 600;
    color: #1B1C17;
}

.product__price {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 700;
    color: #1B1C17;
}

.product__characteristics {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    padding: 16px;
    background: #F5F4EC;
    border: 1px solid #EAE6DF;
    border-radius: 10px;
}

.product__row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.product__icon {
    width: 18px;
    height: 18px;
}

.product__text {
    margin-top: 16px;
    line-height: 1.6;
    font-size: 15px;
}

.product__block {
    margin-top: 24px;
    padding: 18px;

    background: #F5F4EC;
    border-radius: 10px;
    border: 1px solid #EAE6DF;
}

.product__block-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.product__list {
    list-style: none;
}

.product__list li {
    position: relative;
    padding-left: 24px;
    margin-top: 10px;
    font-size: 14px;
}

.product__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #873415;
    font-weight: 700;
}

.product__btn {
    display: block;
    width: 100%;
    text-align: center;

    padding: 16px;
    background: #873415;
    color: #FFFFFF;
    font-weight: 300;

    border-radius: 8px;
    margin-top: 20px;

    transition: 0.2s;
}

.product__btn:hover {
    background: #6F2E12;
    transform: translateY(-2px);
}

.product__wrapper .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {

    .product__wrapper .container {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .product__gallery {
        flex: 1;
        max-width: 550px;
    }

    .product__description {
        flex: 1;
        max-width: 480px;
        position: sticky;
        top: 20px;
    }

    .gallery__main img {
        max-height: 500px;
    }
}
/* ===== END PRODUCT PAGE ===== */

/* ===== CATALOG ===== */
.catalog__title {
    margin-top: 16px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    color: #1B1C17;
    text-align: center;
}

.catalog__description {
    margin-top: 8px;
    text-align: center;
}

.catalog__filters {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid #8734151A;
    background: #F5F4EC;
    cursor: pointer;
    transition: 0.2s;
    color: #56423C;
}

.filter-btn:hover {
    background: #E8DED5
}

.filter-btn.active {
    background: #873415;
    color: #FFFFFF;
}
/* ===== END CATALOG ===== */

/* ===== CONTACTS ===== */
.contacts {
    padding: 40px 0;
    text-align: center;
}

.contacts__title {
    font-size: 32px;
    font-weight: 600;
    color: #1B1C17;
}

.contacts__description {
    margin-top: 12px;
    font-size: 14px;
    max-width: 500px;
    margin-inline: auto;
}

/* кнопка */
.contacts__btn {
    display: inline-block;
    margin-top: 24px;
    padding: 16px 28px;
    background: #873415;
    color: #fff;
    border-radius: 6px;
    transition: 0.2s;
}

.contacts__btn:hover {
    background: #6F2E12;
}

/* desktop */
@media (min-width: 768px) {
    .contacts__faq {
        max-width: 600px;
        margin-inline: auto;
    }
}
/* ===== END CONTACTS ===== */

/* ===== FAQ ===== */
.faq {
    padding: 40px 0;
}

.faq__title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #1B1C17;
}

.faq__list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: #F5F4EC;
    border-radius: 8px;
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: 16px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #1B1C17;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.faq__item.active .faq__answer {
    max-height: 200px;
    padding: 12px 16px 16px;
}
/* ===== END FAQ ===== */

/* ===== ABOUT MASTER ===== */
.master {
    padding: 40px 0 60px;
}

.master__card {
    display: flex;
    flex-direction: column;
}

.master__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #EFECE4;

    box-shadow:
        0 30px 40px rgba(0, 0, 0, 0.10),
        0 10px 20px rgba(0, 0, 0, 0.06);
}

.master__image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.master__content {
    display: flex;
    flex-direction: column;
}

.master__title {
    margin-top: 28px;

    font-family: "Tenor Sans", sans-serif;
    font-size: 58px;
    line-height: 0.95;

    color: #1B1C17;
}

.master__title span {
    display: block;
    margin-top: 8px;

    color: #873415;
    font-style: italic;
}

.master__text {
    margin-top: 28px;

    max-width: 520px;

    font-size: 18px;
    line-height: 1.8;

    color: #6E5A53;
}

@media (min-width: 1024px) {

    .master__wrapper {
        display: grid;
        grid-template-columns: 500px 1fr;
        gap: 72px;
        align-items: start;
    }

    .master__image {
        height: 560px;
    }

    .master__content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .master__title {
        font-size: 82px;
        line-height: 0.82;

        max-width: 500px;
    }

    .master__text {
        margin-top: 36px;

        max-width: 520px;

        font-size: 20px;
        line-height: 1.9;
    }
}

.process__top {
    max-width: 700px;
}

.process__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #873415;
}

.process__title {
    margin-top: 12px;

    font-family: "Tenor Sans", sans-serif;
    font-size: 52px;
    line-height: 1;

    color: #1B1C17;
}

.process__title span {
    display: block;
    margin-top: 8px;

    color: #873415;
    font-style: italic;
}

.process__grid {
    margin-top: 48px;

    display: grid;
    gap: 20px;
}

.process__card {
    padding: 28px;

    background: #F5F4EC;

    border: 1px solid #E7E1D7;
    border-radius: 12px;
}

.process__number {
    font-size: 14px;
    font-weight: 600;
    color: #873415;
}

.process__card-title {
    margin-top: 14px;

    font-size: 24px;
    font-weight: 600;

    color: #1B1C17;
}

.process__text {
    margin-top: 12px;

    line-height: 1.7;
}

@media (min-width: 1024px) {

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

    .process__title {
        font-size: 72px;
        max-width: 720px;
    }

    .process__card {
        padding: 36px;
    }
}
/* ===== END ABOUT MASTER ===== */

/* ===== DESKTOP NAV ===== */
.desktop__nav {
    display: none; /* прячем по умолчанию */
}

@media (min-width: 768px) {
    /* прячем бургер и мобильное меню */
    .menu__btn {
        display: none;
    }
    .mobile__menu,
    .overlay {
        display: none !important;
    }

    /* показываем десктопное меню */
    .desktop__nav {
        display: flex;
        align-items: center;
        gap: 32px;
        margin-left: auto; /* прижимает меню вправо */
    }

    .desktop__nav-link {
        font-size: 15px;
        color: #3E2E2A;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .desktop__nav-link:hover {
        color: #A64B2A;
    }

    /* активная страница */
    .desktop__nav-link.active {
        color: #A64B2A;
        font-weight: 500;
    }
}
/* ===== END DESKTOP NAV ===== */