  :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 ── */
  /* body > nav, а не голый nav: правило ловило любые <nav> на странице —
     хлебные крошки на /dostavka и /favorites становились липкими и накрывали
     шапку, у оглавления статьи пришлось делать отдельный щит. Шапка сайта —
     прямой потомок <body>, всё остальное вложено в <main>. */
  body > 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 ── */

/* ── ABOUT PAGE ── */

  /* ── 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 */
  /* Offer grid */
  /* Contacts section */
  .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 {
    /* было 0.62rem = 9.9px — ниже читаемого минимума */
    font-size: 0.72rem; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.07em;
  }
  /* «В корзину» — основная кнопка конверсии в каталоге. В разметке у неё
     инлайновый padding:0.45rem 0.9rem, из-за него высота была 33.4px.
     Инлайн перебивает обычные правила, поэтому поднимаем через min-height,
     которого в инлайне нет — !important не нужен. */
  .mcard-footer .btn, .mcard-footer .btn-primary {
    min-height: 44px;
    justify-content: center;
  }
  .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; }


  /* ── NEVSKY PRODUCT PAGE ── */
  /* 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 */

  @media(max-width:900px) {
  }

  /* ── 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; }
    .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; }
  }
  /* ── 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-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
  }
  .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-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-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-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; }
  /* select обязателен в списке: на /calculator три селекта (декор/толщина/кромка)
     оставались без паддинга и рамки — 19px против 44px у соседних input. */
  .order-field input, .order-field textarea, .order-field select {
    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 select {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    cursor: pointer;
    /* место под собственную стрелку, чтобы длинные названия декоров не наезжали */
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b6e74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
  }
  .order-field input:focus, .order-field textarea:focus, .order-field select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: 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, .order-field select.invalid {
    border-color: #c44;
    background-color: #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;
  }

  /* ── 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) {
    .articles-list { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .articles-list { grid-template-columns: 1fr; }
  }

/* ── 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: clear-btn ── */
.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; }
  /* Тач-цели: было 32.4px у «Каталога» и 38px у поиска. */
  .catalog-btn { flex-shrink: 0; min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .global-search {
    display: block;
    order: 99;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin: 0.1rem 0 0.15rem;
  }
  .global-search input { height: 44px; }
  .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--with-photo удалено 2026-08-09: его целиком
   перебивал блок «features-grid: фото на всю карточку» ниже по файлу (одинаковые
   селекторы, но позже). Уцелевшие оттуда background/overflow/display перенесены
   в живой блок; вместе с ними сняты ставшие ненужными !important. */

/* ── Фото в карточках брендов на главной ── */
.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; }
}
/* Пока открыт мега-каталог — баннер убираем: он position:fixed z-index:150 в
   контексте <body>, а выпадашка живёт внутри body>nav (z-index:100 создаёт свой
   контекст наложения), поэтому её z-index:200 баннер не перебивает и тот
   закрывает нижние пункты меню. Класс catalog-open уже ставит site.js. */
body.catalog-open .cookie-banner { display: none; }

/* 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 (виджет «Соберите комплект» со страницы товара) 2026-08-09.
   Без скоупа эти правила доставали и до /combo, где .combo-summary — другой
   компонент: .combo-summary-total там контейнер трёх строк итога, и display:flex
   ставил их в ряд, а .combo-summary-disc из зелёного текста превращался в пилюлю.
   Страница /combo обёрнута в .combo-config, элемента .combo на ней нет. */
.combo .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 .combo-summary-head { display: flex; flex-direction: column; gap: 0.2rem; }
.combo .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 .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 .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 .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; }
/* ═══════════════════════════════════════════════════════════════════════
   БЕНТО-МЕНЮ «Каталог» (catm-*)  —  добавляется в КОНЕЦ site.css
   Основано на утверждённом эталоне menu/bento-editor.art.html.
   Ничего внешнего не грузит. Не пересекается со старыми .drop-* классами.
   Работает поверх существующих #catalogBtn / #catalogDropdown / .open (JS не трогаем).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Переменные (scoped на контейнер меню, глобальный CSS не засоряем) ──
   --catm-accent — акцент. По умолчанию — золото утверждённого эталона (#B07D1E).
   Чтобы меню следовало за брендовым акцентом кнопки, замените значение на:  var(--accent)
   (сейчас брендовый --accent = графит #3a3d44, поэтому по умолчанию оставлено золото). */
#catalogDropdown {
  --catm-accent: #B07D1E;
  --catm-cushion: rgba(24, 20, 15, .55);
  --catm-cushion-ink: #fff;
  --catm-cushion-blur: 6px;
  /* производные */
  --catm-accent-strong: #7d570f;                                   /* fallback для старых браузеров */
  --catm-accent-strong: color-mix(in srgb, var(--catm-accent) 74%, #000);
  --catm-accent-line:   rgba(176, 125, 30, .42);                   /* fallback */
  --catm-accent-line:   color-mix(in srgb, var(--catm-accent) 42%, transparent);
  --catm-card-bg: var(--surface2, #ececef);
  --catm-radius: 16px;
}

/* ── Контейнер выпадашки: сброс старой мультиколонки + fullwidth-панель ── */
#catalogDropdown {
  /* сохраняем JS-совместимость: position/absolute/top/left/.open — из .dropdown */
  min-width: 0;
  width: min(960px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  padding: 16px;
  /* глушим старые правила .dropdown { column-count:3; ... } */
  column-count: auto;
  column-gap: normal;
  column-rule: none;
}

/* Узкий десктоп/планшет (901–1200): панель уже, чтобы не вылезать за правый
   край (шапка центрирована justify-content:center, кнопка «Каталог» — левее центра).
   760px — та же ширина, что у старой выпадашки, гарантированно помещается. */
@media (max-width: 1200px) {
  #catalogDropdown { width: min(760px, calc(100vw - 1.5rem)); }
}

/* ── Бенто-сетка ── */
#catalogDropdown .catm-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(104px, auto);
  gap: 14px;
  min-width: 0;
}

/* ── Карточка ── */
#catalogDropdown .catm-card {
  position: relative;
  border: 1px solid var(--border, #dcdcdf);
  border-radius: var(--catm-radius);
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(33, 28, 22, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  isolation: isolate;
}
#catalogDropdown .catm-card:hover,
#catalogDropdown .catm-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(33, 28, 22, .28);
  border-color: var(--catm-accent-line);
}

/* фон-слой: фото категории (var(--catm-photo)) или градиент-заглушка */
#catalogDropdown .catm-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    var(--catm-photo, none),
    linear-gradient(135deg,
      color-mix(in srgb, var(--catm-accent) 14%, var(--catm-card-bg)),
      var(--catm-card-bg) 60%,
      color-mix(in srgb, var(--text, #1d1f24) 8%, var(--catm-card-bg)));
  background-size: cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .35s ease;
}
/* заглушка без color-mix (старые браузеры) */
@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
  #catalogDropdown .catm-bg { background-image: var(--catm-photo, none), linear-gradient(135deg, #efe7d6, var(--catm-card-bg) 62%); }
}
#catalogDropdown .catm-card:hover .catm-bg { transform: scale(1.04); }

/* затемняющий scrim под подписи на фото */
#catalogDropdown .catm-has-photo .catm-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, .12), rgba(10, 8, 6, .05) 38%, rgba(10, 8, 6, .48));
}
/* лёгкая штриховка на карточках без фото */
#catalogDropdown .catm-card:not(.catm-has-photo) .catm-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(29, 31, 36, .04) 22px 23px);
}

#catalogDropdown .catm-body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── «Подушка» (полупрозрачная плашка + backdrop-blur) ── */
#catalogDropdown .catm-pad {
  background: var(--catm-cushion);
  color: var(--catm-cushion-ink);
  border-radius: 12px;
  padding: 10px 12px;
  -webkit-backdrop-filter: blur(var(--catm-cushion-blur));
  backdrop-filter: blur(var(--catm-cushion-blur));
}

/* ── Шапка карточки: иконка + заголовок ── */
#catalogDropdown .catm-head {
  display: flex;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
  max-width: 100%;
}
#catalogDropdown .catm-ic {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  color: var(--catm-cushion-ink);
}
#catalogDropdown .catm-ic svg { width: 22px; height: 22px; }
#catalogDropdown .catm-tt { min-width: 0; }
#catalogDropdown .catm-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .1px;
}
#catalogDropdown .catm-title a {
  color: var(--catm-cushion-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
#catalogDropdown .catm-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
#catalogDropdown .catm-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #e8cf9a;                                                  /* fallback */
  color: color-mix(in srgb, var(--catm-accent) 55%, var(--catm-cushion-ink));
}

/* ── Список подпунктов (на подушке) ── */
#catalogDropdown .catm-links {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  align-self: flex-start;
  max-width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
#catalogDropdown .catm-links li { margin: 0; }
#catalogDropdown .catm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  color: rgba(255, 255, 255, .82);
  transition: color .15s ease, background .15s ease;
  overflow-wrap: anywhere;
}
#catalogDropdown .catm-link::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 1.5px;
  background: var(--catm-accent);
  border-radius: 2px;
  transition: width .18s ease;
}
#catalogDropdown .catm-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
#catalogDropdown .catm-link:hover::before { width: 13px; }
#catalogDropdown .catm-link-all { font-weight: 700; color: #fff; }

/* ── Карточка-ссылка «Перейти в раздел» ── */
#catalogDropdown .catm-go {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--catm-cushion-ink);
  background: var(--catm-cushion);
  -webkit-backdrop-filter: blur(var(--catm-cushion-blur));
  backdrop-filter: blur(var(--catm-cushion-blur));
  transition: background .15s ease;
}
#catalogDropdown .catm-go svg { width: 15px; height: 15px; transition: transform .18s ease; }
#catalogDropdown .catm-card:hover .catm-go svg { transform: translateX(3px); }
#catalogDropdown .catm-go:hover { background: rgba(24, 20, 15, .72); }

/* ── Размеры бенто ── */
#catalogDropdown .catm-hero { grid-column: span 2; grid-row: span 2; }
#catalogDropdown .catm-hero .catm-ic { width: 48px; height: 48px; }
#catalogDropdown .catm-hero .catm-ic svg { width: 26px; height: 26px; }
#catalogDropdown .catm-hero .catm-title { font-size: 22px; }
#catalogDropdown .catm-hero .catm-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 14px;
}
#catalogDropdown .catm-tall { grid-row: span 2; }
#catalogDropdown .catm-wide { grid-column: span 2; }

/* ── Доступность: видимый фокус ── */
#catalogDropdown a:focus-visible,
#catalogBtn:focus-visible {
  outline: 2px solid var(--catm-accent-strong, #7d570f);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ══════════════ МОБИЛЬНАЯ ВЕРСИЯ ══════════════
   Старое поведение: .dropdown при ≤900 = { min-width:320px; column-count:1 } —
   узкая колонка, position:absolute left:0 относительно .catalog-wrapper
   (могла выезжать за правый край на телефоне).
   Здесь: панель прибиваем к вьюпорту (position:fixed left/right), поэтому
   горизонтального переполнения страницы нет; внутри — 2 колонки, затем 1;
   тач-цели ≥44px; вертикальный скролл, если карточек много. */
@media (max-width: 900px) {
  #catalogDropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    /* Обе переменные проставляет site.js по фактической геометрии шапки:
       .nav-bottom с backdrop-filter — containing block для position:fixed, поэтому
       top отсчитывается от шапки, а не от вьюпорта, и зашитый фолбэк не совпадал
       с реальной высотой (панель уезжала за нижний край на ~69px). */
    top: var(--catm-mobile-top, 96px);
    width: auto;
    max-width: none;
    padding: 12px;
    z-index: 200;                         /* выше sticky nav (z-index:100), ниже модалок (1000) */
    max-height: var(--catm-mobile-maxh, calc(100dvh - 200px));
    max-height: var(--catm-mobile-maxh, calc(100vh - 200px));  /* fallback для браузеров без dvh */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  #catalogDropdown .catm-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(96px, auto);
    gap: 10px;
  }
  /* крупнее тач-цели */
  #catalogDropdown .catm-link { padding: 10px 8px; font-size: 14px; min-height: 44px; box-sizing: border-box; }
  #catalogDropdown .catm-link::before { width: 8px; }
  #catalogDropdown .catm-go { padding: 12px 14px; min-height: 44px; font-size: 14px; }
  #catalogDropdown .catm-title a { padding: 2px 0; }
}

@media (max-width: 560px) {
  #catalogDropdown {
    left: 8px;
    right: 8px;
    top: var(--catm-mobile-top, 92px);
    max-height: var(--catm-mobile-maxh, calc(100dvh - 200px));
    max-height: var(--catm-mobile-maxh, calc(100vh - 200px));
  }
  /* одна колонка — всё разворачиваем в столбик */
  #catalogDropdown .catm-bento { grid-template-columns: 1fr; }
  #catalogDropdown .catm-hero,
  #catalogDropdown .catm-tall,
  #catalogDropdown .catm-wide { grid-column: span 1; grid-row: span 1; }
  #catalogDropdown .catm-hero .catm-links { grid-template-columns: 1fr; }
  #catalogDropdown .catm-card { min-height: 132px; }
  #catalogDropdown .catm-hero { min-height: 168px; }
  #catalogDropdown .catm-hero .catm-title { font-size: 19px; }
}

/* ── Сенсорные экраны: hover нет — не «прыгаем» и не зумим фон ── */
@media (hover: none) {
  #catalogDropdown .catm-card:hover { transform: none; }
  #catalogDropdown .catm-card:hover .catm-bg { transform: none; }
}

/* ── Уважение к reduce-motion ── */
@media (prefers-reduced-motion: reduce) {
  #catalogDropdown .catm-card,
  #catalogDropdown .catm-bg,
  #catalogDropdown .catm-go svg,
  #catalogDropdown .catm-link::before { transition: none !important; }
  #catalogDropdown .catm-card:hover { transform: none; }
  #catalogDropdown .catm-card:hover .catm-bg { transform: none; }
}
/* ═══════════════════════════════════════════════════════════════════
   features-grid: фото на всю карточку + текст на «подложке» (как в каталоге)
   Добавляется в КОНЕЦ site.css. Перебивает прежние !important-правила
   тем же/большим уровнем специфичности + !important. Только для --with-photo;
   вариант с иконкой (без фото) не затрагивается.
   Дата: 2026-07-12
   ═══════════════════════════════════════════════════════════════════ */

.feature-card.feature-card--with-photo{
  position:relative;
  padding:0;
  gap:0;
  min-height:340px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:stretch;
  overflow:hidden;
  isolation:isolate;
  text-align:left;
}

/* фото — фон на всю карточку */
.feature-card--with-photo .feature-icon.feature-icon--photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  margin:0;
  padding:0;
  border:none;
  border-bottom:none;
  border-radius:0;
  z-index:0;
  /* перенесено из удалённого первого поколения правил */
  display:block;
  overflow:hidden;
  background:var(--surface2);
}
.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%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* лёгкое затемнение для читаемости */
.feature-card--with-photo .feature-icon--photo::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,8,6,.14), rgba(10,8,6,.03) 42%, rgba(10,8,6,.36));
}

/* ПОДЛОЖКА с текстом */
.feature-card--with-photo .feature-body{
  position:relative;
  z-index:1;
  margin:12px;
  padding:15px 16px 14px;
  border-radius:14px;
  background:rgba(22,18,13,.56);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  text-align:left;
}
.feature-card--with-photo .feature-body h4,
.feature-card--with-photo .feature-body p{
  padding:0;
  text-align:left;
  color:#fff;
}
.feature-card--with-photo .feature-body h4{
  margin:0;
  font-size:1.02rem;
  line-height:1.25;
}
.feature-card--with-photo .feature-body p{
  margin:.4rem 0 0;
  font-size:.86rem;
  line-height:1.5;
  color:rgba(255,255,255,.9);
}
.feature-card--with-photo .feature-body .feature-cta{
  margin-top:.7rem;
  color:#fff;
  justify-content:flex-start;
}
.feature-card--with-photo .feature-body .feature-cta-arrow{
  color:color-mix(in srgb, var(--accent) 60%, #fff);
}

/* лёгкий подъём/зум на hover (десктоп) */
.feature-card.feature-card--with-photo{ transition:transform .2s ease, box-shadow .2s ease; }
.feature-card--with-photo .feature-icon--photo{ transition:transform .5s ease; }
.feature-card--with-photo:hover .feature-icon--photo{ transform:scale(1.05); }

@media (max-width:560px){
  .feature-card.feature-card--with-photo{ min-height:300px; }
}
@media (hover:none){
  .feature-card--with-photo:hover .feature-icon--photo{ transform:none; }
}
@media (prefers-reduced-motion:reduce){
  .feature-card.feature-card--with-photo,
  .feature-card--with-photo .feature-icon--photo{ transition:none !important; }
  .feature-card--with-photo:hover .feature-icon--photo{ transform:none; }
}
/* ═══════════════════════════════════════════════════════════════════════
   МОБИЛЬНАЯ КОМПАКТИЗАЦИЯ  (маерсс.рф)
   Дописывается в КОНЕЦ site.css. ТОЛЬКО мобильные правила.
   Десктоп (>600px) не затрагивается: все правила внутри @media.
   SEO-текст остаётся в DOM — сворачивается через line-clamp / display:none,
   элементы не удаляются.
   Правки clamp/toggle отключены в режиме правки (body.edit-mode),
   чтобы не мешать inline-редактированию contenteditable-полей.
   Парная логика в site.js (блок «MOBILE MORE / line-clamp toggle»).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Кнопка-тоггл «Показать полностью / Свернуть» (вставляется из JS) ──
   Стили вне @media: кнопка появляется только когда текст реально усечён
   (а усечение включается лишь на ≤600px), поэтому на десктопе её нет.
   Тап-зона ≥44px, стрелка ▾/▴ через ::after по aria-expanded. */
.more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  margin-top: 0.2rem;
  padding: 0.3rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.more-toggle::after {
  content: '▾';
  font-size: 0.75em;
  line-height: 1;
  transition: transform 0.15s ease;
}
.more-toggle[aria-expanded="true"]::after { content: '▴'; }
.more-toggle:hover { color: var(--accent-dark); text-decoration: underline; }
.more-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ═══════════════ ОСНОВНОЙ МОБИЛЬНЫЙ БРЕЙКПОИНТ ═══════════════ */
@media (max-width: 600px) {

  /* ── SUBCATEGORY HEADER (описание категории) ──
     Дефолт: padding 2.5rem 2rem; p 0.9rem — без моб. override.
     Ужимаем паддинг и текст; описание сворачиваем до 3 строк. */
  .subcat-header { padding: 1.2rem 1rem; }
  .subcat-header-inner > p,
  .subcat-header-inner > [data-edit-field="description"],
  .subcat-header-inner > [data-edit-field="description"] p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* ── PRODUCT DESCRIPTION (класс есть в CSS; на текущем шаблоне товара
     не рендерится — правило безвредно и работает «на вырост»,
     если .prod-desc появится). ── */
  .prod-desc { font-size: 0.85rem; line-height: 1.5; }

  /* Line-clamp по умолчанию (свёрнуто ~3 строки). Только вне edit-mode. */
  body:not(.edit-mode) .subcat-header-inner > p,
  body:not(.edit-mode) .subcat-header-inner > [data-edit-field="description"],
  body:not(.edit-mode) .prod-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  /* .is-expanded — снимает clamp (полный текст). */
  body:not(.edit-mode) .subcat-header-inner > p.is-expanded,
  body:not(.edit-mode) .subcat-header-inner > [data-edit-field="description"].is-expanded,
  body:not(.edit-mode) .prod-desc.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  /* ── BRAND CARD на странице категории (#page-category) ──
     Скрываем маркетинговое описание (остаётся в DOM для SEO),
     ужимаем паддинг и высоту. Логотип + название + «N декоров» + стрелка
     остаются. Скоуп #page-category, чтобы НЕ трогать бренды на главной. */
  #page-category .brand-card { padding: 0.9rem 0.8rem; gap: 0.4rem; }
  body:not(.edit-mode) #page-category .brand-card > p { display: none; }
  #page-category .brand-card .brand-logo {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
  #page-category .brand-card h3 { font-size: 0.9rem; }
  /* «N декоров» — это div с inline-стилем, ужимаем отступ сверху */
  #page-category .brand-card > div[style*="text-muted"] { margin-top: 0.15rem; }
  /* Карточки-с-фото на категории: убрать боковые поля у скрытого p не нужно,
     но подтянем заголовок ближе к фото */
  #page-category .brand-card--with-photo { padding-bottom: 0.9rem; }
  #page-category .brand-card--with-photo h3 { margin-top: 0.1rem; }

  /* ── CATEGORY CARD (.cat-card) ──
     Описание до 2 строк, компактнее контент и высота. */
  .cat-card { min-height: 140px; }
  .cat-card-content { padding: 1rem; gap: 0.5rem; }
  .cat-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  /* ── ПРОЧАЯ КОМПАКТИЗАЦИЯ ── */
  .offices-grid .office-card { padding: 1.1rem; gap: 0.8rem; }
  .generic-card-body { padding: 0.75rem; gap: 0.3rem; }
}

/* ── IMAGE-TEXT: колонки уже схлопываются в 1 на ≤768px (в site.css),
   здесь только ужимаем вертикальный gap на телефоне. ── */
@media (max-width: 768px) {
  .image-text { gap: 1.2rem; }
}
/* ═══════════════════════════════════════════════════════════════════
   Фикс «полосок» в бенто-меню «Каталог» (2026-07-12)
   Причина: подушки под текстом были полупрозрачные (.55) — сквозь них
   просвечивала фактура фото (доски/грани) горизонтальными линиями; плюс
   заголовок и список ссылок — две отдельные подушки с зазором (между ними
   светилось фото). Решение: плотнее подушка + сильнее блюр + объединяем
   заголовок и ссылки в один сплошной блок без зазора.
   Дописывается в КОНЕЦ site.css.
   ═══════════════════════════════════════════════════════════════════ */
#catalogDropdown{
  --catm-cushion: rgba(18,15,11,.82) !important;
  --catm-cushion-blur: 10px !important;
}
/* убрать зазор между подушкой заголовка и подушкой ссылок */
#catalogDropdown .catm-body{ gap:0 !important; }
/* заголовок — скруглён только сверху, снизу стыкуется со ссылками */
#catalogDropdown .catm-head{
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
  padding-bottom:9px !important;
}
/* ссылки / кнопка «Перейти» — скруглены только снизу, примыкают к заголовку */
#catalogDropdown .catm-links,
#catalogDropdown .catm-go{
  border-top-left-radius:0 !important;
  border-top-right-radius:0 !important;
  margin-top:0 !important;
  padding-top:6px !important;
}
/* ═══════════════════════════════════════════════════════════════════
   Бренд-грид: убрать дубль имени и длинные описания (2026-07-12)
   Причина «кринжа»: карточка показывала имя ДВАЖДЫ (плашка .brand-logo +
   заголовок h3) и длинный SEO-абзац, растягивавший карточку неравномерно.
   Убираем плашку-дубль и описание в гриде → компактные ровные карточки
   (имя из h3 + бейдж вида + «Смотреть»). Действует и на главной, и на
   страницах категорий (оба используют .brand-grid). SEO-описание остаётся
   в DOM на странице самого бренда, здесь — просто скрыто.
   Дописывается в КОНЕЦ site.css.
   ═══════════════════════════════════════════════════════════════════ */
.brand-grid .brand-logo{ display:none !important; }
.brand-grid .brand-card > p{ display:none !important; }
/* ═══════════════════════════════════════════════════════════════════
   Фикс каруселей «Акции» и «Последние статьи» (2026-07-12)
   Дописывается в КОНЕЦ site.css.
   ═══════════════════════════════════════════════════════════════════ */

/* 1) Бейдж скидки: в шаблоне карточки акции нет .sales-card-img, а .sales-card
   не был position:relative → абсолютный бейдж якорился к .slider-wrap и накрывал
   цену первой карточки. Привязываем к самой карточке и уводим в правый верхний угол
   (подальше от цены слева). Действует на всех экранах. */
.sales-card{ position: relative; }
.sales-discount{ left: auto !important; right: 0.6rem !important; }

/* 2) Стрелки каруселей на телефоне/планшете налезают на карточки — прячем,
   листается свайпом (треки overflow-x:auto + scroll-snap). Мышью на десктопе — остаются.
   Само правило .slider-arrow{display:none} для ≤768 живёт ниже, в блоке про
   «жёлоб» под стрелки — здесь был его дословный дубль (удалён 2026-08-09). */

/* 3) Мобильная аккуратность треков: snap, чтобы карточки не резались посередине */
@media (max-width: 600px){
  .sales-track, .recent-articles-track{ scroll-snap-type: x mandatory; }
  /* карточки статей — по одной с намёком на следующую; текст в 3 строки */
  .recent-articles-track .article-card{ min-width: 82vw !important; max-width: 82vw !important; }
  .recent-articles-track .article-card p{
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  }
}
/* ═══════════════════════════════════════════════════════════════════
   Стрелки каруселей налезали на текст первой/последней карточки
   (стрелка position:absolute, top:50% — по центру, поверх карточки).
   Даём .slider-wrap боковой «жёлоб» под стрелки на десктопе; на телефоне
   стрелки прячем (свайп). 2026-07-12. Дописывается в КОНЕЦ site.css.
   ═══════════════════════════════════════════════════════════════════ */
.slider-wrap{ padding-left: 48px; padding-right: 48px; }
.slider-arrow-left{ left: 2px !important; }
.slider-arrow-right{ right: 2px !important; }

@media (max-width: 768px){
  .slider-wrap{ padding-left: 0 !important; padding-right: 0 !important; }
  .slider-arrow{ display: none !important; }
}
/* ═══════════════════════════════════════════════════════════════════
   Карточки статей в карусели: у h4/p не было боковых паддингов — текст
   прилипал к краю карточки, буквы «резались» о границу. Добавляем отступы
   тексту (фото остаётся на всю ширину). 2026-07-12. В КОНЕЦ site.css.
   ═══════════════════════════════════════════════════════════════════ */
.recent-articles-track .article-card > h4,
.recent-articles-track .article-card > p{
  padding-left: 0.95rem !important;
  padding-right: 0.95rem !important;
}
.recent-articles-track .article-card > h4{ margin-top: 0.15rem; }
.recent-articles-track .article-card{ padding-bottom: 1rem; }
/* ═══════════════════════════════════════════════════════════════════
   Мобильный фильтр-аккордеон каталога (2026-07-12)
   Было: «Каталог товаров» / «Уточнить раздел» — тяжёлые тёмные плашки
   (background:var(--accent)) на светлой странице, смотрелись чужеродно.
   Делаем на телефоне чистые светлые секции с аккуратными углами и
   акцентным шевроном. Десктоп (>900px) не затрагивается.
   В КОНЕЦ site.css.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px){
  .catalog-sidebar-block{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .catalog-sidebar-block.m-collapsible .catalog-sidebar-header{
    background: var(--surface2) !important;
    color: var(--text) !important;
    font-weight: 700;
    border-bottom: 1px solid transparent;
  }
  .catalog-sidebar-block.m-collapsible.m-open .catalog-sidebar-header{
    border-bottom-color: var(--border);
  }
  .catalog-sidebar-block.m-collapsible .catalog-sidebar-header::after{
    color: var(--accent);
    opacity: 0.85;
  }
}
/* ═══════════════════════════════════════════════════════════════════
   Пока открыт мега-каталог — прячем боковой фильтр каталога, чтобы его
   плашки «Каталог товаров»/«Уточнить раздел» не просвечивали сквозь/поверх
   выпадающего меню (z-index-независимо; парный JS вешает body.catalog-open).
   visibility:hidden сохраняет разметку — при закрытии фильтр возвращается.
   В КОНЕЦ site.css. 2026-07-12.
   ═══════════════════════════════════════════════════════════════════ */
body.catalog-open .catalog-sidebar{ visibility: hidden; }
/* ═══════════════════════════════════════════════════════════════════
   Фильтр-дровер цены/брендов (≤1100px, position:fixed поверх страницы)
   должен быть ВЫШЕ шапки — иначе его заголовок и крестик × уходят под
   липкую шапку, и фильтр не закрыть. Даём высокий z-index.
   В КОНЕЦ site.css. 2026-07-12.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px){
  .catalog-layout > .brand-filter-aside{ z-index: 400 !important; }
}
/* ═══════════════════════════════════════════════════════════════════
   Мобильный UX фильтра каталога (2026-07-12)
   На телефоне были: кнопка «Скрыть фильтр ✕» + свёрнутые аккордеоны →
   «кнопка есть, а фильтра не видно». Убираем десктопные кнопки скрытия
   (на мобиле фильтр и так сворачивается аккордеоном), а первый блок
   «Каталог товаров» открываем по умолчанию (см. парный JS).
   В КОНЕЦ site.css.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px){
  .filter-hide-btn,
  .filter-show-btn{ display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   Бенто-меню каталога: «Бытовая техника» — широкий баннер на всю ширину
   (catm-full) под остальными плитками. 10 подкатегорий раскладываем в
   несколько колонок, чтобы читались. Добавляется в КОНЕЦ site.css. 2026-07-13.
   ═══════════════════════════════════════════════════════════════════ */
#catalogDropdown .catm-full { grid-column: 1 / -1; }
#catalogDropdown .catm-full .catm-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 16px;
}
@media (max-width: 900px) {
  #catalogDropdown .catm-full .catm-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #catalogDropdown .catm-full .catm-links { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   Лайтбокс фото товара (парный к site.js). Клик по фото → полный экран.
   Дописано в КОНЕЦ site.css. 2026-07-13.
   ═══════════════════════════════════════════════════════════════════ */
.lb-overlay{position:fixed;inset:0;z-index:1200;display:none;align-items:center;justify-content:center;background:rgba(15,12,9,.9);padding:24px;cursor:zoom-out;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);}
.lb-overlay.open{display:flex;}
.lb-img{max-width:min(96vw,1100px);max-height:92vh;object-fit:contain;border-radius:8px;box-shadow:0 12px 48px rgba(0,0,0,.55);background:#fff;}
.lb-close{position:absolute;top:16px;right:20px;width:44px;height:44px;border:none;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:26px;line-height:1;cursor:pointer;transition:background .15s;}
.lb-close:hover{background:rgba(255,255,255,.3);}
@media (max-width:600px){.lb-overlay{padding:10px;}.lb-close{top:8px;right:8px;}}
@media (prefers-reduced-motion:reduce){.lb-overlay{backdrop-filter:none;}}

/* ═══════════════════════════════════════════════════════════════════
   Карточка техники: характеристики (первые 4 видно + «Показать все»)
   и описание (сворачивание «Показать полностью / Свернуть»).
   Кнопки-ссылки в фирменном золоте, без рамок. В КОНЕЦ site.css. 2026-07-14.
   ═══════════════════════════════════════════════════════════════════ */
.prod-spec-toggle, .prod-about-toggle{
  margin-top:12px; display:inline-flex; align-items:center; gap:7px;
  background:none; border:none; padding:6px 0; cursor:pointer; line-height:1;
  color:var(--accent,#3a3d44); font-weight:700; font-size:.9rem; font-family:inherit;
}
.prod-spec-toggle::after, .prod-about-toggle::after{
  content:"⌄"; font-size:1.15em; transition:transform .2s ease;
}
.prod-specs-card.specs-open .prod-spec-toggle::after,
.prod-about.about-open .prod-about-toggle::after{ transform:rotate(180deg); }
.prod-spec-toggle:hover, .prod-about-toggle:hover{ text-decoration:underline; text-underline-offset:3px; }
.prod-spec.prod-spec-more{ display:none; }
.prod-specs-card.specs-open .prod-spec.prod-spec-more{ display:flex; }
.prod-about.about-collapsible .prod-about-body{ max-height:6.4em; overflow:hidden; transition:max-height .3s ease; }
.prod-about.about-collapsible.about-open .prod-about-body{ max-height:1600px; }
@media (prefers-reduced-motion:reduce){
  .prod-about.about-collapsible .prod-about-body,
  .prod-spec-toggle::after, .prod-about-toggle::after{ transition:none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Мобильный слайдер блока «преимущества» (features-grid): на телефоне
   4 больших фото-карточки превращаются в горизонтальную свайп-ленту
   (scroll-snap, ~1.2 карточки в кадре, ниже по высоте) — эргономично,
   вместо вертикальной «простыни». Только ≤600px. В КОНЕЦ site.css. 2026-07-14.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 600px){
  .features-grid{
    display:flex !important;
    grid-template-columns:none !important;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;
    gap:12px;
    scrollbar-width:none;
    padding-bottom:6px;
    overscroll-behavior-x:contain;
  }
  .features-grid::-webkit-scrollbar{ display:none; }
  .features-grid > .feature-card{
    flex:0 0 84%;
    scroll-snap-align:start;
  }
  .feature-card.feature-card--with-photo{ min-height:230px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   Лента категорий (блок category-strip, в духе Хоффа): 2 ряда плиток
   с фото-фоном и подписью, горизонтальный свайп. В КОНЕЦ site.css. 2026-07-14.
   ═══════════════════════════════════════════════════════════════════ */
.cat-strip-section{ padding-top:34px; }
.cat-strip-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:16px; }
.cat-strip-head h2{ font-size:clamp(20px,2.6vw,28px); font-weight:800; letter-spacing:-.02em; margin:0; }
.cat-strip-all{ font-size:14px; font-weight:600; color:var(--text-muted,#6b6e74); white-space:nowrap; text-decoration:none; }
.cat-strip-all:hover{ color:var(--accent,#3a3d44); }
.cat-strip{
  display:grid; grid-auto-flow:column; grid-template-rows:repeat(2,1fr);
  grid-auto-columns:minmax(190px,1fr); gap:12px;
  overflow-x:auto; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth; scrollbar-width:none; padding-bottom:8px; overscroll-behavior-x:contain;
}
.cat-strip::-webkit-scrollbar{ display:none; }
.cat-chip{
  position:relative; scroll-snap-align:start; border-radius:14px; overflow:hidden;
  min-height:88px; display:flex; align-items:flex-end; text-decoration:none;
  border:1px solid var(--border,#dcdcdf); transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-chip .cat-chip-img{ position:absolute; inset:0; }
.cat-chip .cat-chip-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.cat-chip::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,17,12,.10) 30%, rgba(20,17,12,.72) 100%); }
.cat-chip-label{ position:relative; z-index:1; padding:11px 13px; color:#fff; font-weight:700; font-size:13.5px; line-height:1.2; text-shadow:0 1px 5px rgba(0,0,0,.55); overflow-wrap:anywhere; }
.cat-chip:hover{ transform:translateY(-3px); box-shadow:0 12px 26px -14px rgba(33,28,22,.4); border-color:var(--accent,#3a3d44); }
.cat-chip--all{ align-items:center; justify-content:center; background:var(--surface2,#ececef); }
.cat-chip--all::after{ display:none; }
.cat-chip--all .cat-chip-label{ color:var(--accent,#3a3d44); text-shadow:none; }
@media (hover:none){ .cat-chip:hover{ transform:none; box-shadow:none; } }
@media (max-width:600px){
  .cat-strip{ grid-auto-columns:minmax(150px,64%); gap:10px; }
  .cat-chip{ min-height:78px; }
  .cat-strip-section{ padding-top:24px; }
}
@media (prefers-reduced-motion:reduce){ .cat-chip{ transition:none; } .cat-strip{ scroll-behavior:auto; } }

/* ═══ Чистая шапка на мобиле (без тикера). Чипы hero убраны (по просьбе). 2026-07-14 ═══
   Правила про сами телефоны отсюда удалены 2026-08-09: это было первое из трёх
   поколений, все они перебивались последним («2 телефона на мобиле — ВЫСОКАЯ
   специфичность» ниже по файлу). Осталось только то, что реально работает. */
@media (max-width:900px){
  .nav-top-inner{ justify-content:center; }
}
.hero-chips{ display:none !important; }

/* ═══ Блок «квадратики с товарами» (product-hits): сетка карточек товар+фото+цена. 2026-07-14 ═══ */
.hits-section{ padding-top:34px; }
.hits-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:16px; }
.hits-head h2{ font-size:clamp(20px,2.6vw,28px); font-weight:800; letter-spacing:-.02em; margin:0; }
.hits-all{ font-size:14px; font-weight:600; color:var(--text-muted,#6b6e74); white-space:nowrap; text-decoration:none; }
.hits-all:hover{ color:var(--accent,#3a3d44); }
.hits-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.hit-card{ display:flex; flex-direction:column; background:var(--surface,#fff); border:1px solid var(--border,#dcdcdf); border-radius:14px; overflow:hidden; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.hit-card:hover{ transform:translateY(-3px); box-shadow:0 12px 26px -14px rgba(33,28,22,.35); border-color:var(--accent,#3a3d44); }
.hit-img{ display:block; height:190px; background:var(--surface2,#ececef); }
.hit-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.hit-name{ padding:9px 11px 2px; font-size:12.5px; line-height:1.3; color:var(--text,#1d1f24); display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.5em; }
.hit-price{ padding:2px 11px 11px; font-weight:800; font-size:15px; color:var(--text,#1d1f24); margin-top:auto; }
@media (max-width:1100px){ .hits-grid{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:600px){ .hits-grid{ grid-template-columns:repeat(2,1fr); gap:10px; } .hits-section{ padding-top:24px; } }

/* ═══ Бегущая полоса акций (promo-marquee): горизонтальный бесшовный цикл,
   кликабельные пункты (ведут по сайту), пауза на ховере. 2026-07-14 ═══ */
.promo-marquee{ background:var(--accent-dark,#1d1f24); overflow:hidden; position:relative; }
.promo-marquee .mq-track{ display:flex; width:max-content; animation:mq-scroll 40s linear infinite; }
.promo-marquee:hover .mq-track{ animation-play-state:paused; }
.promo-marquee .mq-item{
  display:inline-flex; align-items:center; gap:8px; padding:9px 26px; flex:0 0 auto;
  font-size:13px; font-weight:600; color:#fff; white-space:nowrap; text-decoration:none;
  border-right:1px solid rgba(255,255,255,.12);
}
.promo-marquee .mq-item:hover{ text-decoration:underline; text-underline-offset:3px; }
.promo-marquee .mq-ico{ font-size:15px; line-height:1; }
@keyframes mq-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (max-width:600px){ .promo-marquee .mq-item{ padding:8px 18px; font-size:12.5px; } .promo-marquee .mq-track{ animation-duration:28s; } }
@media (prefers-reduced-motion:reduce){ .promo-marquee .mq-track{ animation:none; transform:none; } }

/* Единая высота карточек товаров (фикс высоты фото + резерв под имя) — ровная сетка. 2026-07-14 */
.hit-card{ height:100%; }
.hits-grid{ align-items:stretch; }
@media (max-width:600px){ .hit-img{ height:160px !important; } }

/* Сетка товаров категории без «в наличии» (подстолья/мойки): фото ЦЕЛИКОМ на белом (как у конкурента). 2026-07-14 */
.hits-grid--contain .hit-img{ background:#fff; }
.hits-grid--contain .hit-img img{ object-fit:contain; padding:10px; box-sizing:border-box; }

/* Бронебойный квадрат фото у .prod-card (aspect-ratio не всегда держится → карточки «кривые», особенно портретные фото подстолий). Форсируем квадрат. 2026-07-14 */
.prod-card-bg{ aspect-ratio:auto !important; height:0 !important; padding-top:100% !important; overflow:hidden; }
.prod-card-bg img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* карточки товара — единая высота тела (имя в 2 строки, кнопка снизу) */
.prod-card{ height:100%; }
.prod-card .prod-name{ display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.6em; }

/* Бейдж скидки + старая цена в квадратиках акций (sale-hits). 2026-07-14 */
.hit-img{ position:relative; }
.hit-badge{ position:absolute; left:8px; top:8px; z-index:2; background:#d23b3b; color:#fff; font-size:12px; font-weight:800; padding:3px 8px; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,.2); }
.hit-old{ color:var(--text-muted,#6b6e74); font-weight:600; font-size:12px; text-decoration:line-through; margin-left:6px; }

/* Плейсхолдер вместо битого фото товара (некоторые файлы фото отсутствуют на сервере). 2026-07-14 */
.hit-img, .prod-card-bg, .nevsky-product-img, .combo-card-photo { position:relative; }
.img-fallback{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:10px;
  background:var(--surface2,#ececef); color:var(--text-muted,#8a8a8a); font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; }

/* ═══ Лайки/избранное + 2 телефона в шапке (моб). 2026-07-14 ═══ */
.fav-btn-card{ position:absolute; right:8px; top:8px; z-index:3; width:34px; height:34px; border:none; border-radius:50%;
  background:rgba(255,255,255,.92); color:#9a9186; display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.16); transition:transform .15s ease, color .15s ease; padding:0; }
/* Тач-цель 44×44 при неизменном виде кружка 34px: расширяем область нажатия
   прозрачным псевдоэлементом, а не самой кнопкой (иначе белый круг занял бы
   четверть ширины плитки товара на телефоне). */
.fav-btn-card::after{ content:""; position:absolute; left:50%; top:50%; width:44px; height:44px;
  transform:translate(-50%,-50%); border-radius:50%; }
.fav-btn-card svg{ width:18px; height:18px; fill:currentColor; position:relative; }
.fav-btn-card:hover{ color:#d23b3b; }
.fav-btn-card.on{ color:#d23b3b; }
.fav-btn-card.pop{ transform:scale(1.25); }
.fav-btn-prod{ display:inline-flex; align-items:center; gap:8px; background:none; border:1px solid var(--border,#dcdcdf); border-radius:12px;
  padding:0.6rem 1rem; cursor:pointer; color:var(--text,#1d1f24); font-weight:600; font-family:inherit; font-size:.95rem; transition:.15s; }
.fav-btn-prod svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; }
.fav-btn-prod:hover{ border-color:#d23b3b; color:#d23b3b; }
.fav-btn-prod.on{ color:#d23b3b; border-color:#d23b3b; }
.fav-btn-prod.on svg{ fill:#d23b3b; stroke:#d23b3b; }
.fav-btn{ position:relative; display:inline-flex; align-items:center; justify-content:center; color:var(--text,#1d1f24); text-decoration:none; padding:6px; }
.fav-btn svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; }
.fav-btn:hover{ color:#d23b3b; }
.fav-counter{ position:absolute; top:-4px; right:-6px; background:#d23b3b; color:#fff; font-size:10px; font-weight:800; min-width:16px; height:16px; border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.fav-empty{ color:var(--text-muted,#6b6e74); font-size:15px; padding:1rem 0 2rem; }
.fav-item{ position:relative; }
.fav-remove{ background:none; border:none; color:var(--text-muted,#8a8a8a); font-size:12px; cursor:pointer; padding:4px 11px 11px; text-align:left; font-family:inherit; }
.fav-remove:hover{ color:#d23b3b; }

/* 2 телефона (Москва + СПб) с подписями в мобильной шапке.
   Второе поколение правил .nav-phone* удалено 2026-08-09 — его дословно
   перебивало третье (ниже, с более высокой специфичностью). Из него уцелело
   и осталось здесь только правило .nav-phones: в третьем поколении его нет. */
@media (max-width:900px){
  .nav-phones{ display:flex !important; gap:18px; justify-content:center; flex-wrap:wrap; overflow:visible; width:auto; }
}

/* 2 телефона на мобиле — ВЫСОКАЯ специфичность (перебить старое .nav-phone:not(.nav-phone-main){display:none}). 2026-07-14 */
@media (max-width:900px){
  .nav-top .nav-phones .nav-phone{ display:inline-flex !important; flex-direction:column; align-items:center; gap:0; border:none !important; background:none !important; padding:2px 6px; text-align:center; }
  .nav-top .nav-phones .nav-phone:nth-child(n+3){ display:none !important; }
  /* было 9px — ниже читаемого минимума */
  .nav-top .nav-phones .nav-phone .nav-phone-label{ display:block !important; font-size:11.5px; line-height:1.2; color:var(--text-muted,#6b6e74); text-transform:uppercase; letter-spacing:.02em; }
  .nav-top .nav-phones .nav-phone .nav-phone-num{ font-size:13px; font-weight:700; }
  .nav-top .nav-phones .nav-phone svg{ display:none !important; }
}

/* ═══ Сторис (Instagram-стиль): круглые обложки + полноэкранный просмотрщик. 2026-07-14 ═══ */
.stories-section{ padding-top:30px; }
.stories-row{ display:flex; gap:28px; overflow-x:auto; scrollbar-width:none; padding:4px 2px 14px; }
.stories-row::-webkit-scrollbar{ display:none; }
.story-cover{ flex:0 0 auto; background:none; border:none; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:12px; width:192px; padding:0; }
.story-ring{ width:180px; height:180px; border-radius:50%; padding:5px; background:linear-gradient(135deg,#B07D1E,#e6c079,#B07D1E); display:block; transition:transform .15s ease; }
.story-cover:hover .story-ring{ transform:scale(1.04); }
.story-cover.seen .story-ring{ background:var(--border,#dcdcdf); }
.story-cover-img{ display:block; width:100%; height:100%; border-radius:50%; background-size:cover; background-position:center; border:4px solid var(--bg,#f5f5f7); }
.story-title{ font-size:16px; font-weight:600; color:var(--text,#1d1f24); text-align:center; line-height:1.25; max-width:192px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:600px){
  .stories-row{ gap:18px; }
  .story-cover{ width:146px; gap:9px; }
  .story-ring{ width:138px; height:138px; padding:4px; }
  .story-title{ font-size:13px; max-width:146px; }
}
.st-viewer{ position:fixed; inset:0; z-index:1300; display:none; align-items:center; justify-content:center; background:rgba(10,8,6,.93); }
.st-viewer.open{ display:flex; }
.st-stage{ position:relative; width:min(420px,100vw); height:min(90vh,750px); background:#111; border-radius:14px; overflow:hidden; }
.st-img{ position:absolute; inset:0; background-size:cover; background-position:center; }
.st-stage::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.4),transparent 26%,transparent 52%,rgba(0,0,0,.82)); pointer-events:none; }
.st-bars{ position:absolute; top:10px; left:10px; right:10px; z-index:4; display:flex; gap:4px; }
.st-bar{ flex:1; height:3px; border-radius:2px; background:rgba(255,255,255,.35); overflow:hidden; }
.st-bar.done i{ width:100%; } .st-bar i{ display:block; height:100%; width:0; background:#fff; }
@keyframes st-fill{ from{width:0} to{width:100%} }
.st-close{ position:absolute; top:15px; right:12px; z-index:5; width:36px; height:36px; border:none; background:rgba(0,0,0,.35); color:#fff; font-size:24px; line-height:1; border-radius:50%; cursor:pointer; }
.st-body{ position:absolute; left:0; right:0; bottom:0; z-index:3; padding:22px; color:#fff; }
.st-body .st-t{ font-size:22px; font-weight:800; letter-spacing:-.01em; margin-bottom:8px; text-shadow:0 1px 6px rgba(0,0,0,.55); }
.st-body .st-x{ font-size:15px; line-height:1.45; color:rgba(255,255,255,.92); margin-bottom:16px; text-shadow:0 1px 6px rgba(0,0,0,.55); }
.st-cta{ display:inline-block; background:#fff; color:#1B1714; font-weight:700; padding:12px 26px; border-radius:12px; text-decoration:none; }
.st-cta:hover{ background:#f0ece4; }
.st-nav{ position:absolute; top:0; bottom:0; width:35%; z-index:2; background:none; border:none; cursor:pointer; }
.st-prev{ left:0; } .st-next{ right:0; }
@media (max-width:600px){ .st-stage{ width:100vw; height:100vh; height:100dvh; border-radius:0; } }
@media (prefers-reduced-motion:reduce){ .st-bar i{ animation:none !important; } .story-cover:hover .story-ring{ transform:none; } }

/* ═══════════ Пересборка блока «Соберите комплект» (страница товара) — 2026-08-08 ═══════════ */
.combo { gap: 1.1rem 1.6rem; }
.combo-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 0.7rem; align-items: stretch; }
.combo .combo-card { height: 100%; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; }
.combo .combo-card:hover { border-color: rgba(201,169,106,0.6); background: rgba(255,255,255,0.07); }
.combo .combo-card--base { background: rgba(201,169,106,0.10); border-color: rgba(201,169,106,0.35); }
.combo-card-photo { aspect-ratio: 1 / 1; background: #fff; border-bottom: none; }
.combo-card-photo img { padding: 0.6rem; }
.combo-card-photo-ph { font-size: 0.7rem; color: #b0aca3; }
.combo .combo-card-body { padding: 0.7rem 0.85rem 0.8rem; gap: 0.15rem; }
.combo .combo-card-label { font-size: 0.6rem; letter-spacing: 0.09em; margin-bottom: 0.3rem; }
.combo .combo-card-name { font-size: 0.85rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.1em; }
.combo .combo-card-price { font-size: 0.98rem; margin-top: 0.3rem; }
.combo .combo-card-base-tag,
.combo-card-add { margin-top: auto; padding-top: 0.55rem; border-top: 1px solid rgba(255,255,255,0.1); }
.combo .combo-card-select { margin-bottom: 0.4rem; padding: 0.4rem 1.7rem 0.4rem 0.55rem; font-size: 0.8rem; }
.combo .combo-card--corner .combo-card-photo { background: #f3f0e9; }
.combo .combo-card--corner .combo-card-photo-ph { width: 44%; border: 3px solid #bfa05a; }
.combo .combo-card--corner .combo-card-photo-ph::after { color: #a8863f; }
/* тоже отскоплено на .combo — см. комментарий у первого блока .combo .combo-summary */
.combo .combo-summary { background: #fff; color: var(--text); border-radius: 16px; padding: 1.1rem 1.15rem; gap: 0.65rem; box-shadow: 0 12px 34px rgba(0,0,0,0.22); border-top: none; }
.combo .combo-summary-label { color: var(--text-muted); }
.combo .combo-summary-total { color: var(--text); font-size: clamp(1.4rem, 3.4vw, 1.85rem); flex-wrap: wrap; gap: 0.45rem; }
.combo .combo-summary-disc { background: #1f7a34; color: #fff; }
.combo-add { align-self: stretch; width: 100%; justify-content: center; padding: 0.85rem 1rem; }
.combo-note { color: var(--text-muted); }
@media (min-width: 1000px) {
  .combo .combo-summary { border-left: none; padding: 1.15rem 1.2rem; position: sticky; top: 88px; }
}
@media (max-width: 620px) {
  .combo-grid { grid-auto-flow: column; grid-auto-columns: 64%; grid-template-columns: none; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; }
  .combo .combo-card { scroll-snap-align: start; }
}

/* ── Ссылки в теле статьи ─────────────────────────────────────────────
   Перебиваем глобальный сброс `a { color: inherit; text-decoration: none }`
   (site.css ~стр.31): перелинковка статей вставляет голые <a href="/catalog/…">
   без класса, поэтому без этого блока ссылки визуально неотличимы от текста.
   --accent (#3a3d44) почти равен --text (#1d1f24) → основной сигнал = подчёркивание. */
.article-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(58, 61, 68, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.article-body a:hover,
.article-body a:focus-visible {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}
/* Картинки-ссылки и кнопки внутри статьи не должны получать подчёркивание */
.article-body a:has(img),
.article-body a.btn,
.article-body a.button {
  text-decoration: none;
  font-weight: inherit;
}

/* ── Иллюстрации в статьях ─────────────────────────────────────────────
   Вставляются в body_html как <figure class="article-figure">.
   aspect-ratio задан жёстко: реальные размеры файлов неизвестны, без него
   картинки грузятся лениво и дёргают вёрстку (CLS). */
.article-figure {
  margin: 2.2rem 0;
}
.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface2);
}
.article-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}
/* Обложка статьи — тот же язык, но крупнее и без подписи */
.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.8rem;
  background: var(--surface2);
}
@media (max-width: 600px) {
  .article-figure { margin: 1.6rem 0; }
  .article-figure img { aspect-ratio: 4 / 3; }
  .article-cover { aspect-ratio: 3 / 2; margin-bottom: 1.2rem; }
}

/* ── Страница статьи: мета, оглавление, CTA, «читайте также» ───────────── */
.article-meta {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--text-muted); margin: 0.35rem 0 0;
}

/* Оглавление — главный инструмент удержания: читатель сразу видит,
   что вопрос разобран целиком, и прыгает к нужному разделу. */
.article-toc {
  /* Защита от глобального правила на голый тег `nav` (position:sticky/z-index:100/
     backdrop-filter). Разметка теперь <div>, но сброс оставлен намеренно: если блок
     когда-нибудь вернут в <nav>, он не прилипнет к верху и не накроет шапку. */
  position: static;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
  background: var(--surface2);
  border: 1px solid rgba(127, 127, 127, 0.18);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 0 0 2rem;
}
.article-toc-title {
  margin: 0 0 0.6rem; font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
}
.article-toc ol { margin: 0; padding-left: 1.2rem; }
.article-toc li { margin-bottom: 0.35rem; }
.article-toc li:last-child { margin-bottom: 0; }
.article-toc a { color: var(--accent); text-decoration: none; font-weight: 500; }
.article-toc a:hover { text-decoration: underline; }
/* Якорь не должен уезжать под липкую шапку */
.article-body h2[id] { scroll-margin-top: 96px; }

.article-cta {
  margin-top: 2.5rem;
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  text-align: center;
}
.article-cta h2 { margin: 0 0 0.5rem; }
.article-cta p { color: var(--text-muted); margin: 0 auto 1.2rem; max-width: 520px; }
.article-cta .btn { margin: 0.25rem 0.3rem; }

.article-related { max-width: 1100px; margin: 3rem auto 0; }
.article-related > h2 { text-align: center; margin-bottom: 1.2rem; }
.article-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.article-related-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid rgba(127, 127, 127, 0.2);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.article-related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-related-card img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  background: var(--surface2);
}
.article-related-card span {
  display: block; padding: 0.8rem 0.9rem; font-weight: 600; line-height: 1.35;
}
@media (max-width: 900px) {
  .article-related-grid { grid-template-columns: 1fr 1fr; }
  .article-related-card:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
  .article-related-grid { grid-template-columns: 1fr; }
  .article-related-card:nth-child(3) { display: block; }
  .article-toc { padding: 0.9rem 1rem; }
}

/* ═══ HERO PROMO-BANNER: только десктоп ══════════════════════════════════════
   Блок акции с обратным отсчётом (.promo-banner в hero) показываем только на
   широких экранах. На узких .hero схлопывается в одну колонку (см. правило
   выше на 900px), баннер уезжает под текст и занимает целый экран, оттесняя
   кнопки CTA — на телефоне это только мешает. Порог 900px — тот же, что и у
   остальной мобильной вёрстки проекта.
   Скрываем контейнер целиком: слайды/точки/таймер внутри тоже не рендерятся.
   JS обратного отсчёта в site.js при этом просто крутится вхолостую —
   правок в JS не требуется. Правило намеренно в самом конце файла: та же
   специфичность, что у базового .promo-banner, выигрывает порядком следования.
   ВАЖНО: .promo-marquee (бегущая строка акций) — другой блок, его не трогаем. */
@media (max-width: 900px) {
  .promo-banner { display: none; }
}

/* ═══ ОФФЕР В СТАТЬЯХ И СВЯЗЬ (mrs-*, добавлено 02.09.2026) ═══════════════════
   Префикс mrs- взят намеренно: в файле уже были коллизии по «занятым» классам
   (.promo-slide, голый тег nav), поэтому новые блоки живут в своём пространстве
   имён и ничего не наследуют случайно.
   Задача блока: статьи дают 90% входов на сайт, но это люди с конкретной
   задачей (распилить, защитить торец, собрать стойку), а не «купить столешницу
   вообще». Оффер под тему + мессенджер + связь под большим пальцем. */

.mrs-offer {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.mrs-msg {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.6rem; margin-top: 1.3rem; padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.mrs-msg-label {
  flex-basis: 100%; text-align: center;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.15rem;
}
.mrs-msg-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.88rem; line-height: 1;
  padding: 0.65rem 1.15rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;               /* тап-таргет: половина трафика — смартфоны */
}
.mrs-msg-btn::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none;
}
.mrs-wa::before { background: #25d366; }
.mrs-tg::before { background: #2aabee; }
.mrs-msg-btn:hover {
  color: var(--text); border-color: var(--accent);
  transform: translateY(-1px); box-shadow: var(--shadow);
}
.mrs-msg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Липкая панель связи: только на узких экранах ── */
.mrs-bar { display: none; }
@media (max-width: 720px) {
  .mrs-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 0.4rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(245, 245, 247, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .mrs-bar-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
    font-family: var(--font); font-weight: 700; font-size: 0.85rem; line-height: 1;
    min-height: 46px; padding: 0 0.5rem; border-radius: 50px;
    border: 1.5px solid var(--border); background: var(--surface);
    color: var(--text); text-decoration: none; cursor: pointer;
    white-space: nowrap;
  }
  .mrs-bar-ico { font-size: 0.95rem; }
  .mrs-bar-wa { border-color: #25d366; }
  .mrs-bar-main {
    background: var(--accent); color: #fff; border-color: var(--accent);
    box-shadow: 0 4px 18px rgba(29, 31, 36, 0.32);
  }
  .mrs-bar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Панель перекрывала бы «Все статьи» и подвал — освобождаем место. */
  #page-article-detail { padding-bottom: 4.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mrs-msg-btn { transition: none; }
}

/* ── Раздел-услуга (распил): содержимое вместо «нет товаров» ── */
.mrs-svc { padding: 0.5rem 0 2rem; }
.mrs-svc-h {
  font-family: var(--font-display); font-size: 1.5rem;
  margin: 1.6rem 0 1rem;
}
.mrs-svc-h:first-child { margin-top: 0.5rem; }
.mrs-svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem;
}
.mrs-svc-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem;
}
.mrs-svc-item b { display: block; margin-bottom: 0.3rem; font-size: 0.98rem; }
.mrs-svc-item span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.mrs-svc-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.7rem; }
.mrs-svc-steps li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.mrs-svc-steps li b { color: var(--text); }
.mrs-svc-note {
  margin: 1.6rem 0 0; padding: 1rem 1.2rem;
  background: var(--surface2); border-radius: var(--radius-sm);
  font-size: 0.92rem; line-height: 1.6; color: var(--text-muted);
}
.mrs-svc-note b { color: var(--text); }
.mrs-svc-cta {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
}

/* ── .btn-secondary: класса не существовало ───────────────────────────────────
   В шаблонах он используется в 4 местах (в статьях — вторая кнопка призыва и
   «Все статьи», на главной и в разделе-услуге), но правила под него в файле не
   было ни одного. Из-за этого вторая кнопка во всех 184 статьях выводилась
   голым текстом без рамки — визуально не читалась как кнопка вообще.
   Приводим к виду .btn-outline, который в проекте уже принят за вторичный. */
.btn-secondary {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ── Обрезки: страница-запрос вместо тупика ── */
.mrs-trim { max-width: 880px; margin: 0 auto; }
.mrs-trim-lead { color: var(--text-muted); font-size: 1rem; line-height: 1.65; margin: 0 0 0.5rem; }
.mrs-trim-alt {
  margin: 1.6rem 0 0; font-size: 0.92rem; color: var(--text-muted);
}
.mrs-trim-alt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.mrs-trim-alt a:hover { color: var(--accent); }
.mrs-svc-lead { color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; margin: 0; }
.mrs-svc-lead a, .mrs-svc-item a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.mrs-svc-lead a:hover, .mrs-svc-item a:hover { color: var(--accent); }

/* ── Прайс на работы в разделе-услуге ── */
.mrs-price-wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem; align-items: start;   /* иначе короткая таблица растягивается по высоте соседней и строки разъезжаются */
}
.mrs-price {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.mrs-price caption {
  text-align: left; font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1rem; background: var(--surface2); color: var(--text);
}
.mrs-price th {
  text-align: left; font-weight: 400; font-size: 0.92rem; color: var(--text);
  padding: 0.6rem 1rem; border-top: 1px solid var(--border);
}
.mrs-price td {
  text-align: right; white-space: nowrap; padding: 0.6rem 1rem;
  border-top: 1px solid var(--border); font-size: 0.92rem;
}
.mrs-price td b { font-weight: 700; }
.mrs-price td span { color: var(--text-muted); font-size: 0.82rem; display: block; }
@media (max-width: 420px) {
  .mrs-price th, .mrs-price td { padding: 0.55rem 0.7rem; font-size: 0.87rem; }
}

/* ── Мессенджеры в верхней панели шапки (03.09.2026) ──────────────────────────
   Есть на каждой странице. На узких экранах .nav-top-extra скрывается целиком
   (правила ниже по файлу), поэтому этот блок специально ЖИВЁТ ОТДЕЛЬНО от него
   и на мобильном остаётся — просто без подписей, одними иконками. */
.mrs-head-msg {
  display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem;
}
.mrs-head-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 26px; padding: 0 0.7rem; border-radius: 50px;
  font-family: var(--font); font-size: 0.72rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  border: 1.5px solid var(--border); background: var(--surface);
  white-space: nowrap; transition: border-color 0.18s, color 0.18s;
}
.mrs-head-btn svg { flex: none; }
.mrs-head-wa svg { color: #25d366; }
.mrs-head-tg svg { color: #2aabee; }
.mrs-head-btn:hover { color: var(--text); border-color: var(--accent); }
.mrs-head-wa:hover { border-color: #25d366; }
.mrs-head-tg:hover { border-color: #2aabee; }
.mrs-head-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  /* Шапка на мобильном центрирует содержимое и переносит строки; фиксированная
     высота 40px обрезала бы вторую строку — снимаем её именно здесь. */
  .nav-top-inner { height: auto; min-height: 40px; padding: 5px 0; gap: 0.6rem; }
  .mrs-head-msg { margin-left: 0; gap: 0.4rem; }
  .mrs-head-btn { height: 30px; padding: 0 0.75rem; font-size: 0.74rem; }
}
@media (max-width: 420px) {
  .mrs-head-btn span { display: none; }   /* остаются иконки — экран уже занят телефонами */
  .mrs-head-btn { padding: 0 0.6rem; }
  .mrs-head-btn svg { width: 17px; height: 17px; }
}

/* ── Верхняя панель: перенос строки не должен ничего прятать ───────────────────
   У .nav-top-inner была жёсткая height:40px при flex-wrap:wrap. Как только
   содержимое переставало помещаться в строку, перенесённая часть оказывалась
   НИЖЕ контейнера и уходила под .nav-bottom — визуально исчезала. Проверено
   замером: на 1100–1300px ссылки «О компании / Доставка / Контакты» рисовались
   на y≈103 при панели высотой до y=79, то есть под следующим рядом шапки.
   Кнопки мессенджеров добавили ширины и сдвинули этот порог выше, поэтому
   высоту снимаем: пусть панель растёт, но ничего не теряет. */
.nav-top-inner {
  height: auto;
  min-height: 40px;
  padding: 3px 0;
  align-content: center;
  row-gap: 2px;
}
/* На средних экранах подписи у мессенджеров лишние — иконки узнаются и так,
   а 120 сэкономленных пикселей часто спасают строку от переноса. */
@media (max-width: 1700px) and (min-width: 901px) {
  .mrs-head-btn span { display: none; }
  .mrs-head-btn { padding: 0 0.6rem; }
  .mrs-head-btn svg { width: 17px; height: 17px; }
}
