/* ===== Подключение шрифта ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@200;300;400;600;700;800;900&display=swap');

/* ===== CSS-переменные ===== */
:root {
    --bg-light: #FDF8F2;
    --bg-black: #222222;
    --bg-yellow: #FF9C00;
    --bg-grey: #E3D7CF;
    --bg-brown: #786249;
    --secondary: #997366;
    --transparent: rgba(0, 0, 0, 0);
    --font: 'Roboto', sans-serif;

    --max-width: 1120px;      /* активная область */
    --site-max-width: 1440px; /* максимальная ширина всего макета */
    --padding-x: 10px;        /* боковые отступы по умолчанию (мобильные) */
    --gap: 10px;
    --radius: 12px;
}

/* ===== Сброс и базовые стили ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--bg-black);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Утилитарные классы ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
}

/* Обертка всего сайта для ограничения 1440px */
.site-wrapper {
    max-width: var(--site-max-width);
    margin: 0 auto;
    overflow: hidden; /* сохраняет тени/фоны */
    background-color: #fff;
}

/* ===== Типографика ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Цвета текста */
.text-light { color: var(--bg-light); }
.text-dark { color: var(--bg-black); }
.text-yellow { color: var(--bg-yellow); }
.text-secondary { color: var(--secondary); }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s;
    border: none;
    text-align: center;
}
.btn:hover { opacity: 0.9; }
.btn--light {
    background-color: var(--bg-light);
    color: var(--bg-black);
}
.btn--yellow {
    background-color: var(--bg-yellow);
    color: var(--bg-light);
}
.btn--dark {
    background-color: var(--bg-black);
    color: var(--bg-light);
}

/* Кнопка-иконка */
.btn .ico {
    width: 20px;
    height: 20px;
    background-color: currentColor; /* заменится на настоящую иконку */
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* ===== Секции ===== */
.section {
    padding: 40px 0;
}
.section--dark {
    background-color: var(--bg-black);
    color: var(--bg-light);
}
.section--light {
    background-color: var(--bg-light);
}

/* ===== Шапка (header) ===== */
.header {
    background-color: var(--bg-black);
    color: var(--bg-light);
    padding: 20px 0;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--gap);
}
.header__logo {
    width: 43px;
    height: 50px;
    background-color: var(--bg-light); /* временно */
}
.header__tagline {
    flex: 1 1 auto;
    text-align: center;
    font-size: 12px;
    font-weight: 200;
}
.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header__cta {
    background-color: var(--bg-light);
    color: var(--bg-black);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header__burger {
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    background-color: var(--bg-black);
    color: var(--bg-light);
    padding: 40px 0;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    width: 150%;
    height: auto;
    opacity: 0.2;
    pointer-events: none;
}
.hero__title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
}
.hero__quote {
    background-color: var(--bg-yellow);
    color: var(--bg-black);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.hero__quote-mark {
    font-size: 48px;
    line-height: 1;
    opacity: 0.4;
    font-weight: 700;
}
.hero__quote-text {
    font-size: 20px;
    font-weight: 300;
}
.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}
.hero__metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Карточка метрики */
.metric {
    background-color: var(--bg-yellow);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: var(--bg-black);
}
.metric__value {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}
.metric__label {
    font-size: 16px;
    font-weight: 400;
}

/* ===== Преимущества (ингредиенты) ===== */
.advantages__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.advantage-card {
    background-color: var(--bg-grey);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.advantage-card__icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-yellow); /* заменить на иконку */
    margin: 0 auto 20px;
}
.advantage-card__title {
    font-size: 16px;
    font-weight: 400;
}

/* ===== Топ-5 товаров ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.product-card {
    background-color: var(--bg-light);
    border-radius: 32px;
    padding: 20px;
    color: var(--bg-black);
}
.product-card__img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
}
.product-card__img {
    width: 100%;
    object-fit: cover;
}
.product-card__badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--bg-yellow);
    border-radius: 50px;
    padding: 5px 10px;
}
.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 400;
    background-color: var(--bg-grey);
    color: var(--bg-black);
}
.tag--active {
    background-color: var(--bg-yellow);
    color: var(--bg-light);
}
.product-card__category {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 5px;
}
.product-card__title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
}
.product-card__price {
    background-color: var(--bg-yellow);
    color: var(--bg-light);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    text-align: center;
}

/* ===== СТМ и услуги ===== */
.services__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.service-card {
    background-color: var(--bg-black);
    color: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.service-card__icon {
    width: 75px;
    height: 75px;
    background-color: var(--bg-yellow);
    margin: 0 auto 20px;
}
.service-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.service-card__desc {
    font-size: 16px;
}

/* ===== FAQ ===== */
.faq__item {
    border: 3px solid var(--bg-brown);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.faq__question {
    background-color: var(--bg-brown);
    color: var(--bg-light);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq__question span {
    font-size: 20px;
    font-weight: 600;
}
.faq__icon {
    width: 25px;
    height: 25px;
    background-color: var(--bg-light); /* временно */
}
.faq__answer {
    padding: 10px 20px 20px;
    color: var(--bg-brown);
    font-size: 14px;
}

/* ===== Форма ===== */
.form-section {
    background-color: var(--bg-brown);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--bg-light);
}
.form__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}
.form__subtitle {
    font-size: 20px;
    margin-bottom: 20px;
}
.form__group {
    margin-bottom: 15px;
}
.form__label {
    font-size: 16px;
    margin-bottom: 5px;
}
.form__input {
    width: 100%;
    padding: 10px 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    border: none;
    font-size: 16px;
    color: var(--secondary);
}
.form__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
.form__checkbox input {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    border: 3px solid var(--bg-light);
    background: var(--bg-light);
}
.form__submit {
    width: 100%;
    margin-top: 20px;
}

/* ===== Футер ===== */
.footer {
    background-color: var(--bg-black);
    color: var(--bg-light);
    padding: 40px 0;
    text-align: center;
}
.footer__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer__heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.footer__contact {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer__ico {
    width: 25px;
    height: 25px;
    background-color: var(--bg-light);
}
.footer__copy {
    font-size: 20px;
    font-weight: 200;
    margin-top: 30px;
}

/* ===== Медиа-запросы ===== */

/* Планшет (≥768px) */
@media (min-width: 768px) {
    :root {
        --padding-x: 10px;
    }
    .section {
        padding: 40px 0;
    }
    .hero__title {
        font-size: 32px;
    }
    .hero__buttons {
        flex-direction: row;
        justify-content: center;
    }
    .hero__metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages__grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .advantage-card {
        flex: 1 1 30%;
    }
    .services__list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .service-card {
        flex: 1 1 30%;
    }
    .footer__grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
    }
}

/* Десктоп (≥1200px, ограничение 1440px) */
@media (min-width: 1200px) {
    :root {
        --padding-x: 0; /* контейнер сам добавит паддинги */
    }
    .container {
        padding-left: 0;
        padding-right: 0;
    }
    .section {
        padding: 80px 0;
    }
    .header {
        padding: 20px 0;
    }
    .header__logo {
        width: auto;
        height: 51.42px;
        flex: 1 1 0;
        background: var(--bg-light);
    }
    .header__tagline {
        font-size: 20px;
    }
    .hero__title {
        font-size: 36px;
    }
    .hero__quote-mark {
        font-size: 64px;
    }
    .hero__quote-text {
        font-size: 24px;
    }
    .hero__buttons .btn {
        font-size: 20px;
        padding: 14px 24px;
    }
    .hero__metrics {
        grid-template-columns: repeat(4, 1fr);
    }
    .metric {
        padding: 12px;
    }
    .metric__value {
        font-size: 36px;
    }
    .metric__label {
        font-size: 20px;
    }
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .product-card__title {
        font-size: 24px;
    }
    .advantages__grid {
        flex-wrap: nowrap;
    }
    .footer__grid {
        justify-content: space-between;
        text-align: left;
    }
    .footer__col {
        align-items: flex-start;
    }
}