/* ============================================================
   HirudoTrade — брендовый слой ПОВЕРХ style.css (Nursico)
   Фиолетовая тема шаблона -> фирменный красный/чёрный
   ============================================================ */

:root {
  --theme-color1: #b21422;            /* фирменный красный (буква t логотипа) */
  --theme-color1-rgb: 178, 20, 34;
  --theme-color2: #1d2226;            /* тёмный (вместо тёмно-синего) */
  --theme-color2-rgb: 29, 34, 38;
  --theme-color3: #8c0f1a;            /* глубокий красный (вместо бирюзы) */
  --theme-color3-rgb: 140, 15, 26;
  --theme-color4: #d84a3c;            /* тёплый красный (вместо розового) */
  --theme-color4-rgb: 216, 74, 60;
  --theme-color-silver: #f7f4f2;      /* светлый фон — тёплый серый */
  --theme-color-lighter: #faf7f5;
  /* шаблонный фиолетово-розовый градиент (заголовки, кнопки) -> красный */
  --gradient-1: linear-gradient(88.96deg, #8c0f1a 0.98%, #d84a3c 75.08%);
  --headings-color: #1d2226;          /* было тёмно-синим #003554 */
}


/* Подложка шапки: одна полупрозрачная «таблетка» на всю длину ряда */
.main-header .header-lower .inner-container {
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  margin: 14px 24px 0;
  padding: 10px 14px 10px 28px;
}
/* Раскладка шапки: логотип слева, меню по центру, кнопка справа */
.header-style-one .header-lower .inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-style-one .header-lower .inner-container .logo-box { flex: 0 0 auto; }
.header-style-one .header-lower .inner-container .nav-outer {
  background: transparent;
  margin-right: 0;
  margin-left: 0;
  flex: 1 1 auto;                 /* занимает центр */
  display: flex;
  justify-content: center;        /* центрирует пункты */
}
.header-style-one .header-lower .inner-container .right-box { flex: 0 0 auto; }

/* Все секционные заголовки — сплошной фирменный красный + единый шрифт (без декоративного серифа) */
.sec-title .title,
.sec-title .title span {
  color: var(--theme-color1) !important;
  -webkit-text-fill-color: var(--theme-color1) !important;
  background: none !important;
  font-family: var(--heading-font-family) !important;
}

/* Кнопки действия: сплошной фирменный красный (вместо градиента шаблона) */
.btn-style-one {
  background: var(--theme-color1);
  color: #fff;
}
/* длинный текст CTA («Получить консультацию») в одну строку, не обрезать */
.theme-btn.btn-style-one .btn-title { white-space: nowrap; }
.btn-style-one:hover, .btn-style-one:active { background: #8c0f1a; }
.theme-btn.btn-style-two { background: var(--theme-color1); color: #fff; }
.theme-btn.btn-style-two:hover { background: #8c0f1a; }

/* компактнее пункты меню, чтобы ряд влезал в одну строку без -60px хака */
.main-menu .navigation > li { margin: 0 0 0 18px; }

/* на десктопе (где показано полное меню) бургер не нужен — скрываем */
@media (min-width: 1025px) {
  .main-header .mobile-nav-toggler { display: none !important; }
}

/* липкая шапка: всё в одну строку (меню не переносится, телефон целиком) */
.sticky-header .inner-container { flex-wrap: nowrap; }
.sticky-header .main-menu .navigation {
  display: flex; flex-wrap: nowrap; white-space: nowrap;
}
.sticky-header .main-menu .navigation > li { float: none; margin: 0 0 0 14px; }
.sticky-header .main-menu .navigation > li > a { white-space: nowrap; }
.sticky-header .header-phone_box,
.sticky-header .header-phone_box .info,
.sticky-header .header-phone_box .info strong { white-space: nowrap; }

/* Телефон в шапке поверх тёмного hero */
.main-header .right-box { display: flex; align-items: center; gap: 14px; }
.main-header .right-box .header-phone_box .info,
.main-header .right-box .header-phone_box strong { white-space: nowrap; }
.main-header .right-box .header-phone_box,
.main-header .right-box .header-phone_box .info,
.main-header .right-box .header-phone_box strong { color: #fff; }
.main-header .right-box .header-phone_box .icon { color: #ff8d96; }

/* Логотип в шапке */
.main-header .logo img,
.sticky-header .logo img { max-height: 64px; width: auto; }
.mobile-menu .nav-logo img { max-height: 52px; width: auto; }

/* ---------- HERO ---------- */
.banner-section .bg.hm-hero-bg {
  position: absolute; inset: 0;
  background:
    /* тёмный градиент сверху: слева темнее (под заголовок), справа фон просвечивает */
    linear-gradient(90deg, rgba(20, 24, 27, .94) 0%, rgba(20, 24, 27, .78) 38%, rgba(20, 24, 27, .45) 70%, rgba(20, 24, 27, .3) 100%),
    /* сгенерированная подложка */
    url(../images/hero-bg.jpg?v=4) center/cover no-repeat,
    /* базовый тёмный тон */
    #14181b;
}
.banner-section .banner-title { color: #fff; }
/* «ЖИВАЯ ПИЯВКА С ДОСТАВКОЙ» — компактнее, каждая строка целиком */
.banner-section .outer-box .outer-container .banner-content .inner-content .banner-title {
  font-size: clamp(32px, 5.2vw, 74px);
  line-height: 1.02;
  white-space: nowrap;
}
/* Пиявка + кнопка «Заказать» в один ряд: кнопка справа, по центру картинки */
.hm-hero-leech-row {
  display: flex;
  align-items: center;      /* кнопка по вертикали по центру пиявки */
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hm-hero-leech {
  max-width: 340px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5));
}
.hm-hero-leech img { width: 100%; height: auto; display: block; }
@media (max-width: 991.98px) {
  .hm-hero-leech { max-width: 240px; }
  .hm-hero-leech-row { gap: 20px; }
}
.banner-section .text { color: rgba(255, 255, 255, .82); }
.banner-section .funfact-box .count-box { color: #fff; }
.banner-section .funfact-box .text { color: rgba(255, 255, 255, .78); }
.banner-section .funfact-box.two .text { text-align: left; }

/* ---------- Карточки аудитории (показания / противопоказания) ---------- */
.hm-audience-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(29, 34, 38, .08);
  border-radius: 24px;
  padding: 42px 38px;
  box-shadow: 0 18px 40px rgba(29, 34, 38, .07);
  transition: box-shadow .3s ease, transform .3s ease;
}
.hm-audience-card:hover { transform: translateY(-4px); }
.hm-audience-card.dark {
  background: linear-gradient(150deg, #23282d, #171b1e 70%);
  border-color: rgba(255, 255, 255, .06);
}
/* фон-картинка: скрыта, просвечивает при наведении */
.hm-audience-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease, transform .8s ease;
}
.hm-audience-card:hover .hm-audience-bg { opacity: .28; transform: scale(1.05); }
.hm-audience-card.dark:hover .hm-audience-bg { opacity: .4; }
/* контент поверх фона */
.hm-audience-card > *:not(.hm-audience-bg) { position: relative; z-index: 1; }
.hm-audience-card.dark .title,
.hm-audience-card.dark .text,
.hm-audience-card.dark .hm-list li { color: #fff; }
.hm-audience-card.dark .text,
.hm-audience-card.dark .hm-list li { color: rgba(255, 255, 255, .8); }
.hm-audience-icon {
  width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  background: rgba(178, 20, 34, .09);
  color: var(--theme-color1);
  font-size: 36px;
  margin-bottom: 24px;
}
.hm-audience-card.dark .hm-audience-icon { background: rgba(178, 20, 34, .28); color: #ff8d96; }
.hm-audience-card .title { margin-bottom: 14px; }
.hm-audience-card .text { margin-bottom: 18px; }
.hm-list { margin: 0 0 26px; padding: 0; list-style: none; }
.hm-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--theme-color-dark);
}
.hm-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--theme-color1);
}
/* Метки направлений в списках: жирные, чёрные */
.hm-list li strong { font-weight: 700; color: var(--theme-color2); }
/* Тёмная карточка (противопоказания): весь текст белый, включая метки */
.hm-audience-card.dark .hm-list li,
.hm-audience-card.dark .hm-list li strong { color: #fff; }

/* ---------- Как это работает (механизм действия) ---------- */
.hm-mechanism-section {
  background: var(--theme-color-lighter) url("../images/mechanism-bg.jpg") center / cover no-repeat;
}
/* Показания и противопоказания: своя светлая подложка вместо лиловой по умолчанию */
.hm-audience-section {
  background: var(--theme-color-lighter) url("../images/audience-bg.jpg") center / cover no-repeat;
}
.hm-mech-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(29, 34, 38, .08);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 14px 34px rgba(29, 34, 38, .06);
  transition: box-shadow .3s ease, transform .3s ease;
}
.hm-mech-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(29, 34, 38, .1); }
.hm-mech-icon {
  width: 66px; height: 66px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: rgba(178, 20, 34, .09);
  color: var(--theme-color1);
  font-size: 32px;
  margin-bottom: 22px;
}
.hm-mech-card .title { margin-bottom: 10px; }
.hm-mech-card .text { color: var(--theme-color-dark); margin: 0; }
.hm-mech-note {
  margin: 44px auto 0;
  max-width: 820px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(178, 20, 34, .35);
  border-radius: 18px;
  padding: 22px 30px;
  color: var(--theme-color-dark);
  font-size: 16px;
}
.hm-mech-note strong { color: var(--theme-color1); }

/* ---------- Каталог (карточки в стиле Nursico) ---------- */
.hm-catalog-section { background: var(--theme-color-silver); }

.hm-prod {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(29, 34, 38, .08);
  border-radius: 24px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hm-prod:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(29, 34, 38, .16);
}
/* фото раскрывается на ВСЮ карточку при наведении */
.hm-prod-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease, transform .7s ease;
}
.hm-prod::after {                 /* затемнение поверх фото, чтобы текст читался */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,24,27,.45) 0%, rgba(20,24,27,.88) 100%);
  opacity: 0; transition: opacity .45s ease;
}
.hm-prod:hover .hm-prod-photo { opacity: 1; transform: scale(1.05); }
.hm-prod:hover::after { opacity: 1; }
/* контент поверх фото */
.hm-prod-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 34px 30px 30px;
}
/* верхний визуал с баночкой — исчезает при наведении */
.hm-prod-visual {
  width: 120px; height: 130px;
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease;
}
.hm-prod-jar { width: 120px; }
.hm-prod-jar svg { width: 100%; height: auto; display: block; }
.hm-prod:hover .hm-prod-visual { opacity: 0; }
/* при раскрытии фото текст делаем светлым */
.hm-prod:hover .hm-prod-title,
.hm-prod:hover .hm-prod-price { color: #fff; }
.hm-prod:hover .hm-prod-desc { color: rgba(255,255,255,.85); }
.hm-prod:hover .hm-prod-weight { color: #ff9aa2; }

/* Убираем вертикальную линию-разделитель в FAQ (шаблонная line-2.png) */
.faq-section .content-column .inner-column:before { display: none !important; }

/* Картинка в блоке FAQ — полноразмерная (без обрезки) */
.hm-faq-image {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
}
.hm-faq-image img {
  width: 100%; height: auto; display: block;
  /* лёгкое мягкое затухание краёв, без обрезки */
  -webkit-mask-image: radial-gradient(125% 125% at 50% 50%, #000 80%, transparent 100%);
          mask-image: radial-gradient(125% 125% at 50% 50%, #000 80%, transparent 100%);
}
/* текст карточки (по центру, прежний вид) */
.hm-prod-weight {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--theme-color1); font-weight: 700; margin-bottom: 8px;
}
.hm-prod-title {
  font-size: 20px; font-weight: 700; color: var(--theme-color2);
  margin-bottom: 8px;
}
.hm-prod-desc { font-size: 15px; line-height: 1.5; color: #6b7176; margin-bottom: 16px; min-height: 44px; }
.hm-prod-price {
  font-size: 26px; font-weight: 800; color: var(--theme-color1);
  margin: 0 0 20px;
}
/* красная кнопка-пилюля «Заказать» */
.hm-prod .hm-buy-btn {
  margin-top: auto;
  border: 0; cursor: pointer;
  background: var(--theme-color1); color: #fff;
  font-size: 16px; font-weight: 700;
  padding: 14px 34px; border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.hm-prod .hm-buy-btn:hover { background: #8c0f1a; transform: translateY(-2px); }

.hm-price-note { margin-top: 34px; color: #6b7176; font-size: 15px; }

/* Промо-карточки условий в сетке каталога (самодостаточные стили) */
.product-card.hm-promo {
  height: 100%;
  min-height: 200px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 34px;
  border-radius: 24px;
  /* глубоко-тёмная подложка как на hero: плотный тёмный + лёгкий красный акцент */
  background:
    radial-gradient(120% 130% at 82% 18%, rgba(140, 15, 26, .38), transparent 60%),
    linear-gradient(145deg, #23282d 0%, #14181b 60%, #1d1114 100%);
  border: 1px solid rgba(255, 255, 255, .06);
}
.product-card.hm-promo .product-title { color: #fff; font-size: 22px; font-weight: 700; }
.product-card.hm-promo .product-desc {
  color: #fff;
  min-height: 0;
  margin-bottom: 0;
  font-size: 20px;          /* как у заголовка «Бесплатная доставка» */
  font-weight: 700;
  margin-top: 6px;
}
.hm-promo-big {
  font-size: 56px; font-weight: 800; line-height: 1;
  color: #ff8d96;
  margin-bottom: 16px;
}

/* Условия заказа под каталогом */
.hm-conditions {
  margin: 40px auto 0;
  max-width: 720px;
  background: #fff;
  border: 1px solid rgba(29, 34, 38, .08);
  border-radius: 20px;
  padding: 28px 34px;
}
.hm-conditions ul { margin: 0; padding: 0; list-style: none; }
.hm-conditions li {
  position: relative; padding-left: 30px; margin: 10px 0;
  color: var(--theme-color-dark); font-size: 16px;
}
.hm-conditions li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--theme-color1);
}
.hm-conditions strong { color: var(--theme-color2); }

/* Планшет/телефон: шаблон прячет кнопку «Заказать» в шапке — возвращаем */
@media (max-width: 1199.98px) {
  .main-header .right-box .theme-btn.btn-style-two { display: inline-flex !important; }
}

/* Телефон: ужимаем шапку, чтобы лого + «Заказать» + бургер влезали в пилюлю */
@media (max-width: 575.98px) {
  .main-header .header-lower .inner-container {
    margin: 10px 12px 0;
    padding: 8px 12px 8px 14px;
  }
  .main-header .logo img { max-height: 42px; }
  .main-header .right-box { gap: 8px; }
  .main-header .right-box .theme-btn.btn-style-two {
    padding: 0 16px;
    height: 42px;
    line-height: 42px;
    font-size: 13px;
  }
}

/* Доставка и оплата — карточки под тремя шагами */
.hm-delivery-row { margin-top: 46px; }
.hm-delivery-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(29, 34, 38, .08);
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: 0 16px 36px rgba(29, 34, 38, .06);
}
.hm-delivery-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(178, 20, 34, .09);
  color: var(--theme-color1);
  font-size: 28px;
  margin-bottom: 18px;
}
.hm-delivery-card .title { margin-bottom: 14px; }

/* Одинаковая высота карточек «Три простых шага» */
.working-section .working-block { height: 100%; }

/* убираем шаблонный знак ДНК в углу карточек шагов */
.working-block .number-top .shape-style1 { display: none !important; }

/* Тёмная подложка под карточки шагов (как hero), белый текст */
.working-section .working-block {
  background:
    radial-gradient(120% 130% at 82% 18%, rgba(140, 15, 26, .38), transparent 60%),
    linear-gradient(145deg, #23282d 0%, #14181b 60%, #1d1114 100%);
  border: 1px solid rgba(255, 255, 255, .06);
}
.working-section .working-block .working-title { color: #fff; }
.working-section .working-block .working-details,
.working-section .working-block:hover .working-details { color: rgba(255, 255, 255, .82) !important; }

/* Номер шага с 3D-переворотом: front = «01», back = иконка (как в блоке «О пиявке») */
.hm-flip-num { width: 60px; height: 60px; perspective: 600px; }
.hm-flip-num__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
}
.working-block:hover .hm-flip-num__inner { transform: rotateY(180deg); }
.hm-flip-num__face {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.hm-flip-num__front { background: #fff; color: #1d2226; font-size: 24px; }
.hm-flip-num__back {
  background: var(--theme-color1); color: #fff; font-size: 28px;
  transform: rotateY(180deg);
}
.working-block.hm-step-bg:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 48px rgba(29, 34, 38, .16);
}

/* Кнопка после блоков «Как заказать» */
.hm-steps-cta { margin-top: 46px; }

/* ---------- Оптовый баннер ---------- */
.hm-wholesale-section { padding: 0 0 100px; }
.hm-wholesale-banner {
  border-radius: 28px;
  padding: 56px 54px;
  color: #fff;
  background:
    radial-gradient(700px 340px at 90% 10%, rgba(216, 74, 60, .35), transparent 60%),
    linear-gradient(130deg, #2a1013, #171b1e 65%);
}
.hm-wholesale-banner .sub-title {
  color: #ff9aa2; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 14px;
}
.hm-wholesale-banner .title { color: #fff; margin-bottom: 16px; }
.hm-wholesale-banner .text { color: rgba(255, 255, 255, .82); max-width: 640px; }

/* ---------- Сертификаты / документы ---------- */
.hm-cert-section { background: var(--theme-color-silver); }
.hm-doc-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(29, 34, 38, .08);
  border-radius: 24px;
  padding: 28px 28px 30px;
  box-shadow: 0 16px 36px rgba(29, 34, 38, .06);
}
.hm-doc-card .title { margin-bottom: 18px; text-align: center; }
/* сертификат — без белой рамки, только мягкая тень */
.hm-doc-view {
  position: relative; display: block;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(29, 34, 38, .16);
}
.hm-doc-view img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.hm-doc-view:hover img { transform: scale(1.03); }
.hm-doc-open {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 24, 27, .55); color: #fff;
  font-weight: 700; opacity: 0; transition: opacity .3s ease;
}
.hm-doc-view:hover .hm-doc-open { opacity: 1; }
/* Сертификат-образец: защита от скачивания (водяной знак «ОБРАЗЕЦ» впечён в сам файл) */
.hm-doc-protected { user-select: none; -webkit-user-select: none; cursor: default; }
.hm-doc-protected img {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.hm-doc-protected:hover img { transform: none; }

/* книжка-листалка ЕГРН */
.hm-flip-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #f0ece8; border-radius: 14px;
  padding: 16px;
}
.hm-flip-img {
  max-width: 100%; max-height: 560px; width: auto; height: auto;
  display: block; border: 1px solid rgba(29, 34, 38, .12);
  box-shadow: 0 10px 26px rgba(29, 34, 38, .16);
  background: #fff;
}
.hm-flip-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--theme-color1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  transition: background .2s ease, opacity .2s ease;
}
.hm-flip-btn:hover { background: #8c0f1a; }
.hm-flip-btn:disabled { opacity: .35; cursor: default; }
.hm-flip-prev { left: 10px; }
.hm-flip-next { right: 10px; }
.hm-flip-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.hm-flip-counter { font-weight: 700; color: var(--theme-color2); }
.hm-flip-pdf { color: var(--theme-color1); font-weight: 700; }
.hm-flip-pdf:hover { color: #8c0f1a; }

/* ---------- Контакты ---------- */
.hm-contacts-section { background: var(--theme-color-silver); }

/* Виджет — официальная иконка MAX без плашки (футер) */
.hm-max-btn { display: inline-flex; margin-top: 16px; transition: transform .25s ease; }
.hm-max-btn img {
  width: 46px; height: 46px; display: block;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(13, 0, 26, .35);
}
.hm-max-btn:hover { transform: translateY(-2px); }
.hm-max-btn:hover img { box-shadow: 0 10px 24px rgba(13, 0, 26, .5); }
.hm-contact-card, .hm-form-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(29, 34, 38, .08);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 18px 40px rgba(29, 34, 38, .06);
}
.hm-contact-card .title, .hm-form-card .title { margin-bottom: 18px; }
.hm-form-card .text { margin-bottom: 24px; color: #6b7176; }
/* Карта пункта выдачи + инфо (без рамки) */
.hm-contact-info .title { margin-bottom: 16px; }
.hm-contact-addr { color: #6b7176; font-size: 16px; margin-bottom: 6px; }

/* Часы работы — тёмная карточка на картинке (форма как в референсе) */
.hm-hours-form {
  margin-top: 26px;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: right center;
  padding: 16px 24% 16px 16px;   /* картинка выглядывает справа */
}
.hm-hours-form .hm-hours { margin-top: 0; }
.hm-hours {
  background:
    radial-gradient(120% 130% at 85% 15%, rgba(140, 15, 26, .35), transparent 60%),
    linear-gradient(145deg, #23282d 0%, #14181b 70%);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px;
  padding: 26px 28px;
  color: #fff;
}
.hm-hours-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.hm-hours-title { font-size: 18px; font-weight: 700; color: #fff; }
.hm-hours-icon { color: #ff8d96; flex: 0 0 auto; }
.hm-hours-list { list-style: none; margin: 0; padding: 0; }
.hm-hours-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0;
  color: rgba(255, 255, 255, .78); font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hm-hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hm-hours-list li span:last-child { color: #fff; font-weight: 600; }
.hm-map { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 36px rgba(29, 34, 38, .1); }
.hm-map iframe { width: 100%; height: 420px; border: 0; display: block; }

.hm-contact-list { margin: 0; padding: 0; list-style: none; }
.hm-contact-list li { margin-bottom: 16px; display: flex; flex-direction: column; }
.hm-contact-list .label {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: #9aa0a5; margin-bottom: 2px;
}
.hm-contact-list a { color: var(--theme-color1); font-weight: 600; }
.hm-contact-list a:hover { color: #8c0f1a; }
.hm-messengers { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Поля форм ---------- */
.hm-field { margin-bottom: 18px; text-align: left; }
.hm-field label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--theme-color2); margin-bottom: 6px;
}
.hm-field input, .hm-field textarea {
  width: 100%;
  border: 1.5px solid rgba(29, 34, 38, .14);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 16px;
  color: var(--theme-color2);
  background: #fbfbfb;
  transition: border-color .2s ease;
}
.hm-field input:focus, .hm-field textarea:focus {
  outline: none; border-color: var(--theme-color1); background: #fff;
}
.hm-field input.hm-invalid, .hm-field textarea.hm-invalid { border-color: #d84a3c; }

/* ---------- Модалка заказа ---------- */
.hm-modal-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20, 24, 27, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hm-modal-backdrop[hidden] { display: none; }
.hm-modal {
  position: relative;
  width: 100%; max-width: 440px;
  background: #fff; border-radius: 24px;
  padding: 36px 34px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  max-height: 92vh; overflow-y: auto;
}
.hm-modal .h4 { margin-bottom: 6px; }
.hm-modal-product { color: var(--theme-color1); font-weight: 700; margin-bottom: 20px; }
.hm-modal-close {
  position: absolute; top: 14px; right: 18px;
  border: 0; background: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: #9aa0a5;
}
.hm-modal-close:hover { color: var(--theme-color1); }
.hm-modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.hm-modal-actions .theme-btn { justify-content: center; }
.hm-btn-secondary {
  border: 1.5px solid rgba(29, 34, 38, .16);
  background: #fff; cursor: pointer;
  border-radius: 999px; padding: 12px 20px;
  font-size: 15px; font-weight: 600; color: var(--theme-color2);
  transition: border-color .2s ease, color .2s ease;
}
.hm-btn-secondary:hover { border-color: var(--theme-color1); color: var(--theme-color1); }

/* ---------- Тосты ---------- */
.hm-toast-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1300; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.hm-toast {
  background: #1d2226; color: #fff;
  padding: 14px 22px; border-radius: 14px;
  font-size: 15px; box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.hm-toast.show { opacity: 1; transform: translateY(0); }
.hm-toast.error { background: #8c0f1a; }

/* ---------- Разное ---------- */
.hm-jar-visual { max-width: 340px; margin: 0 auto; }
.hm-jar-visual svg { width: 100%; height: auto; display: block; }
.about-section .round-text span svg text { fill: var(--theme-color1); }

/* якорные секции не прячутся под шапкой */
#about, #audience, #catalog, #how, #wholesale, #faq, #contacts { scroll-margin-top: 110px; }
html { scroll-behavior: smooth; }

/* футер: белая версия логотипа */
.main-footer .footer-middle-box .logo img { max-height: 58px; width: auto; }

/* ---------- Прелоадер ----------
   Шаблон Nursico показывал логотип Nursico и надпись "Loading".
   Меняем на наш логотип и русский текст. */
.preloader:after {
  background-image: url(../images/logo-hirudo.png);
  background-size: contain;
  width: 190px;
  margin-left: -95px;
  height: 100px;
  margin-top: -60px;
}
.preloader:before {
  content: "Загрузка";
  color: var(--theme-color1);
  letter-spacing: 3px;
  font-size: 13px;
  /* логотип занимает от 50%-60px до 50%+40px, поэтому текст опускаем ниже 40px,
     иначе он налезает на низ логотипа */
  margin-top: 56px;
}

/* ---------- Компактная модалка: всё видно без прокрутки ---------- */
.hm-modal { max-width: 470px; padding: 26px 28px 22px; }
.hm-modal .h4 { margin-bottom: 4px; }
.hm-modal-product { margin-bottom: 14px; }
.hm-modal .hm-field { margin-bottom: 12px; }
.hm-modal .hm-field label { font-size: 13px; margin-bottom: 4px; }
.hm-modal .hm-field input,
.hm-modal .hm-field textarea { padding: 10px 14px; border-radius: 11px; font-size: 15px; }
.hm-modal .hm-consent { margin: 10px 0 2px; }
.hm-modal .hm-field input { height: 44px; line-height: 1.3; }
.hm-modal #order-address { height: 58px; min-height: 44px; }

/* Кнопку «Заказать» (шаблонная .theme-btn с абсолютными стрелками внутри)
   НЕ делать flex-элементом — её внутренняя вёрстка ломается и она раздувается.
   Вторичную кнопку MAX делаем компактной, чтобы форма влезала без прокрутки. */
.hm-modal .hm-modal-actions { margin-top: 12px; }
.hm-modal .hm-modal-actions .hm-btn-secondary {
  margin-top: 8px; padding: 9px 16px; font-size: 14px; min-height: 0;
}

/* телефон и количество — в одну строку */
.hm-row { display: flex; gap: 11px; }
.hm-row .hm-field { flex: 1 1 auto; min-width: 0; }
.hm-row .hm-field-qty { flex: 0 0 92px; }

/* На невысоких экранах поджимаем сильнее: скрываем подписи под плитками выбора
   (селектор с .hm-modal — иначе правило ниже в файле перебивает его). */
@media (max-height: 760px) {
  .hm-modal { padding: 18px 22px 16px; max-height: 94vh; }
  .hm-modal .hm-field { margin-bottom: 8px; }
  .hm-modal .hm-choice-note { display: none; }
  .hm-modal .hm-choice-box { padding: 11px 12px; }
  .hm-modal #order-address { height: 48px; }
  .hm-modal .hm-modal-product { margin-bottom: 10px; }
  .hm-modal .hm-consent { margin: 6px 0 0; }
  .hm-modal .hm-modal-actions { margin-top: 10px; }
  .hm-modal .hm-field label { margin-bottom: 3px; }
}

/* экран «Заявка принята» после отправки формы */
.hm-success { text-align: center; padding: 6px 4px 4px; }
.hm-success[hidden] { display: none; }
.hm-success-icon { color: #2e9e5b; line-height: 0; margin-bottom: 14px; animation: hmPop .32s ease-out; }
.hm-success-title { margin-bottom: 10px; color: #1d2226; }
.hm-success-text { font-size: 15.5px; line-height: 1.6; color: #4d545a; margin-bottom: 8px; }
.hm-success-text strong { color: var(--theme-color1); white-space: nowrap; }
.hm-success-note { font-size: 13px; color: #9aa1a8; margin-bottom: 20px; }
@keyframes hmPop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* выбор доставки / самовывоза в модалке заказа */
.hm-choice { display: flex; gap: 10px; }
.hm-choice-item { flex: 1 1 0; margin: 0; cursor: pointer; }
.hm-choice-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.hm-choice-box {
  display: block; padding: 9px 12px; border: 1.5px solid #dfe3e6; border-radius: 9px;
  background: #fff; transition: border-color .18s, background .18s, box-shadow .18s;
}
.hm-choice-title { display: block; font-weight: 600; font-size: 15px; color: #1d2226; line-height: 1.25; }
.hm-choice-note { display: block; margin-top: 2px; font-size: 12px; color: #8b9298; line-height: 1.35; }
.hm-choice-item:hover .hm-choice-box { border-color: #c3c9ce; }
.hm-choice-item input:checked + .hm-choice-box {
  border-color: var(--theme-color1); background: #fdf4f5;
  box-shadow: inset 0 0 0 1px var(--theme-color1);
}
.hm-choice-item input:checked + .hm-choice-box .hm-choice-title { color: var(--theme-color1); }
.hm-choice-item input:focus-visible + .hm-choice-box { outline: 2px solid var(--theme-color1); outline-offset: 2px; }
#order-address-field textarea { resize: vertical; min-height: 52px; }
#order-address-field[hidden] { display: none; }

/* чекбокс согласия на обработку ПД (152-ФЗ) */
.hm-consent { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 4px; font-size: 13px; line-height: 1.45; color: #5a6167; cursor: pointer; }
.hm-consent input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--theme-color1); cursor: pointer; }
.hm-consent a { color: var(--theme-color1); text-decoration: underline; }
.hm-consent a:hover { color: #8c0f1a; }
