  :root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface2: #ececef;
    --border: #dcdcdf;
    --text: #1d1f24;
    --text-muted: #6b6e74;
    --accent: #3a3d44;
    --accent-light: #e6e8eb;
    --accent-dark: #1d1f24;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 4px 24px rgba(29,31,36,0.08);
    --shadow-lg: 0 12px 48px rgba(29,31,36,0.14);
    --font: 'Nunito', sans-serif;
    --font-display: 'Playfair Display', serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
  }

  /* Глобальный сброс браузерных синих ссылок — без явных классов
     ссылки на сайте наследуют цвет и не подчёркиваются. */
  a { color: inherit; text-decoration: none; }
  a:hover { color: var(--accent); }

  /* ── NAVBAR ── */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(245, 245, 247, 0.65);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }

  /* Top strip — phones + contacts. Прозрачный, чтобы фоновая картинка тела сайта проступала сверху. */
  .nav-top {
    background: rgba(245, 245, 247, 0.7);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    padding: 0 clamp(0.8rem, 2vw, 2rem);
  }
  .nav-top-inner {
    max-width: 1600px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; height: 40px; flex-wrap: wrap;
  }
  .nav-phones {
    display: flex; align-items: center; gap: 0;
  }
  .nav-phone {
    display: flex; align-items: center; gap: 0.4rem;
    text-decoration: none;
    padding: 0 1.1rem; height: 40px;
    border-right: 1px solid var(--border);
    transition: background 0.18s;
  }
  .nav-phone:first-child { border-left: 1px solid var(--border); }
  .nav-phone:hover { background: var(--accent-light); }
  .nav-phone svg { flex-shrink: 0; color: var(--accent); }
  .nav-phone-label {
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted); white-space: nowrap;
  }
  .nav-phone-num {
    font-size: 0.88rem; font-weight: 800;
    letter-spacing: -0.01em; white-space: nowrap;
  }
  .nav-phone-main .nav-phone-num { color: var(--accent); }
  .nav-phone-spb .nav-phone-num { color: var(--text); }
  .nav-top-extra {
    display: flex; align-items: center; gap: 0;
    margin-left: 0.5rem;
  }
  .nav-top-link {
    font-size: 0.72rem; font-weight: 600;
    color: var(--text-muted); text-decoration: none;
    padding: 0 0.8rem; height: 40px;
    display: flex; align-items: center;
    border: none; background: none; cursor: pointer;
    font-family: var(--font);
    transition: color 0.18s;
    white-space: nowrap;
  }
  .nav-top-link:hover { color: var(--accent); }

  /* Bottom strip — logo + main navigation. Тоже прозрачный поверх фоновой картинки. */
  .nav-bottom {
    background: rgba(245, 245, 247, 0.6);
    backdrop-filter: blur(6px);
    padding: 0 clamp(0.8rem, 2vw, 2rem);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    max-width: 1600px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    height: 72px; flex-wrap: nowrap;
  }
  .logo {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    margin-right: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
  }
  .logo img {
    height: 52px;
    width: auto;
    display: block;
  }
  .logo:hover { opacity: 0.75; }

  /* Global search spacer */
  .nav-spacer { flex: 1; min-width: 0; }

  /* Nav links */
  .nav-link {
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    transition: all 0.22s ease;
    cursor: pointer;
    border: none; background: none;
    font-family: var(--font);
    white-space: nowrap; flex-shrink: 0;
  }
  .nav-link:hover { color: var(--text); background: var(--surface2); }
  .nav-link.active { color: var(--accent); background: var(--accent-light); }

  /* ── CATALOG DROPDOWN ── */
  .catalog-wrapper { position: relative; }
  .catalog-btn {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.9rem; font-weight: 700;
    color: var(--surface);
    background: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: none; cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(29,31,36,0.35);
  }
  .catalog-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29,31,36,0.45);
  }
  .catalog-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 2px 8px rgba(29,31,36,0.3);
  }
  .catalog-btn svg { transition: transform 0.25s ease; }
  .catalog-btn.open svg { transform: rotate(180deg); }

  .dropdown {
    position: absolute; top: calc(100% + 12px); left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 760px;
    display: none;
    padding: 1.25rem 1.75rem;
    column-count: 3;
    column-gap: 2rem;
    column-rule: 1px solid var(--border);
    animation: dropIn 0.22s ease;
  }
  .dropdown.open { display: block; }
  .drop-group {
    break-inside: avoid; page-break-inside: avoid;
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px dashed var(--border);
  }
  .drop-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .drop-group-link { display: block; text-decoration: none; }
  .drop-group-link h4 { color: var(--text); transition: color 0.18s ease; margin-bottom: 0; }
  .drop-group-link:hover h4 { color: var(--accent-dark); }

  @keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .drop-group h4 {
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem; padding: 0 0.5rem;
  }
  .drop-item {
    display: block;
    font-size: 0.875rem; font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.18s ease;
    cursor: pointer;
  }
  .drop-item:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
    transform: translateX(3px);
  }
  .drop-sep { height: 1px; background: var(--border); margin: 0.75rem 0; }

  /* ── PAGES (v2: server-rendered, всегда видны) ── */
  .page { display: block; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── HERO ── */
  .hero {
    max-width: 1600px; margin: 0 auto;
    padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 4rem); align-items: center;
  }
  .hero-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent);
    background: var(--accent-light); padding: 0.35rem 0.9rem;
    border-radius: 50px; margin-bottom: 1.2rem;
  }
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600; line-height: 1.15;
    letter-spacing: -0.02em; margin-bottom: 1rem;
  }
  .hero h1 em { color: var(--accent); font-style: italic; }
  .hero p {
    font-size: 1rem; color: var(--text-muted);
    max-width: 420px; margin-bottom: 2rem; font-weight: 400;
  }
  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

  /* ── BUTTONS ── */
  .btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font); font-weight: 700; font-size: 0.9rem;
    padding: 0.75rem 1.6rem; border-radius: 50px;
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.2s cubic-bezier(.34,1.56,.64,1);
    position: relative; overflow: hidden;
    letter-spacing: 0.01em;
  }
  .btn::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0; transition: opacity 0.15s;
  }
  .btn:hover::after { opacity: 1; }
  .btn:active { transform: scale(0.95) translateY(2px); }

  .btn-primary {
    background: var(--accent); color: white;
    box-shadow: 0 4px 18px rgba(29,31,36,0.4);
  }
  .btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 28px rgba(29,31,36,0.5);
    transform: translateY(-2px);
  }
  .btn-outline {
    background: transparent; color: var(--text);
    border: 2px solid var(--border);
  }
  .btn-outline:hover {
    border-color: var(--accent); color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
  }
  .btn-ghost {
    background: var(--surface2); color: var(--text);
  }
  .btn-ghost:hover {
    background: var(--border);
    transform: translateY(-1px);
  }

  /* Hero visual */
  .hero-visual {
    position: relative; border-radius: 28px; overflow: hidden;
    aspect-ratio: 4/3; background: var(--surface2);
    box-shadow: var(--shadow-lg);
  }
  .hero-visual svg { width: 100%; height: 100%; }
  .hero-chips {
    display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem;
  }
  .chip {
    font-size: 0.78rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border);
    padding: 0.3rem 0.8rem; border-radius: 50px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s;
  }
  .chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    background: var(--accent-light);
  }

  /* ── SECTION ── */
  .section { max-width: 1600px; margin: 0 auto; padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 3vw, 2.5rem); }
  .section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 2.5rem; gap: 1rem;
  }
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600; letter-spacing: -0.02em;
  }

  /* ── CATEGORY CARDS ── */
  .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    min-height: 180px;
  }
  /* Photo background layer */
  .cat-card-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.4s ease;
  }
  .cat-card-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(44,42,39,0.55) 0%, rgba(44,42,39,0.72) 100%);
    transition: background 0.25s ease;
  }
  .cat-card:hover .cat-card-bg { transform: scale(1.04); }
  .cat-card:hover .cat-card-bg::after {
    background: linear-gradient(160deg, rgba(44,42,39,0.42) 0%, rgba(44,42,39,0.62) 100%);
  }
  /* No-photo fallback */
  .cat-card:not(:has(.cat-card-bg)) {
    background: var(--surface);
  }
  .cat-card:not(:has(.cat-card-bg))::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
  }
  .cat-card:not(:has(.cat-card-bg)):hover::before { transform: scaleX(1); }
  /* Content overlay */
  .cat-card-content {
    position: relative; z-index: 1;
    padding: 1.6rem 1.4rem;
    display: flex; flex-direction: column; gap: 0.7rem;
    flex: 1;
  }
  /* Tinted content when photo is present */
  .cat-card:has(.cat-card-bg) .cat-card-content { color: #fff; }
  .cat-card:has(.cat-card-bg) h3 { color: #fff; }
  .cat-card:has(.cat-card-bg) p { color: rgba(255,255,255,0.82); }
  .cat-card:has(.cat-card-bg) .cat-icon {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
  }
  .cat-card:has(.cat-card-bg) .cat-arrow { color: rgba(255,255,255,0.9); }
  /* Fallback content colors */
  .cat-card:hover:not(:has(.cat-card-bg)) { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .cat-card:active { transform: translateY(-1px) scale(0.98); }
  .cat-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
  }
  .cat-card h3 { font-size: 1rem; font-weight: 700; }
  .cat-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
  .cat-arrow {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.8rem; font-weight: 700; color: var(--accent);
    margin-top: auto;
  }

  /* ── PRODUCT GRID ── */
  .prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }

  .prod-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex; flex-direction: column;
  }
  .prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .prod-card:active { transform: translateY(-2px) scale(0.98); }

  .prod-img {
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; position: relative;
    overflow: hidden;
  }
  .prod-badge {
    position: absolute; top: 1rem; left: 1rem;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent); color: white;
    padding: 0.25rem 0.7rem; border-radius: 50px;
  }
  .prod-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
  .prod-cat {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent);
  }
  .prod-name { font-size: 1rem; font-weight: 700; line-height: 1.3; }
  .prod-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
  .prod-specs {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem;
  }
  .spec-tag {
    font-size: 0.72rem; font-weight: 600;
    background: var(--surface2); color: var(--text-muted);
    padding: 0.22rem 0.6rem; border-radius: 50px;
    border: 1px solid var(--border);
  }
  .prod-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.3rem 1.3rem; gap: 0.8rem;
  }
  .prod-price { font-size: 1.1rem; font-weight: 800; color: var(--text); }
  .prod-price span { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }

  /* ── BREADCRUMB ── */
  .breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; color: var(--text-muted);
    margin-bottom: 2rem;
  }
  .breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
  .breadcrumb a:hover { text-decoration: underline; }

  /* ── FEATURES ── */
  .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 0.7rem;
  }
  .feature-icon {
    width: 52px; height: 52px; border-radius: 16px;
    background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
  }
  .feature-card h4 { font-size: 0.9rem; font-weight: 700; }
  .feature-card p { font-size: 0.8rem; color: var(--text-muted); }

  /* ── CONTACT PAGE ── */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
  .contact-item {
    display: flex; align-items: flex-start; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.3rem;
  }
  .contact-icon {
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--accent-light); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  }
  .contact-item h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.2rem; }
  .contact-item p { font-size: 0.83rem; color: var(--text-muted); }

  .form-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
  }
  .form-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.5rem; }
  .form-group { margin-bottom: 1rem; }
  .form-group label { font-size: 0.82rem; font-weight: 700; display: block; margin-bottom: 0.4rem; }
  .form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); font-family: var(--font); font-size: 0.9rem;
    color: var(--text); outline: none; transition: border-color 0.2s;
    resize: vertical;
  }
  .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent);
  }

  /* ── ABOUT PAGE ── */
  .about-hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 100%);
    border: 1px solid var(--border); border-radius: 28px;
    padding: 3.5rem; margin-bottom: 3rem; text-align: center;
  }
  .about-hero h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 1rem; }
  .about-hero p { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

  /* ── ABOUT PAGE NEW STYLES ── */
  .about-label {
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent); margin-bottom: 0.6rem;
  }
  .about-section-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600; line-height: 1.2;
    letter-spacing: -0.02em; margin-bottom: 1rem;
  }
  /* Story block */
  .about-story {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: start; margin-bottom: 4rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem;
  }
  .about-story-text p {
    font-size: 0.92rem; color: var(--text-muted);
    line-height: 1.7; margin-bottom: 0.9rem;
  }
  .about-story-text p strong { color: var(--text); }
  .about-story-aside { display: flex; flex-direction: column; gap: 1rem; }
  .about-aside-card {
    display: flex; align-items: flex-start; gap: 1rem;
    background: var(--surface2); border-radius: var(--radius-sm);
    padding: 1rem 1.2rem; border: 1px solid var(--border);
  }
  .about-aside-icon {
    font-size: 1.6rem; flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--accent-light); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
  }
  .about-aside-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.2rem; }
  .about-aside-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
  /* Offer grid */
  .about-offer-section { margin-bottom: 4rem; }
  .about-offer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  }
  .about-offer-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    transition: all 0.2s ease;
  }
  .about-offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .about-offer-icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
  .about-offer-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.4rem; }
  .about-offer-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
  /* Contacts section */
  .about-contacts {
    background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 60%);
    border: 1px solid var(--border); border-radius: 24px; padding: 2.5rem;
    margin-bottom: 1rem;
  }
  .about-contacts-inner {
    display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start;
  }
  .about-contact-list { display: flex; flex-direction: column; gap: 0.9rem; }
  .about-contact-row { display: flex; align-items: flex-start; gap: 0.9rem; }
  .about-contact-ico {
    font-size: 1.1rem; width: 36px; height: 36px; flex-shrink: 0;
    background: var(--accent-light); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
  }
  .about-contact-title {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted); margin-bottom: 0.15rem;
  }
  .about-contact-val { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.5; }
  .about-contacts-actions { min-width: 220px; }
  .about-worktime {
    margin-top: 1rem; padding: 0.9rem; background: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm); font-size: 0.82rem;
    color: var(--text-muted); display: flex; flex-direction: column; gap: 0.3rem;
  }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
  .stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; text-align: center;
  }
  .stat-card .num {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--accent);
    display: block; line-height: 1;
  }
  .stat-card p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }

  /* ── DELIVERY PAGE ── */
  .delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .delivery-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.8rem;
  }
  .delivery-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.5rem; }
  .delivery-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; }
  .delivery-list { display: flex; flex-direction: column; gap: 0.6rem; }
  .delivery-list li {
    list-style: none; font-size: 0.85rem;
    display: flex; align-items: flex-start; gap: 0.6rem;
  }
  .delivery-list li::before {
    content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
  }
  .footer-inner { max-width: 1600px; margin: 0 auto; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
  .footer-brand .logo { display: block; margin-bottom: 0.7rem; }
  .footer-brand p { font-size: 0.83rem; color: var(--text-muted); max-width: 240px; }
  .footer-col h5 { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
  .footer-col a, .footer-col span {
    display: block; font-size: 0.83rem; color: var(--text-muted);
    text-decoration: none; margin-bottom: 0.4rem; cursor: pointer;
    transition: color 0.18s;
  }
  .footer-col a:hover, .footer-col span:hover { color: var(--accent); }
  .footer-requisites {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0 0.5rem;
    display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
    font-size: 0.78rem; color: var(--text-muted); line-height: 1.6;
  }
  .footer-requisites strong { color: var(--text); font-weight: 700; }
  .footer-requisites a { color: var(--text-muted); }
  .footer-requisites a:hover { color: var(--accent); }
  .footer-bottom {
    border-top: 1px solid var(--border); padding-top: 1.2rem; margin-top: 0.5rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-muted);
  }
  @media (max-width: 600px) {
    .footer-requisites { flex-direction: column; gap: 0.3rem; }
  }

  /* ── CATALOG SUBCATEGORY PAGE ── */
  .subcat-header {
    background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 100%);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem;
  }
  .subcat-header-inner { max-width: 1600px; margin: 0 auto; }
  .subcat-header h1 {
    font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin-bottom: 0.5rem;
  }
  .subcat-header p { font-size: 0.9rem; color: var(--text-muted); }

  /* ── FILTER BAR ── */
  .filter-bar {
    display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
    margin-bottom: 2rem;
  }
  .filter-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
  .filter-chip {
    font-size: 0.8rem; font-weight: 600;
    padding: 0.38rem 0.9rem; border-radius: 50px;
    border: 2px solid var(--border); background: transparent;
    color: var(--text-muted); cursor: pointer; font-family: var(--font);
    transition: all 0.18s ease;
  }
  .filter-chip:hover { border-color: var(--accent); color: var(--accent); }
  .filter-chip.active { border-color: var(--accent); background: var(--accent); color: white; }
  .filter-chip:active { transform: scale(0.95); }

  /* ── TOAST ── */
  .toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--text); color: white;
    padding: 0.9rem 1.4rem; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px); opacity: 0;
    transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
    z-index: 9999; display: flex; align-items: center; gap: 0.6rem;
  }
  .toast.show { transform: translateY(0); opacity: 1; }

  /* ── MOBILE ── */
  /* ── PROMO BANNER ── */
  .promo-banner {
    position: relative; overflow: hidden;
    border-radius: 28px;
    background: transparent;
    border: 1.5px solid var(--border);
    padding: 2.4rem 2rem 2rem;
    display: flex; flex-direction: column; gap: 1.2rem;
    box-shadow: none;
    min-height: 320px; justify-content: space-between;
  }
  .promo-blob {
    position: absolute; border-radius: 50%;
    pointer-events: none; opacity: 0.12;
  }
  .promo-blob1 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, #9ea2a8, transparent);
    top: -80px; right: -60px;
  }
  .promo-blob2 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, #6b6e74, transparent);
    bottom: -60px; left: -40px;
  }
  .promo-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--surface);
    color: var(--text); font-size: 0.75rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.35rem 0.9rem; border-radius: 50px;
    border: 1px solid var(--border);
    width: fit-content;
  }
  .promo-slides { position: relative; min-height: 200px; }
  .promo-slide {
    display: none;
    gap: 1.2rem;
    align-items: center;
    animation: slideIn 0.4s ease;
  }
  .promo-slide.active { display: flex; }
  @keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .promo-product-img {
    flex-shrink: 0;
    width: 170px;
    height: 170px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    border: 2px solid rgba(255,200,140,0.15);
  }
  .promo-product-img-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
  }
  .promo-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 0.4rem;
  }
  .promo-discount-badge {
    position: absolute;
    top: 0.6rem; left: 0.6rem;
    background: #6b6e74;
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(255,124,32,0.4);
    z-index: 2;
  }
  .promo-discount {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600; line-height: 1;
    color: var(--text);
    margin-bottom: 0.2rem;
  }
  .promo-name {
    font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.3;
  }
  .promo-name span { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; display: block; margin-top: 0.15rem; }
  .promo-sub { font-size: 0.78rem; color: var(--text-muted); }
  .promo-cta { align-self: flex-start; margin-top: 0.3rem; }

  @media (max-width: 600px) {
    .promo-slide { flex-direction: column; align-items: flex-start; }
    .promo-product-img { width: 100%; height: 140px; }
  }

  .promo-timer-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 0.9rem 1.2rem;
    display: flex; flex-direction: column; gap: 0.5rem;
  }
  .promo-timer-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-muted);
  }
  .promo-timer {
    display: flex; align-items: center; gap: 0.4rem;
  }
  .timer-block {
    display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 0.5rem 0.8rem; min-width: 52px;
  }
  .timer-block span {
    font-family: var(--font-display); font-size: 1.5rem;
    font-weight: 600; color: var(--text); line-height: 1;
  }
  .timer-block small {
    font-size: 0.6rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
  }
  .timer-sep { font-size: 1.5rem; color: var(--text-muted); font-weight: 700; line-height: 1; }

  .promo-dots {
    display: flex; gap: 0.5rem; align-items: center; justify-content: center;
  }
  .promo-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border); border: none; cursor: pointer;
    transition: all 0.25s ease; padding: 0;
  }
  .promo-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }
  .promo-dot:hover { background: var(--text-muted); }

  /* ── MAERSS PRODUCT CARDS ── */
  .maerss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
  }
  .mcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
  }
  .mcard:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }

  .mcard-visual {
    height: 110px;
    display: flex; align-items: center; justify-content: center;
    position: relative; font-size: 2.4rem;
    overflow: hidden;
  }
  .mcard-group-badge {
    position: absolute; bottom: 0.5rem; right: 0.6rem;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.45); color: white;
    padding: 0.2rem 0.55rem; border-radius: 50px;
  }

  .mcard-body {
    padding: 0.9rem 1rem 0.7rem;
    flex: 1; display: flex; flex-direction: column; gap: 0.3rem;
  }
  .mcard-article {
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent);
    font-family: monospace;
  }
  .mcard-name {
    font-size: 0.92rem; font-weight: 700; line-height: 1.25; color: var(--text);
  }
  .mcard-texture {
    font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
  }

  /* Size selector panel */
  .mcard-sizes {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface2);
    display: flex; flex-direction: column; gap: 0.6rem;
  }
  .mcard-size-row {
    display: flex; flex-direction: column; gap: 0.25rem;
  }
  .mcard-size-label {
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.09em; color: var(--text-muted);
  }
  .mcard-size-btns {
    display: flex; gap: 0.35rem; flex-wrap: wrap;
  }
  .sz-btn {
    font-size: 0.72rem; font-weight: 700;
    padding: 0.3rem 0.65rem; border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--surface); color: var(--text-muted);
    cursor: pointer; font-family: var(--font);
    transition: all 0.15s ease;
    white-space: nowrap;
  }
  .sz-btn:hover { border-color: var(--accent); color: var(--accent); }
  .sz-btn.active {
    border-color: var(--accent); background: var(--accent); color: white;
  }
  .sz-btn.disabled, .sz-btn:disabled {
    opacity: 0.35; cursor: not-allowed;
    border-style: dashed; text-decoration: line-through;
  }
  .sz-btn.disabled:hover, .sz-btn:disabled:hover {
    border-color: var(--border); color: var(--text-muted);
  }
  /* В каталоге .prod-card теперь div, внутри две <a> (фото и тело) — снимаем подчёркивание */
  a.prod-card-bg, a.prod-card-body {
    text-decoration: none; color: inherit; display: block;
  }
  a.prod-card-body { padding: 0.8rem 1rem 0.5rem; }

  /* Price + order footer */
  .mcard-footer {
    padding: 0.75rem 1rem 0.9rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  }
  .mcard-price {
    display: flex; flex-direction: column; gap: 0.05rem;
  }
  .mcard-price-label {
    font-size: 0.62rem; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.07em;
  }
  .mcard-price-val {
    font-size: 1rem; font-weight: 800; color: var(--text);
    font-family: var(--font);
  }
  .mcard-price-val.empty { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }

  /* Maerss filter bar */
  .maerss-controls {
    display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  .maerss-search {
    flex: 1; min-width: 220px; max-width: 360px;
    padding: 0.55rem 1rem; border-radius: 50px;
    border: 2px solid var(--border); background: var(--surface);
    font-family: var(--font); font-size: 0.88rem; color: var(--text);
    outline: none; transition: border-color 0.2s;
  }
  .maerss-search:focus { border-color: var(--accent); }
  .maerss-count {
    font-size: 0.8rem; color: var(--text-muted); font-weight: 600;
    margin-left: auto;
  }

  /* ── NEVSKY FILTER PANEL ── */
  .nv-filter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
    display: flex; flex-direction: column; gap: 1rem;
  }
  .nv-filter-row {
    display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  }
  .nv-filter-label {
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.09em; color: var(--text-muted);
    min-width: 80px; flex-shrink: 0;
  }
  .nv-filter-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
  .nv-chip {
    font-size: 0.75rem; font-weight: 600;
    padding: 0.3rem 0.75rem; border-radius: 50px;
    border: 1.5px solid var(--border);
    background: transparent; color: var(--text-muted);
    cursor: pointer; font-family: var(--font);
    transition: all 0.15s ease; white-space: nowrap;
  }
  .nv-chip:hover { border-color: var(--accent); color: var(--accent); }
  .nv-chip.active { border-color: var(--accent); background: var(--accent); color: white; }
  .nv-filter-reset {
    font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
    background: none; border: none; cursor: pointer;
    font-family: var(--font); text-decoration: underline;
    margin-left: auto; flex-shrink: 0;
  }
  .nv-filter-reset:hover { color: var(--accent); }

  /* ── NEVSKY CARD (updated) ── */
  .nv-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: all 0.25s ease; cursor: pointer;
  }
  .nv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
  .nv-card-preview {
    height: 140px; position: relative; overflow: hidden;
    display: flex; align-items: flex-end;
  }
  .nv-card-preview-bg { position: absolute; inset: 0; }
  .nv-card-overlay {
    position: relative; z-index: 1; width: 100%;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    display: flex; align-items: flex-end; justify-content: space-between;
  }
  .nv-card-name-overlay {
    font-size: 0.9rem; font-weight: 700; color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5); line-height: 1.2;
  }
  .nv-card-tex-badge {
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
    background: rgba(255,255,255,0.2); color: white; backdrop-filter: blur(4px);
    padding: 0.15rem 0.5rem; border-radius: 50px; flex-shrink: 0;
  }
  .nv-color-dot {
    position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  .nv-card-body {
    padding: 0.9rem 1rem 0.5rem;
    display: flex; flex-direction: column; gap: 0.3rem; flex: 1;
  }
  .nv-card-art { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-family: monospace; }
  .nv-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.25; }
  .nv-card-meta { font-size: 0.75rem; color: var(--text-muted); }
  .nv-card-footer {
    padding: 0.7rem 1rem 0.9rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  }
  .nv-card-price-label { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
  .nv-card-price-val { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

  /* ── NEVSKY PRODUCT PAGE ── */
  .nv-product-header { background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 100%); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; }
  .nv-product-layout { display: grid; grid-template-columns: 420px 1fr; gap: 3rem; align-items: start; }
  .nvp-left { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 100px; }
  .nvp-preview {
    border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 5/3; width: 100%;
    box-shadow: var(--shadow-lg);
  }
  .nvp-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .nvp-tag {
    font-size: 0.72rem; font-weight: 600;
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text-muted); padding: 0.25rem 0.7rem; border-radius: 50px;
  }
  /* Product labels/marks */
  .prod-label {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 0.22rem 0.6rem; border-radius: 50px;
    white-space: nowrap;
  }
  .prod-label.hit    { background: #ff6b35; color: #fff; }
  .prod-label.sale   { background: #f59e0b; color: #fff; }
  .prod-label.defect { background: #6b7280; color: #fff; }
  .prod-label.reserve{ background: #8b5cf6; color: #fff; }
  .prod-label.sold   { background: #ef4444; color: #fff; }
  .prod-label.custom { background: var(--accent-light); color: var(--accent-dark); border: 1px solid var(--accent); }
  .prod-labels { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
  /* Card overlay labels */
  .card-labels { position: absolute; top: 0.5rem; left: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; z-index: 2; }
  /* Announcement popup */
  .announce-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
  }
  .announce-modal {
    background: var(--surface); border-radius: 16px; width: 100%;
    max-width: 560px; max-height: 80vh; overflow-y: auto;
    padding: 1.8rem; box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    position: relative; animation: fadeUp 0.25s ease;
  }
  .announce-modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.8rem; line-height: 1.3; }
  .announce-modal-body { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; white-space: pre-wrap; }
  .announce-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; color: var(--text-muted);
    transition: all 0.15s;
  }
  .announce-modal-close:hover { background: var(--border); color: var(--text); }
  /* Side panel announce button */
  .side-panel-announce {
    display: flex; align-items: flex-start; gap: 0.5rem;
    width: 100%; padding: 0.65rem 0.9rem;
    background: rgba(29,31,36,0.08); border: 1px solid rgba(29,31,36,0.2);
    border-radius: 8px; cursor: pointer; text-align: left;
    transition: all 0.15s; margin-bottom: 0.35rem;
    font-family: var(--font-body);
  }
  .side-panel-announce:hover { background: rgba(29,31,36,0.15); border-color: var(--accent); }
  .spa-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
  .spa-text { flex: 1; }
  .spa-title { font-size: 0.78rem; font-weight: 700; color: var(--text); line-height: 1.3; }
  .spa-sub { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.12rem; }
  .nvp-coll-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.3rem 0.9rem; border-radius: 50px;
    margin-bottom: 0.5rem;
  }
  .nvp-title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.3rem; }
  .nvp-art { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); font-family: monospace; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
  .nvp-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }
  .nvp-chars { background: var(--surface2); border-radius: var(--radius-sm); padding: 1.2rem; margin-bottom: 1.5rem; }
  .nvp-chars-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.8rem; }
  .nvp-chars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .nvp-char-item { display: flex; flex-direction: column; gap: 0.1rem; }
  .nvp-char-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
  .nvp-char-value { font-size: 0.88rem; font-weight: 600; color: var(--text); }
  .nvp-section-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.6rem; }
  .nvp-size-block { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
  .nvp-size-row { display: flex; align-items: center; gap: 0.8rem; }
  .nvp-size-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); min-width: 70px; }
  .nvp-size-btns { display: flex; gap: 0.4rem; }
  .nvp-price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem; background: var(--surface2); border-radius: var(--radius-sm); margin-bottom: 1rem; }
  .nvp-price { font-size: 1.3rem; font-weight: 800; color: var(--text); }
  .nvp-price span { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); display: block; }
  .nvp-related { background: var(--surface2); border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 2rem; }
  .nvp-related-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
  .nvp-related-icon { font-size: 2rem; }

  @media(max-width:900px) {
    .nv-product-layout { grid-template-columns: 1fr; }
    .nvp-left { position: static; }
    .nvp-chars-grid { grid-template-columns: 1fr; }
  }

  /* ── SLIDER WRAPPER + ARROWS ── */
  .slider-wrap {
    position: relative;
  }
  .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s;
    z-index: 5;
    box-shadow: var(--shadow);
    font-family: var(--font);
    padding-bottom: 2px;
  }
  .slider-arrow:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
  }
  .slider-arrow-left { left: -16px; }
  .slider-arrow-right { right: -16px; }

  /* Drag scroll styles */
  .drag-scroll {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: auto;
  }
  .drag-scroll.dragging {
    cursor: grabbing;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
  }
  .drag-scroll.dragging * {
    pointer-events: none;
  }

  @media (max-width: 700px) {
    .slider-arrow-left { left: 0; }
    .slider-arrow-right { right: 0; }
    .slider-arrow {
      width: 36px; height: 36px;
      font-size: 1.4rem;
    }
  }

  /* ── OFFICES (Contacts page) ── */
  .offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  .office-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.25s ease;
  }
  .office-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
  }
  .office-main {
    background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 100%);
    border-color: var(--accent);
    border-width: 2px;
    grid-column: span 2;
  }
  @media (max-width: 800px) {
    .office-main { grid-column: span 1; }
  }
  .office-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    align-self: flex-start;
  }
  .office-badge-secondary {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
  }
  .office-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
  }
  .office-address {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
  }
  .office-ico { font-size: 1.2rem; flex-shrink: 0; }
  .office-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 1rem;
    background: var(--surface2);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
  }
  .office-desc strong { color: var(--text); display: block; margin-top: 0.5rem; }

  .office-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  .office-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .office-phones {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .office-phone {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.7rem 1rem;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.18s;
    cursor: pointer;
  }
  .office-phone:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateX(3px);
  }
  .office-phone-main {
    background: var(--accent);
    border-color: var(--accent);
  }
  .office-phone-main:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
  }
  .office-phone-main .office-phone-label,
  .office-phone-main .office-phone-num {
    color: white;
  }
  .office-phone-free {
    background: linear-gradient(135deg, #5a8a4a 0%, #4a7a3a 100%);
    border-color: #4a7a3a;
  }
  .office-phone-free:hover {
    background: linear-gradient(135deg, #4a7a3a 0%, #3a6a2a 100%);
  }
  .office-phone-free .office-phone-label,
  .office-phone-free .office-phone-num {
    color: white;
  }
  .office-phone-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }
  .office-phone-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-family: monospace;
    letter-spacing: 0.02em;
  }

  .office-emails {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .office-email {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    background: var(--surface2);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
  }
  .office-email:hover {
    background: var(--accent-light);
    transform: translateX(3px);
  }

  .office-schedule {
    background: var(--surface2);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
  }
  .schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.92rem;
  }
  .schedule-row span:first-child {
    color: var(--text-muted);
    font-weight: 600;
  }
  .schedule-row span:last-child {
    color: var(--text);
    font-weight: 700;
    font-family: monospace;
  }
  .schedule-note {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
  }

  .contacts-cta {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    margin-top: 2rem;
  }

  /* ── DELIVERY PAGE ── */
  .delivery-card-main {
    background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 100%);
    border-color: var(--accent);
    border-width: 2px;
  }
  .delivery-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  .delivery-highlight {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin: 0.5rem 0 1rem;
    letter-spacing: 0.02em;
  }
  .delivery-highlight-orange {
    background: linear-gradient(135deg, #6b6e74 0%, #1d1f24 100%);
  }

  .payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  .payment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
  }
  .payment-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  .payment-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  .payment-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
  }
  .payment-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .delivery-info {
    background: var(--surface2);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
  }
  .delivery-info-block {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--accent);
  }
  .delivery-info-block:last-child { margin-bottom: 0; }
  .delivery-info-block h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--text);
  }
  .delivery-info-block p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0.7rem;
  }
  .delivery-info-block p:last-child { margin-bottom: 0; }
  .delivery-info-block ul.delivery-list {
    margin-bottom: 0.7rem;
  }
  .delivery-warning {
    background: #fff4e6;
    border-left: 3px solid #6b6e74;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    margin: 0.8rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6b4020;
  }
  .delivery-warning strong { color: #c44a10; }
  .delivery-info-contact {
    text-align: center;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
  }

  /* ── SPECIAL SECTIONS (Акции, Обрезки) ── */
  .special-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
  }
  .special-card {
    position: relative;
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    min-height: 140px;
  }
  .special-sales {
    background: linear-gradient(135deg, #d4694a 0%, #b54f30 100%);
  }
  .special-trimmings {
    background: linear-gradient(135deg, #5a7a6a 0%, #3d5a4c 100%);
  }
  .special-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  .special-badge {
    position: absolute;
    top: 0.9rem; right: 1rem;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
  }
  .special-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: white;
  }
  .special-content p {
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  .special-arrow {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
  }

  /* ── SALES LABEL (home) ── */
  .sales-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #b54f30;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
  }

  /* ── SALES TRACK (horizontal scroll on home) ── */
  .sales-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.5rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scroll-behavior: smooth;
  }
  .sales-track::-webkit-scrollbar { height: 6px; }
  .sales-track::-webkit-scrollbar-thumb { background: #d4694a; border-radius: 3px; }
  .sales-card {
    min-width: 220px;
    max-width: 220px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex; flex-direction: column;
  }
  .sales-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d4694a;
  }
  .sales-card-img {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .sales-discount {
    position: absolute;
    top: 0.6rem; left: 0.6rem;
    background: #d4694a;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  .sales-card-body {
    padding: 0.7rem 0.85rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .sales-card-brand {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
  }
  .sales-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
  }
  .sales-card-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.3rem;
  }
  .sales-card-price-new {
    font-size: 1rem;
    font-weight: 800;
    color: #d4694a;
  }
  .sales-card-price-old {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
  }

  /* ── TRIMMINGS PLACEHOLDER ── */
  .trimmings-placeholder {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
  }
  .trimmings-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  .trimmings-placeholder h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
  }
  .trimmings-placeholder p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
  }

  @media (max-width: 700px) {
    .special-sections { grid-template-columns: 1fr; }
  }

  /* ── BRAND SUBCATEGORY PAGE ── */
  .brand-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  }
  .brand-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.6rem 1.4rem;
    cursor: pointer; transition: all 0.25s ease;
    display: flex; flex-direction: column; gap: 0.6rem;
    position: relative; overflow: hidden;
    text-align: center; align-items: center;
    color: inherit; text-decoration: none;
  }
  a.cat-card, .cat-card { color: inherit; text-decoration: none; }
  .brand-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
  }
  .brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .brand-card:hover::before { transform: scaleX(1); }
  .brand-logo {
    font-size: 1rem; font-weight: 800; letter-spacing: 0.04em;
    color: var(--text);
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.5rem 1rem;
    display: inline-block;
  }
  .brand-card h3 { font-size: 1rem; font-weight: 700; }
  .brand-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
  .brand-card .cat-arrow { margin-top: auto; }

  @media (max-width: 900px) {
    .cat-grid { grid-template-columns: repeat(2,1fr); }
    .features-grid { grid-template-columns: repeat(2,1fr); }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid, .delivery-grid { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; }
    .promo-banner { border-radius: 18px; }
    .brand-grid { grid-template-columns: repeat(2,1fr); }
    .dropdown { min-width: 320px; column-count: 1; }
    .about-story { grid-template-columns: 1fr; gap: 2rem; }
    .about-offer-grid { grid-template-columns: repeat(2,1fr); }
    .about-contacts-inner { grid-template-columns: 1fr; }
    .about-contacts-actions { min-width: unset; }
  }
  /* ── GLOBAL SEARCH ── */
  .global-search {
    position: relative;
    flex: 0 1 480px;
    width: 480px;
    max-width: 480px;
    margin: 0 0.5rem;
  }
  .global-search input {
    width: 100%;
    height: 38px;
    padding: 0 2.2rem 0 2.4rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.85rem;
    background: var(--surface2);
    transition: all 0.18s;
  }
  .global-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(155,108,79,0.1);
  }
  .global-search .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
  }
  .global-search .search-clear {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    border: none; background: var(--text-muted);
    color: white; border-radius: 50%;
    font-size: 1rem; line-height: 1; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    padding: 0; font-family: var(--font);
  }
  .global-search.has-value .search-clear { display: flex; }
  .search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: min(720px, 92vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    padding: 0.85rem 0;
  }
  .search-results.show { display: block; }
  .search-empty { padding: 1.2rem 1.4rem; color: var(--text-muted); font-size: 0.9rem; text-align: center; }

  /* «Показать ещё» в каталоге */
  .load-more-wrap { display: flex; justify-content: center; margin: 1.5rem 0; }
  .load-more-btn {
    padding: 0.7rem 2.2rem; font-size: 0.95rem; font-weight: 600;
    border-radius: 50px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text);
    cursor: pointer; transition: all 0.18s ease;
  }
  .load-more-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); }
  .load-more-btn[data-loading="1"] { opacity: 0.6; cursor: wait; }

  /* Карусель карточек поиска */
  .search-carousel {
    display: flex; gap: 0.7rem;
    overflow-x: auto; scroll-behavior: smooth;
    padding: 0 0.85rem;
    scrollbar-width: thin;
  }
  .search-carousel::-webkit-scrollbar { height: 6px; }
  .search-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .search-card {
    flex: 0 0 150px;
    display: flex; flex-direction: column;
    color: inherit; text-decoration: none;
    border-radius: var(--radius-sm);
    transition: transform 0.18s ease;
    padding-bottom: 0.4rem;
  }
  .search-card:hover { transform: translateY(-3px); }
  .search-card-img {
    width: 150px; height: 110px;
    border-radius: var(--radius-sm);
    background-size: cover; background-position: center;
    margin-bottom: 0.4rem;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .search-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .search-card-placeholder { color: var(--text-muted); font-size: 0.75rem; }
  .search-card-art { font-size: 0.7rem; color: var(--text-muted); padding: 0 0.25rem; font-weight: 600; letter-spacing: 0.04em; }
  .search-card-name { font-size: 0.82rem; font-weight: 600; color: var(--text); padding: 0 0.25rem; line-height: 1.25; min-height: 2em; }
  .search-card-brand { font-size: 0.7rem; color: var(--text-muted); padding: 0 0.25rem; margin-top: 0.15rem; }
  .search-card-price { font-size: 0.82rem; font-weight: 700; color: var(--accent-dark); padding: 0.2rem 0.25rem 0; }
  .search-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow);
    cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; line-height: 1; color: var(--text);
  }
  .search-carousel-arrow:hover { background: var(--accent-light); }
  .search-carousel-prev { left: -10px; }
  .search-carousel-next { right: -10px; }
  @media (max-width: 768px) {
    .search-results { width: 92vw; left: 4vw; right: 4vw; }
    .search-card { flex: 0 0 130px; }
    .search-card-img { width: 130px; height: 95px; }
    .search-carousel-arrow { display: none; }
  }
  .search-result-item {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: flex; align-items: center; gap: 0.7rem;
    transition: background 0.12s;
    color: inherit; text-decoration: none;
  }
  .search-result-info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
  .search-result-title { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.3; }
  .search-result-item:hover { background: var(--surface2); }
  .search-result-item:last-child { border-bottom: none; }
  .search-result-preview {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background-size: cover; background-position: center;
  }
  .search-result-name {
    font-size: 0.85rem; font-weight: 600; color: var(--text);
    line-height: 1.3;
  }
  .search-result-meta {
    font-size: 0.7rem; color: var(--text-muted);
  }
  .search-result-art {
    font-size: 0.65rem; font-weight: 700; color: var(--accent);
    font-family: monospace; letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
  }
  .search-result-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  .search-show-all {
    padding: 0.7rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-light);
    cursor: pointer;
    border: none; width: 100%;
    font-family: var(--font);
  }
  .search-show-all:hover { background: var(--accent); color: white; }

  /* ── CART BUTTON ── */
  .cart-btn {
    position: relative;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.18s;
    margin-left: 0.5rem;
  }
  .cart-btn:hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-1px);
  }
  .cart-counter {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem; font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg);
    line-height: 1;
  }
  .cart-counter.empty { display: none; }

  /* ── CART PAGE ── */
  .cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
  }
  .cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
  }
  .cart-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  .cart-items { display: flex; flex-direction: column; gap: 1rem; }
  .cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: center;
  }
  .cart-item-preview {
    width: 100px; height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover; background-position: center;
  }
  .cart-item-info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
  .cart-item-art {
    font-size: 0.65rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); font-family: monospace;
  }
  .cart-item-name {
    font-size: 1rem; font-weight: 700;
    color: var(--text); line-height: 1.3;
  }
  .cart-item-meta {
    font-size: 0.78rem; color: var(--text-muted);
  }
  .cart-item-size {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: var(--surface2);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  .cart-item-actions {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 0.5rem;
    min-width: 130px;
  }
  .cart-qty-control {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--surface2);
    border-radius: 50px;
    padding: 0.2rem;
  }
  .cart-qty-btn {
    width: 26px; height: 26px;
    border: none; border-radius: 50%;
    background: var(--surface);
    color: var(--text); cursor: pointer;
    font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    line-height: 1;
  }
  .cart-qty-btn:hover { background: var(--accent); color: white; }
  .cart-qty-val {
    min-width: 24px; text-align: center;
    font-weight: 700; font-size: 0.9rem;
  }
  .cart-item-price {
    font-size: 1.1rem; font-weight: 800; color: var(--text);
  }
  .cart-item-delete {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 0.75rem; padding: 0;
    font-family: var(--font);
    text-decoration: underline;
  }
  .cart-item-delete:hover { color: #c44; }

  .cart-summary {
    position: sticky; top: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem; height: fit-content;
  }
  .cart-summary-title {
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 1rem;
  }
  .cart-summary-row {
    display: flex; justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: var(--text);
  }
  .cart-summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.15rem;
    font-weight: 800;
  }
  .cart-summary-row.total .price-val { color: var(--accent); }

  /* ── ORDER FORM (Checkout) ── */
  .order-form {
    max-width: 640px; margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
  }
  .order-form-title {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 600;
    margin-bottom: 0.4rem;
  }
  .order-form-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .order-field {
    display: flex; flex-direction: column;
    gap: 0.35rem; margin-bottom: 1rem;
  }
  .order-field label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted);
  }
  .order-field label .req { color: #c44; }
  .order-field input, .order-field textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    font-family: var(--font);
    font-size: 0.92rem;
    background: var(--surface2);
    transition: all 0.18s;
    color: var(--text);
  }
  .order-field input:focus, .order-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(155,108,79,0.1);
  }
  .order-field textarea { min-height: 90px; resize: vertical; }
  .order-field input.invalid, .order-field textarea.invalid {
    border-color: #c44;
    background: #fef5f5;
  }
  .order-error {
    font-size: 0.75rem; color: #c44; margin-top: 0.2rem;
  }
  .order-summary-mini {
    background: var(--surface2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1rem 0 1.5rem;
    font-size: 0.85rem;
  }
  .order-summary-mini-row {
    display: flex; justify-content: space-between;
    padding: 0.25rem 0;
  }
  .order-summary-mini-row.total {
    font-weight: 800;
    color: var(--accent);
    font-size: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
  }

  /* ── ORDER SUCCESS PAGE ── */
  .order-success {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
  }
  .order-success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
  }
  .order-success h1 {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .order-success-msg {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  .order-number-box {
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    display: inline-block;
  }
  .order-number-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
  }
  .order-number-val {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-dark);
    letter-spacing: 0.05em;
  }

  /* ── SIDE FLOATING PANEL (right side) ── */
  .side-panel {
    position: fixed;
    right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .side-panel.collapsed {
    transform: translate(calc(100% - 50px), -50%);
  }
  .side-panel-strip {
    position: absolute;
    left: 0; top: 0;
    width: 50px; height: 100%;
    background: var(--accent);
    border-radius: 12px 0 0 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    cursor: pointer;
    box-shadow: -4px 0 15px rgba(0,0,0,0.15);
  }
  .side-panel-strip svg { color: white; }
  .side-panel-strip .strip-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .side-panel-content {
    margin-left: 50px;
    background: var(--surface);
    padding: 1.2rem;
    border-radius: 0 0 0 12px;
    box-shadow: -4px 4px 25px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    gap: 0.6rem;
    min-width: 230px;
  }
  .side-panel-btn {
    display: flex; align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.15s;
  }
  .side-panel-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(-3px);
  }
  .side-panel-btn svg { flex-shrink: 0; color: var(--accent); }
  .side-panel-close {
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    background: var(--surface2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
  }
  .side-panel-close:hover { background: var(--border); }

  /* ── MODAL (forms) ── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 16, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center; justify-content: center;
    padding: 1rem;
  }
  .modal-overlay.show {
    display: flex;
    animation: fadeIn 0.2s ease;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    animation: slideUp 0.3s ease;
  }
  @keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 32px; height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--surface2);
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
  }
  .modal-close:hover { background: var(--border); }
  .modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
  }
  .modal-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  /* ── ARTICLES ── */
  .articles-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex; flex-direction: column;
  }
  .article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
  }
  .article-img {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: var(--surface2);
    position: relative;
  }
  .article-date {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(255,255,255,0.95);
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(4px);
  }
  .article-body {
    padding: 1.2rem 1.4rem 1.5rem;
    flex: 1;
    display: flex; flex-direction: column;
    gap: 0.6rem;
  }
  .article-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
  }
  .article-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
  }
  .article-read-more {
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
  }

  /* Article detail page */
  .article-detail {
    max-width: 780px; margin: 0 auto;
  }
  .article-detail-img {
    aspect-ratio: 21/9;
    background-size: cover; background-position: center;
    border-radius: var(--radius);
    margin-bottom: 2rem;
  }
  .article-detail h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1rem;
  }
  .article-detail-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .article-detail-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
  }
  .article-detail-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }
  .article-detail-content p { margin-bottom: 1rem; }
  .article-detail-content ul { margin: 1rem 0 1.5rem 1.5rem; }
  .article-detail-content li { margin-bottom: 0.5rem; }

  /* Home page recent articles slider */
  .recent-articles-section {
    background: var(--surface2);
    padding: 4rem 2rem;
  }
  .recent-articles-track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.5rem 0.5rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .recent-articles-track::-webkit-scrollbar { height: 6px; }
  .recent-articles-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
  .recent-articles-track .article-card {
    min-width: 300px;
    max-width: 300px;
    scroll-snap-align: start;
  }

  /* ── Пагинация ── */
  .pagination {
    display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center;
    margin: 2rem 0 1rem;
  }
  .pg-link {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--surface);
    transition: all 0.15s;
  }
  .pg-link:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
  .pg-current { background: var(--accent); color: #fff; border-color: var(--accent); cursor: default; }
  .pg-dots { padding: 0.5rem 0.4rem; color: var(--text-muted); }

  /* ── Каталог: 3-колонный layout (sidebar | content | filter) ── */
  /* .catalog-layout уже grid — расширяю до 3 колонок и через order ставлю порядок */
  .brand-filter-aside {
    align-self: start;
    position: sticky; top: 80px;
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .brand-filter-aside::-webkit-scrollbar { width: 6px; }
  .brand-filter-aside::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .brand-filter-aside.hidden { display: none; }

  /* Сам фильтр */
  .brand-filter-aside {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .brand-filter-form { display: flex; flex-direction: column; }
  .brand-filter-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.1rem;
  }
  .brand-filter-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 1rem; color: var(--text);
  }
  .brand-filter-title svg { color: var(--accent); }
  .brand-filter-head-actions { display: flex; align-items: center; gap: 0.5rem; }
  .brand-filter-reset {
    font-size: 0.82rem; font-weight: 600; color: var(--text);
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border); border-radius: 50px;
    text-decoration: none;
    transition: all 0.15s;
  }
  .brand-filter-reset:hover { background: var(--surface2); border-color: var(--text-muted); }
  .brand-filter-close {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 1.05rem; line-height: 1;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
  }
  .brand-filter-close:hover { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent); }

  /* Чипы активных фильтров */
  .brand-filter-chips {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    padding: 0 1.1rem 0.85rem;
  }
  .bff-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.32rem 0.7rem 0.32rem 0.85rem;
    background: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }
  .bff-chip:hover { background: var(--accent); color: #fff; }
  .bff-chip-x { font-weight: 400; opacity: 0.7; font-size: 0.95rem; line-height: 1; }
  .bff-chip:hover .bff-chip-x { opacity: 1; }

  /* Тело фильтра */
  .brand-filter-body {
    display: flex; flex-direction: column;
    padding: 0 1.1rem;
  }
  .bff-group { padding: 0.95rem 0; border-top: 1px solid var(--border); }
  .bff-group:first-child { border-top: none; padding-top: 0.4rem; }
  .bff-label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
  }

  /* Чекбоксы со счётчиком */
  .bff-chk {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 0.92rem; cursor: pointer;
    padding: 0.32rem 0;
    color: var(--text);
  }
  /* ── FAQ-блок (SEO + AEO для AI-поисков) ── */
  .page-faq-wrap {
    max-width: min(1100px, 96vw);
    margin: 2rem auto 3rem;
    padding: 0 1rem;
  }
  .faq-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow);
  }
  .faq-block-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
  }
  .faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
  .faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    transition: border-color 0.18s;
  }
  .faq-item[open] { border-color: var(--accent); background: var(--surface); }
  .faq-q {
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
    user-select: none;
  }
  .faq-q::-webkit-details-marker { display: none; }
  .faq-q::after {
    content: '+';
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s;
  }
  .faq-item[open] .faq-q::after { content: '−'; }
  .faq-a {
    padding: 0 1.1rem 1rem;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
  }
  @media (max-width: 600px) {
    .faq-block { padding: 1.1rem 1rem; }
    .faq-block-title { font-size: 1.3rem; }
    .faq-q { font-size: 0.92rem; padding: 0.7rem 0.9rem; }
    .faq-a { padding: 0 0.9rem 0.85rem; font-size: 0.9rem; }
  }

  /* «Только в наличии» — выделенный пункт с зелёной точкой */
  .bff-group-stock { padding: 0.7rem 0 0.8rem; border-top: none; }
  .bff-chk-stock {
    padding: 0.55rem 0.8rem;
    background: #e8f5ec;
    border: 1px solid #b8dcc3;
    border-radius: 10px;
    font-weight: 600;
  }
  .bff-chk-stock:hover { background: #d8efe1; }
  .bff-stock-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #1a8a3c;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(26,138,60,0.18);
  }
  .bff-chk-stock .bff-chk-count { color: #1a8a3c; font-weight: 700; }
  .bff-chk input {
    width: 18px; height: 18px;
    accent-color: var(--accent);
    cursor: pointer; flex-shrink: 0;
  }
  .bff-chk-label { flex: 1; }
  .bff-chk-count { color: var(--text-muted); font-size: 0.82rem; }
  .bff-chk:hover .bff-chk-label { color: var(--accent-dark); }

  /* Pill-кнопки (бренды/толщина/ширина/длина/тип декора) */
  .bff-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .bff-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
  }
  .bff-pill input { display: none; }
  .bff-pill:hover { border-color: var(--accent); color: var(--accent-dark); }
  .bff-pill.is-active {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
  }
  .bff-pill.is-active .bff-pill-count { color: rgba(255,255,255,0.85); }
  .bff-pill-count {
    font-size: 0.72rem; font-weight: 500;
    color: var(--text-muted);
    padding-left: 0.15rem;
  }

  /* Цена — два инпута */
  .bff-price-row { display: flex; align-items: center; gap: 0.5rem; }
  .bff-price-dash { color: var(--text-muted); font-weight: 700; }
  .bff-num {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font: inherit;
    font-size: 0.88rem;
    background: var(--surface);
    text-align: center;
    transition: border-color 0.15s;
  }
  .bff-num:focus { outline: none; border-color: var(--accent); }

  /* Footer-кнопка "Показать N товаров" */
  .brand-filter-footer { padding: 1rem 1.1rem 1.2rem; border-top: 1px solid var(--border); margin-top: 0.4rem; }
  .bff-apply-btn {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--accent);
    color: var(--accent-dark);
    font-weight: 700; font-size: 0.92rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .bff-apply-btn:hover { background: var(--accent); color: #fff; }
  .bff-apply-btn svg { color: var(--accent); transition: color 0.15s; }
  .bff-apply-btn:hover svg { color: #fff; }

  /* FAB-кнопка открытия фильтра (когда aside скрыт) */
  .filter-fab {
    position: fixed; right: 1.2rem; bottom: 1.2rem;
    z-index: 90;
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    background: var(--accent); color: #fff;
    border: none; border-radius: 50px;
    font-weight: 700; font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(29,31,36,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .filter-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,31,36,0.55); }

  /* mobile-drawer для фильтра определён в основном блоке .catalog-layout @media ниже */

  /* ── Карусель сопутствующих товаров на странице товара ── */
  .related-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.5rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scroll-behavior: smooth;
  }
  .related-track::-webkit-scrollbar { height: 6px; }
  .related-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
  .related-track .related-card {
    min-width: 220px;
    max-width: 220px;
    scroll-snap-align: start;
  }

  /* ── PRODUCT DESC EXTENDED ── */
  .product-desc-extended {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface2) 100%);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
  }
  .product-desc-extended-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--accent-dark);
  }
  .product-desc-extended-text {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
  }

  /* ── FOOTER SOCIAL ── */
  .footer-socials {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
  }
  .footer-social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s;
    cursor: pointer;
  }
  .footer-social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
  }

  /* ── MOBILE ── */
  @media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .articles-list { grid-template-columns: repeat(2, 1fr); }
    .side-panel-content { min-width: 200px; }
  }
  @media (max-width: 600px) {
    .articles-list { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .cart-item-actions {
      grid-column: 1 / -1;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      min-width: 0;
    }
  }

/* ── PRODUCT PAGE: layout 2 колонки (как на референсе) ── */
.nevsky-product-page {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.nevsky-product-col-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}
.nevsky-product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--surface2);
  box-shadow: var(--shadow);
}
.nevsky-product-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Галерея: навигация и счётчик поверх главного фото */
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--text);
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.15s, transform 0.15s;
  z-index: 4;
}
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: 0.7rem; }
.gallery-next { right: 0.7rem; }
.gallery-counter {
  position: absolute; bottom: 0.7rem; right: 0.7rem; z-index: 4;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 0.7rem; border-radius: 50px;
}
/* Лента миниатюр */
.prod-thumbs {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.prod-thumb {
  width: 72px; height: 72px; padding: 0;
  border: 2px solid var(--border); border-radius: 10px;
  overflow: hidden; cursor: pointer; background: var(--surface2);
  transition: border-color 0.15s, transform 0.15s;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }
.prod-thumb.active { border-color: var(--accent); }
.prod-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.prod-tag {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.8rem; border-radius: 50px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted);
}
.prod-about {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem;
}
.prod-about h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--accent-dark); margin-bottom: 0.6rem;
}
.prod-about p { font-size: 0.92rem; line-height: 1.7; color: var(--text); }

.nevsky-product-info { display: flex; flex-direction: column; }
@media (max-width: 920px) {
  .nevsky-product-page { grid-template-columns: 1fr; gap: 1.5rem; }
  .nevsky-product-col-left { position: static; }
}

/* ── Бейдж группы (CRYSTAL) ── */
.prod-group-badge {
  display: inline-block; align-self: flex-start;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-light);
  padding: 0.4rem 0.9rem; border-radius: 50px;
  margin-bottom: 1rem;
}
.prod-art-sub {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem;
}
.prod-lead {
  font-size: 1rem; line-height: 1.7; color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Карточка ХАРАКТЕРИСТИКИ ── */
.prod-specs-card {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.prod-specs-title {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 1.2rem;
}
.prod-spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem;
}
.prod-spec { display: flex; flex-direction: column; gap: 0.25rem; }
.prod-spec-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}
.prod-spec-val { font-size: 0.95rem; font-weight: 600; color: var(--text); }
@media (max-width: 540px) { .prod-spec-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ── Карточка ЦЕНА ЗА ЕДИНИЦУ ── */
.prod-price-card {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.prod-price-card-label {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 0.4rem;
}
.prod-price-card-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.prod-price-card-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.prod-sizes-heading {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 1rem;
}

/* ── PRODUCT PAGE v2: размеры, кнопка «В корзину» ── */
.prod-art-big {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.prod-name-big {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.prod-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.prod-desc {
  margin: 1rem 0;
  line-height: 1.6;
  color: var(--text);
}
.prod-group {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.prod-sizes {
  margin-top: 1.5rem;
}
.prod-sizes-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.prod-size-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.prod-size-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.18s, background 0.18s;
}
.prod-size-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.prod-size-btn.active {
  border-color: var(--accent);
  background: var(--accent-light);
  font-weight: 700;
}
.prod-size-btn .size-dim {
  flex: 1;
  text-align: left;
}
.prod-size-btn .size-price {
  font-weight: 700;
  color: var(--accent-dark);
}
.prod-buy {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.prod-price-current {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.prod-add-cart {
  flex: 1;
  min-width: 180px;
}

/* ── CART v2: actions + clear-btn ── */
.cart-summary-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.cart-summary-actions .btn { flex: 1; min-width: 180px; justify-content: center; }
.cart-clear-btn {
  display: block;
  margin: 1rem auto 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.cart-clear-btn:hover { color: #c44; border-color: #c44; }

/* ── CALCULATOR ── */
.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.calculator-form { display: flex; flex-direction: column; gap: 1rem; }
.calculator-result {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  align-self: start;
  position: sticky; top: 100px;
}
.calculator-result-label {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; color: var(--accent-dark); margin-bottom: 0.5rem;
}
.calculator-result-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.1;
}

/* ── ARTICLE LIST (страница /articles) ── */
.article-card-row {
  display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; margin-bottom: 1rem;
  transition: border-color 0.18s, transform 0.18s;
}
.article-card-row:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-card-img { flex: 0 0 200px; border-radius: var(--radius-sm); overflow: hidden; background: #f5f3ef; aspect-ratio: 4/3; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.5rem; }
.article-card-body p { color: var(--text-muted); margin: 0; }

/* ── ARTICLE BODY (одна статья) ── */
.article-body h2 { font-family: var(--font-display); margin: 2rem 0 1rem; }
.article-body h3 { font-family: var(--font-display); margin: 1.5rem 0 0.8rem; }
.article-body p { margin-bottom: 1rem; }
.article-body img { max-width: 100%; border-radius: var(--radius-sm); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
  .calculator { grid-template-columns: 1fr; }
  .calculator-result { position: static; }
  .article-card-row { flex-direction: column; }
  .article-card-img { flex-basis: auto; aspect-ratio: 16/9; }
}

/* ── ADMIN OVERLAY (page-builder) ── */
#admin-toolbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #1c1a17; color: #fff;
  font-size: 0.85rem; font-family: system-ui, sans-serif;
  flex-wrap: wrap;
}
#admin-toolbar .adm-brand { font-weight: 700; color: var(--accent); margin-right: 0.5rem; }
#admin-toolbar .adm-user  { color: rgba(255,255,255,0.6); margin-right: auto; }
.adm-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.adm-btn:hover { background: rgba(255,255,255,0.2); }
.adm-btn-active { background: var(--accent) !important; }
.adm-btn-primary { background: var(--accent); }
.adm-btn-primary:hover { background: var(--accent-dark); }
@keyframes admPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(29,31,36,0); } 50% { box-shadow: 0 0 0 4px rgba(29,31,36,0.4); } }
.adm-btn-pulse { animation: admPulse 1.2s infinite; }

/* ── BLOCK WRAPPER в режиме edit-mode ── */
body.edit-mode .block-wrap {
  position: relative;
  outline: 2px dashed rgba(29,31,36,0.3);
  outline-offset: -2px;
  margin: 0.5rem 0;
  transition: outline-color 0.18s;
  cursor: move;
}
body.edit-mode .block-wrap:hover {
  outline-color: var(--accent);
}
body.edit-mode .block-toolbar {
  position: absolute;
  top: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.5rem;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 0 0 0 8px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
body.edit-mode .block-wrap:hover .block-toolbar,
body.edit-mode .block-wrap:focus-within .block-toolbar {
  opacity: 1;
  pointer-events: auto;
}
.block-type-badge {
  background: rgba(0,0,0,0.2);
  padding: 0 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 0.3rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.block-btn:hover { background: rgba(255,255,255,0.3); }
.block-btn-danger:hover { background: #c44; }

body.edit-mode [contenteditable="true"] {
  outline: 1px dashed rgba(29,31,36,0.5);
  outline-offset: 2px;
  cursor: text;
  min-height: 1.2em;
}
body.edit-mode [contenteditable="true"]:focus {
  outline-color: var(--accent);
  background: rgba(29,31,36,0.05);
}

.block-dragging { opacity: 0.4; }
.block-drop-target { outline-color: #4caf50 !important; outline-width: 3px !important; }

/* ── BLOCK EDIT DIALOG ── */
.block-edit-dialog {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.block-edit-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.block-edit-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.block-edit-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.block-edit-header h3 { margin: 0; font-size: 1.1rem; }
.block-edit-close {
  background: none; border: none; font-size: 1.8rem;
  cursor: pointer; line-height: 1; color: var(--text-muted);
}
.block-edit-close:hover { color: #c44; }
.block-edit-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.block-edit-footer {
  padding: 0.8rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 0.5rem;
}
.block-edit-footer .adm-btn { color: var(--text); background: var(--border); }
.block-edit-footer .adm-btn:hover { background: #d8d3cc; }
.block-edit-footer .adm-btn-primary { color: #fff; background: var(--accent); }
.block-edit-footer .adm-btn-primary:hover { background: var(--accent-dark); }

.bf-field { margin-bottom: 1rem; }
.bf-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bf-field input[type="text"], .bf-field input[type="url"], .bf-field input[type="number"], .bf-field textarea, .bf-field select {
  width: 100%; padding: 0.5rem 0.7rem;
  border: 1px solid var(--border); border-radius: 6px;
  font: inherit; font-size: 0.9rem; color: var(--text);
  background: #fff;
}
.bf-field textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.bf-field input:focus, .bf-field textarea:focus, .bf-field select:focus {
  outline: 2px solid var(--accent); outline-offset: -1px;
}

.bf-array {
  border: 1px dashed var(--border); border-radius: 8px;
  padding: 0.7rem;
  background: #faf8f5;
}
.bf-array-item {
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff;
  padding: 0.7rem;
  margin-bottom: 0.5rem;
}
.bf-array-item-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.bf-array-remove {
  background: #c44; color: #fff; border: none; width: 22px; height: 22px;
  border-radius: 4px; cursor: pointer; font-weight: 700; line-height: 1;
}
.bf-array-add {
  background: var(--accent-light); color: var(--accent-dark);
  border: none; padding: 0.4rem 0.8rem; border-radius: 6px;
  cursor: pointer; font-weight: 600; font-size: 0.85rem;
  width: 100%;
}
.bf-array-add:hover { background: var(--accent); color: #fff; }

/* ── PRODUCT v2: раздельные селекторы Т / Ш / Д ── */
.prod-size-group { margin-bottom: 1.1rem; }
.prod-size-group .prod-sizes-title { margin-bottom: 0.4rem; }
.prod-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.prod-dim-btn {
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.18s, background 0.18s, opacity 0.18s;
  min-width: 68px;
  text-align: center;
}
.prod-dim-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.prod-dim-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.prod-dim-btn.disabled,
.prod-dim-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--surface);
  color: var(--text-muted);
  border-style: dashed;
  text-decoration: line-through;
}
.prod-size-summary {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: ui-monospace, Consolas, monospace;
}
.prod-size-table {
  margin-top: 1.5rem;
}
.prod-size-table-title {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.6rem;
}
.prod-size-table table { width: 100%; border-collapse: collapse; }
.prod-size-table td {
  padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.prod-size-table td a { color: var(--text); text-decoration: none; font-weight: 600; }
.prod-size-table td a:hover { color: var(--accent); text-decoration: underline; }
.prod-size-table-price { text-align: right; color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.prod-size-table tr.active td { background: var(--accent-light); }
.prod-size-table tr.active td a { color: var(--accent-dark); }

/* ── BLOCK PRESET PICKER (модалка добавления блока, с вкладками) ── */
.block-preset-panel {
  width: min(1040px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
}
.block-preset-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.block-preset-tabs {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1rem 0.7rem;
  border-right: 1px solid var(--border);
  background: var(--surface2);
  overflow-y: auto;
}
.block-preset-tab {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: none; background: none; cursor: pointer;
  border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); text-align: left;
  transition: background 0.15s, color 0.15s;
}
.block-preset-tab:hover { background: var(--surface); color: var(--text); }
.block-preset-tab.active { background: var(--accent); color: #fff; }
.block-preset-tab-icon { font-size: 1.15rem; line-height: 1; }
.block-preset-body {
  padding: 1.3rem;
  overflow-y: auto;
}
.block-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}
.block-preset-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1rem;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.block-preset-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,165,116,0.25);
}
.block-preset-icon {
  font-size: 2.2rem; line-height: 1;
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.block-preset-label { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.block-preset-type  { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 640px) {
  .block-preset-layout { grid-template-columns: 1fr; }
  .block-preset-tabs {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .block-preset-tab { white-space: nowrap; }
}

/* ── FLOATING PANEL (правая выезжающая) ── */
.floating-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(calc(100% - 44px));
  z-index: 90;
  background: #fff;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 14px 0 0 14px;
  box-shadow: -8px 0 28px rgba(0,0,0,0.12);
  transition: transform 0.35s cubic-bezier(.4,.0,.2,1);
  max-width: 400px;
  width: 400px;
}
.floating-panel.open { transform: translateY(-50%) translateX(0); }
.floating-panel-handle {
  position: absolute;
  left: -36px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 112px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px 0 0 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s;
}
.floating-panel-handle:hover { background: var(--accent-dark); }
.floating-panel-arrow { display: inline-block; transition: transform 0.25s ease; }
.floating-panel.open .floating-panel-arrow { transform: rotate(180deg); }
.floating-panel-inner {
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: 1.1rem;
}
.floating-panel-card {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: inherit; font-size: 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  width: 100%;
}
.floating-panel-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(-2px);
}
.floating-panel-icon { font-size: 1.85rem; flex: 0 0 auto; line-height: 1; }
.floating-panel-body { display: flex; flex-direction: column; gap: 0.3rem; }
.floating-panel-title { font-weight: 700; font-size: 1.02rem; }
.floating-panel-text  { color: var(--text-muted); font-size: 0.88rem; line-height: 1.4; }
@media (max-width: 768px) {
  .floating-panel {
    top: auto; bottom: 0; right: 0; left: 0;
    width: 100%; max-width: 100%;
    transform: translateY(calc(100% - 44px));
    border-radius: 14px 14px 0 0;
    border-right: 1px solid var(--border);
  }
  .floating-panel.open { transform: translateY(0); }
  .floating-panel-handle {
    left: 50%; top: -36px;
    transform: translateX(-50%);
    width: 112px; height: 36px;
    border-radius: 10px 10px 0 0;
  }
  .floating-panel.open .floating-panel-arrow { transform: rotate(270deg); }
  .floating-panel-arrow { transform: rotate(90deg); }
  .floating-panel-inner { padding: 0.9rem 0.9rem 1.4rem; }
  .floating-panel-card { font-size: 0.95rem; padding: 0.85rem 0.9rem; }
}

/* ── ITEM CONTROLS (drag/remove внутри массивов блоков) ── */
body.edit-mode .block-item-container {
  position: relative;
  outline: 1px dashed rgba(29,31,36,0.25);
  outline-offset: 4px;
  transition: outline-color 0.18s;
}
body.edit-mode .block-item-container:hover {
  outline-color: var(--accent);
}
body.edit-mode .block-item-controls {
  position: absolute;
  top: -10px; right: -10px;
  z-index: 50;
  display: flex; gap: 0.2rem;
  background: var(--accent-dark);
  border-radius: 4px;
  padding: 0.1rem 0.2rem;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
body.edit-mode .block-item-container:hover .block-item-controls,
body.edit-mode .block-item-container:focus-within .block-item-controls {
  opacity: 1;
  pointer-events: auto;
}
.block-item-handle {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  cursor: grab;
}
.block-item-handle:active { cursor: grabbing; }
.block-item-remove {
  background: transparent;
  color: #fff;
  border: none;
  padding: 0.1rem 0.4rem;
  cursor: pointer;
  font-size: 1rem; line-height: 1;
  font-weight: 700;
  font-family: inherit;
}
.block-item-remove:hover { background: #c44; border-radius: 3px; }
.block-item-dragging { opacity: 0.4; }
.block-item-drop-target { outline-color: #4caf50 !important; outline-width: 2px !important; }
.block-item-add {
  display: block;
  margin: 0.5rem 0;
  padding: 0.4rem 0.8rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1.5px dashed var(--accent);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
}
.block-item-add:hover { background: var(--accent); color: #fff; }

/* ── CARDS-GRID (универсальная сетка квадратиков) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(var(--cards-cols, 4), 1fr);
  gap: 1rem;
}
.cards-grid--horizontal {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.cards-grid--horizontal .generic-card { scroll-snap-align: start; }
.cards-grid--masonry { display: block; column-count: var(--cards-cols, 4); column-gap: 1rem; }
.cards-grid--masonry .generic-card { display: inline-block; width: 100%; margin-bottom: 1rem; break-inside: avoid; }

.generic-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
a.generic-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.generic-card-img {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
}
.generic-card-img--small  { aspect-ratio: 16/9; }
.generic-card-img--medium { aspect-ratio: 4/3; }
.generic-card-img--large  { aspect-ratio: 3/4; }
.generic-card-img--auto   { aspect-ratio: 1/1; }
.generic-card-icon {
  font-size: 3rem;
  line-height: 1;
  padding: 1.5rem 1rem 0;
  text-align: center;
}
.generic-card-badge {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}
.generic-card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.generic-card-title { font-family: var(--font-display); font-size: 1.1rem; margin: 0; font-weight: 600; }
.generic-card-subtitle { color: var(--text-muted); font-size: 0.85rem; }
.generic-card-text { color: var(--text); font-size: 0.9rem; margin: 0.3rem 0 0; flex: 1; }
.generic-card-price { font-weight: 700; color: var(--accent-dark); font-size: 1.1rem; margin-top: 0.4rem; }

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(min(2, var(--cards-cols, 4)), 1fr); }
  .cards-grid--masonry { column-count: 2; }
}
@media (max-width: 540px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--masonry { column-count: 1; }
}

/* ── IMAGE-TEXT (фото + текст) ── */
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.image-text--right { direction: rtl; }
.image-text--right > * { direction: ltr; }
.image-text-media {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
  border-radius: var(--radius);
}
@media (max-width: 768px) { .image-text { grid-template-columns: 1fr; } .image-text--right { direction: ltr; } }

/* ── GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols, 4), 1fr);
  gap: 0.5rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
a.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff; padding: 1rem 0.7rem 0.5rem; font-size: 0.85rem;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(min(3, var(--gallery-cols, 4)), 1fr); } }
@media (max-width: 540px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ── CARD EDIT TOOLBAR (на brand/article карточках в edit-mode) ── */
.card-edit-toolbar {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  display: flex; gap: 0.3rem;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
body.edit-mode .brand-card-wrap:hover .card-edit-toolbar,
body.edit-mode .cat-card-wrap:hover .card-edit-toolbar,
body.edit-mode .article-card-wrap:hover .card-edit-toolbar,
body.edit-mode .product-card-wrap:hover .card-edit-toolbar {
  opacity: 1;
  pointer-events: auto;
}
.card-edit-btn {
  background: var(--accent-dark);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.card-edit-btn:hover { background: var(--accent); }

/* ── BF IMAGE UPLOAD ── */
.bf-image-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.bf-upload-btn {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1.5px dashed var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.bf-upload-btn:hover { background: var(--accent); color: #fff; }
.bf-upload-btn:disabled { opacity: 0.6; cursor: wait; }
.bf-image-preview {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.bf-image-preview-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── ADMIN: catalog folder navigation ── */
.catalog-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
}
.catalog-folder {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, transform 0.18s;
}
.catalog-folder:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.catalog-folder-icon { font-size: 1.6rem; line-height: 1; flex: 0 0 auto; }
.catalog-folder-body { flex: 1; min-width: 0; }
.catalog-folder-title { font-weight: 700; margin-bottom: 0.1rem; }
.catalog-folder-subtitle { font-size: 0.78rem; color: var(--text-muted); }
.catalog-folder-count { font-size: 0.78rem; color: var(--accent-dark); margin-top: 0.2rem; }
.catalog-folder-arrow { color: var(--text-muted); font-size: 1.4rem; flex: 0 0 auto; }

.catalog-folder-edit {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.05);
  color: var(--text);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.18s, background 0.18s;
}
.catalog-folder-wrap:hover .catalog-folder-edit { opacity: 1; }
.catalog-folder-edit:hover { background: var(--accent); color: #fff; }

/* ── PROMO SLIDES (карточки внутри banner) ── */
.promo-slides { position: relative; min-height: 180px; }
.promo-slide {
  position: absolute; inset: 0;
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}
.promo-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.promo-slide-img {
  flex: 0 0 42%;
  align-self: stretch;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
  border-radius: 0;
}
.promo-slide-body {
  flex: 1; min-width: 0;
  padding: 1.2rem 1.4rem;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.35rem;
}
.promo-slide-disc {
  align-self: flex-start;
  background: #c44; color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.promo-slide-brand { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.promo-slide-name  { font-weight: 700; font-size: 1.05rem; line-height: 1.25; margin-bottom: 0.2rem; }
.promo-slide-prices { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.25rem; }
.promo-slide-new   { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent-dark); }
.promo-slide-old   { color: var(--text-muted); text-decoration: line-through; font-size: 0.95rem; }
@media (max-width: 600px) {
  .promo-slides { min-height: 260px; }
  .promo-slide { flex-direction: column; }
  .promo-slide-img { flex: 0 0 140px; width: 100%; }
  .promo-slide-body { padding: 1rem 1.1rem; }
}

/* ── CATALOG LAYOUT (с боковой навигацией) ── */
.catalog-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 270px;
  gap: 1.2rem;
  max-width: min(1760px, 98vw);
  margin: 0 auto;
  padding: 1rem clamp(0.8rem, 1.4vw, 1.6rem) 3rem;
}
.catalog-layout > .catalog-sidebar      { order: 1; }
.catalog-layout > .catalog-content      { order: 2; min-width: 0; }
.catalog-layout > .brand-filter-aside   { order: 3; }
@media (min-width: 1700px) {
  .catalog-layout { grid-template-columns: 250px minmax(0, 1fr) 290px; gap: 1.6rem; }
}
@media (max-width: 1280px) {
  .catalog-layout { grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 1rem; }
}
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .catalog-layout > .brand-filter-aside {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 86vw; max-width: 340px;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 95;
    box-shadow: -8px 0 28px rgba(0,0,0,0.18);
    overflow-y: auto;
  }
  .catalog-layout > .brand-filter-aside.mobile-open { transform: translateX(0); }
}
@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }
}
.catalog-sidebar {
  display: flex; flex-direction: column; gap: 1rem;
  align-self: start;
  /* Без общего «потолка» и внутренней прокрутки: оба блока
     (Каталог товаров + Уточнить раздел) видны целиком и не обрезают друг друга,
     прокручиваются вместе со страницей. */
}
body:has(#admin-toolbar) .brand-filter-aside { top: 124px; max-height: calc(100vh - 144px); }
.catalog-sidebar-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.catalog-sidebar-header {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.catalog-sidebar-nav {
  display: flex; flex-direction: column;
  padding: 0.3rem 0;
}
.catalog-sidebar-item,
.catalog-sidebar-subitem {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.catalog-sidebar-item:hover { background: var(--accent-light); color: var(--accent-dark); }
.catalog-sidebar-item.active { background: var(--accent-light); border-left-color: var(--accent); color: var(--accent-dark); font-weight: 700; }
.catalog-sidebar-subitem {
  padding-left: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.catalog-sidebar-subitem:hover { color: var(--accent); }
.catalog-sidebar-subitem.active { color: var(--accent); font-weight: 700; }
.catalog-sidebar-item-count {
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  flex: 0 0 auto;
}
.catalog-sidebar-item.active .catalog-sidebar-item-count {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; padding: 1rem; }
  /* на телефоне НЕ запираем сайдбар во внутренний скролл —
     иначе раскрытый список обрезается и не листается. Пусть течёт по странице. */
  .catalog-sidebar { position: static; max-height: none; overflow: visible; }
}

/* ── BRAND-LOGO-GRID (как на скриншоте v1: бренды плиткой) ── */
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.brand-logo-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  min-height: 130px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.4rem;
}
.brand-logo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.brand-logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
}
.brand-logo-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.brand-logo-count {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  background: #1c1a17;
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  max-width: 720px;
  width: calc(100% - 2rem);
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}
.cookie-banner-text a { color: var(--accent); }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 540px) {
  .cookie-banner { width: calc(100% - 1rem); padding: 0.8rem; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ── FORM CONSENT (152-ФЗ checkbox) ── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.8rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}
.form-consent input[type="checkbox"] { margin-top: 0.15rem; flex: 0 0 auto; }
.form-consent a { color: var(--accent); text-decoration: underline; }

/* ── STICKY PRICE на карточке товара ── */
@media (max-width: 768px) {
  .prod-buy {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 0.8rem 1rem;
    z-index: 80;
    margin: 0;
    border-radius: 0;
  }
  #page-product { padding-bottom: 100px; }
  .floating-panel { display: none; }
}
@media (min-width: 769px) {
  .nevsky-product-info .prod-buy {
    position: sticky;
    bottom: 1rem;
    background: var(--surface);
    z-index: 5;
  }
}

/* ── SKELETON-ЛОАДЕР ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
}
.skeleton * { visibility: hidden; }
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { aspect-ratio: 4/3; }
.skeleton-text { height: 1em; margin-bottom: 0.4em; border-radius: 4px; }
.skeleton-text:last-child { width: 60%; }

/* ── ADMIN TOOLBAR — фиксированная сверху ── */
#admin-toolbar { position: fixed; top: 0; left: 0; right: 0; z-index: 210; }
body:has(#admin-toolbar) { padding-top: 44px; }

/* ── PROD-CARD (карточка товара в каталоге) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
@media (min-width: 1500px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
}
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.prod-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.prod-card-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--surface2);
  background-size: cover;
  background-position: center;
}
.prod-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.32);
  pointer-events: none;
  font-weight: 600;
}
.prod-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-card-body {
  padding: 0.8rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.prod-card .prod-art {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.prod-card .prod-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.prod-card .prod-group {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.prod-card .prod-price {
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: auto;
}
.prod-labels {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  display: flex; gap: 0.3rem;
  z-index: 5;
}
.prod-label {
  background: var(--accent);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}
.prod-label.hit { background: #c44; }
.prod-label.sale { background: #f59e0b; }
.prod-label.new { background: #1e8e3e; }
.prod-label.reserved { background: #888; }

@media (max-width: 540px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .prod-card-body { padding: 0.5rem; }
}

/* ═══════════ Конфетти-салют при добавлении в корзину ═══════════ */
.confetti-piece {
  position: fixed;
  width: 9px; height: 9px;
  z-index: 99999;
  pointer-events: none;
  border-radius: 2px;
  will-change: transform, opacity;
  animation: confetti-fly 0.9s cubic-bezier(.15,.6,.4,1) forwards;
}
@keyframes confetti-fly {
  0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 60px)) scale(0.4) rotate(var(--rot)); opacity: 0; }
}

/* ═══════════ Карусель с drag-прокруткой (конечная) ═══════════ */
.drag-carousel {
  scroll-snap-type: none !important;
  cursor: grab;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}
.drag-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.drag-carousel.dragging * { pointer-events: none; }
.drag-carousel > * { scroll-snap-align: none !important; }

/* ═══════════ КОРЗИНА (DNS-стиль) ═══════════ */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}
.cart-main { display: flex; flex-direction: column; gap: 1rem; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.5rem;
}
.cart-head-count { font-size: 1.1rem; font-weight: 700; color: var(--text); }

.cart-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.cart-item-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
}
.cart-item-preview {
  width: 96px; height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
  background-size: cover; background-position: center;
  display: block;
}
.cart-item-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-mid { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.cart-item-name {
  font-size: 1rem; font-weight: 700; color: var(--text);
  text-decoration: none; line-height: 1.3;
}
.cart-item-name:hover { color: var(--accent); }
.cart-item-art { font-size: 0.78rem; color: var(--text-muted); font-family: monospace; }
.cart-item-size {
  display: inline-block; align-self: flex-start;
  padding: 0.2rem 0.6rem; background: var(--surface2);
  border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted);
}
.cart-item-controls {
  display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem;
}
.cart-qty-control {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface2); border-radius: 50px; padding: 0.2rem;
}
.cart-qty-btn {
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
  font-size: 1.1rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.cart-qty-btn:hover { background: var(--accent); color: #fff; }
.cart-qty-val { min-width: 22px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.cart-item-delete {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 0.82rem; text-decoration: underline;
  font-family: var(--font); padding: 0;
}
.cart-item-delete:hover { color: #c44; }
.cart-item-price-col { text-align: right; white-space: nowrap; }
.cart-item-price { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.cart-item-each { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Лента сопутствующих под товаром */
.cart-extras {
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.cart-extras-title {
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.7rem;
}
.cart-extras-track {
  display: flex; gap: 0.7rem; overflow-x: auto;
  padding-bottom: 0.5rem; scrollbar-width: thin;
}
.cart-extra-card {
  flex: 0 0 110px; width: 110px; text-decoration: none;
  color: var(--text); position: relative;
}
.cart-extra-add {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  background: var(--accent); color: #fff;
  font-size: 20px; line-height: 1; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.1s;
}
.cart-extra-add:hover { background: var(--accent-dark); }
.cart-extra-add:active { transform: scale(0.9); }
.cart-extra-img {
  width: 110px; height: 90px; border-radius: 8px; overflow: hidden;
  background-size: cover; background-position: center; margin-bottom: 0.4rem;
}
.cart-extra-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-extra-name {
  font-size: 0.75rem; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-extra-price { font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); margin-top: 0.2rem; }

/* Сводка справа */
.cart-aside { position: sticky; top: 90px; }
.cart-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.cart-summary-title {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 1rem;
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.5rem 0; font-size: 0.9rem; color: var(--text);
}
.cart-summary-row.total {
  border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 1rem;
  font-size: 1.2rem; font-weight: 800;
}
.cart-summary-row.total .price-val { color: var(--accent); }
.cart-summary-note {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
  background: var(--surface2); padding: 0.6rem 0.8rem; border-radius: 8px; margin-top: 0.5rem;
}
.cart-summary-perks {
  margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.cart-perk {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.cart-perk span { font-size: 1.1rem; }
.cart-clear-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 0.82rem; font-family: var(--font);
  text-decoration: underline;
}
.cart-clear-btn:hover { color: #c44; }

/* Карусель «Рекомендуем» снизу */
.recommend-track {
  display: flex; gap: 1rem; overflow-x: auto;
  padding: 0.5rem 0.5rem 1.5rem; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scroll-behavior: smooth;
}
.recommend-track::-webkit-scrollbar { height: 6px; }
.recommend-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.recommend-track .recommend-card {
  min-width: 200px; max-width: 200px; scroll-snap-align: start;
}

@media (max-width: 880px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-aside { position: static; }
}
@media (max-width: 540px) {
  .cart-item-top { grid-template-columns: 72px minmax(0,1fr); }
  .cart-item-preview { width: 72px; height: 72px; }
  .cart-item-price-col { grid-column: 2; text-align: left; margin-top: 0.5rem; }
}

/* ═══════════ Mobile improvements (V3) ═══════════ */
@media (max-width: 768px) {
  .nav-top-extra { display: none; }
  .nav-phones { gap: 0.5rem; flex-wrap: nowrap; overflow-x: auto; }
  .nav-phone { font-size: 0.78rem; padding: 0.25rem 0.4rem; }
  .nav-phone-label { display: none; }
  .nav-inner { gap: 0.4rem; flex-wrap: wrap; padding: 0.5rem; }
  .catalog-btn { padding: 0.45rem 0.8rem; font-size: 0.82rem; gap: 0.3rem; }
  .global-search { max-width: 100%; flex: 1 1 100%; order: 99; margin: 0.4rem 0 0 0; }
  .nav-link { display: none; }
  .cart-btn { margin-left: auto; }
  .subcat-header h1 { font-size: 1.35rem; line-height: 1.25; }
  .breadcrumb { font-size: 0.78rem; }
  .modal-box { width: 92vw; max-width: 92vw; padding: 1rem; }
  .modal-title { font-size: 1.1rem; }
  .order-form { padding: 1rem; }
  .order-form-title { font-size: 1rem; }
  .prod-name-big { font-size: 1.4rem; }
  .nevsky-product-page { grid-template-columns: 1fr; gap: 1rem; }
  .prod-price-card { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .prod-price-card-actions { flex-direction: column; }
}

/* ── Чистая мобильная шапка (≤900): лого + Каталог + корзина в строку,
   поиск отдельной строкой на всю ширину. Десктоп (>900px) не затрагивается. ── */
@media (max-width: 900px) {
  .nav-bottom { padding: 0 0.7rem; }
  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
  }
  .logo { margin-right: 0.3rem; }
  .nav-link { display: none; }
  .nav-top-extra { display: none; }
  .cart-btn { margin-left: auto; flex-shrink: 0; }
  .catalog-btn { flex-shrink: 0; }
  .global-search {
    display: block;
    order: 99;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin: 0.1rem 0 0.15rem;
  }
  .global-search .search-results { width: 100%; left: 0; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .prod-card-body { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
  .prod-name { font-size: 0.85rem; }
  .nav-phone:not(.nav-phone-main) { display: none; }
  .logo img { height: 32px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .mcard-size-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .mcard-footer { flex-direction: column; align-items: stretch; gap: 0.5rem; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .global-search input { font-size: 0.85rem; }
}

/* ── Фото в плашках преимуществ (features-grid) ── */
/* Если у карточки есть фото — картинка растягивается на всю верхнюю часть карточки */
.feature-card.feature-card--with-photo {
  padding: 0 0 1.6rem !important;
  overflow: hidden;
  gap: 1rem;
  align-items: stretch !important;
}
.feature-card--with-photo .feature-icon.feature-icon--photo {
  width: 100% !important;
  height: clamp(220px, 18vw, 320px) !important;
  min-height: 220px !important;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface2);
  padding: 0 !important;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid var(--border);
  margin: 0 !important;
  display: block !important;
}
.feature-card--with-photo .feature-icon--photo img,
.feature-card--with-photo .feature-icon--photo picture,
.feature-card--with-photo .feature-icon--photo picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.feature-card--with-photo h4,
.feature-card--with-photo p {
  padding: 0 1.3rem;
  text-align: center;
}
.feature-card--with-photo h4 {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}
.feature-card--with-photo p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Фото в карточках брендов на главной ── */
.brand-card--with-photo {
  padding: 0 0 1.4rem;
  text-align: center;
}
.brand-card-photo {
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface2);
  margin-bottom: 1rem;
}
.brand-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.brand-card--with-photo:hover .brand-card-photo img {
  transform: scale(1.05);
}
.brand-card--with-photo .brand-logo,
.brand-card--with-photo h3,
.brand-card--with-photo p,
.brand-card--with-photo .cat-arrow {
  margin-left: 1.4rem;
  margin-right: 1.4rem;
}
.brand-card--with-photo h3 { margin-top: 0.2rem; }

/* ── Inline-загрузка фото бренда (?edit=1) ── */
.brand-photo-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background:
    repeating-linear-gradient(135deg,
      #ede5d4 0, #ede5d4 10px,
      #e3d9c2 10px, #e3d9c2 20px);
  border: 2px dashed #b8a987;
  transition: all 0.2s ease;
  position: relative;
}
.brand-photo-drop:hover {
  border-color: var(--accent);
  background: #fff5e8;
}
.brand-photo-drop-hint {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8a7c5e;
  letter-spacing: 0.02em;
}
.brand-photo-drop:hover .brand-photo-drop-hint { color: var(--accent); }

.card-edit-btn-danger {
  background: #d44 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  cursor: pointer;
}
.card-edit-btn-danger:hover { background: #b33 !important; }

.brand-photo-uploading {
  position: relative;
  pointer-events: none;
}
.brand-photo-uploading::after {
  content: 'Загрузка…';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85);
  font-weight: 700;
  color: var(--accent);
  z-index: 5;
}

/* ── Фото категории на карточке каталога (?edit=1 и на витрине) ── */
.cat-card--with-photo { overflow: hidden; }
.cat-card-photo {
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--accent-light);
}
.cat-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cat-card--with-photo:hover .cat-card-photo img { transform: scale(1.05); }
/* фото вверху делает карточку «обычной» (без тёмного оверлея .cat-card-bg) */
.cat-card--with-photo:not(:has(.cat-card-bg)) { background: var(--surface); }

.cat-photo-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent);
  background: #fffaf2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cat-photo-drop:hover { border-color: var(--accent); background: #fff5e8; }


/* ── Бейдж типа бренда (стеновые панели / кромка) на карточке бренда ── */
.brand-kind-badge {
  display: inline-block;
  margin: 0.2rem auto 0;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ── Brand checklist UI в редакторе блока ── */
.bf-brand-checklist .bf-bc-chosen {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: #faf8f4;
  border: 1px solid #e7e1d6;
  border-radius: 6px;
  margin-bottom: 6px;
}
.bf-brand-checklist .bf-bc-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  background: #fff;
  border: 1px solid #ebe5d6;
  border-radius: 4px;
  font-size: 13px;
}
.bf-brand-checklist .bf-bc-num {
  font-weight: 700;
  color: #3a3d44;
  font-size: 11px;
}
.bf-brand-checklist .bf-bc-name { font-weight: 600; color: #1d1f24; }
.bf-brand-checklist .bf-bc-slug { font-size: 11px; color: #999; font-family: monospace; margin-right: 8px; }
.bf-brand-checklist .bf-bc-btn {
  width: 22px; height: 22px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.bf-brand-checklist .bf-bc-btn:hover { background: #f5f3ef; }
.bf-brand-checklist .bf-bc-btn.bf-bc-del { color: #c44; border-color: #f5c2c0; }
.bf-brand-checklist .bf-bc-btn.bf-bc-del:hover { background: #fef0f0; }
.bf-brand-checklist .bf-bc-empty {
  padding: 10px;
  text-align: center;
  color: #999;
  font-style: italic;
  font-size: 12px;
  background: #faf8f4;
  border: 1px dashed #ddd;
  border-radius: 6px;
  margin-bottom: 6px;
}
.bf-brand-checklist .bf-bc-sep {
  font-size: 11px;
  color: #888;
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bf-brand-checklist .bf-bc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bf-brand-checklist .bf-bc-add {
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 99px;
  font-size: 12px;
  cursor: pointer;
  color: #444;
  font: inherit;
}

/* ── Inline-эдит: подсветка редактируемых полей ── */
.edit-mode .inline-editable,
.edit-mode [data-edit-field][contenteditable="true"],
.edit-mode [data-edit-product][contenteditable="true"] {
  outline: 1px dashed rgba(58, 61, 68, .4);
  outline-offset: 2px;
  cursor: text;
  transition: outline-color .15s;
  border-radius: 2px;
}
.edit-mode .inline-editable:hover,
.edit-mode [data-edit-field][contenteditable="true"]:hover,
.edit-mode [data-edit-product][contenteditable="true"]:hover {
  outline-color: rgba(58, 61, 68, .8);
}
.edit-mode .inline-editable:focus,
.edit-mode [data-edit-field][contenteditable="true"]:focus,
.edit-mode [data-edit-product][contenteditable="true"]:focus {
  outline: 2px solid #3a3d44;
  outline-offset: 2px;
  background: rgba(245, 243, 239, .8);
}

/* Toolbar над карточкой товара в edit-режиме */
.prod-card-edit-toolbar {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
  z-index: 5;
}
.prod-card-edit-toolbar .card-edit-btn {
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  color: #1d1f24;
  text-decoration: none;
  font: inherit;
}
.prod-card-edit-toolbar .card-edit-btn:hover {
  background: #3a3d44;
  color: #fff;
  border-color: #3a3d44;
}

/* Кнопка «+ Добавить блок сверху/снизу» */
.extra-blocks-add {
  display: block;
  margin: 1rem auto;
  padding: .5rem 1.2rem;
  background: rgba(58, 61, 68, .08);
  border: 1px dashed rgba(58, 61, 68, .5);
  border-radius: 6px;
  color: #3a3d44;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.extra-blocks-add:hover {
  background: #3a3d44;
  color: #fff;
  border-style: solid;
}

/* Зоны top/bottom: чуть отступа в edit-режиме чтобы кнопка добавления была видна */
.edit-mode .page-extra-blocks {
  min-height: 60px;
  padding: 1rem 0;
}
.bf-brand-checklist .bf-bc-add:hover { background: #3a3d44; color: #fff; border-color: #3a3d44; }


/* ── Кнопка «✏ редактировать» на карточке товара (для залогиненного админа) ── */
.prod-card { position: relative; }
.prod-card-edit {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 5;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(28, 26, 23, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s;
  backdrop-filter: blur(4px);
}
.prod-card:hover .prod-card-edit {
  opacity: 1;
}
.prod-card-edit:hover {
  background: var(--accent);
  transform: scale(1.08);
  color: #fff;
}


/* ── Cards Carousel (блок "Карусель разделов") ── */
.cards-carousel-wrap {
  position: relative;
}
.cards-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1rem;
  padding: 0.5rem 0 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cards-carousel::-webkit-scrollbar { height: 6px; }
.cards-carousel::-webkit-scrollbar-track { background: transparent; }
.cards-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.cards-carousel::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.cards-carousel-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.15s;
}
.cards-carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.cards-carousel--small  .cards-carousel-card { width: 220px; }
.cards-carousel--medium .cards-carousel-card { width: 280px; }
.cards-carousel--large  .cards-carousel-card { width: 360px; }

.cards-carousel-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface2);
  overflow: hidden;
}
.cards-carousel-img img,
.cards-carousel-img picture { width: 100%; height: 100%; }
.cards-carousel-img img {
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cards-carousel-card:hover .cards-carousel-img img { transform: scale(1.04); }
.cards-carousel-img--empty {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--surface2) 0, var(--surface2) 8px, var(--bg) 8px, var(--bg) 16px);
}
.cards-carousel-icon { font-size: 2.2rem; opacity: 0.4; }

.cards-carousel-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cards-carousel-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.cards-carousel-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}
.cards-carousel-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.cards-carousel-arrow-mini {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.4rem;
}

.cards-carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s;
}
.cards-carousel-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cards-carousel-prev { left: -18px; }
.cards-carousel-next { right: -18px; }
@media (max-width: 700px) {
  .cards-carousel-arrow { display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Доставка в города (/dostavka и /dostavka/{slug})
   Дизайн: фирменная серо-графитовая палитра, Playfair Display для H1.
   ───────────────────────────────────────────────────────────────── */

.dostavka-hero,
.dostavka-index-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
}

.dostavka-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dostavka-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
  max-width: 880px;
}

.dostavka-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 0 2rem;
}

.dostavka-lead strong {
  color: var(--text);
  font-weight: 700;
}

.dostavka-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
}

.dostavka-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s;
}

.dostavka-stat:hover {
  border-color: var(--accent);
}

.dostavka-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.dostavka-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.dostavka-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.dostavka-info {
  padding: 3rem 0;
  background: var(--bg);
}

.dostavka-info .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dostavka-para {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.dostavka-para:last-child { margin-bottom: 0; }

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.section-h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 2rem;
  max-width: 700px;
}

.dostavka-popular,
.dostavka-brands,
.dostavka-how,
.dostavka-map,
.dostavka-faq,
.dostavka-other,
.dostavka-group,
.dostavka-howto {
  padding: 3.5rem 0;
}

.dostavka-popular { background: var(--surface); }
.dostavka-brands { background: var(--bg); }
.dostavka-how { background: var(--surface); }
.dostavka-map { background: var(--bg); }
.dostavka-faq { background: var(--surface); }
.dostavka-other { background: var(--bg); }
.dostavka-group { background: var(--bg); }
.dostavka-group:nth-of-type(even) { background: var(--surface); }
.dostavka-howto { background: var(--surface); }

.dostavka-popular .container,
.dostavka-brands .container,
.dostavka-how .container,
.dostavka-map .container,
.dostavka-faq .container,
.dostavka-other .container,
.dostavka-group .container,
.dostavka-howto .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dostavka-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dostavka-prod {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dostavka-prod:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.dostavka-prod-img {
  aspect-ratio: 1 / 1;
  background: var(--surface2);
  overflow: hidden;
}

.dostavka-prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.dostavka-prod-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface2), var(--accent-light));
}

.dostavka-prod-info {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dostavka-prod-brand {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.dostavka-prod-name {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dostavka-prod-price {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.dostavka-prod-price-muted {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.dostavka-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.dostavka-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  min-height: 70px;
}

.dostavka-brand:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.dostavka-brand-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.dostavka-brand-cnt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.dostavka-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.dostavka-how-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.dostavka-how-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.dostavka-how-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.dostavka-how-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.dostavka-map-frame {
  margin-top: 1rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.dostavka-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.dostavka-map-link:hover { background: var(--accent-dark); }

.dostavka-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.dostavka-faq-item summary {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.dostavka-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.dostavka-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.dostavka-faq-item p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.97rem;
}

.dostavka-other-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.dostavka-other-link {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.dostavka-other-link:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.dostavka-other-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* /dostavka индекс */
.dostavka-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.dostavka-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.dostavka-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.dostavka-card-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.dostavka-card-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dostavka-card-dist::before { content: '📍 '; opacity: 0.7; }
.dostavka-card-time { font-weight: 500; }
.dostavka-card-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.dostavka-howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.dostavka-howto-item {
  padding: 1.5rem;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.dostavka-howto-item strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-col-geo a {
  font-size: 0.92rem;
}

.footer-col-all {
  margin-top: 0.5rem !important;
  color: var(--accent) !important;
  font-weight: 700;
}

/* Мобилка */
@media (max-width: 768px) {
  .dostavka-stats { grid-template-columns: repeat(2, 1fr); }
  .dostavka-stat-value { font-size: 1.3rem; }
  .dostavka-cta { flex-direction: column; }
  .dostavka-cta .btn { width: 100%; }
  .dostavka-products,
  .dostavka-cards,
  .dostavka-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .dostavka-other-list { grid-template-columns: 1fr; }
  .dostavka-h1 { font-size: 1.65rem; }
}

@media (max-width: 480px) {
  .dostavka-stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .dostavka-products,
  .dostavka-cards,
  .dostavka-brands-grid { grid-template-columns: 1fr; }
}

/* ═══════════ МОБИЛЬНАЯ АДАПТАЦИЯ V8 (только телефоны, десктоп не трогаем) ═══════════ */

/* 1. Каталог: блоки сворачиваются по клику на заголовок — на ВСЕХ экранах.
   На десктопе блок открыт по умолчанию (m-open ставит JS), на телефоне свёрнут. */
.catalog-sidebar-block.m-collapsible { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 0.28s ease; }
.catalog-sidebar-block.m-collapsible.m-open { grid-template-rows: auto 1fr; }
.catalog-sidebar-block.m-collapsible .catalog-sidebar-nav { min-height: 0; overflow: hidden; }
.catalog-sidebar-block.m-collapsible .catalog-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
}
.catalog-sidebar-block.m-collapsible .catalog-sidebar-header::after {
  content: '⌄'; font-size: 1.1rem; line-height: 1; margin-top: -0.3rem;
  transition: transform 0.28s ease; opacity: 0.7;
}
.catalog-sidebar-block.m-collapsible.m-open .catalog-sidebar-header::after { transform: rotate(180deg); }

@media (max-width: 900px) {
  /* на телефоне — крупнее тап-цели */
  .catalog-sidebar-block.m-collapsible .catalog-sidebar-header { padding-top: 0.95rem; padding-bottom: 0.95rem; }
  .catalog-sidebar-item, .catalog-sidebar-subitem { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}

/* 2. Куки-баннер: читаемые кнопки на тёмном фоне */
.cookie-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); background: transparent; }
.cookie-banner .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.cookie-banner-text a { color: #d9b98a; text-decoration: underline; }
@media (max-width: 540px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; min-height: 44px; font-size: 0.82rem; }
}

/* 3. Общая тактильность на телефоне: тап-цели не меньше комфортных */
@media (max-width: 768px) {
  .drop-item { padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .chip { padding: 0.45rem 0.9rem; }
  .nav-phone-main { min-height: 40px; }
  .filter-chip { min-height: 38px; }
}

/* ── Карточки товаров-предметов (подстолья/мойки/смесители/плинтусы): фото целиком, не кроп ──
   Их фото разной формы и на белом фоне — cover их обрезал и растягивал по-разному.
   contain показывает предмет полностью и одинаково, на белой подложке. */
.product-grid--photo .prod-card-bg {
  background-color: #fff;
  background-image: none !important;
}
.product-grid--photo .prod-card-bg img {
  object-fit: contain;
  padding: 10px;
}

/* ── Кликабельные карточки-офферы (триггеры покупки на главной) ── */
.feature-card--action {
  cursor: pointer; width: 100%; text-align: left;
  font-family: inherit; color: inherit;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.feature-card--action:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feature-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.7rem;
  font-size: 0.85rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.01em;
}
.feature-card--action:hover .feature-cta-arrow { transform: translateX(3px); }
.feature-cta-arrow { transition: transform 0.18s; display: inline-block; }

/* ═══════════ КОНФИГУРАТОР КОМПЛЕКТА (страница столешницы) ═══════════ */
.combo {
  margin: 2.5rem 0 1rem;
  background: var(--accent-dark);
  color: #f3efe7;
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  display: grid;
  gap: 1.4rem;
}
.combo-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.2; color: #fff; margin: 0;
}
.combo-sub { margin: 0.5rem 0 0; color: rgba(243,239,231,0.72); font-size: 0.9rem; line-height: 1.5; max-width: 70ch; }

.combo-grid {
  display: grid; gap: 0.8rem;
  grid-template-columns: 1fr;
}
.combo .combo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(243,239,231,0.06);
  border: 1px solid rgba(243,239,231,0.16);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s, background 0.18s;
}
.combo .combo-card.is-on { border-color: var(--accent); background: rgba(138,107,62,0.18); }
.combo .combo-card--base { border-color: rgba(243,239,231,0.3); background: rgba(243,239,231,0.1); }
/* Фото товара в карточке комплекта — на белой подложке, чтобы было видно на тёмном фоне секции */
.combo-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(243,239,231,0.16);
}
.combo-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.5rem;
}
.combo-card-photo-ph {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #b9b6ae;
}
.combo .combo-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.85rem 1rem 1rem;
}
.combo .combo-card-label {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.35rem;
}
.combo .combo-card-select {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.6rem;
  font: inherit; font-size: 0.85rem; font-weight: 600;
  color: #fff;
  background: rgba(243,239,231,0.08);
  border: 1px solid rgba(243,239,231,0.28);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a96a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 1.8rem;
  transition: border-color 0.18s;
}
.combo .combo-card-select:hover,
.combo .combo-card-select:focus { border-color: var(--brass, #c9a96a); outline: none; }
/* Раскрытый список — на светлом фоне для читаемости в большинстве браузеров */
.combo .combo-card-select option { color: var(--text); background: #fff; }
/* Угловой элемент: акцентная рамка карточки и схематичный плейсхолдер фото */
.combo .combo-card--corner { border-color: rgba(201,169,106,0.45); }
.combo .combo-card--corner .combo-card-photo {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(243,239,231,0.06), rgba(201,169,106,0.10));
}
.combo .combo-card--corner .combo-card-photo-ph {
  position: relative; width: 52%; aspect-ratio: 1 / 1; color: transparent;
  border: 3px solid var(--brass, #c9a96a); border-radius: 4px;
}
.combo .combo-card--corner .combo-card-photo-ph::after {
  content: "90°"; position: absolute; left: 8px; top: 8px;
  font-size: 0.7rem; font-weight: 800; color: var(--brass, #c9a96a);
}
.combo .combo-card-name { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.3; }
.combo .combo-card-price { font-size: 1.05rem; font-weight: 800; color: #fff; margin-top: 0.4rem; }
.combo .combo-card-base-tag { margin-top: 0.5rem; font-size: 0.78rem; font-weight: 700; color: var(--brass); }
.combo-card-add {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  margin-top: auto; padding-top: 0.7rem; font-size: 0.85rem; font-weight: 600; color: rgba(243,239,231,0.9);
  user-select: none;
}
.combo-card-add input { width: 18px; height: 18px; accent-color: var(--brass); cursor: pointer; }

.combo-summary {
  display: flex; flex-direction: column; gap: 0.8rem;
  border-top: 1px solid rgba(243,239,231,0.16); padding-top: 1.2rem;
}
.combo-summary-head { display: flex; flex-direction: column; gap: 0.2rem; }
.combo-summary-label { font-size: 0.8rem; color: rgba(243,239,231,0.6); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.combo-summary-total { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 600; color: #fff; display: flex; align-items: center; gap: 0.7rem; }
.combo-summary-disc {
  font-family: var(--font); font-size: 0.85rem; font-weight: 800;
  background: var(--brass); color: #1c1a16; padding: 0.2rem 0.6rem; border-radius: 50px;
}
.combo-add { align-self: flex-start; padding: 0.9rem 2rem; font-size: 0.95rem; }
.combo-note { font-size: 0.82rem; color: rgba(243,239,231,0.65); }

@media (min-width: 760px) {
  .combo {
    grid-template-columns: 1fr;
  }
  .combo-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (min-width: 1000px) {
  .combo {
    grid-template-columns: minmax(0,1fr) 280px;
    grid-template-areas: "info info" "grid summary";
    align-items: start;
  }
  .combo-info { grid-area: info; }
  .combo-grid { grid-area: grid; }
  .combo-summary { grid-area: summary; border-top: none; border-left: 1px solid rgba(243,239,231,0.16); padding-top: 0; padding-left: 1.5rem; }
  .combo-add { align-self: stretch; justify-content: center; }
}

/* Фикс: CTA в карточках-офферах с фото — прижать к низу и по центру (были «съехавшие») */
.feature-card--with-photo { text-align: center; }
.feature-card--with-photo .feature-cta {
  margin-top: auto;
  align-self: center;
  justify-content: center;
  padding: 0 1.3rem;
}

/* ═══════════ КОНФИГУРАТОР «ВЫГОДНОЕ КОМБО» (/combo) ═══════════ */
.combo-config .section { max-width: 1200px; margin: 0 auto; }

/* Шкала скидки */
.combo-discount {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.3rem 1.5rem; margin-bottom: 1.5rem;
}
.combo-discount-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.4rem; }
.combo-discount-label { font-weight: 700; color: var(--text); }
.combo-discount-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.combo-bar {
  position: relative; height: 10px; background: var(--surface2);
  border-radius: 50px; margin: 0 0 1.6rem;
}
.combo-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 50px; transition: width 0.5s cubic-bezier(0.25,0.8,0.3,1);
}
.combo-bar-mark { position: absolute; top: -4px; transform: translateX(-50%); }
.combo-bar-mark::before {
  content: ''; display: block; width: 2px; height: 18px; background: var(--border); margin: 0 auto;
}
.combo-bar-mark span {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted); white-space: nowrap;
}
.combo-discount-hint { color: var(--text-muted); font-size: 0.9rem; }

/* Слоты */
.combo-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.combo-slot {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem; display: flex; flex-direction: column;
}
.combo-slot-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.combo-slot-title { font-weight: 700; font-size: 1.05rem; }
.combo-slot-badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--accent-light); color: var(--accent-dark); padding: 0.15rem 0.5rem; border-radius: 50px;
}

/* Выбранный товар */
.combo-chosen {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem;
  background: var(--accent-light); border: 1px solid var(--accent); border-radius: 10px; margin-bottom: 0.8rem;
}
.combo-chosen-img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #fff; }
.combo-chosen-body { flex: 1; min-width: 0; }
.combo-chosen-name { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-chosen-price { font-size: 0.85rem; color: var(--accent-dark); }
.combo-chosen-remove {
  border: none; background: var(--accent); color: #fff; width: 26px; height: 26px; border-radius: 50%;
  font-size: 1.1rem; line-height: 1; cursor: pointer; flex-shrink: 0;
}

/* Поиск + бренды */
.combo-search-input {
  width: 100%; height: 38px; padding: 0 0.9rem; border: 1.5px solid var(--border);
  border-radius: 50px; font-family: var(--font); font-size: 0.85rem; background: var(--surface2); margin-bottom: 0.6rem;
}
.combo-search-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.combo-brands, .combo-types { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.8rem; max-height: 96px; overflow-y: auto; }
.combo-types:empty { display: none; }
.combo-brand, .combo-type {
  font-size: 0.78rem; padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: 50px;
  background: #fff; color: var(--text-muted); cursor: pointer; font-family: var(--font); white-space: nowrap;
}
.combo-brand i, .combo-type i { font-style: normal; opacity: 0.6; font-size: 0.72rem; }
.combo-brand:hover, .combo-type:hover { border-color: var(--accent); color: var(--accent); }
.combo-brand.active, .combo-type.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.combo-brand.active i, .combo-type.active i { opacity: 0.8; }
.combo-type.active { background: var(--accent-dark); }

/* Результаты */
.combo-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.combo-loading { grid-column: 1/-1; text-align: center; color: var(--text-muted); padding: 1.5rem 0; font-size: 0.9rem; }
.combo-card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: border-color 0.18s, box-shadow 0.18s;
}
.combo-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(29,31,36,0.1); }
.combo-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.combo-card-img { aspect-ratio: 1/1; background: var(--surface2); }
.combo-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.combo-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.75rem; }
.combo-card-body { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.combo-card-name { font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.combo-card-brand { font-size: 0.72rem; color: var(--text-muted); }
.combo-card-price { font-size: 0.85rem; font-weight: 700; color: var(--accent-dark); margin-top: auto; }
.combo-card-price small { font-weight: 400; color: var(--text-muted); font-size: 0.7rem; }
.combo-card-noprice { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; }
.combo-card-pick {
  margin-top: 0.4rem; border: none; background: var(--accent); color: #fff; border-radius: 50px;
  padding: 0.35rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: var(--font);
}
.combo-card-pick:hover { background: var(--accent-dark); }
.combo-card.selected .combo-card-pick { background: #2e7d32; }
.combo-card.selected .combo-card-pick::after { content: ' ✓'; }

/* Пагинация */
.combo-pager { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 0.8rem; }
.combo-pager-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 50px; padding: 0.35rem 0.9rem;
  font-size: 0.82rem; cursor: pointer; font-family: var(--font); color: var(--text);
}
.combo-pager-btn:disabled { opacity: 0.4; cursor: default; }
.combo-pager-info { font-size: 0.82rem; color: var(--text-muted); }

/* Итог */
.combo-summary {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem 1.5rem;
}
.combo-summary-row, .combo-summary-empty { display: flex; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.combo-summary-empty { color: var(--text-muted); border-bottom: none; }
.combo-summary-cat { color: var(--text-muted); flex: 0 0 130px; }
.combo-summary-pname { flex: 1; font-weight: 600; }
.combo-summary-pprice { font-weight: 600; white-space: nowrap; }
.combo-summary-total { margin-top: 1rem; }
.combo-summary-line { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.combo-summary-disc { color: #2e7d32; font-weight: 600; }
.combo-summary-final { font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--border); margin-top: 0.4rem; padding-top: 0.7rem; }
.combo-summary-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.combo-summary-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.8rem; }

@media (max-width: 900px) {
  .combo-slots { grid-template-columns: 1fr; }
  .combo-results { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .combo-results { grid-template-columns: repeat(2, 1fr); }
  .combo-summary-cat { flex-basis: 90px; }
}

/* ── Кнопка «Скрыть фильтр» (боковой каталог) ── */
.filter-hide-btn {
  width: 100%; padding: 0.45rem; margin-bottom: 0.6rem;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: 0.82rem; color: var(--text-muted); font-family: var(--font);
}
.filter-hide-btn:hover { color: var(--accent); border-color: var(--accent); }
.filter-show-btn {
  display: none; position: fixed; left: 1rem; top: 90px; z-index: 30;
  padding: 0.5rem 1rem; background: var(--accent); color: #fff; border: none;
  border-radius: 50px; cursor: pointer; font-weight: 600; font-family: var(--font);
  box-shadow: 0 4px 14px rgba(29,31,36,0.3);
}
.catalog-layout.filter-hidden .catalog-sidebar { display: none; }
.catalog-layout.filter-hidden .catalog-content { grid-column: 1 / -1; }
.catalog-layout.filter-hidden .filter-show-btn { display: block; }

/* ── Сворачиваемые секции серий на странице бренда (мойки и т.п.) ── */
.brand-series--collapsible { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 0.32s ease; }
.brand-series--collapsible.open { grid-template-rows: auto 1fr; }
.brand-series-body { min-height: 0; overflow: hidden; }
.brand-series-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  margin: 1.6rem 0 0.9rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border); color: var(--text);
  display: flex; align-items: center; gap: 0.6rem;
}
.brand-series--collapsible:first-of-type .brand-series-title { margin-top: 0.5rem; }
.brand-series--collapsible .brand-series-title { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.brand-series-title::after {
  content: '⌄'; margin-left: auto; font-size: 1.15rem; opacity: 0.6; line-height: 1;
  transition: transform 0.3s ease;
}
.brand-series--collapsible.open .brand-series-title::after { transform: rotate(180deg); }
.brand-series-count {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface2); padding: 0.1rem 0.55rem; border-radius: 50px;
}

/* ── Свотчи выбора цвета (планки и др. варианты) ── */
.prod-colors { margin-bottom: 1.1rem; }
.prod-colors-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text); }
.prod-colors-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prod-color-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  width: 66px; text-decoration: none; color: var(--text-muted);
  border: 2px solid transparent; border-radius: 10px; padding: 0.25rem; transition: all 0.15s;
}
.prod-color-swatch img, .prod-color-fill {
  width: 54px; height: 54px; border-radius: 8px; object-fit: cover; display: block;
  border: 1px solid var(--border); background: var(--surface2);
}
.prod-color-label { font-size: 0.72rem; line-height: 1.1; text-align: center; }
.prod-color-swatch:hover { border-color: var(--accent); color: var(--accent); }
.prod-color-swatch.active { border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }
.prod-color-swatch.active img, .prod-color-swatch.active .prod-color-fill { box-shadow: 0 0 0 2px var(--accent); }

/* ── Отзывы к товару ── */
.prod-reviews-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.prod-reviews-avg { font-size: 0.95rem; color: var(--text); }
.prod-reviews-avg .review-stars { color: #e0a800; margin-right: 0.4rem; letter-spacing: 1px; }
.prod-reviews-list { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.prod-reviews-empty { color: var(--text-muted); }
.review-card { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; background: var(--surface, #fff); }
.review-card-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.review-author { font-weight: 700; }
.review-badge { font-size: 0.7rem; background: var(--accent); color: #fff; padding: 0.1rem 0.5rem; border-radius: 50px; }
.review-stars { color: #e0a800; letter-spacing: 1px; }
.review-date { color: var(--text-muted); font-size: 0.82rem; margin-left: auto; }
.review-body { margin: 0; line-height: 1.55; color: var(--text); }

.review-form { border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem 1.4rem; background: var(--surface2, #f5f5f7); max-width: 640px; }
.review-form h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.review-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.9rem; }
.review-form input[type=text], .review-form textarea {
  width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.7rem; font: inherit; font-weight: 400;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.review-form-row { display: flex; gap: 1.2rem; align-items: flex-end; flex-wrap: wrap; }
.review-form-name { flex: 1; min-width: 200px; }
.review-rating-pick { display: flex; gap: 0.1rem; margin-bottom: 0.9rem; }
.review-rating-pick .rstar {
  background: none; border: none; cursor: pointer; font-size: 1.7rem; line-height: 1;
  color: #d4d4d8; padding: 0 0.05rem; transition: color 0.12s;
}
.review-rating-pick .rstar.on { color: #e0a800; }
.review-form .form-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; font-size: 0.85rem; }
.review-form .form-consent input { margin-top: 0.2rem; }
.review-form-msg { margin-top: 0.7rem; font-size: 0.9rem; }
.review-form-msg.ok { color: #1e8e3e; }
.review-form-msg.err { color: #c44; }
