/* Дом Цветов — фирменная палитра: Клюква/Мох/Лён/Графит (Montserrat) */

:root {
  --primary: #7A1018;        /* Клюква — основной цвет: кнопки, ссылки, цены */
  --primary-dark: #620D13;   /* Клюква тёмная — hover */
  --accent: #5E7C2C;         /* Мох — вторичный акцент: успех/свежесть/натуральность */
  --accent-dark: #4B6323;    /* Мох тёмный — hover */
  --foreground: #1E1E1E;     /* Графит */
  --background: #F4F1EA;     /* Лён */
  --secondary: #E7E4DA;      /* Лён + Мох — фон чередующихся секций */
  --muted-foreground: #7C7975;
  --border: #DCD7CF;
  --card: #ffffff;
  --stone-100: #F6F3EF;
  --stone-300: #D6D1C8;
  --stone-700: #383735;
  --radius: 0px;
  --sans: 'Montserrat', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: var(--sans); cursor: pointer; color: inherit; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 48px; } }

h1, h2, h3 { font-family: var(--sans); margin: 0; }
.ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; vertical-align: -3px; }
.ic-sm { width: 12px; height: 12px; }
/* Фирменные растровые иконки (набор Клюква/Мох) — заменяют часть инлайн-SVG */
.ic-img { width: 14px; height: 14px; object-fit: contain; vertical-align: -2px; display: inline-block; }
.ic-img-lg { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar { border-bottom: 1px solid rgba(30,30,30,.08); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; font-size: 12px; color: var(--muted-foreground); }
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right { display: none; }
@media (min-width: 768px) { .topbar-right { display: flex; } }
.topbar a.help { color: var(--primary); font-weight: 500; }

.city-picker { position: relative; }
.city-btn { display: flex; align-items: center; gap: 4px; background: none; border: none; padding: 0; font-family: var(--sans); font-size: 12px; color: var(--muted-foreground); cursor: pointer; }
.city-btn:hover { color: var(--primary); }
.city-popover { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; width: 240px; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 16px; display: none; }
.city-popover.open { display: block; }
.city-popover-q { font-size: 14px; font-weight: 500; margin: 0 0 6px; color: var(--foreground); }
.city-popover-note { font-size: 12px; color: var(--muted-foreground); margin: 0 0 14px; line-height: 1.5; }
.city-popover-ok { width: 100%; background: var(--primary); color: #fff; border: none; padding: 10px; font-size: 13px; font-weight: 600; }
.city-popover-ok:hover { background: var(--primary-dark); }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(30,30,30,.4); display: none; }
.search-overlay.open { display: block; }
.search-overlay-inner { background: var(--background); padding: 24px 16px; max-height: 100vh; overflow-y: auto; }
@media (min-width: 768px) { .search-overlay-inner { padding: 40px 48px; } }
.search-input-row { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--foreground); padding-bottom: 12px; }
.search-input-row svg { flex-shrink: 0; color: var(--muted-foreground); }
.search-input-row input { flex: 1; border: none; background: none; outline: none; font-family: var(--sans); font-size: 20px; color: var(--foreground); padding: 4px 0; }
.search-input-row input::placeholder { color: var(--muted-foreground); }
.search-input-row button { background: none; border: none; color: var(--muted-foreground); padding: 4px; flex-shrink: 0; }
.search-input-row button:hover { color: var(--foreground); }
.search-results { padding-top: 20px; }
.search-result-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.search-result-item img { width: 48px; height: 60px; object-fit: cover; background: var(--stone-100); flex-shrink: 0; }
.search-result-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.search-result-price { font-size: 13px; color: var(--muted-foreground); }
.search-empty, .search-hint { font-size: 14px; color: var(--muted-foreground); padding: 16px 0; }
.search-viewall { display: inline-flex; margin-top: 16px; font-size: 14px; color: var(--primary); font-weight: 500; }

.mainbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
@media (min-width: 768px) { .mainbar { height: 80px; } }
.burger { background: none; border: none; padding: 6px; color: var(--foreground); }
.burger svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .burger { display: none; } }

.mainbar-left { display: flex; align-items: center; gap: 12px; }
@media (min-width: 960px) { .mainbar-left { flex: 1; } }
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 20px; font-weight: 600; letter-spacing: 0.02em; color: var(--foreground); }
.logo-img { height: 32px; width: auto; display: block; }
@media (min-width: 768px) { .logo-img { height: 40px; } }
.logo-city { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 2px; }

.mainnav { display: none; gap: 32px; font-size: 14px; font-weight: 500; }
.mainnav a { color: rgba(30,30,30,.7); }
.mainnav a:hover, .mainnav a.active { color: var(--primary); }
@media (min-width: 960px) { .mainnav { display: flex; } }
@media (min-width: 960px) { .mainbar-actions { flex: 1; display: flex; justify-content: flex-end; } }

.mainbar-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--foreground); background: none; border: none; }
.icon-btn:hover { color: var(--primary); }
.cart-count { position: absolute; top: -2px; right: -2px; background: var(--primary); color: #fff; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ---------- Header row (единая строка: лого / меню / телефон+иконки+CTA) ---------- */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
@media (min-width: 768px) { .header-row { height: 88px; } }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 8px; }
@media (min-width: 960px) { .header-right { gap: 16px; } }
.header-phone { display: none; flex-direction: column; align-items: flex-end; line-height: 1.3; margin-right: 4px; }
@media (min-width: 1100px) { .header-phone { display: flex; } }
.header-phone-num { font-size: 14px; font-weight: 600; color: var(--foreground); }
.header-phone-city { font-size: 11px; color: var(--muted-foreground); }
a.header-cta { display: none; white-space: nowrap; padding: 10px 20px; font-size: 12px; }
@media (min-width: 768px) { a.header-cta { display: inline-flex; } }

/* mobile catalog drawer */
.catalog-drawer { position: fixed; inset: 0; z-index: 100; background: var(--background); display: none; overflow-y: auto; }
.catalog-drawer.open { display: block; }
.catalog-drawer-inner { padding: 24px; }
.catalog-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.catalog-drawer-head button { background: none; border: none; }
.catalog-cat-list { list-style: none; margin: 0; padding: 0; }
.catalog-cat-list li a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 500; }
.catalog-drawer-foot { padding-top: 20px; color: var(--muted-foreground); font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline-dark { background: transparent; color: var(--foreground); border: 1px solid var(--foreground); text-transform: none; letter-spacing: normal; font-weight: 500; }
.btn-outline-dark:hover { background: var(--foreground); color: #fff; }
.btn-outline { background: transparent; color: var(--muted-foreground); border: 1px solid var(--border); text-transform: none; letter-spacing: normal; font-weight: 500; font-size: 14px; }
.btn-outline:hover { border-color: rgba(122,16,24,.4); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-pill { border-radius: 999px; text-transform: none; letter-spacing: normal; }
.btn-outline-pill { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; text-transform: none; letter-spacing: normal; font-weight: 500; }
.btn-outline-pill:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; height: 82vh; min-height: 520px; background: var(--background); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s cubic-bezier(.22,1,.36,1), visibility 0s linear 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s cubic-bezier(.22,1,.36,1); z-index: 1; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; background-repeat: no-repeat; }
.hero-slide--light .hero-slide-bg { background-size: contain; background-color: var(--background); }
.hero-slide[data-slide="0"] .hero-slide-bg { background-position: center 15%; }
.hero-slide[data-slide="1"] .hero-slide-bg { background-position: center 30%; }
.hero-slide[data-slide="2"] .hero-slide-bg { background-position: 30% 40%; }
.hero-slide .hero-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,5,3,.62) 0%, rgba(8,5,3,.2) 42%, transparent 68%); }
.hero-slide-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 88px; }
@media (min-width: 768px) { .hero-slide-content { padding-bottom: 128px; } }
.hero-eyebrow { color: rgba(255,255,255,.85); font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px; }
.hero-slide h1 { color: #fff; font-size: clamp(1.75rem, 3.6vw, 3.2rem); font-weight: 600; line-height: 1.18; letter-spacing: -.018em; margin-bottom: 20px; max-width: 640px; }
.hero-slide h1 .light { display: block; font-weight: 300; opacity: .88; font-size: .52em; margin-top: 10px; }
.hero-desc { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; margin: -6px 0 20px; max-width: 320px; }
.hero-cta { flex-shrink: 0; width: fit-content; }
.hero-slide--light .hero-eyebrow { color: rgba(30,30,30,.5); }
.hero-slide--light h1 { color: var(--foreground); }
.hero-slide--light .hero-desc { color: var(--muted-foreground); }

.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(20,15,12,.28); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .2s, border-color .2s; }
.hero-arrow:hover { background: rgba(20,15,12,.5); border-color: rgba(255,255,255,.6); }
.hero-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
@media (min-width: 768px) { .hero-arrow-prev { left: 32px; } .hero-arrow-next { right: 32px; } }

.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 3; display: flex; gap: 4px; background: rgba(20,15,12,.22); backdrop-filter: blur(4px); border-radius: 999px; padding: 6px 8px; }
.hero-dot { background: none; border: none; padding: 6px 8px; color: rgba(255,255,255,.55); }
.hero-dot-num { font-size: 11px; letter-spacing: .06em; font-family: var(--sans); padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.28); display: inline-block; }
.hero-dot.is-active { color: #fff; }
.hero-dot.is-active .hero-dot-num { border-color: #fff; }

/* ---------- Тизер категорий (Букеты / Композиции / Подарки) ---------- */
.teaser-section { padding: 32px 0; }
@media (min-width: 768px) { .teaser-section { padding: 48px 0; } }
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .teaser-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.teaser-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 220px; border-radius: 30px; overflow: hidden; padding: 28px; color: #fff; background-size: cover; background-position: center; transition: transform .3s ease; }
@media (min-width: 768px) { .teaser-tile { min-height: 260px; } }
.teaser-tile:hover { transform: translateY(-4px); }
.teaser-tile--photo { background-color: var(--accent); }
.teaser-tile-overlay { position: absolute; inset: 0; }
.teaser-tile-overlay--dark { background: rgba(20,15,12,.4); }
.teaser-tile-text { position: relative; z-index: 1; }
.teaser-tile-text h3 { font-size: 20px; font-weight: 600; margin: 0 0 4px; font-family: var(--sans); text-shadow: 0 1px 8px rgba(0,0,0,.25); }
@media (min-width: 768px) { .teaser-tile-text h3 { font-size: 22px; } }
.teaser-tile-text p { font-size: 13px; margin: 0; opacity: .9; text-shadow: 0 1px 8px rgba(0,0,0,.25); }

/* ---------- Фирменный баннер («Свежие цветы / Красивые моменты / Ваш …») ---------- */
.brand-banner {
  background-color: #587020;
  background-image:
    linear-gradient(rgba(88,112,32,.40), rgba(88,112,32,.40)),
    url("/assets/uploads/site/brand-banner-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  overflow: hidden;
}
.brand-banner-section { padding: 32px 0; }
@media (min-width: 768px) { .brand-banner-section { padding: 48px 0; } }
/* Уже своя, увеличенная секция .block-lg — здесь между двумя компактными
   блоками (баннер/футер) переопределяем на тот же малый шаг для ровного ритма. */
#advantages.block-lg { padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 768px) { #advantages.block-lg { padding-top: 48px; padding-bottom: 48px; } }
.brand-banner-inner { padding: 64px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 768px) { .brand-banner-inner { padding: 88px 24px; } }
.brand-banner-line { color: #fff; font-family: var(--sans); font-size: 26px; font-weight: 500; margin: 0; line-height: 1.35; }
@media (min-width: 768px) { .brand-banner-line { font-size: 34px; } }
.brand-banner-cta { margin-top: 28px; padding: 13px 32px; }

/* ---------- Sections ----------
   Используем padding-top/bottom, а не шорткат "padding: Npx 0" — иначе на
   элементах, где эти классы соединены с .wrap на одном теге (about-grid,
   footer-grid, footer-bottom), шорткат при равной специфичности перебивает
   .wrap-у левый/правый паддинг нулём (более поздний по каскаду), и блок
   прижимается к краям экрана. */
section.block { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 768px) { section.block { padding-top: 64px; padding-bottom: 64px; } }
.block-lg { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .block-lg { padding-top: 96px; padding-bottom: 96px; } }
.bg-secondary-section { background: var(--secondary); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 768px) { .section-head h2 { font-size: 30px; } }
.section-head .viewall { font-size: 14px; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(8, 1fr); gap: 16px; } }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 8px; border: 1px solid transparent; border-radius: 16px; background: transparent; text-align: center; transition: border-color .2s, box-shadow .2s; }
.cat-tile:hover { border-color: var(--stone-300); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.cat-icon-box { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
@media (min-width: 768px) { .cat-icon-box { width: 56px; height: 56px; } }
.cat-tile:hover .cat-icon-box { transform: scale(1.1); }
.cat-icon-box svg { width: 22px; height: 22px; stroke-width: 1.8; }
.cat-icon-img { width: 24px; height: 24px; object-fit: contain; }
.cat-name { font-size: 10px; color: rgba(30,30,30,.7); font-weight: 500; line-height: 1.3; }
@media (min-width: 768px) { .cat-name { font-size: 12px; } }
.cat-tile:hover .cat-name { color: var(--foreground); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.product-grid.cols-3 { grid-template-columns: repeat(2,1fr); } @media (min-width: 768px){ .product-grid.cols-3 { grid-template-columns: repeat(3,1fr); } }

.product-card { display: block; }
.product-card-link { display: block; }
.product-media { position: relative; aspect-ratio: 3/4; background: var(--stone-100); overflow: hidden; margin-bottom: 12px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-like { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.8); backdrop-filter: blur(4px); border: none; display: flex; align-items: center; justify-content: center; }
.product-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 2px; }
.badge-хит { background: #fef3c7; color: #92400e; }
.badge-акция { background: rgba(122,16,24,.1); color: var(--primary); }
.badge-wow { background: #f3e8ff; color: #6b21a8; }
.badge-премиум { background: var(--foreground); color: #fff; }
.product-type { font-size: 11px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.product-title { font-weight: 500; margin-bottom: 4px; line-height: 1.3; font-size: 14px; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 17px; font-weight: 600; }
.product-add { font-size: 11px; border: 1px solid rgba(30,30,30,.2); background: none; padding: 6px 12px; transition: all .2s; }
.product-add:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Delivery/payment ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px; border: 1px solid var(--border); }
.trust-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(122,16,24,.08); margin-bottom: 20px; }
.trust-icon svg { width: 20px; height: 20px; color: var(--primary); }
.trust-item h3 { font-weight: 500; margin-bottom: 12px; font-size: 16px; }
.trust-item p { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; margin: 0; }

.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .offer-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.offer-grid .trust-item h3 { margin-bottom: 0; }

.about-highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .about-highlights { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.about-highlights li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--foreground); }
.about-highlights li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.about-highlights li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ---------- About ---------- */
.about-section { background: var(--accent); color: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-eyebrow { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.about-title { font-size: 30px; font-weight: 500; line-height: 1.2; margin-bottom: 24px; }
@media (min-width: 768px) { .about-title { font-size: 48px; } }
.about-title em { font-style: italic; }
.about-text { color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-stats .n { font-size: 30px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.about-stats .l { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .05em; }
.about-photo { position: relative; min-height: 320px; background: var(--stone-700); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .7; position: absolute; inset: 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.blog-card img { aspect-ratio: 3/2; object-fit: cover; margin-bottom: 16px; background: var(--stone-100); }
.blog-cat { font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.blog-title { font-weight: 500; line-height: 1.35; margin-bottom: 8px; }
.blog-date { font-size: 11px; color: var(--muted-foreground); }
.blog-excerpt { font-size: 12px; color: var(--muted-foreground); line-height: 1.6; }
.blog-featured { display: grid; grid-template-columns: 1fr; border: 1px solid var(--border); margin-bottom: 48px; overflow: hidden; }
@media (min-width: 768px) { .blog-featured { grid-template-columns: 1fr 1fr; } }
.blog-featured img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.blog-featured-text { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .blog-featured-text { padding: 48px; } }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.blog-tag-btn { font-size: 12px; font-weight: 500; padding: 8px 16px; border: 1px solid var(--border); background: none; }
.blog-tag-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.faq-tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; font-weight: 500; border: 1px solid rgba(30,30,30,.14); background: #fff; color: var(--foreground); }
.faq-tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-grid2 { display: grid; grid-template-columns: 1fr; column-gap: 64px; }
@media (min-width: 768px) { .faq-grid2 { grid-template-columns: 1fr 1fr; } }
.faq-item { border-top: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; background: none; border: none; text-align: left; font-weight: 500; font-size: 15px; }
.faq-q:hover { color: var(--primary); }
.faq-dot { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(30,30,30,.18); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.faq-item.open .faq-dot { background: var(--primary); border-color: var(--primary); }
.faq-item.open .faq-dot svg { transform: rotate(180deg); color: #fff; }
.faq-a { display: none; font-size: 14px; color: var(--muted-foreground); line-height: 1.6; padding: 0 40px 20px 0; }
.faq-item.open .faq-a { display: block; }
.faq-q svg { transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-nav { display: none; flex-direction: column; gap: 6px; position: sticky; top: 112px; align-self: flex-start; }
@media (min-width: 768px) { .faq-nav { display: flex; } }
.faq-nav a { font-size: 14px; color: var(--muted-foreground); padding: 6px 0; }
.faq-nav a:hover { color: var(--primary); }
.faq-page-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .faq-page-layout { grid-template-columns: 220px 1fr; } }
.faq-cat-block { margin-bottom: 48px; }
.faq-cat-block h2 { font-size: 20px; font-weight: 500; margin-bottom: 20px; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .contacts-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 40px; height: 40px; background: rgba(122,16,24,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.contact-icon svg { width: 16px; height: 16px; color: var(--primary); }
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); margin-bottom: 4px; }
.contact-value { font-weight: 500; }

.contacts-messengers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.store-city-group { margin-bottom: 40px; }
.store-city-group:last-child { margin-bottom: 0; }
.store-city-title { font-size: 20px; font-weight: 600; margin: 0 0 20px; }
.store-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .store-grid { grid-template-columns: repeat(3, 1fr); } }
.store-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.store-addr { font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.store-hours { font-size: 13px; color: var(--muted-foreground); line-height: 1.5; margin: 0 0 10px; }
.store-line { font-size: 13px; margin: 0 0 2px; }
.store-line a { color: var(--primary); }

.requisites-grid { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 640px; }
.requisites-grid p { margin: 0; font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }
.requisites-grid p strong { color: var(--foreground); font-size: 16px; }

/* ---------- Long-form legal text ---------- */
.legal-text { max-width: 780px; }
.legal-text h2 { font-size: 20px; font-weight: 600; margin: 40px 0 16px; }
.legal-text p { font-size: 14px; line-height: 1.7; color: var(--muted-foreground); margin: 0 0 14px; }
.legal-text p a { color: var(--primary); text-decoration: underline; }
.legal-divider { border: none; border-top: 1px solid var(--border); margin: 56px 0; }

/* ---------- Vacancy page ---------- */
.vacancy-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) { .vacancy-grid { grid-template-columns: 1.2fr 1fr; } }
.vacancy-form-col { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; align-self: start; }
.vacancy-form { display: flex; flex-direction: column; gap: 4px; }
.vacancy-form input, .vacancy-form textarea { margin-bottom: 14px; }
.vacancy-form button { margin-top: 8px; align-self: flex-start; }

/* ---------- Course page ---------- */
.course-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px 0; }
@media (min-width: 768px) { .course-specs { grid-template-columns: repeat(4, 1fr); } }
.course-spec { background: var(--secondary); border-radius: 16px; padding: 24px; text-align: center; }
.course-spec .n { display: block; font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.course-spec .l { display: block; font-size: 13px; color: var(--muted-foreground); }
.course-cert { margin-bottom: 32px; font-size: 15px; }

/* ---------- Catalog page ---------- */
.page-eyebrow { font-size: 12px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.page-title { font-size: 32px; font-weight: 500; }
@media (min-width: 768px) { .page-title { font-size: 48px; } }
.catalog-layout { display: flex; gap: 40px; align-items: flex-start; }
.catalog-sidebar { display: none; width: 224px; flex-shrink: 0; }
@media (min-width: 900px) { .catalog-sidebar { display: block; } }
.sidebar-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); margin-bottom: 16px; }
.sidebar-cats { display: flex; flex-direction: column; gap: 2px; margin-bottom: 32px; }
.sidebar-cats a { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 0 8px 12px; border-left: 2px solid transparent; color: rgba(30,30,30,.6); }
.sidebar-cats a.active { border-color: var(--primary); color: var(--primary); font-weight: 500; }
.sidebar-cats a:hover { color: var(--foreground); }
.sidebar-cat-group { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-parent { font-weight: 600 !important; color: var(--foreground) !important; margin-top: 8px; }
.sidebar-cat-parent.active { color: var(--primary) !important; }
.sidebar-cat-child { padding-left: 26px !important; font-size: 13px !important; }
.sidebar-cat-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.sidebar-cat-child .sidebar-cat-icon { width: 15px; height: 15px; }
.mobile-filter-btn { display: flex; align-items: center; gap: 8px; font-size: 14px; border: 1px solid var(--border); padding: 10px 16px; margin-bottom: 24px; background: none; }
@media (min-width: 900px) { .mobile-filter-btn { display: none; } }
.catalog-main { flex: 1; min-width: 0; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.catalog-toolbar select { font-size: 14px; border: 1px solid var(--border); background: var(--background); padding: 8px 12px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); font-size: 14px; }
.pagination a.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
@media (min-width: 768px) { .pd-layout { grid-template-columns: 1fr 1fr; gap: 64px; } }
.breadcrumb { display: flex; gap: 8px; font-size: 12px; color: var(--muted-foreground); margin-bottom: 32px; }
.breadcrumb a:hover { color: var(--foreground); }
.pd-gallery { display: flex; gap: 12px; }
.pd-thumbs-col { display: none; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .pd-thumbs-col { display: flex; } }
.pd-thumbs-col img { width: 64px; height: 80px; object-fit: cover; border: 2px solid transparent; opacity: .7; cursor: pointer; }
.pd-thumbs-col img.active { border-color: var(--primary); opacity: 1; }
.pd-main-photo { flex: 1; position: relative; aspect-ratio: 3/4; background: var(--stone-100); overflow: hidden; }
.pd-main-photo img { width: 100%; height: 100%; object-fit: contain; }
.pd-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); font-size: 14px; text-align: center; padding: 24px; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(255,255,255,.8); border: none; display: flex; align-items: center; justify-content: center; }
.pd-arrow.left { left: 8px; } .pd-arrow.right { right: 8px; }
.pd-sku { font-size: 12px; color: var(--muted-foreground); }
.pd-title { font-size: 30px; font-weight: 500; margin: 12px 0 8px; line-height: 1.2; }
@media (min-width: 768px) { .pd-title { font-size: 36px; } }
.pd-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 16px; }
.pd-stars svg { width: 14px; height: 14px; }
.pd-stars .filled { fill: #fbbf24; color: #fbbf24; }
.pd-stars .empty { color: var(--stone-300); }
.pd-reviews { font-size: 12px; color: var(--muted-foreground); margin-left: 6px; }
.pd-desc { color: var(--muted-foreground); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.pd-size-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); margin-bottom: 12px; }
.variant-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.variant-opt { padding: 12px 8px; border: 1px solid var(--border); text-align: center; font-size: 12px; background: none; }
.variant-opt.active { border-color: var(--primary); background: rgba(122,16,24,.05); color: var(--primary); }
.variant-opt strong { display: block; font-weight: 600; margin-bottom: 2px; }
.variant-opt .vf { color: var(--muted-foreground); }
.variant-opt.active .vf { color: var(--primary); }
.variant-opt .vp { margin-top: 4px; color: var(--foreground); }
.pd-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; font-size: 14px; }
.pd-details-box { background: var(--secondary); padding: 12px; }
.pd-details-box .lbl { font-size: 12px; color: var(--muted-foreground); margin-bottom: 2px; }
.pd-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.pd-price { font-size: 36px; font-weight: 600; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); }
.qty-control button { width: 40px; height: 40px; background: none; border: none; display: flex; align-items: center; justify-content: center; }
.qty-control button:hover { background: var(--secondary); }
.qty-control span { width: 40px; text-align: center; font-size: 14px; font-weight: 500; }
.pd-cta-col { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.btn-secondary-cta { width: 100%; border: 1px solid var(--border); padding: 12px; font-size: 14px; color: var(--muted-foreground); background: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-secondary-cta:hover { border-color: rgba(122,16,24,.4); }
.freshness-box { background: var(--secondary); padding: 16px; font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }
.freshness-box .t { font-weight: 500; color: var(--foreground); margin-bottom: 4px; display: block; }
.care-list { margin: 6px 0 0; padding-left: 18px; }
.care-list li { margin-bottom: 6px; }
.care-list li:last-child { margin-bottom: 0; }

.addon-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.addon-item { flex-shrink: 0; width: 128px; }
.addon-media { position: relative; aspect-ratio: 1; background: var(--stone-100); overflow: hidden; margin-bottom: 8px; }
.addon-media img { width: 100%; height: 100%; object-fit: cover; }
.addon-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: none; }
.addon-overlay.checked { background: rgba(122,16,24,.8); }
.addon-overlay svg { width: 24px; height: 24px; color: #fff; display: none; }
.addon-overlay.checked svg { display: block; }
.addon-title { font-size: 12px; font-weight: 500; }
.addon-price { font-size: 12px; color: var(--muted-foreground); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 400px; } }
.cart-section { margin-bottom: 40px; }
.cart-section h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); margin-bottom: 20px; font-weight: 600; }
.cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 80px; height: 96px; object-fit: cover; background: var(--stone-100); flex-shrink: 0; }
.cart-item-title { font-weight: 500; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--muted-foreground); margin-bottom: 12px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-weight: 600; }
.cart-item-remove { color: var(--muted-foreground); background: none; border: none; align-self: flex-start; }

.auth-box, .bonus-box { background: var(--secondary); padding: 20px; }
.auth-box p { font-size: 14px; margin: 0 0 16px; }
.auth-row { display: flex; gap: 12px; }
.auth-row input { flex: 1; }

.form-grid2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid2 { grid-template-columns: 1fr 1fr; } }
.form-grid2 .span2 { grid-column: 1 / -1; }
label.field-label { display: block; font-size: 12px; color: var(--muted-foreground); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; border: 1px solid var(--border); background: #fff; padding: 10px 12px; font-family: var(--sans); font-size: 14px; color: var(--foreground);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 70px; }
input[type=file] {
  width: 100%; border: 1px solid var(--border); background: #fff; padding: 6px; font-family: var(--sans); font-size: 13px; color: var(--muted-foreground);
}
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 8px 16px; border: none; background: var(--primary); color: #fff;
  font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: background .2s;
}
input[type=file]::file-selector-button:hover { background: var(--primary-dark); }
.link-btn { font-size: 14px; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; background: none; border: none; margin-top: 12px; }

.method-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.method-opt { padding: 16px; border: 1px solid var(--border); background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.method-opt.active { border-color: var(--primary); background: rgba(122,16,24,.05); color: var(--primary); }
.method-opt svg { width: 20px; height: 20px; }

.summary-box { border: 1px solid var(--border); padding: 24px; background: var(--card); position: sticky; top: 112px; }
.summary-box h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); margin-bottom: 24px; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-row .muted { color: var(--muted-foreground); }
.summary-row.discount { color: var(--primary); }
.summary-total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0; font-size: 12px; color: var(--muted-foreground); line-height: 1.5; }
.consent-row input { margin-top: 3px; }
.consent-row a { text-decoration: underline; color: var(--foreground); }

/* ---------- Account ---------- */
.account-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.account-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 40px; overflow-x-auto; }
.account-tab { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 14px; font-weight: 500; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted-foreground); white-space: nowrap; }
.account-tab.active { border-color: var(--primary); color: var(--primary); }
.account-tab:hover { color: var(--foreground); }
.order-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); padding: 16px; margin-bottom: 12px; }
.order-row img { width: 64px; height: 80px; object-fit: cover; background: var(--stone-100); }
.order-status { font-size: 12px; background: rgba(94,124,44,.12); color: var(--accent-dark); padding: 4px 8px; }
.address-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); padding: 16px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--accent); color: rgba(255,255,255,.8); margin-top: 32px; }
@media (min-width: 768px) { .site-footer { margin-top: 48px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
.footer-logo-name { font-size: 20px; font-weight: 600; color: #fff; }
.footer-logo-img { height: 34px; width: auto; }
.footer-logo-city { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 2px; }
.footer-about { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; margin: 16px 0 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: rgba(255,255,255,.6); }
.footer-social svg { width: 16px; height: 16px; }
.footer-social img { width: 16px; height: 16px; object-fit: contain; }
.footer-col-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
p.footer-contact-line { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact-line svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-line a { display: inline; margin-bottom: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; color: rgba(255,255,255,.3); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--foreground); color: #fff; padding: 16px 20px; display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 14px; color: rgba(255,255,255,.7); max-width: 640px; margin: 0; line-height: 1.5; }
.cookie-banner a, .cookie-banner u { text-decoration: underline; color: rgba(255,255,255,.9); }
.cookie-banner button { flex-shrink: 0; background: var(--primary); color: #fff; border: none; padding: 10px 24px; font-size: 14px; }
.cookie-banner button:hover { background: var(--primary-dark); }

/* ---------- Reveal-on-scroll animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity .8s ease; }
.reveal-fade.in-view { opacity: 1; }
.reveal-stagger.in-view { transition-delay: calc(var(--reveal-i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.hero-slide.is-active .hero-slide-content > * { animation: dc-fade-up .7s cubic-bezier(.22,1,.36,1) both; }
.hero-slide.is-active .hero-eyebrow { animation-delay: .1s; }
.hero-slide.is-active h1 { animation-delay: .2s; }
.hero-slide.is-active .hero-desc { animation-delay: .32s; }
.hero-slide.is-active .hero-cta { animation-delay: .4s; }
@keyframes dc-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide-content > * { animation: none; }
}

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted-foreground); }
.alert { padding: 14px 16px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: rgba(94,124,44,.12); color: var(--accent-dark); }
.alert-error { background: #fee2e2; color: #b91c1c; }

/* ---------- Плавающие кнопки: заказать звонок / оставить отзыв ---------- */
.floating-actions { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.floating-btn { width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .15s; }
.floating-btn:hover { transform: scale(1.08); }
.floating-btn svg { width: 22px; height: 22px; }
.floating-btn--call { background: var(--primary); color: #fff; }
.floating-btn--review { background: var(--accent); color: #fff; }
@media (max-width: 767px) { .floating-actions { right: 12px; gap: 8px; } .floating-btn { width: 46px; height: 46px; } .floating-btn svg { width: 19px; height: 19px; } }

.qf-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(30,30,30,.5); display: none; align-items: center; justify-content: center; padding: 20px; }
.qf-overlay.open { display: flex; }
.qf-modal { background: var(--card); max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; position: relative; }
.qf-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--muted-foreground); padding: 4px; }
.qf-modal-close svg { width: 18px; height: 18px; }
.qf-modal h2 { font-size: 22px; font-weight: 500; margin: 0 0 24px; }
.qf-modal label.field-label { display: block; font-size: 12px; color: var(--muted-foreground); margin-bottom: 6px; margin-top: 16px; }
.qf-modal label.field-label:first-of-type { margin-top: 0; }
.qf-website-field { position: absolute; left: -9999px; top: -9999px; }
.qf-stars { display: flex; gap: 4px; }
.qf-star { background: none; border: none; cursor: pointer; padding: 2px; color: var(--stone-300); }
.qf-star svg { width: 22px; height: 22px; }
.qf-star.active { color: var(--primary); }
.qf-submit-row { margin-top: 24px; display: flex; align-items: center; gap: 16px; }
.qf-msg { font-size: 13px; margin-top: 14px; }
.qf-msg.ok { color: var(--accent-dark); }
.qf-msg.err { color: #b91c1c; }
