* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Geologica", sans-serif;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, select, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

ol, ul {
    list-style: none;
}

:root {
    /* === ОСНОВНОЙ БРЕНД === */
    --green: #16a34a;
    --green-dark: #15803d;
    --green-light: #dcfce7;
    --green-mid: #22c55e;
    /* === АКЦЕНТ === */
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    /* === ФОНЫ (LIGHT THEME) === */
    --bg: #f8fafc; /* основной фон страницы (очень светлый) */
    --surface: #ffffff; /* шапка / панели */
    --card: #ffffff; /* карточки */
    /* === HEADER (DARK ZONE) === */
    --header-bg: #0f1411;
    --header-hover: #1f2937;
    --header-border: #ffffff;
    /* === ТЕКСТ === */
    --text: #0f172a; /* основной текст (тёмный) */
    --muted: #64748b; /* вторичный текст */
    /* === ГРАНИЦЫ === */
    --border: #e2e8f0; /* мягкие разделители */
    /* === СОСТОЯНИЯ === */
    --hover: #f1f5f9; /* hover фон */
    /* === ТЕНИ (важно для light UI) === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
}

body {
    background: var(--bg);
    color: var(--text);
}

p {
    font-size: 14px;
}

.header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

/* LEFT */
.header__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CENTER */
.header__center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* RIGHT */
.header__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ICON BUTTON */
.icon-btn, .lang__btn {
    background: transparent;
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.icon-btn:hover, .lang__btn:hover {
    background: var(--header-hover);
    border: 1px solid var(--green);
    color: white;
}

.icon-btn i::before {
    font-size: 25px;
    line-height: 35px;
}

/* CATALOG */
.catalog__btn {
    background: transparent;
    border: 1px solid var(--header-border);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.catalog__btn:hover {
    border-color: var(--green);
}

/* SEARCH */
.search {
    flex: 1;
}

.search__box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: black;
    padding: 8px 12px;
    border-radius: 12px;
}

.search__box input {
    width: 100%;
    border: none;
    outline: none;
    color: black;
}

.search__box input::placeholder {
    color: var(--muted);
    font-size: 14px;
}

.search__box i {
    color: var(--muted);
}

/* DROPDOWN */
.dropdown-menu-custom {
    background: var(--card);
    border: 1px solid var(--border);
}

.dropdown-menu-custom a {
    color: var(--text);
    padding: 8px 12px;
    display: block;
}

.dropdown-menu-custom a:hover {
    background: var(--hover);
}

/* CART BADGE */
.cart {
    position: relative;
}

.cart__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--green);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

/* ----- HERO -----*/

.hero-slider {
    padding: 110px 0 40px;
    background: var(--bg);
}

.banner {
    height: 320px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* GREEN BRAND */
.banner--green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

/* DARK PREMIUM */
.banner--dark {
    background: linear-gradient(135deg, #0f1411, #111827);
}

/* ACCENT PROMO */
.banner--accent {
    background: linear-gradient(135deg, var(--accent), #d97706);
}

.banner__content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner__content p {
    opacity: 0.85;
    margin-bottom: 20px;
}

/* BUTTON */
.btn-main {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: .2s;
}

.btn-main:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ----- PRODUCTS SECTION -----*/

.products-section {
    padding: 60px 0;
}

/* SECTION HEADER */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.section-subtitle {
    color: var(--muted);
    margin: 0;
}

/* LINK */
.section-link {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.section-link:hover {
    color: var(--green-dark);
}

/* TABS */
.products-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.products-tab {
    border: 1px solid var(--border);
    background: white;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--text);
    transition: .2s;
}

.products-tab:hover {
    border-color: var(--green);
    color: var(--green);
}

.products-tab.active {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

/* GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* ----- PRODUCT CARD ----- */

.product-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all .25s ease;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 163, 74, 0.25);
}

/* BADGES */
.product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge--sale {
    background: var(--accent);
    color: white;
}

.badge--new {
    background: var(--green);
    color: white;
}

/* IMAGE */
.product-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    padding: 20px;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .3s ease;
}

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

/* CONTENT */
.product-card__content {
    padding: 18px;
}

/* CATEGORY */
.product-card__category {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

/* TITLE */
.product-card__title {
    display: block;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 12px;
    min-height: 44px;
}

.product-card__title:hover {
    color: var(--green);
}

/* RATING */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--muted);
}

.rating-stars {
    color: #f59e0b;
    display: flex;
    gap: 2px;
}

/* FOOTER */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* PRICE */
.product-card__price-current {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.product-card__price-old {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
}

/* CART BUTTON */
.product-card__cart {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: white;
    transition: .2s ease;
}

.product-card__cart:hover {
    background: var(--green-dark);
    transform: scale(1.05);
}

.seo-block__content {
    position: relative;
    font-size: 13px;
    line-height: 19px;
    max-height: 100px;
    overflow: hidden;
    transition: max-height .35s ease;
    font-weight: 200;
}

.seo-block__content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        var(--surface)
    );
    transition: opacity .2s ease;
}

.seo-block__content.open {
    max-height: 1000px;
}

.seo-block__content.open::after {
    opacity: 0;
    pointer-events: none;
}

.seo-block__content h1, .seo-block__content h2, .seo-block__content h3, .seo-block__content h4 {
    color: var(--text);
    font-size: 17px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.seo-block__content ul, .seo-block__content ol {
    margin-top: 12px;
    margin-bottom: 12px;
}

.seo-block__content ul li:before {
    content: "\2022";
    margin-left: 8px;
    margin-right: 8px;
}

.seo-block__content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 14px;
    color: var(--text);
}

.seo-block__content p+p {
    margin-top: 8px;
}

.seo-block__content p {
    line-height: 19px;
    margin-bottom: 16px;
}

/* BUTTON */
.seo-block__toggle {
    background: transparent;
    border: none;
    color: var(--green);
    padding: 0;
}

.seo-block__toggle:hover {
    color: var(--green-dark);
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
