/* ===== Токены ===== */
:root {
    --bg: #f6f6f4;
    --plaster: #ffffff;
    --surface: #ffffff;
    --surface_2: #efefec;
    --paper: #1a1a1a;
    --paper_dim: #4d4a45;
    --muted: #8a877f;
    --gold: #3b2518;
    --gold_deep: #2a1a10;
    --accent: #3b2518;
    --on_accent: #ffffff;
    --line: rgba(59, 37, 24, 0.20);
    --line_soft: rgba(26, 26, 26, 0.10);

    --radius: 12px;
    --radius_sm: 8px;

    --ff_head: Georgia, "Times New Roman", serif;
    --ff_base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --ff_mono: "Courier New", Consolas, monospace;

    --header_h: 112px;
    --marquee_h: 52px;
}

/* ===== Тёмный хром: шапка и подвал (светлое на чёрном) ===== */
.site_header,
.site_footer {
    --bg: #141210;
    --plaster: #0d0d0d;
    --surface: #1c1b19;
    --surface_2: #262523;
    --paper: #ffffff;
    --paper_dim: rgba(255, 255, 255, 0.72);
    --muted: rgba(255, 255, 255, 0.45);
    --gold: #ffffff;
    --gold_deep: #e4ddd0;
    --accent: #ffffff;
    --on_accent: #14130f;
    --line: rgba(255, 255, 255, 0.16);
    --line_soft: rgba(255, 255, 255, 0.09);
}

/* ===== Текст поверх фото (hero, карточки, баннер) — остаётся светлым ===== */
.hero_slides,
.cat_body,
.banner_section,
.product_media,
.product_no,
.product_brand {
    --paper: #f3efe6;
    --paper_dim: #cfcabf;
    --muted: #a09b90;
    --gold: #ffffff;
    --gold_deep: #e8e4da;
    --accent: #ffffff;
    --on_accent: #1a130c;
    --line: rgba(255, 255, 255, 0.24);
    --line_soft: rgba(255, 255, 255, 0.12);
}

/* ===== Базовый сброс ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding-top: var(--header_h);
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--paper);
    font-family: var(--ff_base);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

h1, h2, h3, p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

.ff4 {
    font-family: var(--ff_mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== Контейнер ===== */
[class$="_inner"] {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: var(--radius_sm);
    font-family: var(--ff_mono);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn_sm { height: 44px; padding: 0 20px; font-size: 12px; }
.btn_icon { width: 44px; padding: 0; }
.btn_ic { width: 26px; height: 26px; }

.btn_gold {
    background: #fff;
    color: #3b2518;
    border-color: var(--line);
}
.btn_gold:hover { background: #ece9e2; border-color: var(--line); color: #3b2518; }

.btn_ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}
.btn_ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Заголовки секций ===== */
.section_head { max-width: 640px; margin-bottom: 44px; }
.section_num { display: none; }
.section_title {
    font-family: var(--ff_head);
    font-weight: 400;
    font-size: 38px;
    line-height: 1.12;
    letter-spacing: 0.01em;
}
.section_lede { margin-top: 16px; color: var(--paper_dim); }

section { padding: 0 0 96px; }

/* Симметричный вертикальный отступ секций (верхний = нижнему). Контент не
   прижимается к верхнему краю, промежутки между блоками единообразны.
   Hero и banner сохраняют собственные отступы. */
.catalog_section,
.groups_section,
.products_section,
.about_section,
.features_section,
.reviews_section,
.contact_section { padding-top: 96px; }

/* ===== Хлебные крошки статических страниц (вид как у .woocommerce-breadcrumb) ===== */
/* Крошки лежат ПЕРВЫМ ребёнком секции — наследуют её фон (на светлых .about_section
   и т.п. не выделяются тёмной полосой). Верхний отступ берёт на себя сама секция. */
section.has_crumbs { padding-top: 40px; }
.site_crumbs { margin-bottom: 28px; color: var(--muted); font-family: var(--ff_mono); font-size: 12px; line-height: 1.5; }
.site_crumbs a { color: var(--paper_dim); text-decoration: none; transition: color 0.2s; }
.site_crumbs a:hover { color: var(--gold); }
.site_crumbs_sep { margin: 0 8px; }
@media (max-width: 850px) {
    section.has_crumbs { padding-top: 28px; }
    .site_crumbs { margin-bottom: 20px; }
}

/* ===== Шапка ===== */
.site_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header_h);
    background: var(--plaster);
    border-bottom: 1px solid var(--line_soft);
}
.site_header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 220px;
    background: var(--plaster);
}
.header_inner { display: flex; align-items: stretch; height: 100%; }
.header_cols { flex: 1; display: flex; flex-direction: column; margin-left: 40px; }

/* ===== Бегущая строка под шапкой ===== */
/* В обычном потоке первым блоком под фикс-шапкой — при скролле уезжает вверх и
   прячется за шапкой (на пк и моб), наверху появляется снова. */
.site_marquee {
    flex: none;
    height: var(--marquee_h);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #0d0d0d;
    color: #fff;
}
.marquee_track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: legreys_marquee 40s linear infinite;
}
.marquee_seq { display: flex; align-items: center; }
.marquee_item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--ff_mono);
    font-size: 15px;
    letter-spacing: 0.04em;
}
.marquee_item::before {
    content: "✦";
    margin: 0 34px;
    font-size: 10px;
    opacity: 0.55;
}
/* Дорожка = две одинаковые последовательности; сдвиг на 50% = ровно одна
   последовательность → бесшовный цикл. */
@keyframes legreys_marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee_track { animation: none; }
}
.header_row_top {
    height: 56px;
    border-bottom: 1px solid var(--line_soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header_row_bottom {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header_contacts { display: flex; align-items: center; }
.header_contacts > * + * { margin-left: 24px; }
.header_social { display: flex; align-items: center; }
.header_social > * + * { margin-left: 10px; }
.header_social a { display: block; transition: opacity 0.2s; }
.header_social a:hover { opacity: 0.8; }
.header_soc_ic { display: block; width: 22px; height: 22px; }
.header_catalog { flex: none; }
/* Кнопка каталога в чёрной шапке — акцентная коричневая */
.site_header .header_catalog {
    background: #3b2518;
    border-color: #3b2518;
    color: #fff;
}
.site_header .header_catalog:hover {
    background: #2a1a10;
    border-color: #2a1a10;
    color: #fff;
}

/* ===== Выпадающее меню каталога ===== */
.catalog_menu { position: relative; flex: none; }
.catalog_dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    width: 780px;
    max-width: 92vw;
    background: var(--plaster);
    border: 1px solid var(--line_soft);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.catalog_menu.is_open .catalog_dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.catalog_dd_body { display: grid; grid-template-columns: 210px 1fr; }
.catalog_dd_cats {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-right: 1px solid var(--line_soft);
}
.catalog_dd_cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: transparent;
    border: 0;
    border-radius: var(--radius_sm);
    color: var(--paper);
    font-family: var(--ff_head);
    font-size: 17px;
    text-align: left;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.catalog_dd_cat + .catalog_dd_cat { margin-top: 4px; }
.catalog_dd_cat > span { color: var(--gold); opacity: 0; transition: opacity 0.2s; }
.catalog_dd_cat:hover,
.catalog_dd_cat.is_active { background: var(--surface); }
.catalog_dd_cat.is_active > span { opacity: 1; }

.catalog_dd_products { padding: 18px; }
.catalog_dd_panel { display: none; }
.catalog_dd_panel.is_active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dd_product {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line_soft);
    border-radius: var(--radius_sm);
    overflow: hidden;
    transition: border-color 0.2s;
}
.dd_product:hover { border-color: var(--gold); }
.dd_product_media { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.dd_product_media img { width: 100%; height: 100%; object-fit: cover; }
.dd_product_body { display: block; padding: 10px 12px 12px; }
.dd_product_brand { display: block; color: var(--gold); font-size: 10px; }
.dd_product_name { display: block; margin-top: 3px; font-family: var(--ff_head); font-size: 15px; color: var(--paper); }
.dd_product_price { display: block; margin-top: 6px; font-family: var(--ff_head); font-size: 14px; color: var(--paper_dim); }

.dd_all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}
.dd_all_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold);
    font-size: 18px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.dd_all:hover .dd_all_arrow { background: var(--gold); border-color: var(--gold); color: var(--on_accent); }
.dd_all_text { margin-top: 12px; font-family: var(--ff_head); font-size: 15px; color: var(--paper); }
.header_search {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 24px 0 12px;
}
.header_search .aws-container { position: relative; flex: 1; width: 100%; }
.header_search .aws-container .aws-search-form { position: relative; display: block; width: 100%; }
.header_search .aws-container .aws-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.header_search .aws-container .aws-search-field {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 46px 0 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius_sm) !important;
    color: var(--paper);
    font-family: var(--ff_base);
    font-size: 14px;
}
.header_search .aws-container .aws-search-field::placeholder { color: var(--muted); }
.header_search .aws-container .aws-search-field:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--gold);
    box-shadow: none;
}
.header_search .aws-container .aws-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
    width: 46px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}
.header_search .aws-container .aws-search-btn:hover { color: var(--gold); background: transparent; }
.header_search .aws-container .aws-search-btn .aws-search-btn_icon {
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.header_search .aws-container .aws-search-btn:hover .aws-search-btn_icon { color: var(--gold); }
.header_search .aws-container .aws-search-btn svg { width: 20px; height: 20px; }
.header_search .aws-container .aws-search-clear {
    position: absolute;
    right: 50px;
    top: 0;
    z-index: 3;
    width: 20px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px;
    color: var(--muted);
    cursor: pointer;
}
.header_search .aws-container .aws-loader { right: 52px; }

/* Выпадающие результаты AWS — под тёмную тему */
.aws-search-result {
    margin-top: 8px;
    background: var(--plaster);
    border: 1px solid var(--line);
    border-radius: var(--radius) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.aws-search-result .aws_result_scroll,
.aws-search-result .aws_result_inner,
.aws-search-result .aws_results { background: transparent; border: none; }
.aws-search-result .aws_result_inner { border-radius: var(--radius) !important; overflow: hidden; }
.aws-search-result .aws_result_scroll { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.aws-search-result .aws_result_scroll::-webkit-scrollbar { width: 8px; }
.aws-search-result .aws_result_scroll::-webkit-scrollbar-track { background: transparent; }
.aws-search-result .aws_result_scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.aws-search-result .aws_result_scroll::-webkit-scrollbar-thumb:hover { background: var(--gold_deep); }
.aws-search-result .aws_results .aws_result_item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}
.aws-search-result .aws_result_item:hover { background: var(--surface_2); }
.aws-search-result .aws_result_link_top {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    text-indent: -9999px;
}
.aws-search-result .aws_result_image {
    flex: none;
    width: 48px;
    height: 48px;
    margin-right: 14px;
    padding: 0;
    border-radius: var(--radius_sm);
    overflow: hidden;
}
.aws-search-result .aws_result_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aws-search-result .aws_result_content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.aws-search-result .aws_result_content > * + * { margin-top: 4px; }
.aws-search-result .aws_result_head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.aws-search-result .aws_result_title {
    color: var(--paper);
    font-family: var(--ff_head);
    font-size: 15px;
    line-height: 1.25;
}
.aws-search-result .aws_result_title strong,
.aws-search-result .aws_result_excerpt strong { color: var(--gold); font-weight: 600; }
.aws-search-result .aws_result_price {
    flex: none;
    margin-left: 12px;
    color: var(--gold);
    font-size: 13px;
    white-space: nowrap;
}
.aws-search-result .aws_result_price .woocommerce-Price-amount { color: var(--gold); }
.aws-search-result .aws_result_excerpt {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.aws-search-result .aws_result_term {
    color: var(--paper_dim);
    font-family: var(--ff_mono);
    font-size: 11px;
}
.aws-search-result .aws_result_item.aws_search_more,
.aws-search-result .aws_no_result {
    display: block;
    padding: 13px 18px;
    text-align: center;
    border: 0;
    color: var(--gold);
    font-family: var(--ff_mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.aws-search-result .aws_no_result { color: var(--muted); }
.aws-search-result .aws_result_item.aws_search_more:hover { background: var(--surface_2); color: var(--paper); }

.site_logo { display: flex; align-items: center; flex: none; }
.site_logo_img {
    display: block;
    height: 76px;
    width: auto;
    /* чёрная графика лого → белый тон под тёмную шапку */
    filter: brightness(0) invert(1);
}

.site_nav { padding-left: 21px; }
.nav_list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav_list > li + li { margin-left: 30px; }
.nav_list a { font-size: 14px; color: var(--paper_dim); transition: color 0.2s; }
.nav_list a:hover { color: var(--gold); }

.site_actions { display: flex; align-items: center; }
.site_actions > * + * { margin-left: 8px; }
.action_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--paper_dim);
    transition: color 0.2s;
}
.action_btn:hover { color: var(--gold); }
.action_btn svg { width: 22px; height: 22px; }
.search_toggle { display: none; background: transparent; border: 0; padding: 0; cursor: pointer; }
.cart_count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--on_accent);
    font-family: var(--ff_mono);
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: none;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--paper);
    transition: transform 0.25s, opacity 0.2s;
}
.burger span + span { margin-top: 5px; }

/* ===== Hero ===== */
.hero_section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: calc(100dvh - var(--header_h));
    padding: 0 0 80px;
}
.hero_slides { position: absolute; inset: 0; z-index: 0; }
.hero_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero_bg.is_active { opacity: 1; }
.hero_slides::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 16, 12, 0.92) 0%, rgba(10, 16, 12, 0.55) 45%, rgba(10, 16, 12, 0.2) 100%),
                linear-gradient(0deg, rgba(10, 16, 12, 0.85) 0%, rgba(10, 16, 12, 0) 55%);
}
.hero_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(13, 19, 15, 0.55);
    color: var(--paper);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.hero_arrow:hover { border-color: var(--gold); background: rgba(13, 19, 15, 0.9); }
.hero_arrow svg { width: 22px; height: 22px; }
.hero_arrow_prev { left: 20px; }
.hero_arrow_next { right: 20px; }
.hero_section_inner { max-width: 1280px; width: 100%; }
.hero_kicker { display: none; }
.hero_title {
    margin-top: 18px;
    font-family: var(--ff_head);
    font-weight: 400;
    font-size: 96px;
    line-height: 0.98;
    letter-spacing: 0.01em;
    color: var(--gold);
}
.hero_lede { display: none; }
.hero_actions { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 0; }
.hero_actions > * { margin: 0 7px 14px; }
.hero_tags { display: flex; flex-wrap: wrap; margin-top: 18px; }
.hero_tags span { color: var(--muted); font-size: 11px; }
.hero_tags span + span { margin-left: 22px; position: relative; }
.hero_tags span + span::before {
    content: "·";
    position: absolute;
    left: -13px;
    color: var(--gold);
}

/* ===== Категории ===== */
.cat_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat_card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border: 1px solid var(--line_soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s;
}
.cat_card:hover { border-color: var(--gold); }
.cat_media { position: absolute; inset: 0; display: block; }
.cat_media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat_card:hover .cat_media img { transform: scale(1.04); }
.cat_body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
    padding: 64px 24px 24px;
    background: linear-gradient(0deg, rgba(10, 16, 12, 0.97) 0%, rgba(10, 16, 12, 0.85) 35%, rgba(10, 16, 12, 0.4) 70%, rgba(10, 16, 12, 0) 100%);
}
.cat_name { grid-column: 1; grid-row: 1; font-family: var(--ff_head); font-size: 26px; color: var(--paper); }
.cat_desc { grid-column: 1; grid-row: 2; margin-top: 6px; color: var(--paper_dim); font-size: 15px; }
.cat_arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold);
    font-size: 18px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cat_card:hover .cat_arrow { background: var(--gold); border-color: var(--gold); color: var(--on_accent); }

/* ===== Группы ароматов ===== */
.groups_section { background: var(--surface); }
.group_list { display: flex; flex-wrap: wrap; margin: -12px 0 0 -12px; }
.group_tag {
    margin: 12px 0 0 12px;
    padding: 13px 24px;
    border: 1px solid var(--accent);
    border-radius: var(--radius_sm);
    font-family: var(--ff_head);
    font-size: 18px;
    background: var(--accent);
    color: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.group_tag:hover { background: var(--gold_deep); border-color: var(--gold_deep); color: #fff; }

/* ===== Страница «Ароматы»: дерево категорий ===== */
.aroma_cats { margin-top: 8px; }
.aroma_cat { padding: 28px 0; border-top: 1px solid var(--line_soft); }
.aroma_cat:last-child { border-bottom: 1px solid var(--line_soft); }
.aroma_cat_head { display: inline-flex; align-items: center; }
.aroma_cat_head .cat_arrow { margin-left: 16px; width: 40px; height: 40px; font-size: 16px; }
.aroma_cat_head:hover .cat_arrow { background: var(--gold); border-color: var(--gold); color: var(--on_accent); }
.aroma_cat_name { font-family: var(--ff_head); font-size: 28px; color: var(--paper); transition: color 0.2s; }
.aroma_cat_head:hover .aroma_cat_name { color: var(--gold); }
.aroma_cat .group_list { margin-top: 12px; }
@media (max-width: 850px) {
    .aroma_cat { padding: 22px 0; }
    .aroma_cat_name { font-size: 22px; }
}

/* ===== Товары ===== */
.slider { position: relative; }
.slider_viewport { overflow: hidden; }
.slider_track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    transition: transform 0.4s ease;
    touch-action: pan-y;
}
.slider_controls { display: flex; justify-content: center; margin-top: 28px; }
.slider_controls > * + * { margin-left: 14px; }
.slider_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.slider_arrow:hover { border-color: var(--gold); background: var(--surface_2); }
.slider_arrow svg { width: 20px; height: 20px; }
.slider_arrow[disabled] { opacity: 0.3; cursor: default; }
.product_card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line_soft);
    border-radius: var(--radius);
    overflow: hidden;
}
.product_media { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.product_media img { width: 100%; height: 100%; object-fit: cover; }
.product_no {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 10px;
    background: rgba(13, 19, 15, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius_sm);
    color: var(--gold);
    font-size: 11px;
}
.product_body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 22px 24px; }
.product_brand {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    max-width: calc(100% - 32px);
    padding: 6px 10px;
    background: rgba(13, 19, 15, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius_sm);
    color: var(--gold);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product_cart_notice {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 19, 15, 0.78);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    text-decoration: none;
}
.product_card.is_added .product_cart_notice { opacity: 1; visibility: visible; }
.product_cart_notice_in {
    padding: 12px 20px;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius_sm);
    color: var(--on_accent);
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}
.product_cart_notice:hover .product_cart_notice_in { background: transparent; border-color: #fff; color: #fff; }

.product_motif { color: var(--gold); font-size: 12px; line-height: 1; }
.product_name { margin-top: 6px; font-family: var(--ff_head); font-size: 24px; }
.product_group { margin-top: 8px; color: var(--gold); font-size: 11px; transition: color 0.2s; }
.product_group:hover { color: var(--paper); }

.vol_block { margin-top: 20px; margin-bottom: 20px; }
.vol_label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.vol_list { display: flex; flex-wrap: wrap; margin: -6px 0 0 -6px; }
.vol_item {
    margin: 6px 0 0 6px;
    min-width: 46px;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius_sm);
    color: var(--paper_dim);
    font-family: var(--ff_mono);
    font-size: 12px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vol_item:hover { border-color: var(--gold); color: var(--gold); }
.vol_item.is_active { background: var(--gold); border-color: var(--gold); color: var(--on_accent); }

/* Много вариаций (ароматы) — чипы компактнее, чтобы карточка не распухала. */
.vol_block_aroma .vol_list { margin-top: -5px; margin-left: -5px; }
.vol_block_aroma .vol_item {
    margin: 5px 0 0 5px;
    min-width: 0;
    padding: 5px 8px;
    font-size: 10px;
    letter-spacing: 0.02em;
}

/* Много ароматов (> 12) — в карточке выпадающий список вместо плашек. */
.vol_select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 10px 36px 10px 12px;
    background-color: transparent;
    /* Свой шеврон (декоративный affordance контрола, не контентное изображение). */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23cfcabf' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius_sm);
    color: var(--paper_dim);
    font-family: var(--ff_mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.vol_select:hover,
.vol_select:focus { border-color: var(--gold); color: var(--gold); outline: none; }
/* Выпадающий список опций рисует ОС — задаём читаемый фон/цвет. */
.vol_select option { background: var(--surface); color: var(--paper); }

.product_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;    /* всегда прижат к низу карточки (строки сетки разной высоты) */
    padding-top: 22px;   /* минимальный зазор до цены/иконки */
}
.product_price { font-family: var(--ff_head); font-size: 22px; color: var(--paper); }

/* Иконка корзины закрашивается золотом после добавления товара. */
.product_card.is_added .product_add {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--on_accent);
}
.product_card.is_added .product_add:hover {
    background: var(--gold_deep);
    border-color: var(--gold_deep);
    color: var(--on_accent);
}
/* Штатную inline-ссылку «Просмотр корзины» (её вставляет add-to-cart.js после
   кнопки) прячем — вместо неё показываем плашку над изображением .product_cart_notice,
   чтобы добавление товара не сдвигало содержимое карточки. Специфичность 0,3,1 —
   перебивает плагинное .woocommerce a.added_to_cart (0,2,1). */
.product_card .product_foot a.added_to_cart { display: none; }

.products_head {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
}
.products_head_text { max-width: 640px; }
.products_head_btn { flex: none; margin-left: 24px; }

/* ===== О магазине ===== */
.about_section { background: var(--surface); }
.about_section_inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about_media { overflow: hidden; border-radius: var(--radius); }
.about_media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about_text .section_num { margin-bottom: 14px; }
.about_text p { margin-top: 18px; color: var(--paper_dim); }
.about_facts { display: flex; flex-wrap: wrap; margin: 36px 0 0 -36px; }
.fact_item { display: flex; flex-direction: column; margin: 0 0 0 36px; }
.fact_num { color: var(--gold); font-family: var(--ff_head); font-size: 32px; text-transform: none; letter-spacing: 0; }
.fact_label { margin-top: 6px; color: var(--muted); font-size: 13px; }

/* ===== Преимущества ===== */
.feature_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature_card {
    padding: 32px 26px;
    background: var(--surface);
    border: 1px solid var(--line_soft);
    border-radius: var(--radius);
}
.feature_ico { display: block; color: var(--gold); margin-bottom: 20px; }
.feature_ico svg { width: 36px; height: 36px; }
.feature_title { font-family: var(--ff_head); font-size: 20px; }
.feature_desc { margin-top: 12px; color: var(--paper_dim); font-size: 14px; }

/* ===== Политика конфиденциальности ===== */
.policy_section { background: var(--surface); }
.policy_section .section_head { margin-bottom: 36px; max-width: 860px; }
.policy_body { max-width: 860px; color: var(--paper_dim); font-size: 15px; line-height: 1.7; }
.policy_body > :first-child { margin-top: 0; }
.policy_body h2 { font-family: var(--ff_head); font-size: 22px; color: var(--paper); margin-top: 40px; }
.policy_body h3 { font-family: var(--ff_head); font-size: 18px; color: var(--paper); margin-top: 28px; }
.policy_body p { margin-top: 16px; }
.policy_body ul { list-style: disc; margin: 16px 0 0; padding-left: 22px; }
.policy_body li { margin-top: 8px; }
.policy_body a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
.policy_body a:hover { color: var(--gold_deep); }

/* ===== Бренд-баннер ===== */
.banner_section { position: relative; overflow: hidden; padding: 0; }
.banner_bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner_section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(10, 16, 12, 0.72);
}
.banner_section_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
}
.banner_text { color: var(--gold); font-size: 13px; margin-bottom: 26px; }

/* ===== Отзывы ===== */
.review_card {
    margin: 0;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--line_soft);
    border-radius: var(--radius);
}
.review_card blockquote { margin: 0; font-family: var(--ff_head); font-size: 19px; line-height: 1.5; }
.review_author { display: flex; align-items: center; margin-top: 20px; color: var(--muted); font-size: 12px; }
.review_avatar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold);
}
.review_avatar svg { width: 20px; height: 20px; }
.review_links { display: flex; flex-wrap: wrap; justify-content: center; margin: 44px 0 0 -14px; }
.review_links > * { margin: 14px 0 0 14px; }
.btn_soc_ic { width: 20px; height: 20px; margin-left: 10px; }

/* ===== Контакты + форма ===== */
.contact_section { background: var(--surface); }
.contact_section_inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact_text .section_num { margin-bottom: 14px; }
.contact_text > p { margin-top: 18px; color: var(--paper_dim); }
.contact_list { list-style: none; margin: 36px 0 0; padding: 0; }
.contact_list li { padding: 16px 0; border-top: 1px solid var(--line_soft); }
.contact_list li:last-child { border-bottom: 1px solid var(--line_soft); }
.contact_label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.contact_list a:hover { color: var(--gold); }
.contact_messengers { display: flex; flex-wrap: wrap; margin: 28px 0 0 -12px; }
.msg_btn {
    display: inline-flex;
    align-items: center;
    margin: 12px 0 0 12px;
    padding: 11px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius_sm);
    font-family: var(--ff_mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: border-color 0.2s, color 0.2s;
}
.msg_btn:hover { border-color: var(--gold); color: var(--gold); }

/* Форма обратной связи */
.contact_form,
.wpcf7-form {
    display: flex;
    flex-direction: column;
    padding: 36px 34px 34px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact_form > * + *,
.wpcf7-form > * + * { margin-top: 22px; }
.contact_form_head { display: flex; align-items: baseline; justify-content: space-between; }
.contact_form_num { color: var(--gold); font-size: 12px; }
.contact_form_meta { color: var(--muted); font-size: 12px; }
.form_field { display: flex; flex-direction: column; }
.form_label { color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.form_field input,
.form_field textarea,
.form_field select {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    font-family: var(--ff_base);
    font-size: 16px;
}
.form_field textarea { resize: vertical; height: calc(2 * 22px + 24px + 1px); }
.form_field input::placeholder,
.form_field textarea::placeholder { color: var(--muted); }
.form_field input:focus,
.form_field textarea:focus,
.form_field select:focus { outline: none; border-bottom-color: var(--gold); }
.form_field select {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    cursor: pointer;
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b2518' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px;
}
.form_field select:invalid { color: var(--muted); }
.form_field select option { color: #1a1a1a; background: #fff; }

.form_actions {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    row-gap: 14px;
    padding-top: 12px;
}
.form_submit {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: 56px;
    padding: 0 30px;
    text-align: center;
    background: var(--gold);
    border: none;
    border-radius: var(--radius_sm);
    color: var(--on_accent);
    font-family: var(--ff_mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}
.form_submit:hover { background: var(--gold_deep); color: var(--on_accent); }
.form_note { grid-column: 1 / -1; grid-row: 2; margin: 0; color: var(--muted); font-size: 12px; }

/* ===== Подвал ===== */
.site_footer { margin-top: auto; background: var(--plaster); border-top: 1px solid var(--line_soft); }
.site_footer_inner { padding-top: 64px; padding-bottom: 36px; }
.footer_top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer_logo_plate {
    display: inline-block;
    padding: 16px 20px;
    background: var(--paper);
    border-radius: 6px;
}
.footer_logo_plate img { height: 72px; width: auto; }
.footer_about { margin-top: 20px; max-width: 280px; color: var(--muted); font-size: 14px; }
.footer_col_title { display: block; color: var(--gold); font-size: 11px; margin-bottom: 18px; }
.footer_links { list-style: none; margin: 0; padding: 0; }
.footer_links li + li { margin-top: 12px; }
.footer_links a { color: var(--paper_dim); font-size: 14px; transition: color 0.2s; }
.footer_links a:hover { color: var(--gold); }
.footer_social { display: flex; flex-wrap: wrap; margin: 20px 0 0 -16px; }
.footer_social a { display: inline-flex; align-items: center; margin: 8px 0 0 16px; transition: opacity 0.2s; }
.footer_social a:hover { opacity: 0.7; }
.footer_social .soc_ic { width: 32px; height: 32px; margin-right: 0; }

.footer_pay { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line_soft); }
.footer_pay img { height: 34px; width: auto; }

.footer_bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line_soft);
    color: var(--muted);
    font-size: 13px;
}
.footer_bottom a:hover { color: var(--gold); }

/* ===== Плавающие мессенджеры ===== */
.float_messengers {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.float_messengers.is_visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.float_messengers > * + * { margin-top: 12px; }
.float_msg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: #3b2518;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: background 0.2s, opacity 0.2s;
}
.float_msg:hover { background: #2a1a10; }
.float_msg img { display: block; width: 52%; height: 52%; }

/* Мелкие иконки соцсетей (подвал, контакты) */
.soc_ic { display: block; width: 18px; height: 18px; margin-right: 8px; }

/* ===== Десктоп: постер hero_desktop несёт название — дубль текста скрываем ===== */
@media (min-width: 851px) {
    .hero_kicker,
    .hero_title,
    .hero_tags {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }
    .hero_lede { margin-top: 0; }
    .hero_slides::after {
        background: linear-gradient(0deg, rgba(10, 16, 12, 0.9) 0%, rgba(10, 16, 12, 0.15) 48%, rgba(10, 16, 12, 0) 72%);
    }
    /* Кнопки hero на десктопе лежат поверх фото — держим светлый акцент/текст */
    .hero_section_inner {
        --paper: #f3efe6;
        --gold: #ffffff;
        --on_accent: #1a130c;
        --line: rgba(255, 255, 255, 0.24);
    }
}

/* ===== Планшет ===== */
@media (max-width: 1100px) {
    .feature_grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Мобильная версия (до 850px) ===== */
@media (max-width: 850px) {
    :root { --header_h: 64px; --marquee_h: 44px; }

    .marquee_item { font-size: 14px; }
    .marquee_item::before { margin: 0 24px; }

    section { padding: 64px 0; }
    /* возвращаем мобильную симметрию (desktop longhand padding-top перебил бы shorthand) */
    .catalog_section,
    .groups_section,
    .products_section,
    .about_section,
    .features_section,
    .reviews_section,
    .contact_section { padding-top: 64px; }
    .section_title { font-size: 30px; }
    .section_head { margin-bottom: 32px; }

    .site_logo_img { height: 42px; }
    .header_cols {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        margin-left: 16px;
    }
    .header_row_top { order: 2; height: auto; border-bottom: none; margin-left: 10px; }
    .header_row_bottom { order: 1; flex: none; }
    .catalog_menu { display: none; }
    .header_contacts { display: none; }
    .header_search { display: none; }
    .search_toggle { display: flex; }

    .is_search_open .header_search {
        display: block;
        position: fixed;
        top: var(--header_h);
        left: 0;
        right: 0;
        z-index: 45;
        margin: 0;
        box-sizing: border-box;
        padding: 10px 16px;
        background: var(--plaster);
        border-bottom: 1px solid var(--line_soft);
    }
    .is_search_open .header_search .aws-container { width: 100%; }
    .is_search_open .header_search .aws-search-result {
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .site_nav {
        position: fixed;
        top: var(--header_h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        background: var(--plaster);
        padding: 24px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .is_menu_open .site_nav { transform: translateX(0); }
    .nav_list { flex-direction: column; }
    .nav_list > li + li { margin-left: 0; margin-top: 4px; }
    .nav_list a { display: block; padding: 16px 0; font-size: 20px; font-family: var(--ff_head); border-bottom: 1px solid var(--line_soft); }

    .burger { display: flex; }
    .is_menu_open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .is_menu_open .burger span:nth-child(2) { opacity: 0; }
    .is_menu_open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero_section {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 0 0 56px;
    }
    .hero_slides { position: relative; inset: auto; }
    .hero_bg.is_active { position: relative; height: auto; }
    .hero_slides::after { display: none; }
    .hero_arrow { width: 40px; height: 40px; }
    .hero_arrow svg { width: 18px; height: 18px; }
    .hero_arrow_prev { left: 12px; }
    .hero_arrow_next { right: 12px; }
    .hero_section_inner { margin-top: 32px; }
    .hero_title { display: none; }
    .hero_tags { display: none; }
    .hero_actions { flex-direction: column; align-items: stretch; }
    .hero_actions > * { width: 100%; margin: 0 0 12px; }

    .cat_grid { grid-template-columns: 1fr; }
    .cat_card { aspect-ratio: 16 / 10; }
    .group_list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
    .group_tag { margin: 0; padding: 14px 12px; font-size: 15px; text-align: center; }
    .feature_grid { grid-template-columns: 1fr; }
    .feature_card { padding: 22px 20px; }
    .slider_track { grid-auto-columns: 100%; }
    .product_media { aspect-ratio: 4 / 3; }
    .product_cart_notice { aspect-ratio: 4 / 3; }
    .product_body { padding: 16px 18px 18px; }
    .product_name { margin-top: 4px; }
    .product_group { margin-top: 5px; }
    .vol_block { margin-top: 14px; }
    .vol_label { margin-bottom: 7px; }
    .product_foot { padding-top: 14px; }
    .products_head_btn { margin-left: 0; margin-top: 24px; }
    .about_section_inner { grid-template-columns: 1fr; gap: 32px; }
    .about_facts { justify-content: center; }
    .fact_item { align-items: center; text-align: center; }
    .contact_section_inner { grid-template-columns: 1fr; gap: 36px; }
    .footer_top { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
    .footer_brand { grid-column: 1 / -1; text-align: center; }
    .footer_about { margin-left: auto; margin-right: auto; }
    .footer_top > nav.footer_col:last-of-type { text-align: right; }
    .footer_top > .footer_col:last-child { grid-column: 1 / -1; text-align: center; }
    .footer_social { justify-content: center; margin: 16px 0 0 0; }
    .footer_social a { margin: 8px 8px 0; }
    .footer_social .soc_ic { width: 24px; height: 24px; }
    .footer_bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
    .footer_bottom a { margin-top: 10px; }
}

/* ===== Малые телефоны (до 520px) ===== */
@media (max-width: 520px) {
    .hero_title { font-size: 48px; }
    .section_title { font-size: 26px; }
    .contact_form,
    .wpcf7-form { padding: 28px 22px; }
}

/* ===== Служебные страницы (page / single / search / archive) ===== */
/* body уже имеет padding-top: var(--header_h) — повторный отступ под фикс-шапку не нужен, добавляем только воздух */
.site-main {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 20px 96px;
}

.site-main a { color: var(--gold); }
.site-main a:hover { color: var(--gold_deep); }

.page-title,
.entry-title {
    font-family: var(--ff_head);
    font-weight: 400;
    font-size: 34px;
    line-height: 1.12;
    margin-bottom: 24px;
}
.entry-title a { color: inherit; }

.entry-content > * + *,
.page-content > * + * { margin-top: 18px; }

.entry-content h2,
.entry-content h3,
.page-content h2,
.page-content h3 {
    font-family: var(--ff_head);
    font-weight: 400;
    line-height: 1.2;
    margin-top: 36px;
}
.entry-content h2,
.page-content h2 { font-size: 26px; }
.entry-content h3,
.page-content h3 { font-size: 21px; }

.entry-content ul,
.entry-content ol { padding-left: 22px; }
.entry-content li + li { margin-top: 8px; }

.entry-content blockquote {
    margin: 0;
    padding: 14px 22px;
    border-left: 3px solid var(--line);
    color: var(--paper_dim);
    font-style: italic;
}

.entry-content img { border-radius: var(--radius_sm); }

/* Метаданные записи */
.entry-meta,
.posted-on,
.byline,
.entry-footer {
    font-family: var(--ff_mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.entry-footer { margin-top: 28px; }

/* Форма поиска */
.search-form {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}
.search-field {
    flex: 1 1 200px;
    height: 52px;
    padding: 0 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius_sm);
    color: var(--paper);
    font-family: var(--ff_base);
    font-size: 15px;
}
.search-submit {
    height: 52px;
    margin-left: 10px;
    padding: 0 26px;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius_sm);
    color: #fff;
    font-family: var(--ff_mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.search-submit:hover { background: var(--gold_deep); border-color: var(--gold_deep); }

/* Пагинация постов/комментариев */
.navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 48px;
}

/* ===== 404 ===== */
.error404_section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48vh;
    text-align: center;
}
.error404_section_inner { max-width: 560px; }
.error404_code {
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--gold);
}
.error404_title {
    font-family: var(--ff_head);
    font-weight: 400;
    font-size: 54px;
    line-height: 1.08;
}
.error404_title em { color: var(--gold); font-style: italic; }
.error404_text {
    margin: 20px 0 32px;
    color: var(--paper_dim);
}

@media (max-width: 850px) {
    .site-main { padding: 40px 20px 72px; }
    .page-title,
    .entry-title { font-size: 28px; }
    .error404_title { font-size: 40px; }
}

/* ===== Contact Form 7 — подгон под .contact_form ===== */
/* защита от autop (на случай кеша / устаревшего CF7) */
.wpcf7-form p { margin: 0; }
.wpcf7-form br { display: none; }

/* служебные hidden-поля (CF7 6.1+ обёртывает в fieldset) */
.wpcf7-form > fieldset.hidden-fields-container { display: none; }
.wpcf7-form > fieldset.hidden-fields-container + * { margin-top: 0; }

/* обёртка инпута — inline по умолчанию, растягиваем на всю ширину поля */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
}

/* спиннер крутится в правом крае кнопки отправки */
.form_actions .wpcf7-spinner {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin: 0 20px 0 0;
    width: 16px;
    height: 16px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--on_accent);
    border-radius: 50%;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    animation: lg_cf7_spin 0.9s linear infinite;
}
.form_actions .wpcf7-spinner::before { display: none; }
.wpcf7-form.submitting .form_actions .wpcf7-spinner { opacity: 1; }
@keyframes lg_cf7_spin { to { transform: rotate(360deg); } }

/* ошибка под полем — абсолютно, не двигает layout */
.wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 5px;
    font-family: var(--ff_mono);
    font-size: 11px;
    line-height: 1.2;
    color: var(--gold_deep);
    pointer-events: none;
    animation: lg_cf7_tip_in 0.2s ease;
}
/* анимируем только сдвиг, не opacity — сообщение не должно оставаться невидимым, если анимация не доиграет */
@keyframes lg_cf7_tip_in { from { transform: translateY(-3px); } to { transform: translateY(0); } }

/* подсветка невалидного поля (только после сабмита) */
.form_field input.wpcf7-not-valid,
.form_field textarea.wpcf7-not-valid,
.form_field select.wpcf7-not-valid { border-bottom-color: var(--gold_deep); }
.form_field input.wpcf7-not-valid::placeholder,
.form_field textarea.wpcf7-not-valid::placeholder { color: var(--gold_deep); opacity: 0.7; }

/* общее сообщение под формой — всплывающая полоска-уведомление */
.wpcf7 .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 10px 14px;
    border: 0;
    border-left: 3px solid var(--line);
    border-radius: 0 var(--radius_sm) var(--radius_sm) 0;
    background: var(--surface);
    font-family: var(--ff_mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--paper_dim);
}
.wpcf7 .wpcf7-response-output:empty { display: none; }
.wpcf7 .wpcf7-response-output:not(:empty) { opacity: 1; animation: lg_cf7_notice_in 0.3s ease; }
/* анимируем только сдвиг, не opacity — сообщение не должно оставаться невидимым, если анимация не доиграет */
@keyframes lg_cf7_notice_in { from { transform: translateY(-6px); } to { transform: translateY(0); } }

.wpcf7-form.invalid ~ .wpcf7-response-output,
.wpcf7-form.failed ~ .wpcf7-response-output,
.wpcf7-form.unaccepted ~ .wpcf7-response-output {
    border-left-color: var(--gold_deep);
    color: var(--gold_deep);
}
.wpcf7-form.sent ~ .wpcf7-response-output {
    border-left-color: #1f8a4c;
    color: #1f8a4c;
}

/* ARIA-блок для скринридеров — за экран */
.wpcf7 .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
