:root {
          --sidebar-width: 260px;
          --bg-sidebar: #F7F7F8;
          --bg-main: #ffffff;
          --bg-chat: #f7f7f8;
      --bg-hover: #343542; /* РўРµРјРЅС‹Р№ С…РѕРІРµСЂ (РґР»СЏ С‚РµРјРЅРѕР№ С‚РµРјС‹) */
      --bg-active: #2a2a2e; /* РўРµРјРЅС‹Р№ Р°РєС‚РёРІ (РґР»СЏ С‚РµРјРЅРѕР№ С‚РµРјС‹) */
          --radius: 8px;
          --font: 'Inter', sans-serif;
          --model-menu-shadow: rgba(0,0,0,0.15);

      /* --- Р”РћР‘РђР’Р›Р•РќРћ: РџРµСЂРµРјРµРЅРЅС‹Рµ РґР»СЏ С†РІРµС‚РѕРІ С‚РµРєСЃС‚Р°/СЌР»РµРјРµРЅС‚РѕРІ СЃР°Р№РґР±Р°СЂР° --- */
      --sidebar-text-color: #333; /* РўРµРјРЅС‹Р№ С‚РµРєСЃС‚ РїРѕ СѓРјРѕР»С‡Р°РЅРёСЋ (СЃРІРµС‚Р»Р°СЏ С‚РµРјР°) */
      --new-chat-bg: #E9E9EA;      /* РЎРІРµС‚Р»С‹Р№ С„РѕРЅ РєРЅРѕРїРєРё "РќРѕРІС‹Р№ С‡Р°С‚" */
      --new-chat-bg-hover: #DCDCDD; /* РЎРІРµС‚Р»С‹Р№ С…РѕРІРµСЂ РґР»СЏ РєРЅРѕРїРєРё */
      --toggle-btn-color: #555;   /* РўРµРјРЅС‹Р№ С†РІРµС‚ РёРєРѕРЅРєРё РіР°РјР±СѓСЂРіРµСЂР° */
    --app-height: 100dvh;

    --max-width: 1200px;
      --gap-lg: clamp(24px, 5vw, 60px);
      --gap-sm: clamp(12px, 3vw, 24px);
    }
    *, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
    html, body { height:100%; font-family:var(--font); background:var(--bg-chat); overflow:hidden; }
    .app { display:flex; height: var(--app-height); /* РСЃРїРѕР»СЊР·СѓРµРј РґРёРЅР°РјРёС‡РµСЃРєСѓСЋ РІС‹СЃРѕС‚Сѓ */ }

    /* Toggle Button */
    .toggle-btn {
      position:fixed;
      top:10px;
      left:12px;
      z-index:2000;
      background:none;

  border-radius: 50%;                   /* РєСЂСѓРіР»Р°СЏ С„РѕСЂРјР° */
  width: 40px;                          /* С„РёРєСЃРёСЂРѕРІР°РЅРЅС‹Рµ СЂР°Р·РјРµСЂС‹ */
  height: 40px;

      border:none;
      color: var(--toggle-btn-color);  /* color:#e5e5ea;*/
      font-size:1.5rem;
      cursor:pointer;
    }
    /* Toggle Button */
    .icon-btn {


      background:none;

  border-radius: 50%;                   /* РєСЂСѓРіР»Р°СЏ С„РѕСЂРјР° */
  width: 40px;                          /* С„РёРєСЃРёСЂРѕРІР°РЅРЅС‹Рµ СЂР°Р·РјРµСЂС‹ */
  height: 40px;

      border:none;
      color: var(--toggle-btn-color);  /* color:#e5e5ea;*/
      font-size:1.5rem;
      cursor:pointer;
    }




    /* Sidebar */
    .sidebar {
      width: var(--sidebar-width);
      background: #fff;
  color: var(--sidebar-text-color);
      display: flex;
      flex-direction: column;
      transition: width .3s ease;
      overflow: hidden;
      position: relative;
      padding-top: 60px; /* РїРѕРґ С€Р°РїРєСѓ */
    }
    /* Desktop: РїСЂРѕСЃС‚Рѕ РѕР±РЅСѓР»СЏРµРј С€РёСЂРёРЅСѓ */
    .sidebar.collapsed {
      width: 0;
    }
    /* Mobile: СЃРґРІРёРіР°РµРј */
    @media (max-width: 576px) {


.chat-item.active .chat-actions {
  visibility: visible;
  opacity: 1;
}

.chat-list:hover .chat-actions {
   visibility: hidden;
   opacity: 0;
   transition-delay: 0s; /* РќРµРјРµРґР»РµРЅРЅРѕ РїСЂСЏС‡РµРј РїСЂРё РЅР°РІРµРґРµРЅРёРё РЅР° СЃРїРёСЃРѕРє */
}
  .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--app-height);
    /* РїРѕРєР°Р·С‹РІР°РµРј РїРѕ СѓРјРѕР»С‡Р°РЅРёСЋ */
    transform: translateX(0);
    transition: transform .3s ease;
z-index: 1500; /* <-- Р”РѕР±Р°РІР»РµРЅРѕ */
  }
  .sidebar.collapsed {
    /* СЃРєСЂС‹РІР°РµРј РїСЂРё collapsed */
    transform: translateX(-100%);
  }
    }
    .sidebar .header {
      height: 60px;
      display: flex;
      align-items: center;
      padding: 0 12px;
      font-weight: 600;
      font-size: 1.1rem;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      border-bottom: 1px solid #e2e2e2;
    }
    .sidebar .header span {
      margin-left: 8px;
      white-space: nowrap;
      overflow: hidden;

      text-overflow: ellipsis;
    }
    .sidebar.collapsed .header span { display: none; }

.new-chat {
  margin: 8px 12px;
  padding: 10px;
  /* --- РР—РњР•РќР•РќРћ: РСЃРїРѕР»СЊР·СѓРµРј РїРµСЂРµРјРµРЅРЅС‹Рµ --- */
  background: var(--new-chat-bg);
  color: var(--sidebar-text-color); /* РќР°СЃР»РµРґСѓРµРј С†РІРµС‚ С‚РµРєСЃС‚Р° */
  border: none; /* РЈР±РёСЂР°РµРј РіСЂР°РЅРёС†Сѓ, РµСЃР»Рё РѕРЅР° Р±С‹Р»Р° */
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease; /* РџР»Р°РІРЅС‹Р№ РїРµСЂРµС…РѕРґ С„РѕРЅР° */
}

.new-chat:hover {
  /* --- РР—РњР•РќР•РќРћ: РСЃРїРѕР»СЊР·СѓРµРј РїРµСЂРµРјРµРЅРЅСѓСЋ РґР»СЏ С…РѕРІРµСЂР° --- */
  background: var(--new-chat-bg-hover);
}
    .sidebar.collapsed .new-chat,
    .sidebar.collapsed .chat-list {
      display: none;
    }
    .chat-list {
      
      flex: 1;
      overflow-y: auto;
    }
    .chat-item {
      padding: 8px 12px;
      margin: 4px 12px;
      border-radius: var(--radius);
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      transition: background .2s;
      color: inherit;
      text-decoration: none;
      position: relative; /* РќСѓР¶РЅРѕ РґР»СЏ РїРѕР·РёС†РёРѕРЅРёСЂРѕРІР°РЅРёСЏ РјРµРЅСЋ */
    }
    .chat-item:hover { background: var(--new-chat-bg-hover); }
    .chat-item.active {background: var(--new-chat-bg-hover); font-weight: 500; }
    .chat-item:focus-visible {
      outline: 2px solid rgba(47, 111, 228, 0.32);
      outline-offset: 2px;
    }
    .chat-item .label {
      flex: 1;
      
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

    }
   
.chat-actions {
  /* РџРѕРєР°Р·С‹РІР°РµРј С‚РѕР»СЊРєРѕ РїСЂРё РЅР°РІРµРґРµРЅРёРё РЅР° СЂРѕРґРёС‚РµР»СЊСЃРєРёР№ .chat-item */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  display: flex; /* Р§С‚РѕР±С‹ РєРЅРѕРїРєР° РІРЅСѓС‚СЂРё Р±С‹Р»Р° РІРёРґРЅР° */
  position: relative; /* Р”Р»СЏ РїРѕР·РёС†РёРѕРЅРёСЂРѕРІР°РЅРёСЏ РєРѕРЅС‚РµРєСЃС‚РЅРѕРіРѕ РјРµРЅСЋ */
}
   .chat-item:hover .chat-actions {
  visibility: visible;
  opacity: 1;
}


    .chat-actions button {
      background: none;

      border: none;
      color: #e5e5ea;
      font-size: 1rem;
      cursor: pointer;
      margin-left: 8px;
    }
.chat-actions .chat-action-btn { /* РљРЅРѕРїРєР° СЃ С‚СЂРµРјСЏ С‚РѕС‡РєР°РјРё */
  background: none;
  border: none;
  color: #40404a; 
  padding: 4px 8px; /* РќРµР±РѕР»СЊС€РёРµ РѕС‚СЃС‚СѓРїС‹ */
  margin: -4px -8px; /* РљРѕРјРїРµРЅСЃРёСЂСѓРµРј padding, С‡С‚РѕР±С‹ РѕР±Р»Р°СЃС‚СЊ РєР»РёРєР° Р±С‹Р»Р° Р±РѕР»СЊС€Рµ */
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem; /* Р Р°Р·РјРµСЂ РёРєРѕРЅРєРё */
  line-height: 1; /* РЈР±РёСЂР°РµРј Р»РёС€РЅСЋСЋ РІС‹СЃРѕС‚Сѓ */
  display: flex;
  align-items: center;
}


 .chat-action-btn:hover {

color: #40404a;
}



    /* Main area */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  position: relative; /* 1. Р”РµР»Р°РµРј .main РєРѕРЅС‚РµРєСЃС‚РѕРј РїРѕР·РёС†РёРѕРЅРёСЂРѕРІР°РЅРёСЏ */
  overflow: hidden; /* РџСЂРµРґРѕС‚РІСЂР°С‰Р°РµРј РІС‹С…РѕРґ С‚РµРЅРё Р·Р° РїСЂРµРґРµР»С‹ РїСЂРё СЃРєСЂРѕР»Р»Рµ */
height: var(--app-height);
}
 .main .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px !important;
    flex-shrink: 0;
    padding: 0 16px; /* РћСЃС‚Р°РІР»СЏРµРј РёСЃС…РѕРґРЅС‹Р№ РїСЂР°РІС‹Р№ РѕС‚СЃС‚СѓРї */
    border-bottom: 1px solid #e2e2e2;
    /* Р”РѕР±Р°РІР»СЏРµРј transition РґР»СЏ РїР»Р°РІРЅРѕРіРѕ РёР·РјРµРЅРµРЅРёСЏ padding-left */
    transition: padding-left 0.3s ease; /* Р’СЂРµРјСЏ Рё С„СѓРЅРєС†РёСЏ РєР°Рє Сѓ СЃР°Р№РґР±Р°СЂР° */
  }

    .main .title {
      flex: 1;
      text-align: center;
      font-weight: 500;
      font-size: 1rem;
      /* Р”РѕР±Р°РІРёРј РЅРµРјРЅРѕРіРѕ РѕС‚СЃС‚СѓРїРѕРІ, С‡С‚РѕР±С‹ Р·Р°РіРѕР»РѕРІРѕРє РЅРµ РїСЂРёР»РёРїР°Р» Рє РєРЅРѕРїРєР°Рј */
      margin: 0 10px;
      white-space: nowrap; /* РџСЂРµРґРѕС‚РІСЂР°С‚РёС‚СЊ РїРµСЂРµРЅРѕСЃ Р·Р°РіРѕР»РѕРІРєР° */
      overflow: hidden;    /* РЎРєСЂС‹С‚СЊ С‚Рѕ, С‡С‚Рѕ РЅРµ РїРѕРјРµС‰Р°РµС‚СЃСЏ */
      text-overflow: ellipsis; /* Р”РѕР±Р°РІРёС‚СЊ С‚СЂРѕРµС‚РѕС‡РёРµ */
    }
.toggle-btn + .sidebar .header{

  padding-left: 60px;
}

    .sidebar.collapsed + .main .header {
      padding-left: 60px; /* РћС‚СЃС‚СѓРї = РїРѕР·РёС†РёСЏ РєРЅРѕРїРєРё + С€РёСЂРёРЅР° РєРЅРѕРїРєРё + Р·Р°Р·РѕСЂ */
    }
    .controls {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .theme-btn, .icon-btn {
      background: none;
      border: none;
      font-size: 1.25rem;
      cursor: pointer;
      color: #555;
    }
    .theme-btn:hover, .icon-btn:hover { color: #000; }

    /* Model dropdown */
    .model-dropdown { position: relative; }
    .model-btn {
      display: flex;
      align-items: center;
      gap: 4px;
      border: none;
      border-radius: var(--radius);
      padding: 6px 12px;
      background: #fff;
      cursor: pointer;

    }
    .model-menu {
      display: none;
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      background: #fff;
      border-radius: var(--radius);
      box-shadow: 0 4px 16px var(--model-menu-shadow);
      width: 240px;
      max-height: 300px;
      overflow-y: auto;
      z-index: 1000;
    }
    .model-menu.open { display: block; }
    .model-item {
      padding: 10px 12px;
      cursor: pointer;
      border-radius: var(--radius);
      transition: background .2s;
    }
    .model-item:hover { background: #f0f0f0; }
    .model-item.active { background: #e5e5ea; }
    .model-item .desc {
      font-size: 0.8rem;
      color: #666;
      margin-top: 4px;
    }

    /* Chat area */
    .chat {
  overflow-y: auto;

  height: auto;
  display: block; /* РёР»Рё flex-direction: unset; РµСЃР»Рё РЅСѓР¶РЅРѕ */
}





.toggle-btn:hover {
  /* --- РР—РњР•РќР•РќРћ: РСЃРїРѕР»СЊР·СѓРµРј РїРµСЂРµРјРµРЅРЅСѓСЋ РґР»СЏ С…РѕРІРµСЂР° --- */
  background-color: rgba(0, 0, 0, 0.05); /* Р›РµРіРєРёР№ С„РѕРЅ РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}
.icon-btn:hover {
  /* --- РР—РњР•РќР•РќРћ: РСЃРїРѕР»СЊР·СѓРµРј РїРµСЂРµРјРµРЅРЅСѓСЋ РґР»СЏ С…РѕРІРµСЂР° --- */
  background-color: rgba(0, 0, 0, 0.05); /* Р›РµРіРєРёР№ С„РѕРЅ РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}
.model-btn:hover {
  /* --- РР—РњР•РќР•РќРћ: РСЃРїРѕР»СЊР·СѓРµРј РїРµСЂРµРјРµРЅРЅСѓСЋ РґР»СЏ С…РѕРІРµСЂР° --- */
  background-color: rgba(0, 0, 0, 0.05); /* Р›РµРіРєРёР№ С„РѕРЅ РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}


    /* Dark theme */
    .dark-theme {
  --bg-sidebar: #202123; /* Р’РѕР·РІСЂР°С‰Р°РµРј С‚РµРјРЅС‹Р№ С„РѕРЅ */
  --bg-main: #343541;
  --bg-chat: #202123;
      --bg-hover: #4a4b51;
      --bg-active: #5a5b61;

  --sidebar-text-color: #e5e5ea; /* РЎРІРµС‚Р»С‹Р№ С‚РµРєСЃС‚ */
  --new-chat-bg: var(--bg-hover); /* РўРµРјРЅС‹Р№ С„РѕРЅ РєРЅРѕРїРєРё = С‚РµРјРЅС‹Р№ С…РѕРІРµСЂ */
  --new-chat-bg-hover: #4a4b51;  /* Р§СѓС‚СЊ СЃРІРµС‚Р»РµРµ С‚РµРјРЅС‹Р№ С…РѕРІРµСЂ */
  --toggle-btn-color: #e5e5ea;   /* РЎРІРµС‚Р»С‹Р№ С†РІРµС‚ РёРєРѕРЅРєРё РіР°РјР±СѓСЂРіРµСЂР° */
    }


*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html, body { height:100%; font-family:var(--font); background:var(--bg-chat); overflow:hidden; }
.app { display:flex; height:100vh; }




.modal {z-index: 9999;}
/* --- РЎС‚РёР»Рё РјРµРЅСЋ РјРѕРґРµР»РµР№ РґР»СЏ С‚РµРјРЅРѕР№ С‚РµРјС‹ --- */

.dark-theme .model-btn {
    background: #40414f; /* РўРµРјРЅС‹Р№ С„РѕРЅ РєРЅРѕРїРєРё */
    border-color: #565869; /* РўРµРјРЅР°СЏ РіСЂР°РЅРёС†Р° */
    color: #ececf1; /* РЎРІРµС‚Р»С‹Р№ С‚РµРєСЃС‚ */
}
/* Р¦РІРµС‚ РёРєРѕРЅРєРё РІРЅСѓС‚СЂРё РєРЅРѕРїРєРё */
.dark-theme .model-btn i {
    color: #acacbe;
}
.dark-theme .model-btn:hover {
     background: #4a4b51; /* РўРµРјРЅРµРµ РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}


.dark-theme .model-menu {
    background: #40414f; /* РўРµРјРЅС‹Р№ С„РѕРЅ РјРµРЅСЋ */
    box-shadow: 0 4px 16px rgba(0,0,0,0.3); /* Р‘РѕР»РµРµ Р·Р°РјРµС‚РЅР°СЏ С‚РµРЅСЊ */
    border: 1px solid #565869; /* РўРµРјРЅР°СЏ РіСЂР°РЅРёС†Р° (РѕРїС†РёРѕРЅР°Р»СЊРЅРѕ) */
}

.dark-theme .model-item {
    color: #ececf1; /* РЎРІРµС‚Р»С‹Р№ С‚РµРєСЃС‚ РїСѓРЅРєС‚Р° */
}

.dark-theme .model-item .desc {
    color: #8e8ea0; /* РЎРІРµС‚Р»С‹Р№ С‚РµРєСЃС‚ РѕРїРёСЃР°РЅРёСЏ */
}

.dark-theme .model-item:hover {
    background: #4a4b51; /* Р¤РѕРЅ РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}

.dark-theme .model-item.active {
    background: #5a5b61; /* Р¤РѕРЅ Р°РєС‚РёРІРЅРѕРіРѕ РїСѓРЅРєС‚Р° */
    font-weight: 500;
}

/* --- РЎС‚РёР»Рё РґР»СЏ РљРѕРЅС‚РµРєСЃС‚РЅРѕРіРѕ РњРµРЅСЋ --- */
.chat-context-menu {
  position: absolute;
  top: calc(100% + 4px); /* РЎРЅРёР·Сѓ РєРЅРѕРїРєРё */
  right: 0; /* РЎРїСЂР°РІР° */
  background-color: var(--bg-main); /* Р¤РѕРЅ Р·Р°РІРёСЃРёС‚ РѕС‚ С‚РµРјС‹ */
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 180px;
  z-index: 1050; /* Р’С‹С€Рµ РґСЂСѓРіРёС… СЌР»РµРјРµРЅС‚РѕРІ СЃР°Р№РґР±Р°СЂР° */
  display: none; /* РЎРєСЂС‹С‚Рѕ РїРѕ СѓРјРѕР»С‡Р°РЅРёСЋ */
  border: 1px solid rgba(0, 0, 0, 0.08); /* РўРѕРЅРєР°СЏ РіСЂР°РЅРёС†Р° */
}

.chat-context-menu.open {
  display: block; /* РџРѕРєР°Р·С‹РІР°РµРј РїСЂРё РґРѕР±Р°РІР»РµРЅРёРё РєР»Р°СЃСЃР° */
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--sidebar-text-color); /* Р¦РІРµС‚ С‚РµРєСЃС‚Р° Р·Р°РІРёСЃРёС‚ РѕС‚ С‚РµРјС‹ */
  background-color: transparent;
  border: none; /* Р•СЃР»Рё РёСЃРїРѕР»СЊР·СѓРµРј button */
  width: 100%; /* Р•СЃР»Рё РёСЃРїРѕР»СЊР·СѓРµРј button */
  text-align: left; /* Р•СЃР»Рё РёСЃРїРѕР»СЊР·СѓРµРј button */
  transition: background-color 0.2s ease;
}

.context-menu-item i {
  font-size: 1rem;
  
  width: 16px; /* Р¤РёРєСЃ. С€РёСЂРёРЅР° РґР»СЏ РёРєРѕРЅРѕРє */
  text-align: center;
}

.context-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.05); /* РҐРѕРІРµСЂ РґР»СЏ СЃРІРµС‚Р»РѕР№ С‚РµРјС‹ */
}

.context-menu-item.delete-item {
  color: #dc3545; /* РљСЂР°СЃРЅС‹Р№ С†РІРµС‚ РґР»СЏ СѓРґР°Р»РµРЅРёСЏ */
}
.context-menu-item.delete-item:hover {
  background-color: rgba(220, 53, 69, 0.1); /* РљСЂР°СЃРЅС‹Р№ С…РѕРІРµСЂ */
}

/* РЎС‚РёР»Рё РєРѕРЅС‚РµРєСЃС‚РЅРѕРіРѕ РјРµРЅСЋ РґР»СЏ С‚РµРјРЅРѕР№ С‚РµРјС‹ */
.dark-theme .chat-context-menu {
    background-color: #40414f;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #565869;
}
.dark-theme .context-menu-item {
     color: #ececf1;

}
.dark-theme .context-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.dark-theme .context-menu-item.delete-item {
  color: #ff7b72; /* РЎРІРµС‚Р»Рѕ-РєСЂР°СЃРЅС‹Р№ РґР»СЏ С‚РµРјРЅРѕР№ С‚РµРјС‹ */
}
.dark-theme .context-menu-item.delete-item:hover {
  background-color: rgba(255, 123, 114, 0.15);
}


/* --- РЎС‚РёР»Рё РґР»СЏ Markdown СЌР»РµРјРµРЅС‚РѕРІ РІРЅСѓС‚СЂРё .message --- */

/* Р‘Р°Р·РѕРІС‹Рµ РѕС‚СЃС‚СѓРїС‹ РґР»СЏ РїР°СЂР°РіСЂР°С„РѕРІ */
.message p {
  margin-bottom: 0.8em; /* РћС‚СЃС‚СѓРї РјРµР¶РґСѓ РїР°СЂР°РіСЂР°С„Р°РјРё */
  line-height: 1.6;
}
.message p:last-child {
  margin-bottom: 0; /* РЈР±СЂР°С‚СЊ РѕС‚СЃС‚СѓРї Сѓ РїРѕСЃР»РµРґРЅРµРіРѕ РїР°СЂР°РіСЂР°С„Р° РІ СЃРѕРѕР±С‰РµРЅРёРё */
}

/* РЎРїРёСЃРєРё */
.message ul,
.message ol {
  padding-left: 2em; /* РћС‚СЃС‚СѓРї СЃР»РµРІР° РґР»СЏ СЃРїРёСЃРєРѕРІ */
  margin-bottom: 0.8em;
}
.message li {
  margin-bottom: 0.4em;
}

/* Р—Р°РіРѕР»РѕРІРєРё */
.message h1, .message h2, .message h3, .message h4, .message h5, .message h6 {
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  font-weight: 600;
}

/* Р¦РёС‚Р°С‚С‹ */
.message blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin-left: 0;
  margin-bottom: 0.8em;
  color: #666;
}
.dark-theme .message blockquote {
  border-left-color: #555;
  color: #aaa;
}

/* Р“РѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅР°СЏ Р»РёРЅРёСЏ */
.message hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 1.5em 0;
}
.dark-theme .message hr {
  border-top-color: #444;
}

/* РЎС‚СЂРѕС‡РЅС‹Р№ РєРѕРґ (`code`) */
.message :not(pre) > code { /* Р’С‹Р±РёСЂР°РµРј code РќР• РІРЅСѓС‚СЂРё pre */
  background-color: rgba(0, 0, 0, 0.05);
  color: #c7254e; /* РџСЂРёРјРµСЂ С†РІРµС‚Р° */
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', Courier, monospace;
}
.dark-theme .message :not(pre) > code {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ff7b72; /* РџСЂРёРјРµСЂ С†РІРµС‚Р° РґР»СЏ С‚РµРјРЅРѕР№ С‚РµРјС‹ */
}


/* --- РЈР»СѓС‡С€РµРЅРЅС‹Рµ СЃС‚РёР»Рё РґР»СЏ Р‘Р›РћРљРђ РљРћР”Рђ (<pre>) --- */

/* --- РЎС‚РёР»Рё РґР»СЏ Markdown С‚Р°Р±Р»РёС† РІРЅСѓС‚СЂРё .message --- */
.message table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
  background-color: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  overflow: hidden;
}

.message th,
.message td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.message th {
  background-color: #f2f2f2;
  font-weight: 600;
  color: #333;
}

.message tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

/* --- РўР°Р±Р»РёС†Р° РІ С‚РµРјРЅРѕР№ С‚РµРјРµ --- */
.dark-theme .message table {
  background-color: #2c2c2c;
  border-color: #444;
}

.dark-theme .message th,
.dark-theme .message td {
  border-color: #444;
  color: #ddd;
}

.dark-theme .message th {
  background-color: #3a3a3a;
  color: #eee;
}

.dark-theme .message tbody tr:nth-child(odd) {
  background-color: #2a2a2a;
}

.message pre {
  background-color: #2d2d2d; /* Р‘РѕР»РµРµ С‚РµРјРЅС‹Р№ С„РѕРЅ */
  color: #cccccc; /* РЎРІРµС‚Р»С‹Р№ С‚РµРєСЃС‚ РїРѕ СѓРјРѕР»С‡Р°РЅРёСЋ */
  padding: 1em;
  padding-top: 2.5em; /* РњРµСЃС‚Рѕ РґР»СЏ С€Р°РїРєРё */
  border-radius: var(--radius);
  overflow-x: auto;
  position: relative; /* Р”Р»СЏ РїРѕР·РёС†РёРѕРЅРёСЂРѕРІР°РЅРёСЏ С€Р°РїРєРё Рё РєРЅРѕРїРєРё */
  margin: 1em 0; /* Р’РЅРµС€РЅРёРµ РѕС‚СЃС‚СѓРїС‹ */
  border: 1px solid #444; /* РўРѕРЅРєР°СЏ СЂР°РјРєР° */
  font-size: 0.9em; /* Р§СѓС‚СЊ РјРµР»СЊС‡Рµ РѕСЃРЅРѕРІРЅРѕРіРѕ С‚РµРєСЃС‚Р° */
}

/* РЁР°РїРєР° Р±Р»РѕРєР° РєРѕРґР° (РґР»СЏ СЏР·С‹РєР° Рё РєРЅРѕРїРєРё) */
.message pre::before {
  content: attr(data-language); /* Р‘СѓРґРµРј РґРѕР±Р°РІР»СЏС‚СЊ data-Р°С‚СЂРёР±СѓС‚ СЃ СЏР·С‹РєРѕРј */
  position: absolute;
  top: 0;
  left: 0;
  background-color: #3a3a3a;
  color: #aaa;
  padding: 4px 12px;
  font-size: 0.8em;
  border-radius: var(--radius) 0 var(--radius) 0; /* РЎРєСЂСѓРіР»РµРЅРёРµ СѓРіР»РѕРІ */
  text-transform: lowercase;
  font-family: sans-serif;
}
/* РЎРєСЂС‹С‚РёРµ С€Р°РїРєРё, РµСЃР»Рё СЏР·С‹Рє РЅРµ РѕРїСЂРµРґРµР»РµРЅ */
.message pre:not([data-language])::before {
    display: none;
     padding-top: 1em; /* Р’РѕР·РІСЂР°С‰Р°РµРј РѕС‚СЃС‚СѓРї, РµСЃР»Рё РЅРµС‚ С€Р°РїРєРё */
}


.message pre code {
  font-family: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; /* Р‘РѕР»РµРµ "РєРѕРґРµСЂСЃРєРёР№" С€СЂРёС„С‚ */
  font-size: 1em; /* Р Р°Р·РјРµСЂ С€СЂРёС„С‚Р° РІРЅСѓС‚СЂРё pre */
  padding: 0; /* РЈР±РёСЂР°РµРј Р»РёС€РЅРёРµ РїР°РґРґРёРЅРіРё Сѓ code */
  background: none; /* РЈР±РёСЂР°РµРј С„РѕРЅ Сѓ code */
  color: inherit; /* РќР°СЃР»РµРґСѓРµРј С†РІРµС‚ РѕС‚ pre */
}

/* РљРЅРѕРїРєР° РєРѕРїРёСЂРѕРІР°РЅРёСЏ */
.copy-code-btn {
  position: absolute;
  top: 6px; /* РџРѕР·РёС†РёРѕРЅРёСЂСѓРµРј РѕС‚РЅРѕСЃРёС‚РµР»СЊРЅРѕ С€Р°РїРєРё */
  right: 8px;
  background-color: #4a4f5a; /* Р¦РІРµС‚ РєРЅРѕРїРєРё */
  color: #ccc;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0.6; /* РЎР»РµРіРєР° РїСЂРѕР·СЂР°С‡РЅР°СЏ */
  transition: opacity 0.2s, background-color 0.2s;
  z-index: 1; /* РќР°Рґ РїСЃРµРІРґРѕСЌР»РµРјРµРЅС‚РѕРј ::before */
}
.copy-code-btn:hover {
  opacity: 1;
  background-color: #5a5f6a;
}
.copy-code-btn.copied {
  background-color: #10a37f;
  color: white;
}
.copy-code-btn i {
    margin-right: 4px; /* РќРµР±РѕР»СЊС€РѕР№ РѕС‚СЃС‚СѓРї Сѓ РёРєРѕРЅРєРё */
    vertical-align: middle; /* Р’С‹СЂР°РІРЅРёРІР°РЅРёРµ РёРєРѕРЅРєРё */
}

/* --- РЎС‚РёР»Рё РґР»СЏ С‚РµРјРЅРѕР№ С‚РµРјС‹ (РµСЃР»Рё РЅСѓР¶РЅРѕ РїРµСЂРµРѕРїСЂРµРґРµР»РёС‚СЊ) --- */
/* РћР±С‹С‡РЅРѕ С‚РµРјР° highlight.js СѓР¶Рµ РґРµР»Р°РµС‚ РєРѕРґ СЃРІРµС‚Р»С‹Рј РЅР° С‚РµРјРЅРѕРј С„РѕРЅРµ,
   РЅРѕ РјРѕР¶РЅРѕ РїРµСЂРµРѕРїСЂРµРґРµР»РёС‚СЊ С„РѕРЅ pre РёР»Рё С†РІРµС‚ РєРЅРѕРїРєРё, РµСЃР»Рё СЃС‚Р°РЅРґР°СЂС‚РЅС‹Р№ РЅРµ РЅСЂР°РІРёС‚СЃСЏ */
.dark-theme .message pre {
   background-color: #1e1e1e; /* Р•С‰Рµ С‚РµРјРЅРµРµ С„РѕРЅ */
   border-color: #333;
}
.dark-theme .message pre::before {
    background-color: #333;
    color: #888;
}
.dark-theme .copy-code-btn {
    background-color: #333;
    color: #999;
}
.dark-theme .copy-code-btn:hover {
    background-color: #444;
     opacity: 1;
}
/* --- РЎС‚РёР»Рё РґР»СЏ Р±Р»РѕРєР° СЂР°СЃСЃСѓР¶РґРµРЅРёР№ --- */
.message.bot .reasoning-block {
  /* РЈР±РёСЂР°РµРј РІРµСЂС…РЅРёР№ РѕС‚СЃС‚СѓРї, С‚.Рє. РѕРЅ С‚РµРїРµСЂСЊ РїРµСЂРІС‹Р№ */
  /* margin-top: 12px; */
  margin-bottom: 12px; /* Р”РѕР±Р°РІР»СЏРµРј РЅРёР¶РЅРёР№ РѕС‚СЃС‚СѓРї */
  border-bottom: 1px dashed #ccc; /* Р Р°Р·РґРµР»РёС‚РµР»СЊ СЃРЅРёР·Сѓ */
  border-top: none; /* РЈР±РёСЂР°РµРј РІРµСЂС…РЅРёР№ СЂР°Р·РґРµР»РёС‚РµР»СЊ */
  padding-bottom: 8px; /* РћС‚СЃС‚СѓРї СЃРЅРёР·Сѓ РІРЅСѓС‚СЂРё Р±Р»РѕРєР° */
  padding-top: 0; /* РЈР±РёСЂР°РµРј РІРµСЂС…РЅРёР№ РѕС‚СЃС‚СѓРї */
}
.dark-theme .message.bot .reasoning-block {
    border-bottom-color: #555;
    border-top-color: transparent;
}

.reasoning-toggle {
  background: none;
  border: none;
  color: #666; /* Р¦РІРµС‚ РєРЅРѕРїРєРё */
  cursor: pointer;
  padding: 2px 5px;
  font-size: 0.8em;
  display: inline-flex; /* Р§С‚РѕР±С‹ РёРєРѕРЅРєР° Рё С‚РµРєСЃС‚ Р±С‹Р»Рё РІ СЃС‚СЂРѕРєСѓ */
  align-items: center;
  gap: 4px;
  margin-bottom: 4px; /* РћС‚СЃС‚СѓРї СЃРЅРёР·Сѓ РґРѕ РєРѕРЅС‚РµРЅС‚Р° */
  border-radius: 4px;
}
.reasoning-toggle:hover {
    background-color: rgba(0,0,0,0.05);
    color: #333;
}
.dark-theme .reasoning-toggle {
    color: #aaa;
}
.dark-theme .reasoning-toggle:hover {
     background-color: rgba(255,255,255,0.1);
     color: #ddd;
}

.message.bot .bot-content {
    /* margin-top: 0; */ /* РџРѕ СѓРјРѕР»С‡Р°РЅРёСЋ РЅРµС‚ РѕС‚СЃС‚СѓРїР° */
}




/* ------------------------------------ */
.avatar-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
  transition: box-shadow 0.2s;
}

.avatar-img:hover {
  box-shadow: 0 0 0 2px #10a37f;
}

.avatar-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px 0;
  min-width: 160px;
  display: none;
  z-index: 9999;
}

.avatar-menu .dropdown-item {
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}

.avatar-menu .dropdown-item:hover {
  background-color: #f0f0f0;
}

.avatar-menu .dropdown-item:disabled {
  opacity: 0.55;
  cursor: default;
}

.avatar-menu .dropdown-item:disabled:hover {
  background-color: transparent;
}

.empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #888;
  font-size: 1.2rem;
  z-index: 0;
  pointer-events: none;
  opacity: 0;

}

.empty-state.show {
  opacity: 1;
  pointer-events: auto;
}

.empty-state .bi {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
}

.dark-theme .empty-state {
  color: #aaa;
}
.input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.input-toolbar-2-wrapper {
  flex: 1; /* Р—Р°РЅРёРјР°РµС‚ РІСЃС‘ РґРѕСЃС‚СѓРїРЅРѕРµ РїСЂРѕСЃС‚СЂР°РЅСЃС‚РІРѕ */
  display: flex;
}

.input-toolbar-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

}

/* Р‘Р°Р·РѕРІР°СЏ РєРЅРѕРїРєР°: РѕР±РІРѕРґРєР°, Р±РµР· С„РѕРЅР° */
.toolbar-btn {
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: #333;
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

/* РђРєС‚РёРІРЅР°СЏ РєРЅРѕРїРєР°: Р·Р°Р»РёРІРєР° Рё Р±РµР· РѕР±РІРѕРґРєРё */
.toolbar-btn.active {
  background-color: #f0f0f0;
  border: none;
}


/* Р’ РІС‹РїР°РґР°СЋС‰РµРј РјРµРЅСЋ РѕС‚РєР»СЋС‡Р°РµРј РѕР±РІРѕРґРєСѓ, РµСЃР»Рё РЅРµ Р°РєС‚РёРІРЅР° */
.dropdown-content .toolbar-btn:not(.active) {
  border: none;
  background: transparent;
}
@media (min-width: 768px) {
.toolbar-btn:hover {
  background: #e2e2e2;
}}


.toolbar-btn.add-doc {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
}
.input-inner {
  display: flex;
  align-items: flex-end;
  
  gap: 10px;
}
/* Р РѕРґРёС‚РµР»СЊСЃРєРёР№ СЌР»РµРјРµРЅС‚ РґР»СЏ С‚СѓР»С‚РёРїР° РґРѕР»Р¶РµРЅ РёРјРµС‚СЊ position: relative */
.btn-with-tooltip { /* РР»Рё .icon-btn, РµСЃР»Рё СЌС‚Рѕ РѕР±С‰РёР№ СЃС‚РёР»СЊ */
  position: relative;
}

.tooltip-custom {
  position: absolute;
  top: 100%; /* РџРѕСЏРІР»СЏРµС‚СЃСЏ СЃСЂР°Р·Сѓ РїРѕРґ РєРЅРѕРїРєРѕР№ (РјРѕР¶РЅРѕ РЅР°СЃС‚СЂРѕРёС‚СЊ РѕС‚СЃС‚СѓРї С‡РµСЂРµР· margin-top) */
  left: 50%;   /* Р¦РµРЅС‚СЂРёСЂСѓРµРј Р»РµРІС‹Р№ РєСЂР°Р№ С‚СѓР»С‚РёРїР° РїРѕ С†РµРЅС‚СЂСѓ СЂРѕРґРёС‚РµР»СЏ */
  transform: translateX(-50%); /* РЎРґРІРёРіР°РµРј С‚СѓР»С‚РёРї РІР»РµРІРѕ РЅР° РїРѕР»РѕРІРёРЅСѓ РµРіРѕ С€РёСЂРёРЅС‹ */
  margin-top: 8px; /* РќРµР±РѕР»СЊС€РѕР№ РѕС‚СЃС‚СѓРї РѕС‚ РєРЅРѕРїРєРё */
  background-color: #111; /* РР»Рё var(--tooltip-bg, #111) РґР»СЏ С‚РµРјРёР·Р°С†РёРё */
  color: #fff; /* РР»Рё var(--tooltip-color, #fff) */
  padding: 6px 10px;
  border-radius: 6px; /* РќРµРјРЅРѕРіРѕ РјРµРЅСЊС€Рµ СЂР°РґРёСѓСЃ РґР»СЏ РєРѕРјРїР°РєС‚РЅРѕСЃС‚Рё */
  font-size: 0.8rem;  /* Р§СѓС‚СЊ РјРµРЅСЊС€Рµ С€СЂРёС„С‚ */
  white-space: nowrap;
  opacity: 0;
  visibility: hidden; /* РСЃРїРѕР»СЊР·СѓРµРј visibility РґР»СЏ Р»СѓС‡С€РµР№ РїСЂРѕРёР·РІРѕРґРёС‚РµР»СЊРЅРѕСЃС‚Рё Р°РЅРёРјР°С†РёРё */
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s; /* РџР»Р°РІРЅРѕРµ РїРѕСЏРІР»РµРЅРёРµ/РёСЃС‡РµР·Р°РЅРёРµ */
  z-index: 10000; /* РЈР±РµРґРёС‚РµСЃСЊ, С‡С‚Рѕ РѕРЅ РІС‹С€Рµ РґСЂСѓРіРёС… СЌР»РµРјРµРЅС‚РѕРІ */
}

.btn-with-tooltip:hover .tooltip-custom {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s; /* РџРѕРєР°Р·С‹РІР°РµРј СЃСЂР°Р·Сѓ РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}

.tooltip-custom::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
}

.tooltip-custom.top::after {
  top: 100%;
  border-color: #111 transparent transparent transparent;
}

.tooltip-custom.bottom::after {
  bottom: 100%;
  border-color: transparent transparent #111 transparent;
}
/* РџРѕ СѓРјРѕР»С‡Р°РЅРёСЋ СЃРєСЂС‹С‚ */
.dropdown-content {
  display: none;
  /* РѕСЃС‚Р°Р»СЊРЅРѕР№ СЃС‚РёР»СЊ */
}
.mobile-hidden {
  display: flex;
  flex-direction: row; /* РёР»Рё inherit */
  gap: 0.5rem; /* РїРѕ Р¶РµР»Р°РЅРёСЋ */
}

/* РџРѕРєР°Р·С‹РІР°С‚СЊ С‚РѕР»СЊРєРѕ РЅР° РјРѕР±РёР»СЊРЅС‹С… */
@media (max-width: 768px) {


  .dropdown-content {
    position: absolute;
    bottom: 100%;       /* РћС‚РєСЂС‹РІР°РµС‚СЃСЏ РІРІРµСЂС… */
    left: 100%;         /* РЎРјРµС‰Р°РµС‚СЃСЏ РІРїСЂР°РІРѕ */
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    border-radius: 10px;
    z-index: 10;
    display: none;
  }

  .dropdown-content.show {
    display: block;
  }

  .mobile-hidden {
    display: none;
  }

  .mobile-menu {
    display: inline-block;
    position: relative;
  }
}

/* РќР° Р±РѕР»СЊС€РёС… СЌРєСЂР°РЅР°С… вЂ” РЅРµ РїРѕРєР°Р·С‹РІР°С‚СЊ РјРµРЅСЋ РІРѕРѕР±С‰Рµ */
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
}
 /* ----- СѓРЅРёРІРµСЂСЃР°Р»СЊРЅС‹Р№ РєРѕРЅС‚РµР№РЅРµСЂ ----- */
 .page-content {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
  padding-top: 0; /* РЈР±РёСЂР°РµРј С‚РѕР»СЊРєРѕ РІРµСЂС…РЅРёР№ РѕС‚СЃС‚СѓРї */
  padding-bottom: var(--gap-lg); 
  
}


    /* ----- hero-Р±Р»РѕРє ----- */
 .spa-shell {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#spaContent {
  flex: 1 0 auto;
}

.spa-shell .page-content {
  min-height: auto;
}

.site-footer {
  margin-top: auto;
  padding-top: clamp(28px, 4vw, 52px);
}

.site-footer__panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(220px, 0.95fr) minmax(220px, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.site-footer__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7280;
}

.site-footer__brand h2,
.site-footer__column h3 {
  margin: 0 0 10px;
}

.site-footer__brand h2 {
  font-size: clamp(1.18rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.site-footer__brand p,
.site-footer__column p,
.site-footer__meta {
  color: #4b5563;
}

.site-footer__brand p {
  margin: 0;
  max-width: 640px;
}

.site-footer__column h3 {
  font-size: 0.96rem;
  font-weight: 600;
}

.site-footer__column--contacts {
  justify-self: end;
  text-align: right;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer__list li {
  color: #374151;
  line-height: 1.45;
}

.site-footer__list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.site-footer__column--contacts .site-footer__list {
  justify-items: end;
}

.site-footer__column--contacts .site-footer__list li {
  text-align: right;
}

.site-footer a {
  color: #111827;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fafafa;
  border: 1px solid #e3e6ea;
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 500;
}

.site-footer__chip i {
  color: #6b7280;
}

.site-footer__bottom {
  margin-top: clamp(16px, 2.5vw, 22px);
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer__meta {
  font-size: 0.88rem;
}

.site-footer__note {
  font-size: 0.84rem;
  color: #6b7280;
}

@media (max-width: 920px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__column--contacts {
    justify-self: start;
    text-align: left;
  }

  .site-footer__column--contacts .site-footer__list {
    justify-items: start;
  }

  .site-footer__column--contacts .site-footer__list li {
    text-align: left;
  }
}

    .hero{ text-align:center }
    .hero h1{
      font-size:clamp(1.8rem,6vw,2.7rem);
      font-weight:600;
      margin-bottom:.35em;
    }
    .hero p{
      font-size:clamp(1rem,3.8vw,1.2rem);
      color:#555;
    }

    /* ----- В«РєР°СЂС‚РёРЅРєР° + С‚РµРєСЃС‚В» ----- */
    .image-text{
      display:flex;
      flex-wrap:wrap;
      gap:var(--gap-sm);
      border-radius:20px;
      margin-top:var(--gap-lg);
      overflow:hidden;
    }
    .image-text__img{
      flex:1 1 320px;
      
      aspect-ratio:1/1;
      background:url('https://images.unsplash.com/photo-1603791440384-56cd371ee9a7?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
      border-radius:18px;
    }
    .image-text__content{
      flex:1 1 380px;
      display:flex;
      flex-direction:column;
      justify-content:center;
      padding:clamp(16px,4.5vw,40px);
      background:#fff;
      text-align:left;
    }
    .image-text__content h2{
      font-size:clamp(1.4rem,5vw,2rem);
      font-weight:600;
      margin-bottom:.5em;
    }
    .image-text__content p{color:#444}

    /* ----- СѓСЃР»СѓРіРё ----- */
    .services{margin-top:var(--gap-lg)}
    .services-grid{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
      gap:var(--gap-sm);
    }
    .service{
      padding:clamp(18px,3.5vw,28px);
      border-radius:16px;
      ;
      transition:.2s transform,.2s box-shadow;
    }
    
    .service h3{
      font-size:clamp(1.1rem,4.5vw,1.35rem);
      margin-bottom:.4em;
    }
    .service p{color:#555}

    /* ----- РїСЂРѕРґСѓРєС‚С‹ ----- */
    .products{margin-top:var(--gap-lg);text-align:center}
    .products h2{
      font-size:clamp(1.6rem,5vw,2.2rem);
      font-weight:600;
      margin-bottom:var(--gap-sm);
    }
    .products-grid{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
      gap:var(--gap-sm);
    }
    .product{
      background:#f9f9f9;
      border-radius:16px;
      padding:clamp(18px,4vw,24px);
      transition:.2s transform,.2s box-shadow;
    }
   
    .product i{font-size:2.5rem;color:#10a37f;margin-bottom:12px}
    .product h3{
      font-size:clamp(1.05rem,4vw,1.25rem);
      margin-bottom:.35em;
    }
    .product p{
      font-size:clamp(.9rem,3.6vw,.95rem);
      color:#444;
    }

    .service3d-page{
      display:flex;
      flex-direction:column;
      gap:clamp(28px,5vw,56px);
      margin-top:var(--gap-lg);
      padding-bottom:clamp(20px,4vw,40px);
    }
    .service3d-hero{
      display:grid;
      grid-template-columns:minmax(0, 1.08fr) minmax(300px, .82fr);
      gap:clamp(20px,4vw,44px);
      align-items:start;
    }
    .service3d-hero__content{
      display:flex;
      flex-direction:column;
      gap:18px;
      padding-top:6px;
    }
    .service3d-hero__content h1{
      font-size:clamp(2rem, 5vw, 3.6rem);
      line-height:1.06;
      font-weight:700;
      letter-spacing:-0.025em;
      max-width:15ch;
      text-wrap:balance;
      margin:0;
    }
    .service3d-hero__lead{
      font-size:clamp(1rem, 2vw, 1.18rem);
      line-height:1.75;
      color:#54463a;
      max-width:68ch;
      margin:0;
    }
    .service3d-badges{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }
    .service3d-badge{
      display:inline-flex;
      align-items:center;
      padding:10px 14px;
      border-radius:999px;
      background:#f3f4f6;
      color:#2b3340;
      font-size:.95rem;
      font-weight:600;
      border:1px solid #e5e7eb;
    }
    .service3d-actions{
      display:flex;
      flex-wrap:wrap;
      gap:12px;
      padding-top:4px;
    }
    .service3d-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:46px;
      padding:0 18px;
      border-radius:999px;
      font-weight:600;
      text-decoration:none;
      transition:background-color .2s ease, color .2s ease, transform .2s ease;
    }
    .service3d-btn:hover{
      transform:translateY(-1px);
    }
    .service3d-btn--primary{
      background:#1a1714;
      color:#fff;
    }
    .service3d-btn--primary:hover{
      color:#fff;
      background:#332b25;
    }
    .service3d-btn--secondary{
      background:#f3f4f6;
      color:#2b3340;
    }
    .service3d-btn--secondary:hover{
      color:#2b3340;
      background:#ebedf0;
    }
    .service3d-btn--ghost{
      background:transparent;
      color:#2b3340;
      border:1px solid #d8dde5;
    }
    .service3d-btn--ghost:hover{
      color:#2b3340;
      background:#f7f8fa;
    }
.service3d-hero__gallery{
      display:flex;
      width:min(100%, 430px);
      justify-self:end;
      height:auto;
      align-self:start;
    }
    .service3d-hero__shot{
      display:flex;
      flex-direction:column;
      border-radius:24px;
      overflow:hidden;
      background:#fff;
      border:1px solid #ebe2d9;
      min-height:0;
      width:100%;
      height:auto;
    }
    .service3d-hero__shot-image{
      flex:none;
      min-height:0;
      background:#f4eee6;
    }
    .service3d-hero__shot--hero .service3d-hero__shot-image{
      aspect-ratio:1.52 / 1;
      max-height:320px;
    }
    .service3d-hero__shot img{
      width:100%;
      height:100%;
      display:block;
      object-fit:cover;
    }
    .service3d-hero__shot--hero img{
      object-position:center 40%;
    }
    .service3d-hero__shot figcaption{
      display:block;
      padding:10px 12px 12px;
      color:#483c32;
      font-size:.8rem;
      font-weight:600;
      line-height:1.45;
      min-height:0;
    }
    .service3d-section{
      display:flex;
      flex-direction:column;
      gap:20px;
    }
    .service3d-section__intro{
      display:flex;
      flex-direction:column;
      gap:10px;
      max-width:760px;
    }
    .service3d-section__intro h2,
    .service3d-story__content h2,
    .service3d-closing__main h2{
      font-size:clamp(1.65rem, 3.2vw, 2.55rem);
      line-height:1.08;
      font-weight:700;
      letter-spacing:-0.03em;
      margin:0;
    }
    .service3d-section__intro p,
    .service3d-story__content p,
    .service3d-contact p{
      margin:0;
      color:#5c5045;
      line-height:1.8;
      font-size:1.02rem;
    }
    .service3d-problems,
    .service3d-services,
    .service3d-audience-grid,
    .service3d-addon-grid{
      display:grid;
      grid-template-columns:repeat(4, minmax(0, 1fr));
      gap:16px;
    }
    .service3d-card{
      display:flex;
      flex-direction:column;
      gap:10px;
      padding:22px;
      border-radius:22px;
      background:#fff;
      border:1px solid #e7ddd2;
      min-height:100%;
    }
    .service3d-problems .service3d-card{
      border-color:transparent;
      box-shadow:none;
    }
    .service3d-addon-grid .service3d-card{
      border-color:transparent;
      box-shadow:none;
    }
    .service3d-card h3{
      margin:0;
      font-size:1.12rem;
      line-height:1.3;
      font-weight:700;
      color:#0f172a;
    }
    .service3d-card p{
      margin:0;
      color:#64564a;
      line-height:1.75;
    }
    .service3d-card--audience i{
      font-size:1.5rem;
      color:#4b5563;
    }
    .service3d-card--audience{
      background:#f7f7f8;
      border-color:#ececee;
    }
    .service3d-story{
      display:grid;
      grid-template-columns:minmax(300px, .95fr) minmax(0, 1.05fr);
      gap:clamp(20px,4vw,40px);
      align-items:stretch;
    }
    .service3d-story__media{
      border-radius:26px;
      overflow:hidden;
      background:#f3ece4;
      min-height:300px;
      height:100%;
      max-height:340px;
    }
    .service3d-story__media img{
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:center 34%;
      display:block;
    }
    .service3d-story__content{
      display:flex;
      flex-direction:column;
      gap:16px;
      justify-content:center;
    }
    .service3d-checks{
      display:flex;
      flex-direction:column;
      gap:12px;
      padding-top:4px;
    }
    .service3d-check{
      display:grid;
      grid-template-columns:24px minmax(0, 1fr);
      gap:16px;
      align-items:start;
    }
    .service3d-check i{
      font-size:1rem;
      color:#8a6137;
      margin-top:4px;
    }
    .service3d-check span{
      color:#4f443a;
      line-height:1.7;
    }
.service3d-steps{
  position:relative;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;
  align-items:stretch;
  padding-top:22px;
}
.service3d-steps::before{
  content:"";
  position:absolute;
  top:11px;
  left:8%;
  right:8%;
  height:2px;
  background:
    radial-gradient(circle, #d8cdc1 0 4px, transparent 4px) left center / 8px 8px no-repeat,
    radial-gradient(circle, #d8cdc1 0 4px, transparent 4px) right center / 8px 8px no-repeat,
    linear-gradient(90deg, #d8cdc1 0%, #d8cdc1 100%);
  pointer-events:none;
  border-radius:999px;
}
.service3d-step{
  position:relative;
  display:grid;
  grid-template-rows:auto 1fr;
  align-items:center;
  min-height:0;
  height:100%;
}
.service3d-step::before{
  content:none;
}
.service3d-step__node{
  align-self:center;
  width:10px;
  height:10px;
  margin-bottom:10px;
  border-radius:50%;
  background:#8a6137;
  box-shadow:0 0 0 6px #fff;
  z-index:1;
}
.service3d-step__card{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:8px;
  justify-content:flex-start;
  min-height:146px;
  height:100%;
  width:100%;
  padding:16px 14px 18px;
  border-radius:20px;
  background:#f7f7f8;
}
.service3d-step h3{
  margin:0;
  font-size:.9rem;
  line-height:1.34;
  text-wrap:balance;
}
.service3d-step p{
  margin:0;
  color:#625549;
  line-height:1.5;
  font-size:.84rem;
}
    .service3d-gallery{
      position:relative;
    }
    .service3d-gallery__navs{
      position:absolute;
      top:-58px;
      right:0;
      display:flex;
      gap:10px;
      z-index:2;
    }
    .service3d-gallery__nav{
      width:42px;
      height:42px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border-radius:999px;
      border:1px solid #e7ddd2;
      background:#fff;
      color:#2b3340;
      cursor:pointer;
      transition:background-color .2s ease, border-color .2s ease, transform .2s ease;
    }
    .service3d-gallery__nav:hover{
      background:#f7f7f8;
      border-color:#d7d9de;
      transform:translateY(-1px);
    }
    .service3d-gallery__track{
      display:grid;
      grid-auto-flow:column;
      grid-auto-columns:minmax(228px, 248px);
      gap:14px;
      overflow-x:auto;
      overscroll-behavior-x:contain;
      scroll-snap-type:x proximity;
      padding-bottom:10px;
      scrollbar-width:none;
      -ms-overflow-style:none;
    }
    .service3d-gallery__track::-webkit-scrollbar{
      display:none;
    }
    .service3d-gallery__item{
      display:flex;
      flex-direction:column;
      border-radius:20px;
      overflow:hidden;
      background:#fff;
      border:1px solid #eee4da;
      scroll-snap-align:start;
    }
    .service3d-gallery__image{
      display:block;
      width:100%;
      padding:0;
      border:none;
      cursor:zoom-in;
      height:248px;
      flex:0 0 248px;
      background:#f3ece4;
    }
    .service3d-gallery__image img{
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:center;
      display:block;
    }
    .service3d-gallery__content{
      display:flex;
      flex-direction:column;
      gap:8px;
      padding:16px;
    }
    .service3d-gallery__content h3{
      margin:0;
      font-size:1rem;
      line-height:1.35;
    }
    .service3d-gallery__content p{
      margin:0;
      color:#63564a;
      line-height:1.65;
      font-size:.93rem;
    }
    .service3d-closing{
      display:grid;
      grid-template-columns:minmax(0, 1.15fr) minmax(280px, .85fr);
      gap:20px;
      align-items:start;
    }
    .service3d-contact{
      display:flex;
      flex-direction:column;
      gap:14px;
      padding:24px;
      border-radius:24px;
      background:#f7f7f8;
      border:1px solid #ececee;
    }
    .service3d-contact h3{
      margin:0;
      font-size:1.3rem;
      line-height:1.3;
    }
    .service3d-link{
      color:#6f4c2f;
      font-weight:600;
      text-decoration:none;
    }
    .service3d-link:hover{
      text-decoration:underline;
      color:#6f4c2f;
    }
    @media(max-width:1180px){
      .service3d-problems,
      .service3d-services,
      .service3d-audience-grid,
      .service3d-addon-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
      }
      .service3d-closing{
        grid-template-columns:1fr;
      }
    }
    @media(max-width:980px){
      .service3d-hero,
      .service3d-story{
        grid-template-columns:1fr;
      }
      .service3d-hero__gallery{
        width:100%;
        justify-self:stretch;
      }
      .service3d-hero__shot--hero .service3d-hero__shot-image{
        aspect-ratio:1.18 / 1;
        max-height:none;
      }
      .service3d-story__media{
        min-height:280px;
        max-height:none;
      }
    }
@media(max-width:700px){
  .service3d-problems,
  .service3d-services,
  .service3d-audience-grid,
  .service3d-addon-grid{
        grid-template-columns:1fr;
      }
      .service3d-hero__shot--hero .service3d-hero__shot-image{
        height:190px;
        flex-basis:190px;
      }
      .service3d-hero__content h1{
        max-width:none;
      }
      .service3d-gallery__track{
        grid-auto-columns:minmax(220px, 76vw);
      }
      .service3d-gallery__image{
        height:220px;
        flex-basis:220px;
      }
  .service3d-gallery__navs{
    display:none;
  }
  .service3d-steps{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding-top:4px;
  }
  .service3d-steps::before{
    left:10px;
    right:auto;
    width:2px;
    height:auto;
    top:12px;
    bottom:12px;
    background:linear-gradient(180deg, rgba(138,97,55,0.12) 0%, rgba(138,97,55,0.34) 20%, rgba(138,97,55,0.16) 100%);
  }
  .service3d-step{
    display:grid;
    grid-template-columns:20px minmax(0, 1fr);
    gap:14px;
    align-items:start;
    height:auto;
  }
  .service3d-step::before{
    content:"";
    top:26px;
    left:10px;
    right:auto;
    width:12px;
    height:1px;
    background:#ddd2c7;
    transform:none;
  }
  .service3d-step__node{
    grid-column:1;
    justify-self:center;
    align-self:start;
    margin-top:20px;
    margin-bottom:0;
    width:10px;
    height:10px;
    box-shadow:0 0 0 6px #fff;
  }
  .service3d-step--left .service3d-step__card,
  .service3d-step--right .service3d-step__card{
    grid-column:2;
    margin:0;
  }
  .service3d-step__card{
    min-height:0;
    padding:16px 16px 16px 18px;
  }
  .service3d-step h3{
    font-size:1rem;
  }
}
    /* ----- С‚РѕС‡РµС‡РЅС‹Рµ mobile-РїСЂР°РІРєРё ----- */
    @media(max-width:480px){
      .image-text__img{
        flex:1 1 100%;
        aspect-ratio:16/9;      /* РєР°СЂС‚РёРЅРєР° С‡СѓС‚РѕС‡РєСѓ С€РёСЂРµ РЅР° СЃРІРµСЂС…-СѓР·РєРёС… */
      }
      .products-grid{
        grid-template-columns:1fr 1fr; /* СЃС‚СЂРѕРіРѕ РґРІРµ РєР°СЂС‚РѕС‡РєРё РІ СЂСЏРґ */
      }
    }

    @media(min-width:865px){
      .image-text__img{
        max-width: 240px;
      }
    }
    @media(max-width:770px){
      .image-text__img{
        flex:1 1 100%;
        aspect-ratio:16/9;      /* РєР°СЂС‚РёРЅРєР° С‡СѓС‚РѕС‡РєСѓ С€РёСЂРµ РЅР° СЃРІРµСЂС…-СѓР·РєРёС… */
      }
    }

    .section-title {
  display: block;
  margin: 12px 16px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.95rem;
  transition: background 0.2s;
  cursor: pointer;
}
.chat-item:hover {
  background-color: var(--new-chat-bg-hover);
}
.chat-item.active {
  background-color: var(--new-chat-bg-hover);
  font-weight: 600;
}
.chat-item {
  padding: 10px 20px;
  margin: 6px 12px;
  border-radius: 8px;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sidebar-text-color);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.chat-item:hover {
  background-color: var(--new-chat-bg-hover);
  color: #000;
}

.chat-item.active {
  background-color: var(--new-chat-bg);
  font-weight: 600;
  color: #000;
}

.label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-section-title {
  margin: 20px 16px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
}






/* РґР»СЏ Р±Р»РѕРєР° РїР°СЂС‚РЅРµСЂРѕРІ*/

.trusted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-sm);
  padding-top: var(--gap-sm);
}

.partner-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e2e2e2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.partner-card:hover {
  transform: scale(1.015);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.partner-logo {
  aspect-ratio: 1/1;
  background-color: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo img {
  transform: scale(1.05);
}

.partner-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 16px 4px;
  margin: 0;
}

.partner-card p {
  padding: 0 16px 8px;
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.partner-card .tag {
  padding: 0 16px 12px;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-page,
.store-detail,
.news-page,
.news-detail {
  display: flex;
  flex-direction: column;
  margin-top: var(--gap-lg);
}

.store-page,
.news-page {
  gap: var(--gap-lg);
}

.store-detail {
  gap: clamp(16px, 2vw, 24px);
}

.store-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5f24;
}

.store-detail__content h1 {
  max-width: 960px;
  margin: 14px 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  color: #101828;
}

.store-hero__copy p,
.store-detail__intro {
  max-width: 860px;
  margin: 0;
  font-size: clamp(1.02rem, 2.7vw, 1.18rem);
  line-height: 1.65;
  color: #475467;
}

.store-toolbar,
.store-section__header h2 {
  margin: 0;
}

.store-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-toolbar__searchline {
  display: flex;
}

.store-searchbox {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 10px 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.store-searchbox i {
  color: #6b7280;
  font-size: 0.95rem;
}

.store-searchbox__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #111827;
  font: inherit;
}

.store-searchbox__input::placeholder {
  color: #94a3b8;
}

.store-toolbar__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.store-toolbar__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.store-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-toolbar__rail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.store-toolbar__rail .store-toolbar__chips {
  flex: 1;
  min-width: 0;
}

.store-toolbar__rail .store-filter-button {
  margin-left: auto;
}

.store-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.store-filter-button--inline {
  margin-left: 0;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.store-cart-shell {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1210;
}

.store-cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.26);
}

.store-cart-button i {
  font-size: 1.2rem;
}

.store-cart-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.store-cart-button strong {
  position: absolute;
  top: -3px;
  right: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
  font-size: 0.76rem;
}

.store-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
}

.store-cart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(4px);
}

.store-cart-modal__panel {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  width: min(460px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.18);
}

.store-cart-modal__header,
.store-cart-modal__summary,
.store-cart-form__actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.store-cart-modal__header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #101828;
}

.store-cart-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #344054;
  cursor: pointer;
}

.store-cart-modal__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
}

.store-cart-modal__summary {
  padding-bottom: 10px;
  border-bottom: 1px solid #eceef2;
  color: #475467;
  font-size: 0.92rem;
}

.store-cart-sections,
.store-cart-section {
  display: grid;
  gap: 14px;
}

.store-cart-section h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #101828;
}

.store-cart-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f8f8f8;
}

.store-cart-item__head,
.store-cart-item__meta,
.store-cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-cart-item__head strong {
  color: #101828;
  font-size: 0.95rem;
}

.store-cart-item__offer,
.store-cart-item__price,
.store-cart-item__hint {
  color: #667085;
  font-size: 0.84rem;
}

.store-cart-item__footer {
  align-items: flex-end;
}

.store-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-cart-qty button,
.store-cart-item__remove,
.store-card__action,
.store-card__link-secondary,
.store-cart-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.store-cart-qty button {
  min-width: 34px;
  padding: 0;
  background: #e5e7eb;
  color: #111827;
}

.store-cart-qty strong {
  min-width: 20px;
  text-align: center;
  color: #101828;
  font-size: 0.92rem;
}

.store-cart-item__remove,
.store-card__link-secondary {
  background: #f3f4f6;
  color: #344054;
}

.store-cart-empty {
  padding: 18px;
  border-radius: 16px;
  background: #f8f8f8;
}

.store-cart-empty h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #101828;
}

.store-cart-empty p {
  margin: 0;
}

.store-cart-form {
  display: grid;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid #eceef2;
}

.store-cart-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-cart-form__field {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #ffffff;
  color: #101828;
  font: inherit;
}

.store-cart-form__field--area {
  min-height: 92px;
  padding-block: 12px;
  resize: vertical;
}

.store-cart-form__message {
  color: #475467;
  font-size: 0.88rem;
}

.store-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-toolbar__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: #f7f7f8;
  box-shadow: 0 0 0 1px #ececec;
}

.store-toolbar__chip.is-active {
  background: #101828;
  color: #ffffff;
  box-shadow: none;
}

.store-toolbar__chip strong,
.store-filter-chip strong {
  font-size: 0.88rem;
}

.store-toolbar__chip--passive {
  background: #fbfbfb;
}

.store-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.store-filter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
}

.store-filter-modal__panel {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.store-filter-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.store-filter-modal__header h2,
.store-filter-modal__section h3 {
  margin: 0;
  color: #101828;
}

.store-filter-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #344054;
  cursor: pointer;
}

.store-filter-modal__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
}

.store-filter-modal__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-filter-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-filter-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8f8f8;
  color: #344054;
}

.store-filter-option input {
  margin: 0;
}

.store-filter-option strong {
  font-size: 0.84rem;
  color: #667085;
}

.store-filter-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.store-filter-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.store-filter-modal__action--ghost {
  background: #f3f4f6;
  color: #344054;
}

.store-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.store-section__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-section__header h2 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.15;
  color: #101828;
}

.store-featured-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
}

.store-featured-card,
.store-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #ececec;
}

.store-featured-card__link {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  height: 100%;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
}

.store-featured-card__anchor {
  display: block;
  height: 100%;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.store-featured-card__media,
.store-card__media,
.store-detail__media {
  background: #f4f4f4;
}

.store-featured-card__media,
.store-card__media {
  overflow: hidden;
}

.store-featured-card__media {
  min-height: 100%;
  height: 100%;
  align-self: stretch;
}

.store-card__media {
  aspect-ratio: 5 / 3;
}

.store-featured-card__media img,
.store-card__media img,
.store-detail__media img,
.store-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card__media--empty,
.store-detail__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-featured-card__body,
.store-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.store-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.store-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.8rem;
  font-weight: 600;
  color: #344054;
  text-decoration: none;
}

.store-chip strong {
  font-size: 0.74rem;
}

.store-chip--accent {
  background: #ebf3ff;
  color: #1849a9;
}

.store-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.store-card__date {
  font-size: 0.86rem;
  color: #667085;
}

.store-card__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: #111827;
}

.store-card h3,
.store-featured-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.2;
  color: #101828;
}

.store-card p,
.store-featured-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #475467;
}

.store-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  font-size: 0.9rem;
  color: #667085;
}

.store-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.store-card__action--large {
  min-height: 44px;
  padding-inline: 18px;
}

.store-card__anchor {
  color: inherit;
  text-decoration: none;
}

.store-detail__cta {
  display: flex;
  margin-top: 18px;
}

.store-empty {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
  background: #f8f8f8;
}

.store-empty h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #111827;
}

.store-empty p {
  margin: 0;
  max-width: 760px;
  line-height: 1.7;
  color: #667085;
}

.store-empty--filtered {
  margin-top: 12px;
}

.store-detail__hero {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.store-detail__gallery {
  display: grid;
  gap: 12px;
}

.store-detail__media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 4.6;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
}

.store-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.store-detail__thumb {
  padding: 0;
  border: 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f4f4;
  box-shadow: 0 0 0 1px #e5e7eb;
  cursor: pointer;
}

.store-detail__thumb.is-active {
  box-shadow: 0 0 0 2px #111827;
}

.store-detail__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-detail__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.store-detail__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.store-detail__offers-band {
  display: grid;
  gap: 14px;
}

.store-detail__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #f8f8f8;
}

.store-detail__panel--plain {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.store-offer-list,
.store-attribute-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-offer-list--selectable {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.store-offer-card,
.store-attribute {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #ececec;
}

.store-offer-card {
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.store-offer-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px #d8dee9;
}

.store-offer-card.is-active {
  background: #f7f9ff;
  box-shadow: 0 0 0 2px #1d4ed8;
}

.store-offer-card strong,
.store-attribute strong {
  color: #111827;
}

.store-offer-card span,
.store-attribute span {
  color: #667085;
  line-height: 1.6;
}

.store-detail__purchase {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.store-detail__purchase-panel {
  margin-top: 4px;
}

.store-detail__purchase-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-detail__purchase-copy strong {
  font-size: 1.02rem;
  color: #111827;
}

.store-detail__purchase-copy span {
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 700;
  color: #111827;
}

.store-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-sm);
}

.store-gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #f4f4f4;
}

.store-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.store-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}

.store-lightbox__content {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-lightbox__image {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.4);
}

.store-lightbox__close,
.store-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.store-lightbox__close {
  top: 0;
  right: 0;
}

.store-lightbox__nav--prev {
  left: 0;
}

.store-lightbox__nav--next {
  right: 0;
}

.news-detail {
  gap: clamp(16px, 2vw, 24px);
}

.news-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 20px;
  background: #f9f9f9;
  box-shadow: 0 0 0 1px #ececec;
}

.news-kicker,
.news-section__eyebrow,
.news-timeline__period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5f24;
}

.news-hero__copy h1,
.news-detail__content h1 {
  max-width: 760px;
  margin: 14px 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  color: #101828;
}

.news-hero__copy p,
.news-detail__intro {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.02rem, 2.7vw, 1.18rem);
  line-height: 1.65;
  color: #475467;
}

.news-panel {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #ececec;
}

.news-panel {
  padding: 16px 18px;
}

.news-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.news-section__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.news-section__title,
.news-panel__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 650;
  line-height: 1.15;
  color: #101828;
}

.news-section__lead {
  max-width: 760px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #667085;
}

.news-secondary-grid,
.news-feed-grid,
.news-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-sm);
}

.news-format-list,
.news-timeline,
.news-detail__points {
  display: grid;
  gap: 16px;
}

.news-card {
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.news-card:hover {
  transform: none;
  box-shadow: none;
}

.news-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card__link--split {
  display: grid;
  height: 100%;
}

.news-card__link--wide {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  min-height: 100%;
}

.news-card__media {
  background: #f4f4f4;
}

.news-card__media--medium {
  aspect-ratio: 16 / 10;
}

.news-card__media img,
.news-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: clamp(18px, 3vw, 26px);
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.8rem;
  font-weight: 600;
  color: #344054;
}

.news-chip--accent {
  background: #ebf3ff;
  color: #1849a9;
}

.news-chip--soft {
  background: #fdf1e7;
  color: #b54708;
}

.news-card__date {
  font-size: 0.86rem;
  color: #667085;
}

.news-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.16rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  color: #101828;
}

.news-card p,
.news-format-item p,
.news-timeline__item p,
.news-detail__body p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #475467;
}

.news-card--wide .news-card__media {
  min-height: 100%;
}

.news-format-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.news-format-item i,
.news-detail__point i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eef4ff;
  color: #2452a6;
  font-size: 1.1rem;
}

.news-format-item h4,
.news-timeline__item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.news-timeline__item {
  position: relative;
  padding-left: 20px;
}

.news-timeline__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5772d;
  box-shadow: 0 0 0 6px rgba(197, 119, 45, 0.12);
}

.news-timeline__period {
  margin-bottom: 8px;
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  color: #344054;
  background: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.news-back:hover {
  background: #ececec;
  color: #111827;
}

.news-detail__hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.news-detail__media {
  background: #f4f4f4;
}

.news-detail__media--hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: #f4f4f4;
  overflow: hidden;
}

.news-detail__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-detail__body {
  display: flex;
  flex-direction: column;
  gap: 34px;
  color: #344054;
}

.news-flow-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-flow-block--split {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.news-flow-block--slot-right {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.news-flow-block__slot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.news-flow-block--slot-left .news-flow-block__slot {
  justify-self: start;
}

.news-flow-block--slot-right .news-flow-block__slot {
  justify-self: end;
}

.news-flow-block__slot--card {
  padding: 22px 24px;
  border-radius: 20px;
  background: #f8f8f8;
}

.news-flow-block__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: #f4f4f4;
  overflow: hidden;
}

.news-flow-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-flow-block__content {
  min-width: 0;
}

.news-flow-block--split .news-flow-block__content {
  align-self: center;
}

.news-flow-block__heading {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.72rem);
  line-height: 1.2;
  color: #111827;
}

.news-flow-block__content p {
  font-size: 1.04rem;
  line-height: 1.8;
  color: #344054;
}

.news-flow-block__content p + p {
  margin-top: 18px;
}

.news-flow-block__slot-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #475467;
}

.news-detail__point {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

.news-detail__point i {
  color: #2f6fe4;
  font-size: 1rem;
  line-height: 1;
  margin-top: 3px;
}

.news-detail__point span {
  display: block;
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #344054;
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-sm);
}

@media (max-width: 960px) {
  .store-searchbox {
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 12px;
  }

  .store-searchbox__input {
    width: 100%;
  }

  .store-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }

  .store-filter-button {
    width: fit-content;
  }

  .store-filter-button--inline {
    min-width: 42px;
    width: 42px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .store-filter-button--inline span {
    display: none;
  }

  .store-toolbar__rail {
    flex-direction: column;
    align-items: stretch;
  }

  .store-cart-shell {
    right: 16px;
    bottom: 16px;
  }

  .store-card-grid,
  .store-featured-stack,
  .store-gallery,
  .store-offer-list,
  .store-attribute-list,
  .store-offer-list--selectable,
  .store-detail__summary,
  .news-hero,
  .news-secondary-grid,
  .news-feed-grid,
  .news-panels-grid,
  .news-related-grid {
    grid-template-columns: 1fr;
  }

  .news-card__link--wide {
    grid-template-columns: 1fr;
  }

  .store-featured-card__link,
  .store-detail__hero,
  .store-detail__summary,
  .store-offer-list,
  .store-offer-list--selectable,
  .store-attribute-list {
    grid-template-columns: 1fr;
  }

  .news-section__lead {
    max-width: none;
  }

  .news-detail__hero {
    grid-template-columns: 1fr;
  }

  .news-detail__media--hero {
    max-width: 260px;
  }

  .store-card-grid {
    grid-template-columns: 1fr;
  }

  .store-filter-modal__panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .store-cart-modal__panel {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .store-detail__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-detail__purchase {
    flex-direction: column;
    align-items: stretch;
  }

  .store-lightbox__content {
    inset: 16px;
  }

  .store-cart-form__grid {
    grid-template-columns: 1fr;
  }

  .news-flow-block--split,
  .news-flow-block--slot-right {
    grid-template-columns: 1fr;
  }

  .news-flow-block__slot {
    max-width: none;
  }
}

@media (max-width: 1360px) and (min-width: 961px) {
  .store-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .news-hero__copy h1,
  .news-detail__content h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .products-grid .product:nth-child(3) {
    grid-column: 1 / -1;
  }
}
