/* ============================================================
   Ai-Dent — общие стили
   ============================================================ */

   :root {
    --bg:          #f4f3f2;
    --bg-deep:     #e8e6e5;
    --surface-glass: rgba(255, 255, 255, 0.65);
    --surface-hover: rgba(255, 255, 255, 0.85);
    --surface-solid: #ffffff;
    
    --border-glass:  rgba(255, 255, 255, 0.85);
    --border-soft:   rgba(15, 20, 28, 0.08);
    --border-strong: rgba(15, 20, 28, 0.18);
  
    --text:        #0f1419;
    --text-soft:   #2c323b;
    --muted:       #525c6d;
    --muted-light: #8a94a6;
  
    --accent:      #0f1419;
    --accent-hover:  #1e252f;
    --success:     #0d7a3f;
  
    --radius-lg:   28px;
    --radius-md:   20px;
    --radius-sm:   12px;
    --radius-pill: 999px;
  
    --shadow-glass:  0 16px 40px rgba(15, 20, 28, 0.07), 0 4px 12px rgba(15, 20, 28, 0.03);
    --shadow-hover:  0 24px 50px rgba(15, 20, 28, 0.12), 0 8px 20px rgba(15, 20, 28, 0.05);
  
    --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  
  body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
      radial-gradient(circle at 50% 35%, rgba(170, 175, 185, 0.45) 0%, rgba(200, 205, 215, 0.2) 45%, transparent 70%),
      radial-gradient(circle at 20% 20%, rgba(225, 228, 235, 0.8) 0%, transparent 50%),
      radial-gradient(circle at 80% 60%, rgba(195, 200, 208, 0.28) 0%, transparent 55%),
      #f4f3f2;
  }
  
  .bg::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    pointer-events: none;
  }
  
  .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='[http://www.w3.org/2000/svg'%3E%3Cfilter](http://www.w3.org/2000/svg'%3E%3Cfilter) id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
  }
  
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button { font: inherit; cursor: pointer; border: none; background: none; }
  input, select, textarea { font: inherit; }
  
/* ============ HEADER (выровненный) ============ */
.header {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
    padding: 0 32px;
    position: relative;
    z-index: 40;
  }
  
  .header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .header__logo img {
    height: 30px;
    width: auto;
    display: block;
  }
  
  .header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 auto;
  }
  .header__nav a {
    color: #5c6370;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    line-height: 1;
    transition: color 0.2s;
  }
  .header__nav a:hover { color: #0f1419; }
  
  .header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }
  
  .header__user {
    font-size: 13px;
    font-weight: 600;
    color: #5c6370;
    white-space: nowrap;
  }
  
  .header__auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
  }
  .header__auth:hover { background: #1e252f; }
  
  .header__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    border: 1px solid #e8eaee;
    color: #0f1419;
    transition: background 0.2s;
  }
  .header__cart:hover { background: #fff; }
  .header__cart svg { width: 19px; height: 19px; }
  
  .header__actions form { display: inline-flex; margin: 0; }
  
  @media (max-width: 960px) {
    .header { height: 60px; padding: 0 16px; gap: 16px; }
    .header__nav { display: none; }
    .header__logo img { height: 26px; }
    .header__user { display: none; }
  }
  /* ============================================================
     HERO, SEARCH & WHITE BLUR GLOW
     ============================================================ */
  .hero {
    position: relative;
    padding: 24px 24px 0;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    isolation: isolate;
  }
  
  .hero__tooth {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -25%);
    width: min(730px, 95vw);
    height: min(730px, 95vw);
    z-index: 0;
    pointer-events: none !important;
    opacity: 0.88; 
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 90%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 90%);
  }
  .hero__tooth img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none !important;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.08));
  }
  
  .hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    padding-top: 20px;
  }
  
  .hero__title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 32px;
    background: linear-gradient(
        105deg,
        #000000 0%,
        #080a0d 18%,
        #252a32 38%,
        #7b8491 58%,
        #272f3b 70%,
        #8a929e 82%,
        #171a1f 100%
      );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: 
      drop-shadow(0 2px 4px rgba(255, 255, 255, 1)) 
      drop-shadow(0 0 20px rgba(255, 255, 255, 1))
      drop-shadow(0 0 40px rgba(255, 255, 255, 0.95));
  }
  
  .search-block-glow {
    position: relative;
    max-width: 960px;
    margin: 0 auto 250px; 
    padding: 24px 30px;
    background: transparent;
  }
  
  .search-block-glow::before {
    content: "";
    position: absolute;
    inset: -20px -30px;
    z-index: -1;
    pointer-events: none !important;
    background: radial-gradient(
      ellipse at center, 
      rgba(244, 243, 242, 0.85) 20%, 
      rgba(244, 243, 242, 0.3) 50%, 
      rgba(244, 243, 242, 0) 80%
    );
  }
  
  .search-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto 18px;
    z-index: 1;
  }
  
  .search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 24px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
      0 10px 24px -4px rgba(15, 20, 28, 0.19),
      0 4px 10px rgba(15, 20, 28, 0.09);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .search:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
      0 14px 32px -4px rgba(15, 20, 28, 0.14),
      0 6px 14px rgba(15, 20, 28, 0.05);
  }
  
  .search:focus-within {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 
      0 16px 36px -4px rgba(15, 20, 28, 0.16),
      0 0 0 3px rgba(15, 20, 28, 0.06);
  }
  
  .search__icon {
    flex-shrink: 0;
    color: #0f1419;
    display: flex;
    align-items: center;
  }
  
  .search__icon svg {
    width: 22px;
    height: 22px;
  }
  
  .search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    font-weight: 700;
    color: #0f1419;
    padding: 10px 4px;
    letter-spacing: -0.015em;
    min-width: 0;
  }
  
  .search input:focus {
    outline: none;
  }
  
  .search input::placeholder {
    color: #525c6d;
    font-weight: 600;
  }
  
  .search button[type="submit"],
  .search__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    background: #0f1419;
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 20, 28, 0.15);
  }
  
  .search button[type="submit"]:hover,
  .search__actions button:hover {
    background: #252d3a;
    transform: scale(1.04);
  }
  
  .search button[type="submit"] svg,
  .search__actions button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
  }
  
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 10;
  }
  
  .chip {
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: #0f1419;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: -0.01em;
    box-shadow: 
      0 6px 16px -2px rgba(15, 20, 28, 0.18),
      0 2px 6px rgba(15, 20, 28, 0.09);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
  }
  
  .chip:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #000000;
    box-shadow: 
      0 10px 22px -2px rgba(15, 20, 28, 0.12),
      0 4px 10px rgba(15, 20, 28, 0.05);
  }
  
  .chip:focus-visible,
  .chip:active {
    transform: translateY(0);
    background: #ffffff;
    box-shadow: 
      0 4px 12px -2px rgba(15, 20, 28, 0.10),
      0 0 0 3px rgba(15, 20, 28, 0.06);
    outline: none;
  }
  
  /* ============================================================
     CATALOG SECTION & CARDS
     ============================================================ */
  .catalog-block {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    margin: 330px auto 100px;
    padding: 0 24px;
  }
  
  .catalog-block__head {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(15, 20, 28, 0.08), 0 0 20px rgba(255, 255, 255, 0.8);
  }
  
  .catalog-block__head h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    color: #0f1419;
  }
  
  .catalog-block__head .muted {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-glass);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.28s ease;
    display: flex;
    flex-direction: column;
  }
  
  .card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-hover);
  }
  
  .card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: rgba(230, 234, 240, 0.5);
    overflow: hidden;
  }
  
  .card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(15, 20, 28, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  
  .card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }
  
  .card__brand {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  .card__name {
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: #0f1419;
  }
  
  .card__foot {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 14px;
  }
  
  .card__price {
    font-size: 17.5px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f1419;
  }
  
  .card__stock {
    font-size: 12px;
    font-weight: 600;
  }
  
  .card__stock--in  { color: var(--success); }
  .card__stock--out { color: var(--muted); }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
  }
  
  .btn--ghost {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 14px rgba(15, 20, 28, 0.04);
  }
  
  .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-glass);
    transform: translateY(-2px);
  }
  
  .center {
    text-align: center;
    margin-top: 40px;
  }
  
  /* ============================================================
     CATALOG PAGE STYLES (LAYOUT & FILTERS)
     ============================================================ */
  .catalog-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    max-width: 1440px;
    margin: 32px auto 100px;
    padding: 0 24px;
  }
  
  .filters {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-glass);
    height: fit-content;
  }
  
  .filters h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  
  .filter-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .filter-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  .filter-group input[type="text"],
  .filter-group input[type="number"],
  .filter-group select,
  .toolbar select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-soft);
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
  }
  
  .filter-group input:focus,
  .filter-group select:focus,
  .toolbar select:focus {
    border-color: var(--text);
    background: #ffffff;
  }
  
  .price-row {
    display: flex;
    gap: 10px;
  }
  
  .filter-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }
  
  .filter-group--checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
  }
  
  .filter-group--checkbox label {
    text-transform: none;
    font-size: 14px;
    letter-spacing: normal;
    cursor: pointer;
  }
  
  .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(15, 20, 28, 0.03);
  }
  
  .toolbar .muted {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
  }
  
  .toolbar select {
    width: auto;
    padding: 8px 12px;
  }
/* ============================================================
   КАТЕГОРИИ — ЛЕНДИНГ
   ============================================================ */

   .cat-section {
    position: relative;
  
    max-width: 1080px;
  
    margin: 0 auto 30px auto;
  
    padding: 10px 20px 20px 20px;
  
    border-top: 2px solid #0f1419;
  
    overflow: hidden;
  }
  
  
  /* ============================================================
     ЛИНИЯ В КОНЦЕ
     ============================================================ */
  
  .catalog-end-line {
    max-width: 1080px;
  
    margin: 0 auto 40px auto;
  
    border-top: 2px solid #0f1419;
  }
  
  
  /* ============================================================
     META
     ============================================================ */
  
  .cat-section__meta {
    display: flex;
  
    align-items: center;
  
    gap: 14px;
  
    margin-bottom: 8px;
  }
  
  .cat-section__number {
    font-size: 11px;
  
    font-weight: 700;
  
    letter-spacing: 0.12em;
  
    color: #697382;
  }
  
  .cat-section__label {
    font-size: 9px;
  
    font-weight: 700;
  
    letter-spacing: 0.28em;
  
    color: #8a939f;
  }
  
  
  /* ============================================================
     ШАПКА
     ============================================================ */
  
  .cat-section__head {
    display: flex;
  
    align-items: flex-end;
  
    justify-content: space-between;
  
    width: 100%;
  
    margin-bottom: 12px;
  }
  
  
  /* ============================================================
     INFO
     ============================================================ */
  
  .cat-section__info {
    display: flex;
  
    flex-direction: column;
  
    gap: 4px;
  }
  
  
  /* ============================================================
     ЗАГОЛОВОК
     ============================================================ */
  
  .cat-section__title {
    font-size: clamp(28px, 3.5vw, 38px);
  
    font-weight: 900;
  
    color: #0f1419;
  
    letter-spacing: -0.04em;
  
    line-height: 1;
  
    margin: 0;
  }
  
  
  /* ============================================================
     ВСЕ...
     ============================================================ */
  
  .cat-more-btn {
    color: #0f1419;
  
    font-size: 12px;
  
    font-weight: 700;
  
    text-transform: uppercase;
  
    letter-spacing: 0.05em;
  
    text-decoration: underline;
  
    text-underline-offset: 3px;
  
    white-space: nowrap;
  
    transition:
      opacity 0.2s ease;
  
    width: fit-content;
  }
  
  .cat-more-btn:hover {
    opacity: 0.6;
  }
  
  
  /* ============================================================
     ОБЫЧНЫЕ ПАНЕЛИ
     ============================================================ */
  
  .cat-panel {
    display: block;
  }
  
  
  /* ============================================================
     ОБЫЧНАЯ СЕТКА
     ============================================================ */
  
  .cat-grid {
    display: grid;
  
    grid-template-columns:
      repeat(4, 1fr);
  
    gap: 12px;
  }
  
  
  /* ============================================================
     ОБЫЧНЫЕ КАРТОЧКИ
     ============================================================ */
  
  .cat-section .cat-grid .card {
    border-radius: 0 !important;
  
    min-height: 120px;
  
    background: #ffffff !important;
  
    backdrop-filter: none !important;
  
    -webkit-backdrop-filter: none !important;
  
    border: 1px solid
      rgba(15, 20, 28, 0.1);
  
    box-shadow: none;
  }
  
  .cat-section .cat-grid .card:hover {
    transform: none;
  
    background: #ffffff !important;
  
    box-shadow:
      0 6px 16px
      rgba(15, 20, 28, 0.08);
  }
  
  .cat-section .cat-grid .card__body {
    padding: 10px 12px;
  }
  
  .cat-section .cat-grid .card__name {
    font-size: 12px;
  }
  
  .cat-section .cat-grid .card__price {
    font-size: 14px;
  }
  
  
  /* ============================================================
     EMPTY
     ============================================================ */
  
  .cat-section .cat-grid .empty {
    grid-column: 1 / -1;
  
    color: var(--muted);
  
    font-weight: 600;
  
    padding: 16px 4px;
  }
  
  
  /* ============================================================
     ============================================================
     PREMIUM — ОПТИКА
     ============================================================
     ============================================================ */
  
     .cat-section--feature {
        padding-top: 0;
      
        padding-bottom: 0;
      
        background: transparent;
      
        border-top-color: #0f1419;
      
        isolation: isolate;
      
        margin-bottom: 0;
      }
      
      
      /* ============================================================
         ПАНЕЛЬ
         ============================================================ */
      
      .cat-panel--feature {
        position: relative;
      
        min-height: 370px;
      
        margin-top: 0;
      
        overflow: hidden;
      
        border-top: none;
      
        border-bottom: none;
      }
      
      
      /* ============================================================
         СВЕТЯЩИЕСЯ ЛИНИИ
         ============================================================ */
      
      .optics-light {
        position: absolute;
        pointer-events: none;
        border-radius: 50%;
        z-index: 1;
        opacity: 1;
        filter: blur(0.2px);
        left: 50%;
      }
      
      
      /* ------------------------------------------------------------
         ПЕРВАЯ ДУГА
         ------------------------------------------------------------ */
      
      .optics-light--one {
        width: clamp(600px, 65vw, 900px);
        height: clamp(360px, 38vw, 540px);
        top: clamp(-120px, -14vw, -205px);
      
        border: 2px solid rgba(255, 255, 255, 0.98);
        box-shadow:
          0 0 8px rgba(255,255,255,0.95),
          0 0 28px rgba(255,255,255,0.65),
          0 0 65px rgba(255,255,255,0.25);
      
        transform: translateX(-50%) rotate(-12deg);
      }
      
      
      /* ------------------------------------------------------------
         ВТОРАЯ ДУГА
         ------------------------------------------------------------ */
      
      .optics-light--two {
        width: clamp(700px, 78vw, 1100px);
        height: clamp(260px, 28vw, 390px);
        top: clamp(-90px, -10vw, -150px);
      
        border: 1.5px solid rgba(255,255,255,0.88);
        box-shadow:
          0 0 12px rgba(255,255,255,0.72),
          0 0 42px rgba(255,255,255,0.30);
      
        transform: translateX(-50%) rotate(-17deg);
      }
      
      
      /* ------------------------------------------------------------
         ТРЕТЬЯ ДУГА
         ------------------------------------------------------------ */
      
      .optics-light--three {
        width: clamp(640px, 70vw, 980px);
        height: clamp(320px, 35vw, 500px);
        top: clamp(-100px, -12vw, -175px);
      
        border: 2px solid rgba(100,108,116,0.24);
        box-shadow: 0 0 22px rgba(255,255,255,0.25);
      
        transform: translateX(-50%) rotate(8deg);
      }
      
      
      /* ============================================================
         CONTENT
         ============================================================ */
      
      .optics-content {
        position: relative;
      
        display: block;
      
        min-height: 300px;
      
        padding:
          0 30px;
      
        z-index: 5;
      }
      
      
      /* ============================================================
         COPY
         ============================================================ */
      
      .optics-copy {
        position: absolute;
      
        left: 30px;
      
        top: 72px;
      
        width: 430px;
      
        transform: none;
      
        text-align: left;
      
        z-index: 10;
      }
      
      
      /* ============================================================
         EYEBROW
         ============================================================ */
      
      .optics-eyebrow {
        margin-bottom: 8px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.22em;
        color: #282e35;
        text-shadow: 
          0 0 8px rgba(255, 255, 255, 0.9),
          0 0 16px rgba(255, 255, 255, 0.6);
      }
      
      
      /* ============================================================
         TITLE
         ============================================================ */
      
      .optics-heading {
        margin: 0 0 12px 0;
      
        font-size:
          clamp(58px, 7vw, 92px);
      
        line-height: 0.88;
      
        font-weight: 900;
      
        letter-spacing: -0.075em;
      
        color: #0d1319;
      }
      
      
      /* ============================================================
         DESCRIPTION
         ============================================================ */
      
      .optics-description {
        max-width: 310px;
        margin: 0 0 16px 0;
        font-size: 14px;
        line-height: 1.5;
        color: #353d44;
        text-shadow: 
          0 0 6px rgba(255, 255, 255, 0.85),
          0 0 12px rgba(255, 255, 255, 0.5);
      }
    
      
      /* ============================================================
         BUTTON
         ============================================================ */
      
      .optics-button {
        display: inline-flex;
      
        align-items: center;
      
        justify-content: space-between;
      
        gap: 35px;
      
        min-width: 205px;
      
        padding: 11px 15px;
      
        border:
          1px solid
          rgba(15,20,25,0.45);
      
        color: #10161c;
      
        font-size: 10px;
      
        font-weight: 700;
      
        text-transform: uppercase;
      
        letter-spacing: 0.12em;
      
        text-decoration: none;
      
        transition:
          background 0.3s ease,
          color 0.3s ease,
          border-color 0.3s ease;
      }
      
      .optics-button:hover {
        background: #10161c;
      
        color: #ffffff;
      
        border-color: #10161c;
      }
      
      .optics-button__arrow {
        font-size: 18px;
      
        line-height: 1;
      
        transition:
          transform 0.3s ease;
      }
      
      .optics-button:hover
      .optics-button__arrow {
        transform:
          translateX(5px);
      }
      
      
      /* ============================================================
         МИКРОСКОП
         ============================================================ */
      
      .optics-product {
        position: absolute;
      
        left: calc(50% + 85px);
      
        top: -43px;
      
        width: 550px;
      
        height: 450px;
      
        transform:
          translateX(-50%);
      
        display: flex;
      
        align-items: flex-start;
      
        justify-content: center;
      
        z-index: 4;
      
        pointer-events: none;
      }
      
      
      /* ============================================================
         САМО ИЗОБРАЖЕНИЕ
         ============================================================ */
      
      .optics-product img {
        position: relative;
      
        display: block;
      
        width: 580px;
      
        max-width: none;
      
        height: auto;
      
        object-fit: contain;
      
        filter:
          drop-shadow(
            0 22px 28px
            rgba(15,25,35,0.13)
          );
      
        mix-blend-mode: multiply;
      
        transition:
          transform 0.7s
          cubic-bezier(.2,.8,.2,1);
      }
      
      
      /* ============================================================
         ЛЁГКОЕ ДВИЖЕНИЕ
         ============================================================ */
      
      .cat-section--feature:hover
      .optics-product img {
        transform:
          scale(1.015);
      }
      
      
      /* ============================================================
         РЕШЕНИЯ
         ============================================================ */
      
      .optics-side {
        position: absolute;
      
        right: 25px;
      
        top: 82px;
      
        display: flex;
      
        flex-direction: column;
      
        gap: 13px;
      
        padding-left: 22px;
      
        z-index: 10;
      }
      
      
      /* ============================================================
         ЛИНИЯ
         ============================================================ */
      
      .optics-side__line {
        width: 1px;
      
        height: 42px;
      
        margin-bottom: 2px;
      
        background:
          rgba(15,20,25,0.55);
      }
      
      
      /* ============================================================
         ЗАГОЛОВОК РЕШЕНИЯ
         ============================================================ */
      
      .optics-side__title {
        margin-bottom: 4px;
      
        font-size: 10px;
      
        font-weight: 700;
      
        letter-spacing: 0.18em;
      
        text-transform: uppercase;
      
        color: #10161c;
      }
      
      
      /* ============================================================
         ВСЕ ПУНКТЫ ОДИНАКОВЫЕ
         ============================================================ */
      
      .optics-side__item {
        display: block;
      
        font-size: 12px;
      
        font-weight: 400;
      
        color: #8a95a2;
      
        text-decoration: none;
      
        white-space: nowrap;
      
        transition:
          color 0.25s ease,
          transform 0.25s ease;
      }
      
      .optics-side__item:hover {
        color: #737d88;
      
        transform:
          translateX(3px);
      }
      
      
      /* ============================================================
         ACTIVE
         ============================================================ */
      
      .optics-side__item.is-active {
        color: #8a95a2;
      
        font-weight: 400;
      }
      
      
      /* ============================================================
         СВЕТЯЩИЕСЯ ЛИНИИ ПО КАТЕГОРИЯМ
         ============================================================ */
      
      /* --- 02. НАКОНЕЧНИКИ --- */
      
      .cat-section[data-category="nakonechniki"] .optics-light--one {
        width: clamp(480px, 52vw, 720px);
        height: clamp(420px, 45vw, 600px);
        top: clamp(-150px, -16vw, -230px);
        transform: translateX(-50%) rotate(18deg);
      }
      
      .cat-section[data-category="nakonechniki"] .optics-light--two {
        width: clamp(550px, 62vw, 850px);
        height: clamp(200px, 22vw, 310px);
        top: clamp(-60px, -7vw, -100px);
        transform: translateX(-50%) rotate(5deg);
      }
      
      .cat-section[data-category="nakonechniki"] .optics-light--three {
        width: clamp(720px, 80vw, 1050px);
        height: clamp(280px, 30vw, 400px);
        top: clamp(-110px, -12vw, -160px);
        transform: translateX(-50%) rotate(-14deg);
      }
      
      
      /* --- 03. УСТАНОВКИ --- */
      
      .cat-section[data-category="ustanovki"] .optics-light--one {
        width: clamp(750px, 85vw, 1150px);
        height: clamp(220px, 24vw, 340px);
        top: clamp(-70px, -8vw, -120px);
        transform: translateX(-50%) rotate(-6deg);
      }
      
      .cat-section[data-category="ustanovki"] .optics-light--two {
        width: clamp(520px, 58vw, 780px);
        height: clamp(400px, 44vw, 580px);
        top: clamp(-140px, -15vw, -210px);
        transform: translateX(-50%) rotate(-25deg);
      }
      
      .cat-section[data-category="ustanovki"] .optics-light--three {
        width: clamp(600px, 68vw, 920px);
        height: clamp(350px, 38vw, 490px);
        top: clamp(-120px, -13vw, -180px);
        transform: translateX(-50%) rotate(16deg);
      }
      
      
      /* --- 04. ЦИФРОВОЙ ОТДЕЛ --- */
      
      .cat-section[data-category="skanery"] .optics-light--one {
        width: clamp(540px, 60vw, 820px);
        height: clamp(380px, 40vw, 550px);
        top: clamp(-130px, -14vw, -195px);
        transform: translateX(-50%) rotate(22deg);
      }
      
      .cat-section[data-category="skanery"] .optics-light--two {
        width: clamp(680px, 75vw, 1020px);
        height: clamp(290px, 31vw, 420px);
        top: clamp(-95px, -10vw, -145px);
        transform: translateX(-50%) rotate(-8deg);
      }
      
      .cat-section[data-category="skanery"] .optics-light--three {
        width: clamp(500px, 55vw, 750px);
        height: clamp(450px, 48vw, 620px);
        top: clamp(-160px, -18vw, -240px);
        transform: translateX(-50%) rotate(3deg);
      }
      
      
      /* ============================================================
         ТОВАРЫ ПО КАТЕГОРИЯМ
         ============================================================ */
      
      
      /* ============================================================
         НАКОНЕЧНИКИ — DESKTOP
         ============================================================ */
      
      .cat-section[data-category="nakonechniki"] .optics-product {
        position: absolute;
      
        left: 77%;
        right: auto;
      
        top: 3px;
      
        width: 420px;
        height: 450px;
      
        transform: translateX(-50%);
      
        display: flex;
        align-items: flex-start;
        justify-content: center;
      
        z-index: 4;
      }
      
      .cat-section[data-category="nakonechniki"] .optics-product img {
        width: 420px;
        max-width: none;
        height: auto;
      }
      
      
      /* ============================================================
         УСТАНОВКИ — DESKTOP
         ============================================================ */
      
      .cat-section[data-category="ustanovki"] .optics-product {
        left: 67%;
        top: -19px;
      
        width: 420px;
        height: 450px;
      
        transform: translateX(-50%);
      }
      
      .cat-section[data-category="ustanovki"] .optics-product img {
        width: 420px;
        max-width: none;
      }
      
      
      /* =========================
         MOBILE — УСТАНОВКИ
         ========================= */
      
      @media (max-width: 678px) {
      
        .cat-section[data-category="ustanovki"] .optics-product {
          left: 86% !important;
          top: -5px !important;
      
          width: 290px !important;
          height: 220px !important;
      
          transform: translateX(-50%) !important;
        }
      
        .cat-section[data-category="ustanovki"] .optics-product img {
          width: 290px !important;
          max-width: 290px !important;
          height: auto !important;
      
          transform: none !important;
        }
      
      }
      
      
      @media (min-width: 679px) and (max-width: 1100px) {
      
        .cat-section[data-category="ustanovki"] .optics-product {
          left: 78%;
          top: -19px;
        }
      
        .cat-section--feature .optics-side {
          display: none !important;
        }
      
      }
      
      
      /* ============================================================
         ЦИФРОВОЙ ОТДЕЛ — СКАНЕР
         ============================================================ */
      
      .cat-section[data-category="skanery"] .optics-product {
        position: absolute;
      
        left: 72%;
        right: auto;
      
        top: -19px;
      
        width: clamp(350px, 30vw, 420px);
        height: 450px;
      
        transform:
          translateX(-50%)
          rotate(90deg);
      
        display: flex;
        align-items: flex-start;
        justify-content: center;
      
        z-index: 4;
      }
      
      .cat-section[data-category="skanery"] .optics-product img {
        width: 100%;
        max-width: 420px;
        height: auto;
      }
      
      
      /* ============================================================
         DESKTOP
         ============================================================ */
      
      @media (min-width: 679px) {
      
        .cat-section {
          display: block;
        }
      
      }
      
      
      /* ============================================================
         MOBILE
         ============================================================ */
      
      @media (max-width: 678px) {
      
        .cat-section {
          max-width: 100%;
          margin-bottom: 8px;
          padding: 4px 16px;
        }
      
      
        /* ----------------------------------------------------------
           HEADER
           ---------------------------------------------------------- */
      
        .cat-section__head {
          align-items: center;
          margin-bottom: 0;
          padding: 16px 0;
        }
      
      
        /* ----------------------------------------------------------
           META
           ---------------------------------------------------------- */
      
        .cat-section__meta {
          gap: 9px;
          margin-bottom: 5px;
        }
      
        .cat-section__number {
          font-size: 9px;
        }
      
        .cat-section__label {
          font-size: 7px;
          letter-spacing: 0.2em;
        }
      
      
        /* ----------------------------------------------------------
           INFO
           ---------------------------------------------------------- */
      
        .cat-section__info {
          gap: 2px;
        }
      
      
        /* ----------------------------------------------------------
           TITLE
           ---------------------------------------------------------- */
      
        .cat-section__title {
          font-size: 20px !important;
        }
      
      
        /* ----------------------------------------------------------
           MORE
           ---------------------------------------------------------- */
      
        .cat-more-btn {
          font-size: 11px;
          text-transform: none;
          letter-spacing: normal;
        }
      
      
        /* ==========================================================
           PREMIUM OPTICS MOBILE
           ========================================================== */
      
        .cat-section--feature {
          padding: 0 16px;
          background: transparent;
          margin-bottom: 0;
        }
      
      
        /* ----------------------------------------------------------
           PANEL
           ---------------------------------------------------------- */
      
        .cat-panel--feature {
          min-height: 260px;
          margin-top: 0;
          border-top: none;
          border-bottom: none;
          overflow: hidden;
        }
      
      
        /* ----------------------------------------------------------
           СВЕТОВЫЕ ДУГИ
           ---------------------------------------------------------- */
      
        .optics-light--one {
          width: 85vw;
          height: 220px;
      
          left: 50%;
          top: -40px;
      
          transform:
            translateX(-50%)
            rotate(-10deg);
        }
      
        .optics-light--two {
          width: 95vw;
          height: 180px;
      
          left: 50%;
          top: -30px;
      
          transform:
            translateX(-50%)
            rotate(-15deg);
        }
      
        .optics-light--three {
          width: 90vw;
          height: 200px;
      
          left: 50%;
          top: -35px;
      
          transform:
            translateX(-50%)
            rotate(6deg);
        }
      
      
        /* ==========================================================
           CONTENT
           ========================================================== */
      
        .optics-content {
          min-height: 250px;
          padding: 0;
        }
      
      
        /* ----------------------------------------------------------
           COPY
           ---------------------------------------------------------- */
      
        .optics-copy {
          position: absolute;
      
          left: 16px;
          top: 50px;
      
          width: 300px;
      
          transform: none;
      
          text-align: left;
      
          z-index: 10;
        }
      
      
        /* ----------------------------------------------------------
           EYEBROW
           ---------------------------------------------------------- */
      
        .optics-eyebrow {
          font-size: 8px;
      
          letter-spacing: 0.16em;
      
          margin-bottom: 8px;
      
          color: #2b3137;
      
          text-shadow:
            0 0 8px rgba(255,255,255,0.9),
            0 0 14px rgba(255,255,255,0.55);
        }
      
      
        /* ----------------------------------------------------------
           BIG TITLE
           ---------------------------------------------------------- */
      
        .optics-heading {
          font-size: 56px;
          margin-bottom: 10px;
        }
      
      
        /* ----------------------------------------------------------
           DESCRIPTION
           ---------------------------------------------------------- */
      
        .optics-description {
          max-width: 260px;
      
          font-size: 12px;
      
          line-height: 1.45;
      
          margin: 0 0 15px 0;
      
          color: #2a3137;
      
          text-shadow:
            0 0 6px rgba(255,255,255,0.85),
            0 0 12px rgba(255,255,255,0.5);
        }
      
      
        /* ----------------------------------------------------------
           BUTTON
           ---------------------------------------------------------- */
      
        .optics-button {
          min-width: 190px;
      
          width: fit-content;
      
          padding: 10px 13px;
      
          font-size: 9px;
        }
      
      
        /* ==========================================================
           ТОВАР — БАЗА MOBILE
           ========================================================== */
      
        .optics-product {
          position: absolute;
      
          left: 72%;
          top: -16px;
      
          width: min(78vw, 350px);
          height: 320px;
      
          transform: translateX(-50%);
      
          display: flex;
          align-items: flex-start;
          justify-content: center;
        }
      
        .optics-product img {
          width: 100%;
          max-width: 350px;
      
          height: auto;
      
          transform: none;
        }
      
      
        /* ==========================================================
           MOBILE — НАКОНЕЧНИКИ NSK
           ========================================================== */
      
        .cat-section[data-category="nakonechniki"] .optics-product {
          position: absolute;
      
          left: 78% !important;
          top: 0px !important;
      
          width: 260px !important;
          height: 300px !important;
      
          transform: translateX(-50%) !important;
      
          display: flex;
          align-items: flex-start;
          justify-content: center;
      
          z-index: 4;
        }
      
        .cat-section[data-category="nakonechniki"] .optics-product img {
          width: 260px !important;
          max-width: 260px !important;
          height: auto !important;
      
          transform: none !important;
        }
      
      
        /* ==========================================================
           MOBILE — УСТАНОВКИ
           ========================================================== */
      
        .cat-section[data-category="ustanovki"] .optics-product {
          left: 74%;
          top: -10px;
      
          width: min(80vw, 340px);
      
          height: 310px;
      
          transform: translateX(-50%);
        }
      
        .cat-section[data-category="ustanovki"] .optics-product img {
          width: 100%;
          max-width: 340px;
        }
      
      
        /* ==========================================================
           MOBILE — СКАНЕРЫ
           ========================================================== */
      
        .cat-section[data-category="skanery"] .optics-product {
          left: 76%;
          top: -15px;
      
          width: min(78vw, 330px);
      
          height: 310px;
      
          transform:
            translateX(-50%)
            rotate(90deg);
        }
      
        .cat-section[data-category="skanery"] .optics-product img {
          width: 100%;
          max-width: 330px;
        }
      
      
        /* ----------------------------------------------------------
           HOVER
           ---------------------------------------------------------- */
      
        .cat-section--feature:hover .optics-product img {
          transform: scale(1.01);
        }
      
      
        /* ==========================================================
           РЕШЕНИЯ
           НА MOBILE УБИРАЕМ
           ========================================================== */
      
        .optics-side {
          display: none;
        }
      
      
        /* ==========================================================
           ОБЫЧНАЯ СЕТКА
           ========================================================== */
      
        .cat-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 8px;
        }
      
      
        /* ==========================================================
           ЛИНИЯ В КОНЦЕ
           ========================================================== */
      
        .catalog-end-line {
          max-width: calc(100% - 32px);
          margin-bottom: 20px;
        }
      
      }
    
    
    /* ============================================================
       ЦИФРОВОЙ ОТДЕЛ — после мобильных стилей, чтобы их перекрыть
       ============================================================ */
    
    
    /* ============================================================
       DESKTOP — СКАНЕР
       ============================================================ */
    
    @media (min-width: 679px) {
    
      .cat-section[data-category="skanery"] .optics-product {
        width: 450px;
        height: 450px;
      }
    
      .cat-section[data-category="skanery"] .optics-product img {
        width: 450px;
        max-width: 450px;
      }
    
    }
    
    
    /* ============================================================
       DESKTOP — ВЫСОТА РАЗДЕЛА
       ============================================================ */
    
    @media (min-width: 679px) {
    
      .cat-section[data-category="skanery"] .cat-panel--feature {
        min-height:410px;
      }
    
    }
    
    
    /* ============================================================
       MOBILE — СКАНЕР
       ============================================================ */
    
    @media (max-width: 678px) {
    
      .cat-section[data-category="skanery"] .optics-product {
        left: 88% !important;
      }
    
    }
    
    
    /* ============================================================
       MOBILE — ВЫСОТА РАЗДЕЛА
       ============================================================ */
    
    @media (max-width: 678px) {
    
      .cat-section[data-category="skanery"] .cat-panel--feature {
        min-height: 299px !important;
      }
    
    }

/* ============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================================ */

@media (max-width: 640px) {

  /* ---- ШАПКА / БУРГЕР-КНОПКА ---- */

  .header {
    height: 56px;
    padding: 0 14px;
    gap: 10px;
  }

  .header__logo img { height: 24px; }

  /* на телефоне вместо меню — #mobnav */
  .header__nav { display: none; }

  .header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid #e8eaee;
    background: rgba(255, 255, 255, .85);
    color: #0f1419;
  }

  .header__burger svg { width: 20px; height: 20px; }

  .header__actions {
    gap: 8px;
    margin-left: auto;
  }

  .header__user { display: none; }

  .header__auth {
    height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
  }

  .header__cart {
    width: 40px;
    height: 40px;
  }


  /* ---- МОБИЛЬНОЕ МЕНЮ — выезжающая панель ---- */

  .mobnav {
    position: fixed;
    inset: 0;
    z-index: 210;
  }

  .mobnav[hidden] { display: none; }

  .mobnav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 28, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: mobnavFadeIn .25s ease;
  }

  .mobnav__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82vw;
    max-width: 340px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 60px rgba(15, 20, 28, .22);
    animation: mobnavSlideIn .3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobnavFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes mobnavSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }

  .mobnav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid #e8eaee;
  }

  .mobnav__logo { display: flex; align-items: center; }
  .mobnav__logo img { height: 24px; width: auto; display: block; }

  .mobnav__x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: none;
    background: rgba(15, 20, 28, .06);
    color: #0f1419;
    font-size: 16px;
  }

  .mobnav__links {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    overflow-y: auto;
  }

  .mobnav__links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 13px 10px;
    color: #17222c;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    border-bottom: 1px solid #f0f1f4;
  }

  .mobnav__links a:last-child { border-bottom: none; }

  .mobnav__foot {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #e8eaee;
    color: #9aa1ad;
    font-size: 12px;
  }


  /* ---- ЛЕНДИНГ / HERO ---- */

  .hero {
    padding: 16px 14px 40px;
    min-height: auto;
  }

  .hero + .cat-section {
    margin-top: 24px;
  }

  .hero__tooth {
    top: 22%;
    width: min(360px, 88vw);
    height: min(360px, 88vw);
    opacity: .45;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 38px);
    margin: 0 0 20px;
  }

  .search-block-glow {
    max-width: 100%;
    margin: 0 auto 10px;
    padding: 0;
  }

  .search-block-glow::before {
    inset: 6px;
  }

  .search-wrap {
    margin: 0 auto 14px;
  }

  .search {
    height: 50px;
    padding: 0 6px 0 16px;
    gap: 8px;
  }

  .search input {
    font-size: 15px;
    padding: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search input::placeholder {
    font-size: 13px;
  }

  .search__icon svg {
    width: 18px;
    height: 18px;
  }

  .search button[type="submit"],
  .search__actions button {
    width: 38px;
    height: 38px;
  }

  .search button[type="submit"] svg,
  .search__actions button svg {
    width: 15px;
    height: 15px;
  }

  .chips {
    gap: 8px;
  }

  .chip {
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(26px, 9vw, 34px);
  }

  .hero__tooth {
    width: min(300px, 88vw);
    height: min(300px, 88vw);
  }

  .mobnav__panel {
    width: 86vw;
  }
}


/* ============================================================
   КАРТИНКИ В КАТЕГОРИЯХ — маска слева, чтобы читался текст
   ============================================================ */

@media (max-width: 640px) {
  .optics-product img,
  .cat-section[data-category="nakonechniki"] .optics-product img,
  .cat-section[data-category="ustanovki"] .optics-product img,
  .cat-section[data-category="skanery"] .optics-product img {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, .15) 18%,
      rgba(0, 0, 0, .45) 32%,
      rgba(0, 0, 0, .8) 44%,
      #000 55%,
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, .15) 18%,
      rgba(0, 0, 0, .45) 32%,
      rgba(0, 0, 0, .8) 44%,
      #000 55%,
      #000 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    opacity: .88;
  }
}
