
/* ===== style.css ===== */
/* Шрифты Google Fonts раньше подключались через @import прямо здесь — это
   самый медленный способ: браузер должен был сначала полностью скачать
   site.bundle.css, только потом узнать про этот @import, скачать CSS
   шрифтов с fonts.googleapis.com, и только из НЕГО узнать настоящие адреса
   файлов шрифтов на fonts.gstatic.com — то есть три последовательных
   сетевых захода один за другим, прежде чем страница вообще могла что-то
   нарисовать. Теперь подключение — обычным <link rel="stylesheet"> прямо в
   <head> index.html (с <link rel="preconnect"> перед ним), это позволяет
   браузеру начать грузить шрифты СРАЗУ и ПАРАЛЛЕЛЬНО с этим файлом, а не
   последовательно после него. См. index.html и заметку об этом в SECURITY.md.
   Ничего не меняй здесь на @import обратно. */

:root{
  --bg:#f3f5fa;
  --bg-alt:#eef1f8;
  --ink:#161a2b;
  --ink-soft:#20263a;
  --muted:#454c60;
  --line:#e2e6f0;
  --line-strong:#c9d0de;
  --accent:#4a6cf7;
  --accent-dark:#3450c9;
  --accent-soft:rgba(74,108,247,.12);
  --mint:#2fd0b4;
  --mint-soft:rgba(47,208,180,.14);
  --pink:#ff6fa5;
  --pink-soft:rgba(255,111,165,.14);
  --card:rgba(255,255,255,.68);
  --card-solid:#ffffff;
  --glass-border:rgba(255,255,255,.75);
  --danger:#e14b62;
  --danger-soft:rgba(225,75,98,.12);
  --ok:#1fa88a;
  --warn:#b5760f;
  --warn-soft:rgba(217,143,20,.14);
  --radius:12px;
  --radius-lg:22px;
  --shadow-sm:0 6px 18px rgba(22,26,43,.06);
  --shadow-md:0 20px 50px rgba(22,26,43,.10);
  --serif:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:'Inter', Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  /* color-scheme — подсказка браузеру красить то, что мы сами не красим явным
     background/color (системный скроллбар, чекбоксы/радио без accent-color,
     нативный date-picker и т.п.) под текущую тему, а не всегда под светлую —
     подстраховка на случай элемента, который мы упустили из явных правил. */
  color-scheme:light;
  margin:0; font-family:var(--sans); color:var(--ink); font-size:18px; line-height:1.62; -webkit-font-smoothing:antialiased;
  background-color:var(--bg);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(74,108,247,.18), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(255,111,165,.15), transparent 30%),
    radial-gradient(circle at 62% 88%, rgba(47,208,180,.16), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(74,108,247,.10), transparent 30%);
  background-size:cover;
}
body{transition:background-color .2s ease, color .2s ease;}

/* ---------- Тёмная тема (переключается покупателем, светлая — по умолчанию) ---------- */
body.dark-theme{
  color-scheme:dark;
  --bg:#12141c;
  --bg-alt:#171a24;
  --ink:#eef0f6;
  --ink-soft:#dde1ec;
  --muted:#b3b8cc;
  --line:#282c3a;
  --line-strong:#363c4e;
  --accent:#6d8bff;
  --accent-dark:#8fa5ff;
  --accent-soft:rgba(109,139,255,.16);
  --mint:#3fe0c2;
  --mint-soft:rgba(63,224,194,.14);
  --pink:#ff8ab3;
  --pink-soft:rgba(255,138,179,.14);
  --card:rgba(28,31,42,.68);
  --card-solid:#1b1e28;
  --glass-border:rgba(255,255,255,.08);
  --danger:#ff6b81;
  --danger-soft:rgba(255,107,129,.16);
  --ok:#33c99f;
  --warn:#f2b544;
  --warn-soft:rgba(242,181,68,.16);
  --shadow-sm:0 6px 18px rgba(0,0,0,.28);
  --shadow-md:0 20px 50px rgba(0,0,0,.40);
}
body.dark-theme{
  background-image:
    radial-gradient(circle at 8% 12%, rgba(109,139,255,.12), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(255,138,179,.10), transparent 30%),
    radial-gradient(circle at 62% 88%, rgba(63,224,194,.10), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(109,139,255,.08), transparent 30%);
}
body.dark-theme img{filter:brightness(.94) contrast(1.02);}
body.dark-theme #site-footer{background-color:var(--bg-alt);}
body.dark-theme .announce{background:#05060a; color:#dde1ec;}

/* Трек и ручка переключателя темы намеренно НЕ используют --card/--card-solid/--bg-alt:
   в тёмной теме эти токены почти совпадают с фоном (это "стеклянные" токены для
   панелей на градиентном фоне, а не для мелкого контрола) — переключатель на них
   визуально пропадал. --line-strong всегда заметно отличается от фона в обеих
   темах, а ручка — сплошной белый кружок, который читается на любом фоне. */
.theme-mode-toggle{position:relative; flex:none; display:inline-flex; align-items:center; width:44px; height:24px; border-radius:999px; background:var(--line-strong); border:1px solid var(--line-strong); padding:0; cursor:pointer; transition:background-color .2s, border-color .2s;}
.theme-mode-toggle:hover{border-color:var(--accent);}
.theme-mode-toggle .theme-mode-knob{position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.35); display:flex; align-items:center; justify-content:center; overflow:hidden; font-size:12px; line-height:1; transition:transform .22s ease;}
/* content — с селектором текстового представления U+FE0E и font-variant-emoji:text:
   без них мобильные браузеры (в первую очередь iOS Safari) рисуют "☀"/лунный символ
   полноцветным эмодзи произвольного размера вместо мелкого монохромного глифа — эмодзи
   не вписывается в 18px-кружок ручки переключателя и вылезает/обрезается о края пилюли
   (вот что выглядело "криво" на скриншотах с телефона). ☾ (LAST QUARTER MOON, U+263E) —
   в отличие от 🌙-эмодзи (U+1F319) — обычный текстовый символ, поэтому у него ЕСТЬ
   текстовое начертание и можно его форсировать; overflow:hidden на кружке выше — просто
   подстраховка на случай шрифта без этого символа вообще. */
.theme-mode-toggle .theme-mode-knob{font-variant-emoji:text;}
.theme-mode-toggle .theme-mode-knob:before{content:'☀\FE0E';}
/* var(--ink) раньше давало почти белый трек в тёмной теме (там --ink светлый) —
   вместе с белой ручкой они сливались друг с другом. var(--accent) читается
   как "включено" в обеих темах и всегда контрастен с белой ручкой. */
.theme-mode-toggle.is-on{background:var(--accent);}
.theme-mode-toggle.is-on .theme-mode-knob{transform:translateX(20px);}
.theme-mode-toggle.is-on .theme-mode-knob:before{content:'☾\FE0E';}

a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{list-style:none; margin:0; padding:0;}
button{font-family:inherit; cursor:pointer;}
input, select, textarea{font-family:inherit;}

.container{max-width:1320px; margin:0 auto; padding:0 56px;}
@media (max-width:900px){ .container{padding:0 20px;} }

h1,h2{font-family:var(--serif); font-weight:600; margin:0; color:var(--ink);}
/* h3/h4 в этом сайте почти всегда — мелкие функциональные подзаголовки внутри
   карточек и форм (не крупные витринные заголовки), поэтому тонкая декоративная
   гарнитура там читается плохо — используем обычный жирный шрифт. */
h3,h4{font-family:var(--sans); font-weight:700; margin:0; color:var(--ink);}

.glass{background:var(--card); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border:1px solid var(--glass-border);}

/* ---------- Top announcement bar ---------- */
.announce{background:var(--ink); color:#eef1f8; text-align:center; font-size:15px; letter-spacing:.09em; padding:9px 12px; font-family:var(--sans); font-weight:500;}
/* На узких телефонных экранах строка вроде "Бесплатная доставка при заказе от 3 500 ₽"
   при таких же font-size/letter-spacing, как на десктопе, не помещается в одну строку и
   переносится посередине слова — из-за плотного padding сверху (баннер сразу под шапкой
   браузера/чёлкой) перенос выглядит скомканным. Сокращаем и размер, и трекинг только на
   узких экранах — на десктопе текст короче ширины экрана и не переносится, там ничего не меняем. */
@media (max-width:480px){ .announce{font-size:12.5px; letter-spacing:.02em; padding:8px 16px; line-height:1.4;} }

/* ---------- Header ---------- */
#site-header{background:transparent; position:sticky; top:14px; z-index:50; padding:0 24px; will-change:transform;}
#site-header .header-row{background:var(--card); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border:1px solid var(--glass-border); border-radius:20px; box-shadow:var(--shadow-sm); padding:16px 28px; display:flex; align-items:center; justify-content:flex-start; gap:28px; max-width:1480px; margin:0 auto;}
.logo{font-family:var(--serif); font-size:26px; letter-spacing:.02em; font-weight:600; color:var(--ink); display:inline-flex; align-items:center; gap:8px;}
.logo b{color:var(--accent); font-weight:600;}
.logo svg{flex:none;}
.main-nav{display:flex; gap:16px; align-items:center; flex-wrap:nowrap; flex:none;}
.main-nav a{font-size:16px; font-weight:500; letter-spacing:.02em; color:var(--ink-soft); padding:6px 0; border-bottom:1px solid transparent; transition:.2s;}
.main-nav a:hover, .main-nav a.active{color:var(--accent-dark); border-color:var(--accent);}

.nav-drop{position:relative;}
.nav-drop > a .chev{font-size:13px; margin-left:3px; display:inline-block; transition:.2s;}
.nav-drop:hover > a .chev{transform:rotate(180deg);}
.nav-drop-menu{position:absolute; top:100%; left:50%; margin-top:14px; transform:translateX(-50%) translateY(0); min-width:200px; padding:10px; display:flex; flex-direction:column; gap:2px; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s, visibility .18s; z-index:40;
  /* Раньше был var(--card) (полупрозрачный, ~68% + блюр) — контент страницы
     просвечивал сквозь подменю и мешал читать пункты (жалоба: "слишком
     прозрачно"). --card-solid непрозрачный (как у .address-suggest-list —
     того же рода плавающего списка) и полностью перекрывает фон. */
  background:var(--card-solid); border:1px solid var(--glass-border); border-radius:16px; box-shadow:var(--shadow-md);}
.nav-drop-menu:before{content:''; position:absolute; left:0; right:0; top:-14px; height:14px;}
.nav-drop:hover .nav-drop-menu{opacity:1; visibility:visible; pointer-events:auto;}
.nav-drop-menu a{padding:9px 12px; border-radius:10px; border-bottom:none; white-space:nowrap;}
.nav-drop-menu a:hover{background:var(--accent-soft); color:var(--accent-dark);}
.nav-drop-menu .nav-drop-all{border-top:1px solid var(--line); margin-top:4px; padding-top:11px; font-size:15px; color:var(--muted);}
.nav-drop-menu .nav-drop-all:hover{color:var(--accent-dark);}
.header-search{display:flex; align-items:center; gap:0; background:var(--bg-alt); border:1px solid var(--line); border-radius:999px; padding:2px 4px 2px 14px; margin-left:auto; flex:none;}
.header-search input{border:none; background:transparent; outline:none; font-size:16px; width:170px; color:var(--ink); font-family:inherit;}
.header-search input::placeholder{color:var(--muted);}
.header-search button{background:none; border:none; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--muted);}
.header-search button:hover{color:var(--accent-dark); background:var(--accent-soft);}
.header-search button svg{width:16px; height:16px;}
.mobile-search-toggle{display:none; background:none; border:1px solid var(--line-strong); border-radius:50%; width:34px; height:34px; align-items:center; justify-content:center; color:var(--ink);}
.mobile-search-toggle svg{width:16px; height:16px;}

@media (max-width:1080px){
  .header-search{display:none;}
  .mobile-search-toggle{display:flex;}
  /* Развёрнутый поиск на мобильных — отдельная строка на всю ширину шапки под основным контентом */
  .header-search.mobile-open{display:flex; width:100%; margin:10px 0 0; order:5;}
}

.header-actions{display:flex; align-items:center; gap:14px; font-size:16px; flex:none;}
.header-actions a{display:flex; align-items:center; gap:6px; color:var(--ink-soft); font-weight:500;}
.header-actions a:hover{color:var(--accent-dark);}
.cart-pill, .wish-link{position:relative;}
.cart-count{position:absolute; top:-9px; right:-14px; background:var(--accent); color:#fff; font-size:13px; font-weight:700; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center;}
.icon-btn{background:none; border:1px solid var(--line-strong); border-radius:50%; width:34px; height:34px; display:flex; align-items:center; justify-content:center; color:var(--ink);}

.nav-toggle{display:none; align-items:center; justify-content:center; flex-direction:column; gap:4px; width:34px; height:34px; background:none; border:1px solid var(--line-strong); border-radius:50%; cursor:pointer; padding:0; transition:.2s;}
.nav-toggle:hover{border-color:var(--accent);}
.nav-toggle span{display:block; width:15px; height:2px; background:var(--ink); border-radius:2px; transition:.25s;}
.nav-toggle.open{border-color:var(--accent-dark); background:var(--accent-soft);}
.nav-toggle.open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

@media (max-width:900px){
  /* .header-row — flex-контейнер с gap:28px (см. правило выше, действует на
     всех ширинах — задумано как горизонтальный интервал между лого/меню/поиском
     на десктопе). При переносе строк (flex-wrap:wrap) этот gap работает ещё и
     как ВЕРТИКАЛЬНЫЙ интервал между перенесёнными строками — а у .header-actions
     и .main-nav ниже уже есть собственные margin-top+padding-top+border-top для
     видимого разделителя. В сумме получалось 28px (gap) + 14px (margin) + 14px
     (padding) = 56px пустого места перед каждой перенесённой строкой на телефоне —
     то самая "огромная пустая область" в шапке и в открытом мобильном меню.
     Отключаем именно вертикальный gap, горизонтальный (между лого и кнопкой
     меню в первой строке) оставляем как есть. */
  #site-header .header-row{flex-wrap:wrap; padding:14px 20px; justify-content:space-between; row-gap:0;}
  .nav-toggle{display:flex; order:2;}
  .header-actions{order:3; gap:14px; font-size:15px; width:100%; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); justify-content:flex-start;}
  .main-nav{display:none; width:100%; order:4; flex-direction:column; align-items:stretch; gap:2px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line);}
  .main-nav.open{display:flex;}
  .nav-drop{width:100%;}
  .nav-drop > a{display:flex; justify-content:space-between; padding:10px 2px;}
  .nav-drop-menu{position:static; opacity:1; visibility:visible; pointer-events:auto; transform:none; margin:0 0 6px 14px; padding:0; box-shadow:none; border:none; background:transparent; backdrop-filter:none; display:flex; flex-direction:column;}
  .nav-drop-menu:before{display:none;}
  .nav-drop-menu a{padding:8px 6px;}
  .main-nav > a{padding:10px 2px;}
}

/* ---------- Buttons ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 30px; font-size:15.5px; letter-spacing:.03em; border-radius:var(--radius); border:1px solid transparent; font-weight:700; transition:.2s; background:none;}
.btn-primary{background:var(--accent); color:#fff; box-shadow:0 14px 30px rgba(74,108,247,.28);}
.btn-primary:hover{background:var(--accent-dark);}
.btn-outline{border-color:var(--ink); color:var(--ink);}
.btn-outline:hover{background:var(--ink); color:#fff;}
.btn-accent{background:var(--ink); color:#fff;}
.btn-accent:hover{background:var(--accent-dark);}
.btn-sm{padding:9px 18px; font-size:14px;}
.btn-block{width:100%;}
.btn[disabled]{opacity:.45; cursor:not-allowed;}
.link-btn{background:none; border:none; padding:0; font-size:16px; color:var(--accent-dark); text-decoration:underline; text-underline-offset:3px;}

/* ---------- Hero ---------- */
.hero{padding:60px 0 40px; }
.hero-grid{display:grid; grid-template-columns:1.05fr 1fr; gap:60px; align-items:center;}
.eyebrow{font-family:var(--sans); display:inline-block; background:var(--card); backdrop-filter:blur(14px); border:1px solid var(--glass-border); font-size:14.5px; letter-spacing:.04em; color:var(--ink-soft); padding:8px 16px; border-radius:30px; margin-bottom:22px; font-weight:700; box-shadow:var(--shadow-sm);}
.hero h1{font-size:56px; line-height:1.1; margin-bottom:24px;}
.hero p.lead{color:var(--muted); font-size:18px; max-width:440px; margin-bottom:34px; line-height:1.75;}
.hero-visual{position:relative; background:
    radial-gradient(circle at 25% 20%, var(--accent-soft), transparent 55%),
    radial-gradient(circle at 80% 85%, var(--pink-soft), transparent 50%),
    var(--card);
  backdrop-filter:blur(18px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); height:440px; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-md); overflow:hidden;}
.hero-visual img{width:100%; height:100%; object-fit:cover; display:block; position:relative; z-index:1;}

/* Универсальная карточка-панель — несмотря на имя (осталось от исходной
   вёрстки админки), используется по всей витрине: оформление заказа,
   доставка, гарантия, FAQ по рецептам, гид по форме лица и т.д. Поэтому
   определена здесь, в style.css (грузится всегда), а не в admin.css
   (грузится лениво, только в разделе /admin — см. loadAdminBundle в
   router.js) — иначе эти страницы витрины остались бы без стилей. */
.admin-panel{background:var(--card-solid); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:26px; margin-bottom:26px; box-shadow:var(--shadow-sm);}
.admin-panel h3{font-size:17.5px; margin-bottom:18px;}

/* ---------- Section heading ---------- */
.section{padding:56px 0;}
.section-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:34px;}
.section-head h2{font-size:32px;}
.section-head .all-link{font-size:15.5px; letter-spacing:.02em; font-weight:700; color:var(--accent-dark);}
.section-head.center{flex-direction:column; align-items:center; text-align:center; gap:10px;}
.section-head.center .rule{width:60px; height:2px; background:var(--accent); border-radius:2px;}

/* ---------- Category tiles ---------- */
.cat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.cat-card{background:var(--card-solid); border:1px solid var(--glass-border); border-radius:var(--radius-lg); overflow:hidden; transition:.3s; display:block; box-shadow:var(--shadow-sm);}
.cat-card:hover{box-shadow:var(--shadow-md); transform:translateY(-5px);}
.cat-card .cat-visual{height:190px; display:flex; align-items:center; justify-content:center;}
.cat-card .cat-info{padding:18px 22px 22px;}
.cat-card .cat-info .t{font-family:var(--sans); font-size:18px; font-weight:700; margin-bottom:5px;}
.cat-card .cat-info .c{font-size:15px; color:var(--muted); letter-spacing:.02em;}
@media (max-width:1000px){ .cat-grid{grid-template-columns:repeat(2,1fr);} }

/* ---------- Product grid / card ---------- */
.product-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:26px 22px;}
@media (max-width:1100px){ .product-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:760px){ .product-grid{grid-template-columns:repeat(2,1fr);} }

.product-card{display:block; background:var(--card-solid); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:16px; transition:.25s; box-shadow:var(--shadow-sm);}
.product-card:hover{box-shadow:var(--shadow-md); transform:translateY(-4px);}
.product-card .thumb{position:relative; background:#fff; border-radius:var(--radius); height:190px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; overflow:hidden;}
.product-card .thumb svg{width:78%;}
.badge-stack{position:absolute; top:12px; left:12px; display:flex; flex-direction:column; gap:6px; z-index:2;}
.badge{font-size:13px; letter-spacing:.03em; font-weight:800; padding:6px 11px; border-radius:20px; color:#fff; white-space:nowrap; width:fit-content;}
.badge.new{background:var(--accent);}
.badge.sale{background:var(--pink);}
.badge.promo{background:var(--danger);}
.pd-tags{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px;}
.pd-tags .badge{position:static;}
.wishlist-btn{display:none;}
.wishlist-btn.active{background:var(--pink); border-color:var(--pink); color:#fff;}
.product-card .name{font-size:17px; margin-bottom:5px; color:var(--ink-soft); font-weight:600;}
.product-card .meta{font-size:14.5px; color:var(--muted); margin-bottom:8px;}
.product-card .price-row{font-size:17.5px; font-weight:800; color:var(--accent-dark);}
.product-card .price-row .old{color:var(--muted); text-decoration:line-through; font-weight:400; margin-left:8px; font-size:15.5px;}
.stars{color:var(--pink); font-size:15px; letter-spacing:1px;}

/* ---------- Benefits strip ---------- */
.strip{background:var(--card); backdrop-filter:blur(18px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); max-width:1480px; margin:0 auto; margin-left:max(24px, calc((100% - 1480px)/2)); margin-right:max(24px, calc((100% - 1480px)/2)); box-shadow:var(--shadow-sm);}
.strip .container{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; padding:44px 40px; max-width:none;}
@media (max-width:1100px){ .strip .container{grid-template-columns:repeat(2,1fr);} }
@media (max-width:900px){ .strip .container{grid-template-columns:1fr; padding:36px 24px;} }
.strip .item{position:relative; padding-left:0;}
.strip .item .ic{display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:12px; margin-bottom:16px;}
.strip .item .ic svg{width:22px; height:22px;}
.strip .item .ic-shield{background:var(--accent-soft); color:var(--accent-dark);}
.strip .item .ic-truck{background:var(--mint-soft); color:var(--mint);}
.strip .item .ic-chat{background:var(--pink-soft); color:var(--pink);}
.strip .item .ic-clock{background:var(--accent-soft); color:var(--accent);}
.strip .item .t{font-family:var(--sans); font-size:16.5px; font-weight:700; margin-bottom:6px; color:var(--ink);}
.strip .item .d{font-size:16px; color:var(--ink-soft); line-height:1.5;}

/* ---------- Footer ---------- */
#site-footer{border-top:1px solid var(--line); background:var(--bg-alt); margin-top:20px;}
.footer-grid{display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; padding-top:64px; padding-bottom:30px;}
.footer-grid h4{font-size:15px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; color:var(--ink-soft);}
.footer-grid ul li{margin-bottom:10px; font-size:16.5px; color:var(--muted);}
.footer-about p{color:var(--muted); font-size:16.5px; max-width:280px; line-height:1.7; margin-top:14px;}
.footer-bottom{border-top:1px solid var(--line); padding-top:20px; padding-bottom:20px; display:flex; justify-content:space-between; font-size:15px; color:var(--muted);}
@media (max-width:900px){ .footer-grid{grid-template-columns:1fr 1fr;} }

/* ---------- Breadcrumbs / page head ---------- */
.page-head{padding-top:32px; padding-bottom:8px;}
.breadcrumbs{font-size:15px; color:var(--muted); margin-bottom:10px;}
.breadcrumbs a:hover{color:var(--accent-dark);}
.page-head h1{font-size:34px;}
.result-count{color:var(--muted); font-size:16px; margin-top:6px;}

/* ---------- Catalog layout ---------- */
.catalog-layout{display:grid; grid-template-columns:250px 1fr; gap:40px; padding-bottom:80px;}
.filters{background:var(--card-solid); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:24px; position:sticky; top:104px;}
.filter-group{margin-bottom:22px; padding-bottom:22px; border-bottom:1px solid var(--line);}
.filter-group:last-child{margin-bottom:0; padding-bottom:0; border-bottom:none;}
/* Заголовок группы фильтра — кликабельный аккордеон (см. Catalog.toggleGroup
   в views-shop.js): по умолчанию открыты «Категория» и «Цвет» (самые частые
   для покупателя признаки выбора оправы), «Материал» и «Форма» свёрнуты, но
   остаются на виду — так на телефоне не нужно прокручивать все 4 группы
   фильтра, прежде чем увидеть хоть один товар. fg-dot — маленькая точка-инд-
   икатор: показывает, что в свёрнутой группе уже есть активный выбор. */
.filter-group h4{
  font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:12px; color:var(--muted);
  display:flex; align-items:center; gap:8px; cursor:pointer; user-select:none;
}
.filter-group h4 .fg-dot{width:6px; height:6px; border-radius:50%; background:var(--accent); flex:none;}
.filter-group h4 .fg-chev{margin-left:auto; font-size:13px; color:var(--muted); transition:transform .2s; flex:none;}
.filter-group.open h4 .fg-chev{transform:rotate(180deg);}
.filter-group.collapsed h4{margin-bottom:0;}
.filter-group.collapsed .filter-group-body{display:none;}
/* overflow-wrap:break-word — подстраховка на случай длинного названия без
   пробелов (например, цвета вида «прозрачный,бесцветный»): само место переноса
   в таких названиях даёт <wbr> после запятой (см. filterLabelHtml в
   views-shop.js) — переносится ровно там, как у обычных названий с пробелом,
   а не посреди случайной буквы. break-word — только запасной вариант на случай
   совсем без пробелов и запятых, ломает слово, лишь если иначе оно вообще не
   влезает в строку. */
.filter-opt{display:flex; align-items:center; gap:11px; font-size:16px; color:var(--ink-soft); margin-bottom:3px; cursor:pointer; padding:9px 10px; margin-left:-10px; margin-right:-10px; border-radius:10px; transition:background-color .15s, color .15s; overflow-wrap:break-word;}
/* .filter-opt ниже выставляет overflow-wrap:break-word на случай длинных
   значений без пробелов (например, склеенных артикулов) — но у span.opt-label
   это унаследованное свойство ломало обычные русские слова типа
   "комбинированный" ровно посередине, оставляя одну букву на второй строке.
   Возвращаем обычный перенос по словам: при нехватке ширины слово целиком
   уходит на новую строку, а не разрывается. */
.opt-label{flex:1 1 auto; min-width:0; overflow-wrap:normal; word-break:normal;}
.filter-opt:hover{background:var(--accent-soft); color:var(--accent-dark);}
/* Выбранный пункт фильтра подсвечиваем целиком (не только кружок/галочку) —
   так сразу видно, что применено, а не приходится всматриваться в мелкий инпут. */
.filter-opt:has(input:checked){background:var(--accent-soft); color:var(--accent-dark); font-weight:600;}
.filter-opt-disabled:has(input:checked){background:none; color:var(--ink-soft); font-weight:400;}
/* Покрытие с подпунктами-вариантами (напр. «Фотохром» → Чёрный/Коричневый,
   см. coatingsPickerHtml в views-shop.js) — название пункта заголовком, сами
   варианты чуть с отступом под ним, чтобы визуально читалось как группа. */
.coating-variant-group{margin-bottom:6px;}
.coating-variant-group-name{font-size:15px; font-weight:700; color:var(--ink); margin:10px 0 2px;}
.coating-variant-opt{margin-left:16px;}
/* Свой вид чекбоксов/радио вместо системного — на разных ОС/браузерах системные
   выглядят по-разному и мелко теряются на фоне остального дизайна сайта. */
.filter-opt input[type="radio"], .filter-opt input[type="checkbox"]{
  appearance:none; -webkit-appearance:none; margin:0; width:19px; height:19px; flex:none; cursor:pointer;
  border:1.6px solid var(--line-strong); background:var(--card-solid); position:relative; transition:.15s;
}
.filter-opt input[type="radio"]{border-radius:50%;}
.filter-opt input[type="checkbox"]{border-radius:5px;}
.filter-opt input[type="radio"]:checked, .filter-opt input[type="checkbox"]:checked{border-color:var(--accent); background:var(--accent);}
.filter-opt input[type="radio"]:checked::after{content:''; position:absolute; top:50%; left:50%; width:7px; height:7px; border-radius:50%; background:#fff; transform:translate(-50%,-50%);}
.filter-opt input[type="checkbox"]:checked::after{content:''; position:absolute; top:3px; left:6px; width:5px; height:9px; border-right:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(40deg);}
.filter-opt input:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
.filter-cat-group{margin-bottom:2px;}
.filter-opt-parent{font-weight:700; color:var(--ink);}
.filter-opt-child{margin-left:20px; font-size:15.5px;}
.swatch{width:17px; height:17px; border-radius:50%; border:1px solid var(--line-strong); display:inline-block; box-shadow:0 0 0 2px var(--card-solid) inset; flex:none;}
.range-row{display:flex; gap:10px; align-items:center;}
.range-row input{width:80px; padding:9px 10px; border:1px solid var(--line-strong); border-radius:var(--radius); font-size:15.5px; background:var(--bg-alt); color:var(--ink);}
.range-row input:focus{outline:none; border-color:var(--accent);}
.toolbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:26px;}
.toolbar select{padding:10px 14px; border:1px solid var(--line-strong); border-radius:999px; font-size:15.5px; background:var(--card-solid); color:var(--ink); cursor:pointer;}
.empty-state{padding:60px 0; text-align:center; color:var(--muted);}
.filter-opt-disabled{opacity:.4; cursor:not-allowed;}
.filter-opt-disabled:hover{background:none; color:var(--ink-soft);}
.filter-opt-disabled input{cursor:not-allowed;}
.opt-count{color:var(--muted); font-size:14.5px; margin-left:auto; white-space:nowrap; flex-shrink:0;}
@media (max-width:900px){ .filters{position:static;} }
.filter-chips{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:18px;}
.chip{display:inline-flex; align-items:center; gap:6px; background:var(--accent-soft); color:var(--accent-dark); font-size:15px; font-weight:600; padding:6px 8px 6px 12px; border-radius:20px;}
.chip-x{background:none; border:none; color:var(--accent-dark); font-size:17px; line-height:1; padding:2px 4px; border-radius:50%; cursor:pointer;}
.chip-x:hover{background:rgba(74,108,247,.22);}
.chip-reset{background:none; border:none; color:var(--muted); font-size:15px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; padding:6px 0;}
@media (max-width:900px){
  .catalog-layout{grid-template-columns:1fr;}
  /* На мобильном ширина одна колонка (см. выше) — без этого фильтры (первые
     в разметке — так удобнее для десктопной боковой колонки) оказывались
     ПЕРЕД самим списком товаров: покупатель с телефона, открыв «Каталог»,
     сначала упирался в длинную панель фильтров (в т.ч. открытые по
     умолчанию «Категория» и «Цвет») и должен был проскроллить её всю,
     прежде чем увидеть хоть один товар. order меняет только порядок
     ОТРИСОВКИ, не разметку и не работу фильтров — снизу они остаются
     полностью доступны, просто не блокируют первый экран.
     Аналогичный приём уже используется для .hero-visual выше по файлу. */
  .catalog-layout > .filters{order:2;}
  .catalog-layout > .filters ~ *{order:1;}
}

/* ---------- Product detail ---------- */
.product-detail{display:grid; grid-template-columns:1fr 1fr; gap:56px; padding-top:40px; padding-bottom:80px;}
.pd-gallery-main{background:#fff; border:1px solid var(--glass-border); border-radius:var(--radius-lg); height:440px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; box-shadow:var(--shadow-sm); overflow:hidden;}
/* Пока у товара нет настоящего фото (images пуст), вместо него рисуется SVG-плейсхолдер
   очков, обведённый РЕАЛЬНЫМ цветом товара (см. productMediaHtml/glassesSvg) — это
   имитация предметной съёмки на фоне, а не элемент интерфейса, поэтому фон под ней
   должен оставаться светлым «студийным» всегда, а не переключаться на var(--card)
   (тёмный в тёмной теме) — иначе тёмный товар (например «чёрный глянец») становится
   почти невидимым на тёмном фоне. background — фиксированный светлый rgba, не токен. */
.pd-gallery-main:not(:has(img)){background:rgba(255,255,255,.7); backdrop-filter:blur(16px);}
.pd-gallery-main svg{width:70%;}
.pd-gallery-main.zoomable{cursor:zoom-in;}
.pd-gallery-thumbs{display:flex; gap:10px;}

/* Полноэкранный просмотр фото товара — открывается кликом по главному фото на странице товара. */
.pd-lightbox{position:fixed; inset:0; z-index:1000; background:rgba(10,10,14,.92); display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .18s ease; padding:40px;}
.pd-lightbox.open{opacity:1; pointer-events:auto;}
.pd-lightbox img{max-width:min(92vw, 1100px); max-height:88vh; object-fit:contain; border-radius:var(--radius); box-shadow:0 20px 60px rgba(0,0,0,.5);}
.pd-lightbox-close{position:absolute; top:20px; right:24px; width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center;}
.pd-lightbox-close:hover{background:rgba(255,255,255,.18);}
.pd-lightbox-nav{position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff; font-size:28px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;}
.pd-lightbox-nav:hover{background:rgba(255,255,255,.18);}
.pd-lightbox-nav.prev{left:20px;}
.pd-lightbox-nav.next{right:20px;}
@media (max-width:640px){
  .pd-lightbox{padding:16px;}
  .pd-lightbox-nav{width:40px; height:40px; font-size:22px;}
  .pd-lightbox-close{width:38px; height:38px; top:10px; right:10px;}
}
/* background — фиксированный белый (как .product-card .thumb / .cart-line .thumb),
   а не var(--card-solid): те же SVG-плейсхолдеры очков цвета товара, что и в
   .pd-gallery-main выше, и по той же причине не должны стоять на тёмном фоне. */
.pd-gallery-thumbs .t{width:76px; height:76px; border:1px solid var(--glass-border); border-radius:var(--radius); background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer;}
.pd-info .cat-tag{font-size:14.5px; letter-spacing:.05em; text-transform:uppercase; color:var(--accent-dark); margin-bottom:12px; display:block; font-weight:700;}
.pd-info h1{font-size:32px; margin-bottom:10px;}
.pd-info .rating-row{display:flex; gap:10px; align-items:center; margin-bottom:20px; font-size:15.5px; color:var(--muted);}
.pd-info .price-block{font-size:26px; font-weight:800; color:var(--accent-dark); margin-bottom:24px;}
.pd-info .price-block .old{font-size:17.5px; color:var(--muted); text-decoration:line-through; margin-left:10px; font-weight:400;}
.pd-info p.desc{color:var(--muted); line-height:1.75; margin-bottom:26px; font-size:17px;}
.pd-specs{width:100%; border-collapse:collapse; margin-bottom:28px;}
.pd-specs td{padding:10px 0; border-bottom:1px solid var(--line); font-size:16.5px;}
.pd-specs td:first-child{color:var(--muted); width:180px;}
.color-select{display:flex; gap:10px; margin-bottom:26px; flex-wrap:wrap;}
.color-select .sw{width:30px; height:30px; border-radius:50%; border:2px solid transparent; cursor:pointer; padding:0; box-shadow:0 0 0 1px var(--line-strong); transition:transform .12s, box-shadow .15s;}
.color-select .sw:hover{transform:translateY(-2px);}
.color-select .sw.active{border-color:var(--card); box-shadow:0 0 0 1px var(--line-strong), 0 0 0 3px var(--accent);}
.color-select .sw:focus-visible{outline:2px solid var(--accent); outline-offset:3px;}
.qty-row{display:flex; align-items:center; gap:16px; margin-bottom:20px;}
.qty-control{display:flex; align-items:center; border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--card-solid);}
.qty-control button{width:38px; height:42px; background:none; border:none; font-size:17.5px; color:var(--ink);}
/* Явный background/color — иначе нативный <input> игнорирует тёмную тему
   родителя (.qty-control уже покрашен через --card-solid) и остаётся белым
   прямоугольником поверх тёмного фона, как обычный текстовый инпут без
   собственных стилей. См. также .rx-manual-grid input и .promo-row input —
   та же самая причина, тот же самый косяк. */
.qty-control input{width:44px; text-align:center; border:none; font-size:17px; background:var(--card-solid); color:var(--ink);}
.stock-note{font-size:15.5px; color:var(--ok); margin-bottom:22px; font-weight:600;}
.stock-note.low{color:var(--danger);}
.pd-actions{display:flex; gap:14px;}
.price-note{font-size:15px; font-weight:600; color:var(--muted); vertical-align:middle; margin-left:4px;}
.price-note-sm{font-size:13.5px; font-weight:600; color:var(--muted);}

.lens-config{background:var(--card); backdrop-filter:blur(14px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:22px; margin-bottom:24px; box-shadow:var(--shadow-sm);}
.lens-config h4{font-size:17.5px; margin-bottom:16px;}
.origin-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.origin-opt{border:1.5px solid var(--line-strong); border-radius:var(--radius); padding:14px 16px; cursor:pointer; transition:.15s;}
.origin-opt:hover{border-color:var(--accent);}
.origin-opt.active{border-color:var(--accent); background:var(--accent-soft);}
.origin-opt .o-label{font-weight:700; font-size:16.5px; margin-bottom:4px;}
.origin-opt .o-note{font-size:14.5px; color:var(--muted);}
.photo-status{font-size:15px; margin-top:8px; min-height:16px;}
.rx-mode-tabs{display:flex; gap:8px; margin-bottom:10px;}
.rx-mode-tab{flex:1; padding:9px 10px; font-size:15.5px; border:1.5px solid var(--line-strong); border-radius:var(--radius); background:var(--card-solid); color:var(--ink); cursor:pointer; transition:.15s;}
.rx-mode-tab:hover{border-color:var(--accent);}
.rx-mode-tab.active{border-color:var(--accent); background:var(--accent-soft); color:var(--accent-dark); font-weight:600;}
/* Подсказки под полями рецепта — сознательно БЕЗ закрашенной плашки-скругления
   (шаблонный приём для любого hint/notice-блока в сгенерированном ИИ дизайне):
   обычный курсивный приглушённый текст, без фона и рамки — читается как
   авторская ремарка рядом с полем, а не как типовой UI-компонент. */
.rx-hint{font-style:italic; font-size:15px; color:var(--muted); padding:0; margin-bottom:10px; line-height:1.5;}
/* Предупреждение о пороге SPH/CYL (Настройки → Настройки комплекта) — тут
   важно реально привлечь внимание, поэтому не курсив-ремарка, а акцентная
   полоса слева с коротким заглавным лейблом вместо эмодзи-иконки — заметно
   выделяется на фоне обычных подсказок, но не выглядит как типовой
   закрашенный ИИ-алерт (сплошная цветная плашка + жирный цветной текст). */
.rx-hint-warn{font-style:normal; font-size:15.5px; color:var(--ink-soft); background:none; border-left:2px solid var(--warn); border-radius:0; padding:2px 0 2px 14px; margin:4px 0 14px; line-height:1.5;}
.rx-hint-warn-label{display:inline-block; font-weight:800; font-size:12px; letter-spacing:.07em; text-transform:uppercase; color:var(--warn); margin-right:7px;}

/* Кастомная обёртка нативного input[type=file], чтобы он не был белым
   прямоугольником поверх тёмной темы — стилизуем и сам инпут, и системную
   кнопку выбора файла через ::file-selector-button. */
input[type="file"]{
  display:block; width:100%; font-size:15.5px; color:var(--muted);
  background:var(--card-solid); border:1.5px dashed var(--line-strong);
  border-radius:var(--radius); padding:10px 12px; cursor:pointer; transition:border-color .15s;
}
input[type="file"]:hover{border-color:var(--accent);}
input[type="file"]::file-selector-button{
  font: inherit; font-weight:600; font-size:15.5px; color:#fff; cursor:pointer;
  background:var(--accent); border:none; border-radius:999px; padding:7px 16px;
  margin-right:12px; transition:background-color .15s;
}
input[type="file"]::file-selector-button:hover{background:var(--accent-dark);}
.rx-manual-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:8px 10px; align-items:center;}
.rx-manual-grid label{font-size:15px; color:var(--muted);}
.rx-manual-grid input{width:100%; min-width:0; padding:9px 10px; border:1px solid var(--line-strong); border-radius:var(--radius); font-size:16px; background:var(--card-solid); color:var(--ink);}
.rx-col-label{font-size:14.5px; color:var(--muted); text-align:center; font-weight:600;}
.visually-hidden{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
/* Как и .rx-hint-warn выше — без закрашенного фона и скруглённого угла,
   только акцентная полоса слева: то же сообщение, но не в виде типового
   ИИ-алерта. */
.lead-thanks{background:none; color:var(--ink-soft); border-left:2px solid var(--mint); border-radius:0; padding:4px 0 4px 16px; font-size:16.5px; margin-top:20px; line-height:1.6;}

.pd-benefits{margin-top:30px; border-top:1px solid var(--line); padding-top:22px;}
.pd-benefits li{font-size:16px; color:var(--muted); margin-bottom:8px; padding-left:18px; position:relative;}
.pd-benefits li:before{content:'—'; position:absolute; left:0; color:var(--accent);}

.pd-steps{margin:0; padding-left:20px; counter-reset:none;}
.pd-steps li{font-size:16.5px; color:var(--ink-soft); margin-bottom:10px; line-height:1.6;}
.pd-steps li:last-child{margin-bottom:0;}

.faq-item{border-bottom:1px solid var(--line); padding:14px 0;}
.faq-item:first-child{padding-top:0;}
.faq-item:last-child{border-bottom:none; padding-bottom:0;}
.faq-item summary{cursor:pointer; font-weight:600; font-size:17.5px; color:var(--ink); list-style:none; display:flex; align-items:center; gap:8px;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary:before{content:'+'; color:var(--accent); font-weight:800; font-size:17.5px; width:16px;}
.faq-item[open] summary:before{content:'−';}
.faq-item .desc{margin:10px 0 0 24px;}

.face-shape-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(120px,1fr)); gap:12px; margin-top:16px;}
.face-shape-card{display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 10px; border:1px solid var(--line); border-radius:var(--radius); background:var(--card-solid); cursor:pointer; font-family:var(--sans); font-size:15.5px; color:var(--ink-soft); font-weight:600; transition:border-color .15s, box-shadow .15s;}
.face-shape-card:hover{border-color:var(--accent);}
.face-shape-card.active{border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft);}
.face-shape-icon{width:56px; height:66px; display:block;}
.face-shape-icon-sm{width:44px; height:52px; flex:none;}
.face-quiz-result{margin-top:20px; padding-top:20px; border-top:1px solid var(--line);}
.face-quiz-shapes{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px;}
.face-shape-row{display:flex; gap:16px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--line);}
.face-shape-row:last-child{border-bottom:none; padding-bottom:0;}
.face-shape-row:first-child{padding-top:0;}

/* ---------- Гид «Как определить размер очков» (подборщик) ---------- */
.form-grid-3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px;}
@media (max-width:640px){ .form-grid-3{grid-template-columns:1fr;} }
.tab-row{display:inline-flex; background:var(--bg-alt); border:1px solid var(--line); border-radius:999px; padding:4px; margin-bottom:24px; flex-wrap:wrap;}
.tab{padding:9px 20px; border-radius:999px; font-size:15px; font-weight:600; color:var(--muted); border:none; background:none; font-family:inherit; transition:background-color .15s, color .15s, box-shadow .15s;}
.tab.active{background:var(--card-solid); color:var(--ink); box-shadow:var(--shadow-sm);}
.size-result-panel{margin-top:8px; padding-top:24px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;}
.size-result-badge{display:inline-block; background:var(--mint-soft); color:var(--mint); font-weight:700; font-size:13.5px; letter-spacing:.03em; padding:5px 13px; border-radius:20px; text-transform:uppercase; margin-bottom:9px;}
.size-result-title{font-family:var(--serif); font-size:24px; font-weight:600;}
.size-result-desc{color:var(--muted); font-size:15.5px; margin-top:4px; max-width:420px;}
.size-detail-row{display:flex; gap:16px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--line);}
.size-detail-row:last-child{border-bottom:none; padding-bottom:0;}
.size-detail-row:first-child{padding-top:0;}
.size-detail-badge{flex:none; width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-weight:600; font-size:17px;}
.size-diagram{max-width:340px; margin:2px auto 22px;}
.size-diagram-sm{max-width:150px; margin:2px auto 18px;}

.notif-bell{position:relative; display:inline-flex; align-items:center;}
.notif-bell .cart-count{position:absolute; top:-8px; right:-10px;}
.status-timeline{list-style:none; margin:0; padding:0;}
.status-timeline li{padding:6px 0; border-bottom:1px solid var(--line); font-size:15.5px;}
.status-timeline li:last-child{border-bottom:none;}
.t-date{color:var(--muted); font-size:14.5px;}
.t-note{color:var(--muted); font-size:14.5px; margin-top:2px;}
.notif-log-panel{margin-top:14px; font-size:15.5px;}
.notif-log-item{padding:8px 0; border-bottom:1px solid var(--line);}
.notif-log-item:last-child{border-bottom:none;}
.notif-log-hint{color:var(--muted); font-size:14.5px; margin:0 0 10px;}
@media (max-width:900px){ .product-detail{grid-template-columns:1fr;} }
@media (max-width:640px){
  .form-grid{grid-template-columns:1fr;}
  /* .hero{padding:60px 0 40px} выше по файлу — десктопный отступ сверху.
     На телефоне тот же отступ добавлялся ПОВЕРХ шапки и её собственных
     внутренних интервалов, усиливая ощущение пустоты перед картинкой. */
  .hero{padding:28px 0 40px;}
  .hero-grid{grid-template-columns:1fr; text-align:center;}
  /* .hero-visual{height:440px} выше по файлу рассчитан на десктопную колонку
     шириной примерно в половину экрана — на телефоне та же высота при
     полной ширине экрана превращала картинку почти в весь первый экран:
     заголовок, текст и кнопка "Смотреть каталог" уезжали далеко вниз, и
     было ощущение, что сайт грузит только фото и больше ничего. */
  .hero-grid .hero-visual{order:-1; height:220px;}
  .product-grid{grid-template-columns:repeat(2,1fr) !important;}
  .cat-grid{grid-template-columns:1fr !important;}
  .checkout-layout, .cart-layout, .account-layout{grid-template-columns:1fr !important;}
  .origin-row{grid-template-columns:1fr !important;}
  .header-actions{gap:10px;}
  .header-actions a:not(.cart-pill){display:none;}

  /* Товар не помещался на маленьком экране: hero-h1/цена/шапка сжимались,
     но некоторые крупные десктопные размеры так и остались фиксированными —
     подгоняем их под ширину телефона, а не только сетки/колонки. */
  .hero h1{font-size:38px;}
  .eyebrow{font-size:13px; padding:7px 14px;}
  .section-head h2{font-size:26px;}
  .page-head h1{font-size:27px;}
  .pd-info h1{font-size:25px;}
  .pd-info .price-block{font-size:22px;}

  /* Галерея фото товара — до 8 миниатюр в один ряд без переноса физически не
     влезают на экран телефона (76px + отступ каждая); раньше они просто
     обрезались за края экрана и тянули за собой горизонтальный скролл всей
     страницы. Переносим лишние миниатюры на новую строку вместо этого. */
  .pd-gallery-thumbs{flex-wrap:wrap;}
  .pd-gallery-thumbs .t{width:64px; height:64px;}
  .pd-gallery-main{height:300px;}

  /* Таблица характеристик товара — фиксированная колонка подписи в 180px
     на телефоне съедала слишком много и без того узкой карточки. */
  .pd-specs td:first-child{width:128px; font-size:15.5px;}
  .pd-specs td{font-size:15.5px;}

  /* Кнопка(и) «Добавить в корзину»/«Купить в 1 клик» рядом друг с другом не
     помещались по ширине на телефоне (либо переносился текст внутри кнопки,
     либо кнопки вылезали за карточку) — на мобильном ставим их одна под
     другой на всю ширину, как обычно и делают мобильные интернет-магазины. */
  .pd-actions{flex-direction:column;}
  .pd-actions .btn{width:100%;}

  /* Счётчик количества (+/−) на карточке товара и в корзине — несколько
     компактнее на телефоне, чтобы оставить больше места соседним элементам. */
  .qty-control button{width:34px; height:38px; font-size:16px;}
  .qty-control input{width:36px; font-size:16px;}

  /* Строка «N товаров найдено / сортировка» на каталоге — раньше не
     переносилась и могла упираться в правый край экрана. */
  .toolbar{flex-wrap:wrap; gap:10px;}
}

/* ---------- Cart ---------- */
.cart-layout{display:grid; grid-template-columns:1fr 360px; gap:50px; padding-top:40px; padding-bottom:80px;}
.cart-line{display:grid; grid-template-columns:96px 1fr auto auto auto; gap:20px; align-items:center; padding:18px; margin-bottom:12px; background:var(--card-solid); border:1px solid var(--glass-border); border-radius:var(--radius-lg);}
.cart-line .thumb{width:96px; height:80px; background:#fff; border-radius:var(--radius); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.cart-line .thumb svg{width:80%;}
.cart-line .name{font-size:17px; font-weight:600;}
.cart-line .meta{font-size:15px; color:var(--muted); margin-top:4px;}
.cart-line .price{font-size:17px; font-weight:700;}
.cart-line .remove{color:var(--danger); font-size:15px; background:none; border:none;}
.summary-box{background:var(--card-solid); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:28px; height:fit-content; box-shadow:var(--shadow-sm); overflow:hidden;}
.summary-box h3{font-size:18px; margin-bottom:20px;}
.summary-row{display:flex; justify-content:space-between; font-size:16.5px; color:var(--muted); margin-bottom:12px;}
.summary-row.total{color:var(--ink); font-weight:800; font-size:17.5px; border-top:1px solid var(--line); padding-top:16px; margin-top:6px;}
.promo-row{display:flex; gap:8px; margin:18px 0;}
/* min-width:0 обязателен: у текстового input есть свой "естественный" минимум
   ширины (примерно под 20 символов), из-за которого flex:1 не мог сжаться
   меньше него — при возросшем размере шрифта строка переставала помещаться
   рядом с кнопкой «Применить» и та обрезалась/вылезала за карточку. */
.promo-row input{flex:1; min-width:0; padding:11px; border:1px solid var(--line-strong); border-radius:var(--radius); font-size:15.5px; background:var(--card-solid); color:var(--ink);}
.promo-row .btn{flex:none;}
.empty-cart{text-align:center; padding:80px 0; color:var(--muted);}
@media (max-width:900px){ .cart-layout{grid-template-columns:1fr;} }
/* Десктопная сетка строки корзины thumb/инфо/счётчик/цена/удалить в один ряд
   (5 колонок, 3 из них auto-ширины) в сумме шире, чем помещается на экране
   телефона — .cart-line просто вылезала за карточку и/или сжимала фото и
   текст в кашу. На мобильном перестраиваем в 3 строки: фото+инфо сверху,
   счётчик и цена во второй строке, «Удалить» — под ними. */
@media (max-width:640px){
  .cart-line{
    grid-template-columns:72px 1fr auto;
    grid-template-areas:
      "thumb info  info"
      "thumb qty   price"
      "thumb .     remove";
    column-gap:12px; row-gap:8px; padding:14px;
  }
  .cart-line .thumb{grid-area:thumb; width:72px; height:60px; align-self:start;}
  .cart-line .info{grid-area:info; min-width:0;}
  .cart-line .qty-control{grid-area:qty; justify-self:start;}
  .cart-line .price{grid-area:price; justify-self:end; align-self:center;}
  .cart-line .remove{grid-area:remove; justify-self:end; padding:4px 0;}
}

/* ---------- Forms (checkout/account/admin) ---------- */
.form-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px;}
.form-field{margin-bottom:18px; min-width:0;}
.form-field.full{grid-column:1/-1;}
.form-field label{display:block; font-size:15px; color:var(--muted); margin-bottom:7px; letter-spacing:.02em;}
.form-field input:not([type="checkbox"]):not([type="radio"]), .form-field select, .form-field textarea{width:100%; min-width:0; max-width:100%; box-sizing:border-box; padding:12px 14px; border:1px solid var(--line-strong); border-radius:var(--radius); font-size:16.5px; background:var(--card-solid); color:var(--ink);}
.form-field input::placeholder, .form-field textarea::placeholder{color:var(--muted); opacity:.7;}
.form-field textarea{resize:vertical; min-height:90px;}
/* Подсветка поля, не прошедшего проверку при попытке отправить форму (см.
   глобальный обработчик события "invalid" в app.js) — работает на любой
   форме сайта, не только на оформлении заказа. */
.form-field input.field-error, .form-field select.field-error, .form-field textarea.field-error,
input.field-error, select.field-error, textarea.field-error{border-color:var(--danger) !important; box-shadow:0 0 0 3px rgba(225,75,98,.14);}
.form-field.field-error label{color:var(--danger);}
/* Чекбоксы/радио внутри .form-field — не растягиваем и не обнуляем нативный вид, только выравниваем с текстом */
.form-field label:has(input[type="checkbox"]), .form-field label:has(input[type="radio"]){display:flex; align-items:center; gap:9px; font-size:16.5px; color:var(--ink-soft); margin-bottom:0; cursor:pointer;}
input[type="checkbox"], input[type="radio"]{width:16px; height:16px; flex:none; accent-color:var(--accent); cursor:pointer; margin:0;}
#f-color-new-wrap{align-items:stretch;}
#f-colorName-new{flex:1; min-width:0; width:auto;}
#f-color-new-wrap input[type="color"]{flex:0 0 56px; width:56px; padding:4px;}
.radio-row{display:flex; gap:20px; flex-wrap:wrap;}
.radio-opt{display:flex; align-items:center; gap:8px; font-size:16.5px; border:1px solid var(--line-strong); border-radius:var(--radius); padding:12px 16px; flex:1; cursor:pointer; background:var(--card-solid); color:var(--ink); min-width:0;}
.radio-opt.active{border-color:var(--accent); background:var(--accent-soft);}
.radio-opt input[type="radio"]:disabled{cursor:not-allowed;}
.radio-opt:has(input:disabled){opacity:.5; cursor:not-allowed;}

/* Подсказки-автокомплит на оформлении заказа: город → пункт выдачи ПВЗ.
   Оба поля (city-suggest-wrap / address-suggest-wrap) — обычные .form-field
   с position:relative, чтобы выпадающий список подсказок позиционировался
   прямо под полем, не раздвигая остальную разметку. */
.city-suggest-wrap, .address-suggest-wrap{position:relative;}
.address-suggest-list{position:absolute; left:0; right:0; top:calc(100% + 4px); background:var(--card-solid); border:1px solid var(--line-strong); border-radius:var(--radius); box-shadow:var(--shadow-md); max-height:320px; overflow-y:auto; z-index:40;}
.address-suggest-item{display:flex; align-items:flex-start; gap:10px; padding:11px 14px; cursor:pointer; border-bottom:1px solid var(--line);}
.address-suggest-item:last-child{border-bottom:none;}
.address-suggest-item:hover{background:var(--accent-soft);}
.as-tag{flex:none; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); padding:2px 7px; border:1px solid var(--line-strong); border-radius:20px; margin-top:2px; white-space:nowrap;}
.as-tag-pvz{color:var(--accent-dark); border-color:var(--accent); background:var(--accent-soft);}
.as-name{font-weight:700; font-size:14.5px; color:var(--ink);}
.as-addr{font-size:13.5px; color:var(--ink-soft); margin-top:1px;}
.as-sched{font-size:12px; color:var(--muted); margin-top:2px;}
.address-suggest-empty{padding:12px 14px; font-size:13.5px; color:var(--muted);}
.checkout-layout{display:grid; grid-template-columns:1fr 380px; gap:50px; padding-top:40px; padding-bottom:80px;}
.mini-summary{background:var(--card); backdrop-filter:blur(16px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-sm);}
.mini-line{display:flex; justify-content:space-between; font-size:16px; padding:10px 0; border-bottom:1px solid var(--line);}

.center-card{max-width:440px; margin:70px auto; background:var(--card); backdrop-filter:blur(16px); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:44px; box-shadow:var(--shadow-md);}
.center-card h1{font-size:26px; margin-bottom:8px; text-align:center;}
.center-card .sub{text-align:center; color:var(--muted); font-size:16px; margin-bottom:30px;}

/* success page */
.success-box{max-width:560px; margin:70px auto; text-align:center; padding:0 20px 100px;}
.success-icon{width:70px; height:70px; border-radius:50%; background:var(--mint-soft); color:var(--ok); display:flex; align-items:center; justify-content:center; font-size:30px; margin:0 auto 24px;}
.success-box h1{font-size:28px; margin-bottom:12px;}
.success-box p{color:var(--muted); margin-bottom:30px;}

/* Страница неудачной оплаты (Fail URL банка) — тот же каркас, что и success-box,
   только акцент на --danger вместо --ok/--mint, поэтому отдельные классы. */
.fail-box{max-width:560px; margin:70px auto; text-align:center; padding:0 20px 100px;}
.fail-icon{width:70px; height:70px; border-radius:50%; background:var(--danger-soft); color:var(--danger); display:flex; align-items:center; justify-content:center; font-size:30px; margin:0 auto 24px;}
.fail-box h1{font-size:28px; margin-bottom:12px;}
.fail-box p{color:var(--muted); margin-bottom:30px;}

/* toast */
/* Фон уведомления — фиксированно тёмный (не var(--ink), который в тёмной теме
   сам становится светлым) — иначе в тёмной теме белый текст оказывается на
   светлом фоне и уведомление почти не видно. */
#toast{position:fixed; bottom:26px; right:26px; background:#20212b; color:#fff; padding:14px 22px; border-radius:var(--radius); font-size:16px; opacity:0; transform:translateY(10px); transition:.25s; z-index:200; box-shadow:var(--shadow-md);}
#toast.show{opacity:1; transform:translateY(0);}

/* ---------- Сравнение товаров ---------- */
.compare-check{display:flex; align-items:center; gap:6px; font-size:15px; color:var(--muted); margin-top:8px; cursor:pointer; user-select:none;}
.compare-check input{cursor:pointer;}
.compare-bar{position:fixed; left:0; right:0; bottom:0; z-index:150; background:var(--card-solid); border-top:1px solid var(--line); box-shadow:0 -10px 30px rgba(22,26,43,.08);}
.compare-bar-inner{max-width:1320px; margin:0 auto; padding:12px 24px; display:flex; align-items:center; gap:16px; flex-wrap:wrap;}
.compare-bar-label{font-size:15.5px; font-weight:600; color:var(--muted); white-space:nowrap;}
.compare-bar-items{display:flex; gap:8px; flex-wrap:wrap; flex:1;}
.compare-bar-item{display:inline-flex; align-items:center; gap:6px; background:var(--accent-soft); color:var(--accent-dark); padding:5px 10px; border-radius:20px; font-size:15px;}
.compare-bar-item button{background:none; border:none; color:inherit; font-size:16px; line-height:1; cursor:pointer; opacity:.7;}
.compare-bar-item button:hover{opacity:1;}

.compare-table{width:100%; border-collapse:collapse;}
.compare-table th, .compare-table td{padding:14px 16px; border-bottom:1px solid var(--line); text-align:left; font-size:16.5px; vertical-align:top;}
.compare-table th{width:160px; color:var(--muted); font-weight:600; font-size:15px; text-transform:uppercase; letter-spacing:.03em;}
/* Как и .pd-gallery-main/.product-card .thumb — фон под SVG-плейсхолдером
   очков (цвет = реальный цвет товара) должен быть фиксированно светлым, а
   не наследовать тёмный фон страницы в тёмной теме (иначе тёмный товар
   становится не виден на странице сравнения). */
.compare-table td .compare-thumb{width:110px; margin-bottom:10px; background:#fff; border-radius:var(--radius); padding:8px; box-sizing:border-box; display:flex; align-items:center; justify-content:center;}
.compare-table td .compare-remove{font-size:14.5px; color:var(--danger); background:none; border:none; cursor:pointer; margin-top:6px;}

/* account */
.account-layout{display:grid; grid-template-columns:220px 1fr; gap:44px; padding:40px 0 80px;}
.account-nav a{display:block; padding:12px 0; font-size:16.5px; color:var(--muted); border-bottom:1px solid var(--line);}
.account-nav a.active{color:var(--ink); font-weight:700;}
.order-row{background:var(--card-solid); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:18px 20px; margin-bottom:14px; display:flex; justify-content:space-between; align-items:center;}
.status-pill{font-size:14px; padding:5px 12px; border-radius:20px; text-transform:uppercase; letter-spacing:.03em; font-weight:700;}
.status-new{background:#e8edfd; color:#3450c9;}
.status-processing{background:#fdf1e0; color:#a4772b;}
.status-shipped{background:#e2f7f2; color:#1a8a72;}
.status-delivered{background:#e2f7ee; color:#1a8a5c;}
.status-cancelled{background:#fde7ea; color:#c23955;}
/* Тёмная тема: .stock-flag (admin.css) уже получил тёмные варианты, а эти —
   те же по смыслу «пилюли»-статусы (используются и в админке, и у покупателя —
   заказы, обмены, подбор оправы) — оставались только светлыми. На тёмном фоне
   светлые плашки просто выглядели чужеродными «наклейками», не читались как
   часть интерфейса. Цвета подобраны в тон уже существующим тёмным вариантам
   .stock-flag/.switch, чтобы вся тёмная тема была выдержана в одной палитре. */
body.dark-theme .status-new{background:rgba(109,139,255,.16); color:#8fa5ff;}
body.dark-theme .status-processing{background:rgba(255,180,80,.16); color:#ffc477;}
body.dark-theme .status-shipped{background:rgba(63,224,194,.16); color:#3fe0c2;}
body.dark-theme .status-delivered{background:rgba(51,201,159,.16); color:#5fe0bb;}
body.dark-theme .status-cancelled{background:rgba(255,107,129,.16); color:#ff8fa1;}

.body-lock{overflow:hidden;}

/* ===== themes.css ===== */
/* themes.css — сезонное праздничное оформление витрины.
   Все правила строго скопированы под классы body.theme-*, чтобы не влиять
   на обычный дизайн сайта. Декоративные элементы генерируются в assets/js/theme.js
   и добавляются в контейнеры .theme-decor (внутри #site-header и внутри #home-hero). */

.theme-decor{position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:1;}
/* Декор шапки (гирлянда/снег/блик) должен совпадать по ширине и скруглению
   именно со скруглённой карточкой .header-row, а не со всей #site-header
   (та шире на десктопе) — иначе декор вылезает прямоугольником за края карточки. */
#theme-decor{max-width:1480px; margin:0 auto; border-radius:20px; overflow:hidden;}

/* Обратный отсчёт до конца акции в hero-баннере (см. assets/js/theme.js) —
   базовые размеры/форма общие для всех тем, цвета переопределяются под каждую тему ниже. */
.hero-countdown{
  position:relative; z-index:2; display:inline-block; margin-top:14px;
  padding:7px 14px; border-radius:999px; font-size:13px; font-weight:600;
  letter-spacing:.01em; backdrop-filter:blur(2px);
}
#site-header .theme-decor{border-radius:20px;}

/* ---------- Общие переопределения переменных hero/шапки для праздничных тем ---------- */
/* overflow:hidden тут специально не ставим — иначе выпадающие подменю каталога
   (женские/мужские оправы и т.д.), которые открываются ниже строки шапки,
   обрезались бы и становились невидимыми во время праздничного оформления. */
body[class*="theme-"] #site-header .header-row{position:relative;}
body[class*="theme-"] .hero{position:relative; overflow:hidden; border-radius:var(--radius-lg);}

/* ================= 1. Новый год — «Синяя ночь + гирлянда» ================= */
.theme-new-year #site-header .header-row{
  background:
    radial-gradient(circle at 85% 12%, rgba(255,217,122,.16), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(109,139,255,.20), transparent 45%),
    linear-gradient(170deg,#0b2647,#123a63 55%,#0d2e54);
  color:#fff;
}
/* Hero делаем "премиальным": несколько слоёв — глубокий градиент фона,
   рассеянные тёплые/холодные блики (боке), мелкие звёзды-точки узором,
   мягкая диагональная световая полоса и лёгкая виньетка по краям, чтобы
   карточка не выглядела плоской заливкой. */
.theme-new-year .hero{
  background:
    radial-gradient(circle at 78% 8%, rgba(255,217,122,.22), transparent 30%),
    radial-gradient(circle at 92% 32%, rgba(255,217,122,.10), transparent 22%),
    radial-gradient(circle at 12% 85%, rgba(109,139,255,.26), transparent 38%),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.06), transparent 26%),
    repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,.10) 0 1px, transparent 1px 46px),
    repeating-radial-gradient(circle at 70% 70%, rgba(255,217,122,.14) 0 1px, transparent 1px 60px),
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.05) 50%, transparent 62%),
    linear-gradient(170deg,#0b2647,#123a63 55%,#0d2e54);
  box-shadow:inset 0 0 120px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,217,122,.14);
  color:#fff;
}
.theme-new-year #site-header .logo,
.theme-new-year #site-header .main-nav a,
.theme-new-year #site-header .header-actions a{color:#fff;}
.theme-new-year .hero h1, .theme-new-year .hero p.lead{color:#fff;}
.theme-new-year .eyebrow{background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.25); color:#ffd97a;}
.theme-new-year .btn-primary{background:#e63946; box-shadow:0 14px 30px rgba(230,57,70,.35);}
.theme-new-year .btn-primary:hover{background:#c92e3a;}
.theme-new-year .tag-preview, .theme-new-year .price-note-sm{background:#e6c15c;}
.theme-new-year .hero-countdown{background:rgba(255,255,255,.12); border:1px solid rgba(230,193,90,.4); color:#ffd97a;}

.garland-strip{position:absolute; top:0; left:0; right:0; display:flex; justify-content:space-evenly; padding:4px 10px; z-index:2;}
.garland-bulb{width:8px; height:8px; border-radius:50%; display:inline-block; box-shadow:0 0 6px currentColor; animation:bulb-blink 1.6s ease-in-out infinite;}
@keyframes bulb-blink{
  0%, 100%{opacity:.45; filter:brightness(.8);}
  50%{opacity:1; filter:brightness(1.4);}
}

.snowflake{position:absolute; top:-20px; color:#fff; pointer-events:none; animation-name:snow-fall; animation-timing-function:linear; animation-iteration-count:infinite;}
@keyframes snow-fall{
  0%{transform:translateY(-20px) rotate(0deg); opacity:0;}
  10%{opacity:1;}
  100%{transform:translateY(420px) rotate(360deg); opacity:.2;}
}

.theme-glow-orb{position:absolute; right:24px; top:24px; width:180px; height:180px; border-radius:50%; background:#ffd97a; filter:blur(40px); opacity:.55; animation:glow-pulse 4s ease-in-out infinite;}
@keyframes glow-pulse{
  0%, 100%{opacity:.4; transform:scale(1);}
  50%{opacity:.7; transform:scale(1.12);}
}

/* ================= 2. Чёрная пятница — «Премиальный минимализм» ================= */
.theme-black-friday #site-header .header-row{
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.08), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.05), transparent 40%),
    #161616;
  color:#fff;
}
/* Тёмный премиальный фон hero: тонкая металлическая фактура (диагональные
   микрополосы), холодные блики, точечный узор "зерна" и глубокая виньетка —
   вместо ровной заливки #161616. */
.theme-black-friday .hero{
  background:
    radial-gradient(circle at 85% 6%, rgba(255,255,255,.10), transparent 32%),
    radial-gradient(circle at 6% 92%, rgba(255,255,255,.06), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.04), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 10px),
    repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.06) 0 1px, transparent 1px 50px),
    linear-gradient(180deg,#1c1c1c,#111111);
  box-shadow:inset 0 0 140px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
  color:#fff;
}
.theme-black-friday #site-header .logo,
.theme-black-friday #site-header .main-nav a,
.theme-black-friday #site-header .header-actions a{color:#fff;}
.theme-black-friday .hero h1{font-family:Georgia, var(--serif); letter-spacing:.02em; color:#fff;}
.theme-black-friday .hero p.lead{color:#d8d8d8;}
.theme-black-friday .eyebrow{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.25); color:#fff;}
.theme-black-friday .btn-primary{background:transparent; color:#fff; border:1px solid #fff; box-shadow:none;}
.theme-black-friday .btn-primary:hover{background:rgba(255,255,255,.1);}
.theme-black-friday .hero-countdown{background:transparent; border:1px solid #fff; color:#fff;}

.bf-shine{position:absolute; inset:0; background:linear-gradient(100deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); background-size:250% 100%; animation:bf-shine-sweep 3.5s linear infinite;}
@keyframes bf-shine-sweep{
  0%{background-position:120% 0;}
  100%{background-position:-20% 0;}
}

/* ================= 3. 8 марта — «Розовая пудра» ================= */
.theme-march8 #site-header .header-row{
  background:
    radial-gradient(circle at 88% 10%, rgba(226,120,155,.22), transparent 42%),
    radial-gradient(circle at 6% 92%, rgba(255,255,255,.5), transparent 45%),
    linear-gradient(170deg,#fdeef2,#fbdce6 60%,#f7cddd);
  color:#7a2e46;
}
/* Премиальный "розовая пудра": мягкие перламутровые блики разного размера,
   тёплый золотистый акцент, деликатный узор из мелких точек (как бумага
   ручной работы) и лёгкая диагональная световая полоса вместо плоской заливки. */
.theme-march8 .hero{
  background:
    radial-gradient(circle at 90% 4%, rgba(255,255,255,.7), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(226,120,155,.26), transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(255,255,255,.55), transparent 40%),
    radial-gradient(circle at 30% 75%, rgba(238,193,120,.18), transparent 32%),
    repeating-radial-gradient(circle at 25% 35%, rgba(255,255,255,.5) 0 1px, transparent 1px 42px),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 62%),
    linear-gradient(170deg,#fdeef2,#fbdce6 55%,#f6c9db);
  box-shadow:inset 0 0 90px rgba(122,46,70,.10), inset 0 0 0 1px rgba(255,255,255,.6);
  color:#7a2e46;
}
.theme-march8 #site-header .logo,
.theme-march8 #site-header .main-nav a,
.theme-march8 #site-header .header-actions a{color:#7a2e46;}
.theme-march8 .hero h1, .theme-march8 .hero p.lead{color:#7a2e46;}
.theme-march8 .eyebrow{background:rgba(122,46,70,.08); border-color:rgba(122,46,70,.2); color:#c4577f;}
.theme-march8 .btn-primary{background:#e2789b; box-shadow:0 14px 30px rgba(226,120,155,.35);}
.theme-march8 .btn-primary:hover{background:#d65c86;}
.theme-march8 .hero-countdown{background:rgba(122,46,70,.08); border:1px solid rgba(122,46,70,.2); color:#c4577f;}

.petal{position:absolute; top:-16px; border-radius:60% 10% 60% 10%; pointer-events:none; animation-name:petal-fall; animation-timing-function:linear; animation-iteration-count:infinite;}
@keyframes petal-fall{
  0%{transform:translate(0, -16px) rotate(0deg); opacity:0;}
  10%{opacity:1;}
  50%{transform:translate(20px, 200px) rotate(160deg);}
  100%{transform:translate(-10px, 420px) rotate(320deg); opacity:.2;}
}

/* ================= 4. 23 февраля — «Тёмно-синий + золото» ================= */
.theme-feb23 #site-header .header-row{
  background:
    radial-gradient(circle at 88% 14%, rgba(201,162,74,.22), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(201,162,74,.10), transparent 45%),
    linear-gradient(170deg,#0f1c2c,#1c2b3a 55%,#152332);
  color:#fff;
}
/* Премиальный "тёмно-синий + золото": несколько золотых бликов разного
   размера (эффект наградной ленты/медали), тонкий узор звёзд-точек,
   диагональный металлический блик и глубокая виньетка по краям. */
.theme-feb23 .hero{
  background:
    radial-gradient(circle at 85% 8%, rgba(201,162,74,.30), transparent 32%),
    radial-gradient(circle at 96% 40%, rgba(201,162,74,.14), transparent 24%),
    radial-gradient(circle at 10% 90%, rgba(201,162,74,.14), transparent 38%),
    radial-gradient(circle at 35% 15%, rgba(255,255,255,.05), transparent 26%),
    repeating-radial-gradient(circle at 22% 32%, rgba(201,162,74,.16) 0 1px, transparent 1px 48px),
    linear-gradient(115deg, transparent 40%, rgba(201,162,74,.10) 50%, transparent 62%),
    linear-gradient(170deg,#0f1c2c,#1c2b3a 55%,#152332);
  box-shadow:inset 0 0 130px rgba(0,0,0,.4), inset 0 0 0 1px rgba(201,162,74,.18);
  color:#fff;
}
.theme-feb23 #site-header .logo,
.theme-feb23 #site-header .main-nav a,
.theme-feb23 #site-header .header-actions a{color:#fff;}
.theme-feb23 .hero h1, .theme-feb23 .hero p.lead{color:#fff;}
.theme-feb23 .eyebrow{background:rgba(255,255,255,.08); border-color:rgba(201,162,74,.4); color:#c9a24a;}
.theme-feb23 .btn-primary{background:#c9a24a; color:#231a08; box-shadow:0 14px 30px rgba(201,162,74,.35);}
.theme-feb23 .btn-primary:hover{background:#b78f3c;}
.theme-feb23 .hero-countdown{background:rgba(255,255,255,.08); border:1px solid rgba(201,162,74,.4); color:#c9a24a;}

.twinkle-star{position:absolute; color:#fff; pointer-events:none; animation-name:twinkle; animation-timing-function:ease-in-out; animation-iteration-count:infinite;}
@keyframes twinkle{
  0%, 100%{opacity:.15; transform:scale(.8);}
  50%{opacity:1; transform:scale(1.15);}
}

/* ---------- Переключатель «Обычная тема / Праздничная тема» в шапке ---------- */
.theme-toggle-link{font-size:12px; opacity:.85; white-space:nowrap;}
.theme-toggle-link:hover{opacity:1;}

/* ---------- Мобильная адаптация: декор не должен мешать бургер-меню и не растягивать шапку ---------- */
@media (max-width:900px){
  .garland-strip{padding:2px 6px;}
  .garland-bulb{width:6px; height:6px;}
  .theme-glow-orb{width:100px; height:100px; right:8px; top:8px;}
}
