.header-tools { display: flex; align-items: center; gap: 18px; }
.theme-toggle { flex-shrink: 0; color: var(--forest); background: var(--paper); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon--sun { display: none; }
.theme-toggle:hover { border-color: var(--sage); }
html[data-theme="dark"] { color-scheme: dark; --milk: #101210; --white: #1b1e1a; --paper: #191d17; --ink: #e8ede1; --muted: #b4bea9; --forest: #c5e7a4; --forest-2: #d7edc2; --border: #36412f; --sage-soft: #26331e; --sand: #35442a; --shadow: 0 14px 34px rgb(0 0 0 / 28%); }
html[data-theme="dark"] .theme-icon--moon { display: none; }
html[data-theme="dark"] .theme-icon--sun { display: block; }
html[data-theme="dark"] body { background: #101210; color: var(--ink); }
html[data-theme="dark"] :focus-visible { outline-color: var(--lime); }
html[data-theme="dark"] :is(.site-header, .primary-nav) { background: #111510; border-color: var(--border); }
html[data-theme="dark"] .brand { background: white; border-radius: 12px; overflow: hidden; }
html[data-theme="dark"] .announcement { background: #080b08; }
html[data-theme="dark"] .primary-nav .menu { background: #1a2116; border-color: #35402d; }
html[data-theme="dark"] .primary-nav .menu a { color: #d7e1cd; }
html[data-theme="dark"] .primary-nav .menu a:hover { color: #eff9e8; background: #304025; }
html[data-theme="dark"] .primary-nav .menu a[aria-current="page"] { color: #e4f5d4; background: #344626; border-color: #5d7a40; }
html[data-theme="dark"] .primary-nav .menu .menu-item--catalog a { background: #304425; color: #eaf7de; }
html[data-theme="dark"] .primary-nav .menu .menu-item--contacts a { background: #242e1e; border-color: #48573a; }
html[data-theme="dark"] .primary-nav .menu .menu-item--about { border-color: #445237; }
html[data-theme="dark"] .nav-contact-arrow { color: var(--lime); }
html[data-theme="dark"] .site-search input { background: #20261b; color: var(--ink); }
html[data-theme="dark"] .site-search input:focus { background: #252e20; }
html[data-theme="dark"] .search-suggestions { background: #20261c; }
html[data-theme="dark"] .hero { background: radial-gradient(ellipse at 0 100%, #25331b, transparent 65%), #101510; }
html[data-theme="dark"] .hero h1 { color: #edf4e6; }
html[data-theme="dark"] .hero h1 em { color: #a2dc63; }
html[data-theme="dark"] .hero__seal { color: #19300b; border-color: #111710; }
html[data-theme="dark"] :is(.hero__facts, .hero__facts span + span) { border-color: #415133; }
html[data-theme="dark"] .hero__visual::before { border-color: #465d33; }
html[data-theme="dark"] .garden-strip { background: #202c18; border-color: #344629; }
html[data-theme="dark"] .category-card--text { color: #d5e9c0; background: #24331c; }
html[data-theme="dark"] .category-card--2 { background: #172113; }
html[data-theme="dark"] .category-card--3 { background: #2c3c20; }
html[data-theme="dark"] .category-card--4 { background: #20271b; }
html[data-theme="dark"] .category-card--5 { background: #354528; }
html[data-theme="dark"] .category-card--6 { background: #252f1c; }
html[data-theme="dark"] .product-card { background: #191e16; border-color: #35412d; }
html[data-theme="dark"] .product-card--no-photo .product-card__media { background: radial-gradient(ellipse at 85% 20%, #e7f2d4, transparent 65%), #f6f8ef; }
html[data-theme="dark"] .no-photo-label { color: #526246; }
html[data-theme="dark"] .product-card__footer { border-color: #34402b; }
html[data-theme="dark"] .card-link { color: #d7edc2; background: #304025; }
html[data-theme="dark"] .card-link:hover { color: #19300b; background: var(--lime); }
html[data-theme="dark"] .stock.is-available { color: #b4df8b; }
html[data-theme="dark"] :is(.finder, .site-footer) { background: #0a100a; }
html[data-theme="dark"] .finder__form { background: #1a2215; border-color: #425236; }
html[data-theme="dark"] .finder__form--simple select { background: #252f1e; }
html[data-theme="dark"] .advantages article { border-color: #3d4b32; }
html[data-theme="dark"] :is(.catalog-header, .reference-product, .consultation) { background: #202c18; border-color: #37492a; }
html[data-theme="dark"] .filters { background: #181e14; border-color: #3a492f; }
html[data-theme="dark"] :is(.filter-search, .filter-select, .price-inputs input, .catalog-toolbar select, .finder__form--simple select) { color: var(--ink); background-color: #242e1d; border-color: #4c5f3b; }
html[data-theme="dark"] .category-pills a { background: #1b2515; border-color: #3c4d2e; }
html[data-theme="dark"] .category-pills a[aria-current="true"], html[data-theme="dark"] .category-pills a:hover { background: var(--lime); color: #19300b; }
html[data-theme="dark"] :is(.button--primary, .woocommerce .button.button--primary, .finder .button--terracotta) { color: #19300b; }
html[data-theme="dark"] .consultation .button--light { background: #c5e7a4; color: #19300b; }
html[data-theme="dark"] .product-contact-actions .button--secondary { color: #d7edc2 !important; background: #26331e !important; }
html[data-theme="dark"] .price-product-page__media { background: #eef3e4; }
html[data-theme="dark"] .price-product-page__media > span { color: #526246; }
html[data-theme="dark"] .reference-product .product-specs > div { background: #2a3720; }
@media (max-width: 1100px) and (min-width: 821px) { .header-main { grid-template-columns: 200px minmax(0, 1fr) auto; gap: 24px; } }
@media (max-width: 820px) { .header-main { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; } .header-tools { gap: 7px; } .header-main .brand { max-width: 100%; } .header-main .brand__logo { max-width: 100%; } }
@media (max-width: 380px) { .header-tools { gap: 5px; } .header-tools .icon-button, .header-tools .mobile-contact { width: 36px; height: 36px; } .header-main { gap: 7px; } }

/* Native disclosure keeps category navigation usable without JavaScript. */
.primary-nav > .container { position: relative; }
.catalog-disclosure > summary { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 12px; color: white; background: #173c23; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; transition: background .2s; }
.catalog-disclosure > summary::-webkit-details-marker { display: none; }
.catalog-disclosure > summary:hover, .catalog-disclosure[open] > summary { background: #2b5932; }
.catalog-chevron { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; transition: transform .25s; }
.catalog-disclosure[open] .catalog-chevron { transform: rotate(180deg); }
.catalog-panel { position: absolute; z-index: 120; top: calc(100% + 10px); left: 0; right: 0; padding: 28px; border: 1px solid #dce6cf; border-radius: 24px; color: #243e1d; background: #fcfdf8; box-shadow: 0 24px 60px rgb(10 30 10 / 23%); }
.catalog-disclosure[open] .catalog-panel { animation: catalog-open .25s ease-out both; }
.catalog-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.catalog-panel__heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
.catalog-panel h2 { font-size: 26px; font-weight: 550; }
.catalog-panel__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.primary-nav .menu .menu-item--catalog .catalog-panel a { min-width: 0; text-align: left; box-shadow: none; border: 1px solid #e2e9d8; color: #304c23; background: #eff4e5; }
.primary-nav .menu .menu-item--catalog .catalog-panel .catalog-panel__all { flex-shrink: 0; min-height: 42px; gap: 18px; padding: 10px 18px; border-radius: 999px; background: #78d519; color: #19300b; font-size: 12px; }
.primary-nav .menu .menu-item--catalog .catalog-panel .catalog-panel__category { display: flex; justify-content: flex-start; gap: 12px; padding: 20px 15px; min-height: 100px; border-radius: 15px; transition: background .2s, border-color .2s, transform .2s; }
.catalog-panel__category > svg { flex-shrink: 0; width: 29px; height: 29px; stroke: #669c38; stroke-width: 1.4; }
.catalog-panel__category > span { min-width: 0; }
.catalog-panel__category strong, .catalog-panel__category small { display: block; }
.catalog-panel__category strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; hyphens: auto; }
.catalog-panel__category small { margin-top: 7px; font-size: 10px; color: #6c795f; font-weight: 400; }
.catalog-panel__category b { margin-left: auto; font-size: 18px; font-weight: 400; }
.primary-nav .menu .menu-item--catalog .catalog-panel a:hover { background: #e0efcc; border-color: #adc98c; transform: translateY(-2px); }
html[data-theme="dark"] .catalog-disclosure > summary { color: #eaf7de; background: #304425; }
html[data-theme="dark"] .catalog-disclosure[open] > summary { background: #435c32; }
html[data-theme="dark"] .catalog-panel { color: #deecd3; background: #151d11; border-color: #435137; }
html[data-theme="dark"] .primary-nav .menu .menu-item--catalog .catalog-panel a { color: #dbeccf; background: #25331d; border-color: #3b4d2e; }
html[data-theme="dark"] .primary-nav .menu .menu-item--catalog .catalog-panel a:hover { background: #344928; border-color: #6b914c; }
html[data-theme="dark"] .primary-nav .menu .menu-item--catalog .catalog-panel .catalog-panel__all { color: #19300b; background: #78d519; }
html[data-theme="dark"] .catalog-panel__category small { color: #b1c49f; }
html[data-theme="dark"] .catalog-panel__category > svg { stroke: #a0d769; }
@keyframes catalog-open { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .catalog-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .catalog-disclosure > summary { justify-content: flex-start; min-height: 54px; padding: 13px 18px; font-size: 17px; }
  .catalog-chevron { margin-left: auto; }
  .catalog-panel { position: static; margin-top: 10px; padding: 17px 12px; border-radius: 16px; box-shadow: none; }
  .catalog-panel__heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 15px; }
  .catalog-panel h2 { font-size: 22px; }
  .catalog-panel__grid { grid-template-columns: 1fr; gap: 8px; }
  .primary-nav .menu .menu-item--catalog .catalog-panel .catalog-panel__category { min-height: 70px; padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { .catalog-disclosure[open] .catalog-panel { animation: none; } }
