/* Layout CSS — extracted from oscar/layout.html */
    /* Убираем серый фон со всей страницы */
    body, html {
      background-color: #fff !important;
    }
    .container, .vi-container, .page, .page_inner, .content, #content_inner {
      background-color: #fff !important;
    }
    
    .vi-container {
      max-width: 1400px;
    }
    @media (min-width: 1600px) {
      .vi-container { max-width: 1520px; }
    }

    .vi-topbar {
      background: #f8f9fa;
      color: #6c757d;
      font-size: 12px;
      border-radius: 0;
      border-bottom: 1px solid #e9ecef;
      padding: 6px 0;
    }
    .vi-topbar a { color: #495057; font-weight: 500; }
    .vi-topbar a:hover { color: #0d6b5c; text-decoration: none; }

    .vi-header {
      background: #fff;
      border-bottom: 1px solid #e9ecef;
      border-radius: 0;
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    .vi-header-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 24px;
    }
    .vi-header-left {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 280px;
    }
    .vi-header-center {
      display: flex;
      justify-content: center;
      flex: 1;
      min-width: 0;
    }
    .vi-search {
      width: 100%;
      max-width: 100%;
      display: flex;
      justify-content: center;
    }
    .vi-search form {
      width: 100%;
      max-width: 100%;
      display: flex;
    }
    .vi-search .form-control {
      flex: 1;
    }
    .vi-header-right {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 220px;
      justify-content: flex-end;
    }
    .vi-logo {
      font-weight: 800;
      letter-spacing: -0.5px;
      color: #0d6b5c;
      font-size: 24px;
      line-height: 1;
      text-decoration: none !important;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .vi-logo:hover {
      color: #0a5549;
      text-decoration: none !important;
    }
    .vi-logo .vi-logo-dot {
      color: #f59e0b;
    }
    .vi-search .form-control {
      border-radius: 999px 0 0 999px;
      height: 44px;
      flex: 1;
    }
    .vi-search .btn {
      border-radius: 0 999px 999px 0;
      height: 44px;
      flex-shrink: 0;
    }
    .vi-search .input-group {
      width: 100%;
      display: flex;
    }
    .vi-catalog-btn {
      height: 44px;
      border-radius: 12px;
      font-weight: 700;
      background: #0d6b5c !important;
      border-color: #0d6b5c !important;
    }
    .vi-catalog-btn:hover { background: #0a5549 !important; border-color: #0a5549 !important; }
    .vi-catalog-btn i { font-size: 16px; }
    .vi-icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid #e9ecef;
      color: #495057;
      background: #fff;
      text-decoration: none;
      transition: all 0.15s;
    }
    .vi-icon-btn:hover { 
      background: #0d6b5c; 
      border-color: #0d6b5c;
      color: #fff;
      text-decoration: none; 
    }

    .vi-linkbar {
      background: #fff;
      border-bottom: 1px solid #e9ecef;
      padding-top: 10px;
      padding-bottom: 10px;
      border-radius: 0;
    }
    .vi-linklist {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
      line-height: 1.2;
    }
    .vi-linkpill {
      display: inline-flex;
      align-items: center;
      height: 36px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid #e9ecef;
      background: #fff;
      color: #212529;
      text-decoration: none;
      font-weight: 700;
      font-size: 13px;
    }
    .vi-linkpill:hover { background: #f8f9fa; color: #0d6b5c; text-decoration: none; }
    .vi-linkpill--muted { color: #495057; }
    @media (max-width: 992px) {
      .vi-linklist {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
      }
      .vi-linkpill {
        font-size: 12px;
        padding: 0 10px;
        height: 32px;
      }
    }

    /* ===== МОБИЛЬНАЯ АДАПТАЦИЯ (< 768px) ===== */
    @media (max-width: 767px) {
      body {
        overflow-x: hidden;
      }
      /* Меньше боковых отступов — контент не сжат */
      .container.vi-container,
      .vi-container.page {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
      }
      .vi-linkbar .vi-container {
        padding-left: 12px;
        padding-right: 12px;
      }
      
      /* Верхняя панель — компактнее */
      .vi-topbar {
        padding: 4px 0;
        font-size: 11px;
      }
      .vi-topbar .container { padding-left: 12px; padding-right: 12px; }
      
      /* Хедер */
      .vi-header {
        padding: 8px 0 !important;
      }
      .vi-header .container.vi-container {
        padding-left: 12px;
        padding-right: 12px;
      }
      
      /* Лого меньше */
      .vi-logo {
        font-size: 16px;
      }
      .vi-header-mobile-top .vi-logo img {
        max-height: 28px;
        max-width: 100px;
      }
      
      /* Кнопка каталога компактнее */
      .vi-catalog-btn {
        height: 36px;
        font-size: 12px;
        padding: 0 10px;
        border-radius: 8px;
      }
      .vi-catalog-btn i {
        font-size: 14px;
      }
      
      /* Поиск на всю ширину */
      .vi-search .form-control {
        height: 38px;
        font-size: 14px;
        border-radius: 8px 0 0 8px;
      }
      .vi-search .btn {
        height: 38px;
        padding: 0 12px;
        border-radius: 0 8px 8px 0;
      }
      
      /* Иконки-кнопки меньше */
      .vi-icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
      }
      .vi-icon-btn i {
        font-size: 14px;
      }
      
      /* Linkbar — перенос строк, без горизонтального скролла */
      .vi-linkbar {
        padding: 8px 0;
      }
      .vi-linklist {
        gap: 6px;
      }
      .vi-linkpill {
        height: 28px;
        font-size: 11px;
        padding: 0 8px;
      }
      
      /* Мега-меню */
      .vi-mega__grid {
        grid-template-columns: 1fr !important;
      }
      .vi-mega__col {
        padding: 12px 14px;
        border-right: 0 !important;
        border-bottom: 1px solid #f1f3f5;
      }
      .vi-mega__col:last-child {
        border-bottom: 0;
      }
      
      /* Хлебные крошки */
      .breadcrumb {
        padding: 8px 12px;
        margin: 10px 0 8px 0;
        font-size: 12px;
        border-radius: 8px;
      }
      .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 5px;
      }
      
      /* Страница */
      .page {
        margin-top: 12px;
      }
      .page_inner {
        padding-top: 12px;
        padding-bottom: 16px;
      }
    }

    /* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (< 480px) ===== */
    @media (max-width: 479px) {
      body {
        overflow-x: hidden;
      }
      .container.vi-container,
      .vi-container.page,
      .vi-linkbar .vi-container {
        padding-left: 10px;
        padding-right: 10px;
      }
      .vi-header .container.vi-container {
        padding-left: 10px;
        padding-right: 10px;
      }
      
      .vi-topbar {
        display: none;
      }
      
      .vi-header-mobile-top {
        gap: 6px;
      }
      
      .vi-logo {
        font-size: 14px;
      }
      .vi-header-mobile-top .vi-logo img {
        max-height: 24px;
        max-width: 80px;
      }
      
      .vi-catalog-btn {
        height: 32px;
        font-size: 11px;
        padding: 0 8px;
      }
      .vi-catalog-text {
        display: none;
      }
      
      .vi-icon-btn {
        width: 32px;
        height: 32px;
      }
      .vi-header-mobile-icons {
        gap: 4px;
      }
      
      .vi-search .form-control {
        height: 36px;
        font-size: 13px;
      }
      .vi-search .btn {
        height: 36px;
        padding: 0 10px;
      }
      
      .vi-linkbar {
        padding: 4px 0;
      }
      .vi-linkpill {
        height: 26px;
        font-size: 10px;
        padding: 0 8px;
      }
      
      .breadcrumb {
        padding: 6px 10px;
        font-size: 11px;
        margin: 8px 0 6px 0;
      }
    }

    /* Mega menu */
    .vi-mega-backdrop {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,.35);
      z-index: 1040;
    }
    .vi-mega {
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      z-index: 1050;
      padding-top: 10px;
    }
    .vi-mega__panel {
      background: #fff;
      border: 1px solid #e9ecef;
      border-radius: 16px;
      box-shadow: 0 18px 50px rgba(0,0,0,.12);
      overflow: hidden;
    }
    .vi-mega__grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    @media (max-width: 1200px) {
      .vi-mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .vi-mega__col:nth-child(4n) { border-right: 1px solid #f1f3f5; }
      .vi-mega__col:nth-child(3n) { border-right: 0; }
    }
    @media (max-width: 992px) {
      .vi-mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .vi-mega__col:nth-child(3n) { border-right: 1px solid #f1f3f5; }
      .vi-mega__col:nth-child(2n) { border-right: 0; }
    }
    .vi-mega__col {
      padding: 18px 18px 14px 18px;
      border-right: 1px solid #f1f3f5;
    }
    .vi-mega__col:nth-child(4n) { border-right: 0; }
    .vi-mega__title {
      font-weight: 800;
      margin-bottom: 10px;
      color: #212529;
      text-decoration: none;
      display: inline-block;
    }
    .vi-mega__link {
      display: block;
      color: #495057;
      padding: 6px 0;
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
    }
    .vi-mega__link:hover { color: #0d6b5c; text-decoration: none; }
    .vi-mega-open .vi-mega,
    .vi-mega-open .vi-mega-backdrop { display: block; }

    /* header polish */
    .vi-header { position: relative; }
    
    /* Переключение десктоп/мобильный хедер */
    .vi-desktop-only {
      display: grid !important;
    }
    .vi-mobile-only {
      display: none !important;
    }
    @media (max-width: 991px) {
      .vi-desktop-only {
        display: none !important;
      }
      .vi-mobile-only {
        display: flex !important;
      }
    }
    
    /* Мобильный хедер */
    .vi-header-mobile {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .vi-header-mobile-top {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .vi-header-mobile-top .vi-logo {
      flex-shrink: 0;
    }
    .vi-header-mobile-top .vi-logo img {
      max-height: 32px;
      max-width: 120px;
    }
    .vi-header-mobile-top .vi-catalog-btn {
      flex-shrink: 0;
    }
    .vi-header-mobile-icons {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-left: auto;
    }
    .vi-header-mobile-search {
      width: 100%;
    }
    .vi-header-mobile-search .vi-search {
      max-width: 100%;
    }

    /* breadcrumbs */
    .breadcrumb {
      background: #fff;
      border: 1px solid #e9ecef;
      border-radius: 14px;
      padding: 12px 14px;
      margin: 18px 0 16px 0;
    }
    .breadcrumb-item + .breadcrumb-item::before {
      content: "›";
      color: #adb5bd;
      padding: 0 10px;
    }
    .breadcrumb a {
      color: #495057;
      font-weight: 700;
      text-decoration: none;
    }
    .breadcrumb a:hover { color: #0d6b5c; text-decoration: none; }
    .breadcrumb-item.active { color: #6c757d; font-weight: 700; }

    /* page spacing under header */
    .page {
      margin-top: 24px;
    }
    .page_inner {
      padding-top: 32px;
      padding-bottom: 32px;
    }

    .vi-footer { background: #1a1f2e; color: rgba(255,255,255,.75); }
    .vi-footer a { color: rgba(255,255,255,.75); }
    .vi-footer a:hover { color: #0d6b5c; text-decoration: none; }
    .vi-footer .vi-footer-title { color: #fff; font-weight: 700; }

    /* Кнопка с тремя точками удалена — скрываем на случай кэша */
    #viMobileMenuBtn {
      display: none !important;
      visibility: hidden !important;
      position: absolute !important;
      left: -9999px !important;
      width: 0 !important;
      height: 0 !important;
      overflow: hidden !important;
    }
