/* ============================================================
   alsnab.ru — новая тема profitbuy-v2 (шапка H1+H2, футер)
   Загружается после profitbuy.min.css и alsnab-fixes.css
   ============================================================ */

body { padding-top: 56px !important; }

/* ---------- H1: фиксированная верхняя панель ---------- */
.v2topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  background: #02FECD;
  color: #0e3f39;
  box-shadow: 0 2px 5px rgba(0,0,0,.16), 0 2px 10px rgba(0,0,0,.12);
}
.v2topbar-in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}
.v2menu { position: relative; flex: 0 0 auto; }
.v2menu-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 0;
  color: #0e3f39; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 8px 10px; border-radius: 6px;
  font-family: inherit;
}
.v2menu-btn:hover { background: rgba(255,255,255,.45); }
.v2menu-dd {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 190px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  padding: 6px; z-index: 1300;
}
.v2menu.v2open .v2menu-dd { display: block; }
.v2menu-dd a {
  display: block; padding: 9px 12px; border-radius: 6px;
  color: #22302e; font-size: 13px; text-decoration: none;
}
.v2menu-dd a:hover { background: #eefaf6; }

.v2search { flex: 1 1 380px; max-width: 640px; margin: 0 auto; position: relative; }
.v2search form { display: flex; align-items: center; min-height: 42px; background: #fff; border: 1px solid #b9ebdf; border-radius: 6px; padding-left: 12px; }
.v2search form::before { content: none; display: none; }
.v2search input[type="text"],
.v2search input[type="search"],
.v2search input:not([type]) {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 9px 8px; font-size: 13px; color: #22302e; min-width: 0;
  height: auto; margin: 0; box-shadow: none;
}
.v2search input::placeholder { color: #8fa3a0; }
.v2search button, .v2search input[type="submit"] {
  border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 0; margin: 0;
  background: url(../img/v2/icon-search.png) no-repeat center;
  background-size: 34px 34px;
  color: transparent; font-size: 0; line-height: 0;
  text-indent: -9999px; overflow: hidden;
  flex: 0 0 42px;
}
.v2search button i, .v2search button .material-icons { display: none !important; }
.v2search input[type="search"] { padding-left: 4px; }

.v2icons { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.v2ic { position: relative; display: block; width: 34px; height: 34px; }
.v2ic img { display: block; width: 34px; height: 34px; transition: transform .12s ease; }
.v2ic:hover img { transform: translateY(-2px) scale(1.05); }
.v2cnt {
  position: absolute; top: -5px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  background: linear-gradient(145deg,#ffb14d,#ff6a00);
  color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

/* ---------- H2: логотип / мини-слайдер / контакты ---------- */
.v2headerrow { background: #fff; border-bottom: 1px solid #e4e7eb; }
.v2hg {
  display: grid;
  grid-template-columns: 230px minmax(0,1fr) 240px;
  gap: 22px;
  align-items: center;
  padding: 12px 0;
}
.v2logo #logo img, .v2logo img { display: block; height: 82px; width: auto; max-width: 330px; }
.v2logo #logo { display: block; }

.v2banner { position: relative; height: 104px; border-radius: 6px; overflow: hidden; background: #ffe7c2; }
.v2slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .45s ease;
  display: block;
}
.v2slide.v2slide-on { opacity: 1; z-index: 2; }
.v2slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2dots {
  position: absolute; left: 0; right: 0; bottom: 6px;
  display: flex; gap: 6px; justify-content: center; z-index: 3;
}
.v2dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.25); cursor: pointer; }
.v2dot.v2dot-on { background: #fff; }

.v2contacts { font-size: 12px; line-height: 1.5; text-align: right; }
.v2contacts .v2cemail a { font-weight: 700; color: #1f2328; text-decoration: none; }
.v2contacts .v2chours { color: #7b8189; }

/* скрываем старую нижнюю панель (иконки переехали в H1) */
#footer-pane { display: none !important; }
body { padding-bottom: 0 !important; }

/* ---------- V2 футер ---------- */
.v2footer {
  background: #0b2b4a;
  color: #dbe4ee;
  margin-top: 8px;
}
.v2footer .container { padding-top: 0; padding-bottom: 0; }
.v2fgrid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 26px;
  padding: 26px 0 18px;
}
.v2fabout p { font-size: 12.5px; line-height: 1.5; color: #b9c7d8; margin: 10px 0 12px; }
.v2flogo { display: block; height: 40px; width: auto; margin-bottom: 10px; }
.v2fphone { font-size: 13px; margin-bottom: 4px; }
.v2fphone a { color: #fff; font-weight: 700; text-decoration: none; }
.v2fmail { font-size: 12.5px; margin-bottom: 4px; }
.v2fmail a { color: #cfe0f0; text-decoration: none; }
.v2socials { display: flex; gap: 6px; margin-top: 12px; }
.v2socials a { display: block; width: 30px; height: 30px; border-radius: 7px; overflow: hidden; transition: transform .12s ease; }
.v2socials a:hover { transform: translateY(-1px); }
.v2socials svg { display: block; width: 30px; height: 30px; }
.v2fcol h4, .v2faddr h4 { font-size: 13px; margin: 0 0 10px; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.v2fcol ul { list-style: none; margin: 0; padding: 0; }
.v2fcol li { font-size: 12.5px; line-height: 1.95; }
.v2fcol a { color: #dbe4ee; text-decoration: none; }
.v2fcol a:hover { color: #fff; text-decoration: underline; }
.v2faddrtext { font-size: 12.5px; line-height: 1.7; color: #c3d2e2; }
.v2fmode { border-left: 3px solid #3f6a97; padding-left: 10px; margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: #c3d2e2; }
.v2fsec { border-top: 1px solid #1c4468; border-bottom: 1px solid #1c4468; padding: 12px 0; }
.v2fsec-in { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.v2sec { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: #b9c7d8; }
.v2sec-ic { font-size: 18px; }
.v2sec b { display: block; color: #fff; font-size: 12px; }
.v2fbottom { padding: 12px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 11.5px; color: #9fb3c8; }
.v2flinks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.v2flinks a { color: #9fb3c8; text-decoration: none; }
.v2flinks a:hover { color: #fff; }
.v2copy { text-align: right; }

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
  .v2hg { grid-template-columns: 200px minmax(0,1fr) 220px; }
}
@media (max-width: 992px) {
  .v2hg { grid-template-columns: 1fr; gap: 10px; }
  .v2logo img, .v2logo #logo img { height: 72px; max-width: 290px; }
  .v2banner { height: 94px; }
  .v2contacts { display: flex; gap: 14px; flex-wrap: wrap; }
  .v2fgrid { grid-template-columns: 1fr 1fr; }
  .v2fsec-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .v2topbar-in { flex-wrap: wrap; min-height: 54px; gap: 10px; }
  .v2search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 8px; }
  .v2ic, .v2ic img { width: 30px; height: 30px; }
  .v2logo img, .v2logo #logo img { height: 64px; max-width: 250px; }
  .v2fgrid { grid-template-columns: 1fr; }
  .v2fsec-in { grid-template-columns: 1fr; }
  .v2copy { text-align: left; }
}

/* ---------- V2: облако логотипов брендов ---------- */
.v2brandcloud { padding: 20px 0 12px; background: #fff; }
.v2brandcloud-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 20px 38px;
}
.v2brand {
  display: flex; align-items: center; justify-content: center;
  height: 60px; min-width: 130px; padding: 2px 6px; text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.v2brand:hover { transform: translateY(-1px); }
.v2brand img {
  max-height: 52px !important; max-width: 140px !important;
  width: auto !important; height: auto !important;
  object-fit: contain; display: block; mix-blend-mode: multiply;
}
.v2brand-txt {
  font-weight: 800; font-size: 15px; letter-spacing: .5px;
  color: #7f8a94; padding-bottom: 2px; text-transform: uppercase;
}
@media (max-width: 992px) {
  .v2brandcloud-in { gap: 14px 26px; }
  .v2brand { height: 52px; min-width: 112px; }
  .v2brand img { max-height: 42px !important; max-width: 118px !important; }
}
@media (max-width: 768px) {
  .v2brandcloud-in { gap: 12px 20px; }
  .v2brand { height: 44px; min-width: 92px; }
  .v2brand img { max-height: 34px !important; max-width: 96px !important; }
  .v2brand-txt { font-size: 12px; }
}

/* ---------- SEO-блок «Читать подробнее» (по правилам поисковиков) ---------- */
.v2seo {
  margin: 26px 0 8px;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  padding: 0 20px;
}
.v2seo-summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2328;
  position: relative;
  padding-right: 28px;
}
.v2seo-summary::-webkit-details-marker { display: none; }
.v2seo-summary::after {
  content: "▾";
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: #0e9e8d; transition: transform .2s ease;
}
.v2seo[open] .v2seo-summary::after { transform: translateY(-50%) rotate(180deg); }
.v2seo-body { padding: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: #3b4148; }
.v2seo-body h2 { font-size: 19px; margin: 6px 0 10px; color: #1f2328; }
.v2seo-body h3 { font-size: 15px; margin: 18px 0 6px; color: #1f2328; }
.v2seo-body p { margin: 0 0 10px; }
.v2seo-body ul { margin: 0 0 12px; padding-left: 20px; }
.v2seo-body li { margin-bottom: 4px; }
.v2seo-body a { color: #0e7d70; text-decoration: underline; }
/* ---------- V2: FAQ ---------- */
.v2faq { margin: 22px 0 6px; background: #fff; border: 1px solid #e4e7eb; border-radius: 8px; padding: 18px 20px; }
.v2faq > h2 { font-size: 19px; margin: 0 0 12px; color: #1f2328; }
.v2faq-item { border-top: 1px solid #eef1f4; padding: 0; }
.v2faq-item:first-of-type { border-top: 0; }
.v2faq-item summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; color: #1f2328; list-style: none; position: relative; padding-right: 24px; }
.v2faq-item summary::-webkit-details-marker { display: none; }
.v2faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #0e9e8d; }
.v2faq-item[open] summary::after { content: "–"; }
.v2faq-a { font-size: 13.5px; line-height: 1.6; color: #3b4148; padding: 0 0 14px; }
/* ---------- V2: иконка меню (гамбургер) ---------- */
.v2menu-btn { padding: 8px 10px; }
.v2burger { display: inline-flex; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; }
.v2burger i { display: block; width: 100%; height: 3px; border-radius: 2px; background: #0e3f39; transition: background .15s ease; }
.v2menu-btn:hover .v2burger i { background: #065a50; }
.v2menu.v2open .v2burger i { background: #065a50; }
/* ---------- V2: контакты в шапке (карточка) ---------- */
.v2contacts-card { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 0; padding: 0; text-decoration: none; background: transparent; }
.v2contacts-card:hover { border: 0; background: transparent; }
.v2cpin { color: #1a73e8; font-size: 22px; line-height: 1; flex: 0 0 auto; }
.v2cbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2cemail { font-size: 13px; font-weight: 700; color: #1f2328; white-space: nowrap; }
.v2chours { font-size: 12px; color: #7b8189; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.v2cinfo { font-size: 14px; color: #9aa3ad; vertical-align: middle; }
@media (max-width: 992px) {
  .v2contacts-card { display: inline-flex; }
}
/* ---------- V2: график работы в шапке ---------- */
.v2info { position: relative; display: inline-flex; vertical-align: middle; }
.v2info-btn { background: none; border: 0; padding: 0 0 0 4px; cursor: pointer; color: #9aa3ad; line-height: 0; display: inline-flex; align-items: center; }
.v2info-btn .material-icons { font-size: 15px; }
.v2info.v2open .v2info-btn, .v2info-btn:hover { color: #1a73e8; }
.v2schedule-dd {
  display: none;
  position: absolute; top: 120%; right: -10px;
  min-width: 210px;
  background: #fff; border: 1px solid #e4e7eb; border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
  padding: 10px 14px; z-index: 1300;
  text-align: left;
}
.v2info.v2open .v2schedule-dd { display: block; }
.v2sch-title { display: block; font-weight: 700; font-size: 12px; color: #1f2328; margin-bottom: 6px; }
.v2sch-row { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; line-height: 1.8; }
.v2sch-day { color: #7b8189; }
.v2sch-time { color: #1f2328; white-space: nowrap; }
/* ---------- V2: контакты в шапке — как в старой версии (без рамки) ---------- */
.v2contacts {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  flex-wrap: nowrap;
}
.v2contacts .v2cpin { color: #1a73e8; font-size: 20px; line-height: 1; flex: 0 0 auto; }
.v2contacts .v2cbody { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.v2contacts .v2cemail { font-size: 13px; font-weight: 700; color: #1f2328; text-decoration: none; white-space: nowrap; }
.v2contacts .v2cemail:hover { color: #0b57c8; }
.v2contacts .v2chours { font-size: 12px; color: #7b8189; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.v2contacts .v2info-btn .material-icons { font-size: 15px; }
@media (max-width: 992px) {
  .v2contacts { justify-content: flex-start; flex-wrap: wrap; }
}
/* ---------- V2: иконка-метка меняет цвет ---------- */
.v2contacts .v2cpin { color: #b60727; transition: color .15s ease; }
.v2contacts:hover .v2cpin,
.v2contacts .v2cemail:hover ~ .v2cpin { color: #1a73e8; }
.v2contacts .v2chours .v2info-btn { transition: color .15s ease; }
.v2contacts .v2info-btn:hover { color: #1a73e8; }
/* ---------- V2: страница «Доставка» ---------- */
.v2dlead { font-size: 15px; line-height: 1.6; color: #3b4148; margin: 0 0 20px; max-width: 900px; }
h2.v2dtitle { font-size: 20px; margin: 26px 0 12px; color: #1f2328; }
.v2dcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 8px; }
.v2dcard { border: 1px solid #e4e7eb; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.v2dlogo { height: 64px; display: flex; align-items: center; justify-content: flex-start; }
.v2dlogo img { max-height: 56px; max-width: 150px; width: auto; height: auto; object-fit: contain; display: block; }
.v2dcard h3 { margin: 0; font-size: 16px; color: #1f2328; }
.v2dcard p { margin: 0; font-size: 13px; color: #5c636b; line-height: 1.5; flex: 1 1 auto; }
.v2dcard a { font-size: 12px; color: #1a73e8; text-decoration: none; }
.v2dcard a:hover { text-decoration: underline; }
.v2dlist { margin: 0 0 18px; padding-left: 20px; font-size: 14px; line-height: 1.7; color: #3b4148; }
.v2dnote { font-size: 14px; color: #3b4148; margin: 22px 0 8px; }
.v2dnote a { color: #1a73e8; }
@media (max-width: 992px) { .v2dcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .v2dcards { grid-template-columns: 1fr; } }
/* ---------- V2: «Страны, куда доставляем» ---------- */
.v2geo { margin: 4px 0 26px; padding: 22px 22px 24px; background: #f4f8fb; border-radius: 10px; }
.v2geo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.v2geo-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #1a5dc8; text-transform: uppercase; }
.v2geo-title { font-size: 24px; font-weight: 800; color: #0f2440; margin: 2px 0 0; }
.v2geo-note { font-size: 13px; color: #5c636b; max-width: 520px; }
.v2geocards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.v2geocard { background: #fff; border: 1px solid #e3e9ef; border-radius: 10px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.v2geobadge { width: 44px; height: 34px; border-radius: 8px; background: #e8f0fb; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #1a5dc8; margin-bottom: 2px; }
.v2geoname { font-size: 17px; font-weight: 800; color: #0f2440; margin: 0; }
.v2geodesc { font-size: 13px; line-height: 1.5; color: #5c636b; margin: 0; flex: 1 1 auto; }
.v2geometric { font-size: 12.5px; font-weight: 700; color: #0b7a45; padding-top: 10px; border-top: 1px solid #eef2f6; margin-top: 4px; }
@media (max-width: 800px) { .v2geocards { grid-template-columns: 1fr; } .v2geo { padding: 16px; } }
/* ---------- V2: страница «Оплата» ---------- */
.v2paycards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 10px; }
.v2paycard { border: 1px solid #e4e7eb; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.v2payicon { width: 44px; height: 44px; border-radius: 10px; background: #eaf3ff; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.v2payicon .material-icons { font-size: 24px; color: #1a5dc8; }
.v2paycard h3 { margin: 0; font-size: 16px; color: #1f2328; }
.v2paycard p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #5c636b; flex: 1 1 auto; }
.v2paytag { align-self: flex-start; font-size: 11px; font-weight: 700; color: #0b7a45; background: #e9f7ef; border-radius: 20px; padding: 3px 10px; }
@media (max-width: 800px) { .v2paycards { grid-template-columns: 1fr; } }
/* ---------- V2: салатовая полоса категорий в 2 раза тоньше, баннер выше ---------- */
@media only screen and (min-width: 993px) {
  .tree-wrapper { height: 28px !important; min-height: 28px !important; }
  .tree-wrapper .container,
  .tree-wrapper .sidebar-box { height: 28px !important; min-height: 28px !important; }
  .tree-wrapper ul.base-menu.type1.tree { height: 28px !important; }
  .tree-wrapper ul.base-menu.type1.tree li { height: 28px !important; }
  .tree-wrapper ul.base-menu.type1.tree li a {
    line-height: 28px !important;
    height: 28px !important;
    padding: 0 14px !important;
    font-size: 12.5px !important;
  }
}
.v2banner { height: 170px !important; }
.v2hg { align-items: stretch; }
/* ---------- V2: мобильный фикс шапки (v26) ---------- */
@media (max-width: 768px) {
  /* шапка на телефоне двухстрочная — освобождаем место под неё */
  body { padding-top: 94px !important; }
  .v2topbar-in { padding: 6px 10px; gap: 6px; }
  .v2menu { margin-right: 2px; }
  .v2icons { gap: 6px; }
  .v2icons img { width: 30px !important; height: 30px !important; }
  .v2search { margin: 6px 0 2px !important; }
  .v2search form { min-height: 38px; }
  .v2search input { font-size: 13px; padding: 7px 6px 7px 2px; }
  .v2hg { padding: 10px 12px; }
  .v2logo img { max-height: 56px; width: auto; }
  .v2banner { height: 170px !important; }
}
/* ---------- V2: мобильные фиксы v27 ---------- */
@media (max-width: 768px) {
  html body { padding-top: 94px !important; }
  .v2topbar-in { padding: 6px 10px !important; }
  .category-description, .content, .maincontent { max-width: 100%; }
  .category-description pre,
  .maincontent pre { white-space: pre-wrap !important; word-wrap: break-word !important; overflow-wrap: anywhere !important; }
  .maincontent img, .category-description img { max-width: 100% !important; height: auto !important; }
  .maincontent table { max-width: 100% !important; }
}
/* ---------- V2: v28 — логотип по центру ряда, чат на мобильных ---------- */
.v2logo { display: flex !important; align-items: center; height: 100%; }
.v2logo img { margin: 0 !important; }
@media (max-width: 768px) {
  .__jivoMobileButton,
  .wrap__EcG2q {
    transform: scale(0.72) !important;
    transform-origin: bottom right !important;
    right: 6px !important;
    bottom: 6px !important;
  }
}
/* ---------- V2: v29 — кнопка чата ещё меньше на мобильных ---------- */
@media (max-width: 768px) {
  .__jivoMobileButton,
  .wrap__EcG2q {
    transform: scale(0.6) !important;
    transform-origin: bottom right !important;
    right: 2px !important;
    bottom: 4px !important;
    opacity: .95 !important;
  }
}