
/* Шрифты — только свободные (SIL OFL): Exo 2 — текст, Comfortaa — логотип (выбор владельца 2026-10-16) */

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-cyrillic-300-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/exo-2-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/comfortaa-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/comfortaa-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/comfortaa-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/networks/blagoustroystvo/assets/fonts/comfortaa-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Базовые стили и ресет */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
/*  overflow-x: hidden;*/
  width: 100%;
}

:root {
  /* Шрифты: текст и логотип */
  --font-text: 'Exo 2', sans-serif;
  --font-logo: 'Comfortaa', 'Exo 2', sans-serif;
  --primary-color: #2b621a;
  --primary-light: #629651;
  --primary-dark: #1e3423;
  --secondary-color: #ff8c00;
  --secondary-light: #ffa641;
  --secondary-dark: #dc6e00;
  --accent-color: #25D366;
  --gray-light: #f8f9fa;
  --gray-medium: #e9ecef;
  --gray-dark: #333333;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Custom scrollbar */

* {
    outline: none;
    scrollbar-color: var(--primary-color);
    scrollbar-width: auto;
}

*scrollbarbutton {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

*::-webkit-scrollbar-track {
    background-color: white;
    width: 2px;
}

body {
  font-family: var(--font-text);
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.hidden {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header styles */
.site-header {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color), var(--primary-dark));
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
}

/* Header top with logo and contacts */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main header with menu */
.header-inner {
  padding: 15px 0;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light), var(--primary-color));
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  max-height: 100px;
}

.header-inner > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Скрытие меню при скролле (только десктоп ≥993px) */
@media (min-width: 993px) {
  .site-header.header-scrolled .header-inner {
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
  }
}

/* Logo */
.logo a,
.logo > .company-name {
  display: flex;
  align-items: center;
  font-family: var(--font-logo);
  font-weight: 700;
}

.logo a {
  transition: transform var(--transition-fast);
}

.logo a:hover {
  transform: none;
}

.company-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
  position: relative;
}

.site-header .company-name {
  white-space: nowrap;
}

.company-name:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: left;
}

.logo a:hover .company-name:after {
  transform: scaleX(0);
}

/* Burger menu - hidden on desktop */
.burger-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-fast);
  margin-right: 12px;
}

.burger-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main navigation */
.main-menu {
  position: relative;
  width: 100%;
}

.menu-level-1 {
  display: flex;
  gap: 30px;
  justify-content: space-around;
}

.menu-level-1 > li {
  position: relative;
}

.menu-level-1 > li > a {
  display: flex;
  align-items: center;
  padding: 10px 5px;
  font-weight: 400;
  font-size: 18px;
  color: white;
  transition: all var(--transition-normal);
  border-radius: var(--radius-sm);
  position: relative;
  font-family: var(--font-text);
}

.menu-level-1 > li > a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.menu-level-1 > li:hover > a:after {
  transform: scaleX(1);
}

/* Show arrows for items with children on desktop */
.menu-level-1 > li > a i.fa-chevron-down,
.menu-level-2 > li > a i.fa-chevron-right {
  display: inline-block;
  margin-left: 5px;
  font-size: 12px;
  transition: transform var(--transition-normal);
}

.menu-level-1 > li:hover > a i.fa-chevron-down {
  transform: rotate(180deg);
}

.menu-level-1 > li > a:hover {
  color: var(--secondary-light);
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown menu level 2 */
.menu-level-2 {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(145deg, var(--primary-light), var(--primary-color));
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-level-1 > li:hover .menu-level-2 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-level-2 > li {
  position: relative;
}

.menu-level-2 > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  color: white;
  transition: all var(--transition-normal);
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.menu-level-2 > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--secondary-color);
  padding-left: 20px;
}

.menu-level-2 > li > a i {
  font-size: 12px;
}

/* Dropdown menu level 3 */
.menu-level-3 {
  position: absolute;
  top: 0;
  left: 100%;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary-color));
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all var(--transition-normal);
  z-index: 110;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-level-2 > li:hover .menu-level-3 {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.menu-level-3 > li > a {
  display: block;
  padding: 10px 15px;
  color: white;
  transition: all var(--transition-normal);
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.menu-level-3 > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--secondary-color);
  padding-left: 20px;
}

/* Header contact */
.header-contact {
  display: flex;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: white;
  transition: all var(--transition-normal);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
  color: var(--secondary-light);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-item i {
  width: 16px;
  margin-right: 8px;
  color: var(--secondary-color);
}

.contact-item.phone i {
  color: var(--secondary-light);
}

.contact-item.email i {
  color: var(--secondary-light);
}

.contact-item.whatsapp i {
  color: var(--accent-color);
}

.contact-item.address i {
  color: var(--secondary-light);
}

/* Адрес в шапке — сжимается с многоточием если не влезает; при overflow показываем тултип (JS main.js) */
.header-contact .contact-item.address {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.header-contact .contact-item.address i {
  margin-right: 4px;
}

/* Messenger dropdown — плавный hover-select с WhatsApp и Telegram */
.messenger-dropdown {
  position: relative;
  display: inline-block;
}

/* Невидимый «мост» ПОД toggle, чтобы курсор успевал дойти до меню.
   Расширяет hover-зону .messenger-dropdown вниз на 14px */
.messenger-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

/* Симметричный «мост» СВЕРХУ для футера (меню раскрывается вверх) */
.messenger-dropdown--footer::after {
  top: auto;
  bottom: 100%;
}

.messenger-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.messenger-dropdown__caret {
  font-size: 10px;
  color: var(--secondary-color);
  transition: transform var(--transition-normal);
}

.messenger-dropdown:hover .messenger-dropdown__caret,
.messenger-dropdown:focus-within .messenger-dropdown__caret {
  transform: rotate(180deg);
}

.messenger-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 160px;
  background: var(--primary-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1001;
}

.messenger-dropdown__menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.messenger-dropdown__menu::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary-dark);
  transform-origin: center;
  transform: translateX(-50%) rotate(45deg);
}

.messenger-dropdown:hover .messenger-dropdown__menu,
.messenger-dropdown:focus-within .messenger-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.messenger-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.messenger-dropdown__item i,
.messenger-dropdown__item img {
  font-size: 18px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  text-align: center;
  flex-shrink: 0;
}

.messenger-dropdown__item--wa i {
  color: #25D366;
}

.messenger-dropdown__item--tg i {
  color: #0088cc;
}

.messenger-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary-color);
}

/* На мобильных — прячем toggle, меню превращаем в ряд иконок без текста */
@media (max-width: 768px) {
  .messenger-dropdown .messenger-dropdown__toggle {
    display: none !important;
  }

  /* Мессенджеры в футере — в самый низ блока контактов */
  .footer-contact {
    display: flex;
    flex-direction: column;
  }

  .footer-contact .messenger-dropdown--footer {
    order: 99;
    margin-top: 15px;
  }

  /* Переопределяем hover-transform на десктопе — на мобиле меню статично,
     не должно «скакать» при наведении. Селекторы с --footer нужны, чтобы
     перебить десктопные правила .messenger-dropdown--footer .messenger-dropdown__menu */
  .messenger-dropdown .messenger-dropdown__menu,
  .messenger-dropdown:hover .messenger-dropdown__menu,
  .messenger-dropdown:focus-within .messenger-dropdown__menu,
  .messenger-dropdown--footer .messenger-dropdown__menu,
  .messenger-dropdown--footer:hover .messenger-dropdown__menu,
  .messenger-dropdown--footer:focus-within .messenger-dropdown__menu {
    position: static;
    display: inline-flex;
    gap: 14px;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
  }

  .messenger-dropdown::after,
  .messenger-dropdown .messenger-dropdown__menu::before,
  .messenger-dropdown .messenger-dropdown__menu::after {
    display: none;
  }

  .messenger-dropdown .messenger-dropdown__item {
    padding: 0;
    gap: 0;
    font-size: 0;
    background: transparent;
    border-radius: 0;
    width: auto;
    height: auto;
    transition: none;
  }

  .messenger-dropdown .messenger-dropdown__item i,
  .messenger-dropdown .messenger-dropdown__item img {
    font-size: 22px;
    width: 24px;
    height: 24px;
  }

  .messenger-dropdown .messenger-dropdown__item:hover {
    background: transparent;
  }

  .messenger-dropdown .messenger-dropdown__item:hover i {
    color: var(--secondary-color);
  }
}

/* Вариант для футера: одна строка блочного layout + меню открывается вверх */
.messenger-dropdown--footer {
  display: block;
  margin-bottom: 10px;
}

.footer-contact .messenger-dropdown--footer .messenger-dropdown__toggle {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
}

.footer-contact .messenger-dropdown--footer .messenger-dropdown__caret {
  margin-left: auto;
}

.messenger-dropdown--footer .messenger-dropdown__menu {
  top: auto;
  bottom: calc(100% + 18px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(8px);
  background: #1a0f07;
}

.messenger-dropdown--footer:hover .messenger-dropdown__menu,
.messenger-dropdown--footer:focus-within .messenger-dropdown__menu {
  transform: translateX(-50%) translateY(0);
}

.messenger-dropdown--footer .messenger-dropdown__menu::before {
  top: auto;
  bottom: -18px;
}

.messenger-dropdown--footer .messenger-dropdown__menu::after {
  top: auto;
  bottom: -6px;
  left: 50%;
  right: auto;
  transform: translateX(-50%) rotate(45deg);
  background: #1a0f07;
}

.messenger-dropdown--footer .messenger-dropdown__caret {
  transform: rotate(180deg);
}

.messenger-dropdown--footer:hover .messenger-dropdown__caret,
.messenger-dropdown--footer:focus-within .messenger-dropdown__caret {
  transform: rotate(0deg);
}

/* Финальные мобильные override'ы — должны идти ПОСЛЕ всех глобальных
   .messenger-dropdown--footer правил, иначе они перекрывают media query */
@media (max-width: 768px) {
  .messenger-dropdown--footer .messenger-dropdown__menu,
  .messenger-dropdown--footer:hover .messenger-dropdown__menu,
  .messenger-dropdown--footer:focus-within .messenger-dropdown__menu {
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .messenger-dropdown--footer .messenger-dropdown__menu::before,
  .messenger-dropdown--footer .messenger-dropdown__menu::after {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--gray-light) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/networks/blagoustroystvo/assets/img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary-dark);
  line-height: 1.4;
  position: relative;
}

.hero-text h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-dark);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-benefits {
  margin-bottom: 30px;
}

.hero-benefits li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.hero-benefits li i {
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 20px;
}

.hero-benefits li span {
  color: var(--gray-dark);
  font-size: 16px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(30, 75, 148, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 75, 148, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(30, 75, 148, 0.3);
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 550px;
}

.main-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-badges {
  display: flex;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  gap: 15px;
}

.hero-badge {
  background: white;
  border-radius: var(--radius-md);
  padding: 15px 20px;
  min-width: 90px;
  width: max-content;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--secondary-color);
}

.badge-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 5px;
  white-space: nowrap;
}

.badge-text {
  font-size: 12px;
  color: var(--gray-dark);
}

/* Текстовый бейдж (без числа) — единый размер шрифта */
.hero-badge--plain .badge-number {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-badge--plain .badge-text {
  font-size: 18px;
}



/* Callback Button and Modal Form */
.callback-button {
  position: fixed;
  left: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-normal);
}

.callback-button i {
  color: white;
  font-size: 24px;
  transition: all var(--transition-normal);
}

.callback-button:hover {
  transform: scale(1.1);
}

.callback-button:hover i {
  animation: phone-ring 1s infinite;
}

@keyframes phone-ring {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(15deg);
  }
  20% {
    transform: rotate(-15deg);
  }
  30% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Back to Top Button */
.back-to-top-button {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
}

.back-to-top-button.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-button i {
  color: white;
  font-size: 24px;
  transition: all var(--transition-normal);
}

.back-to-top-button:hover {
  transform: scale(1.1) translateY(-5px);
}

.back-to-top-button:hover i {
  animation: float-up 1s infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.callback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.callback-modal.active {
  opacity: 1;
  visibility: visible;
}

.callback-form {
  background: white;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: translateY(30px);
  transition: all var(--transition-normal);
}

.callback-modal.active .callback-form {
  transform: translateY(0);
}

.callback-form h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

.callback-form .form-group {
  margin-bottom: 15px;
}

.callback-form input,
.callback-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: all var(--transition-normal);
}

.callback-form input:focus,
.callback-form select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(30, 75, 148, 0.1);
  outline: none;
}

.callback-form .btn-submit {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  cursor: pointer;
  border: none;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.callback-form .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.callback-form .close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: var(--gray-dark);
  transition: color var(--transition-fast);
}

.callback-form .close-modal:hover {
  color: var(--secondary-color);
}

/* Catalog Cards Section Styles */
.catalog-cards-section {
  padding: 80px 0;
  background-color: var(--gray-light);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

.catalog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Каталог inline — в колонке с сайдбаром: без секционных отступов */
.catalog-cards-section--inline {
  padding: 0;
  background: none;
  margin: 24px 0;
}

.catalog-cards-section--inline .catalog-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

/* Подзаголовок секции карточек: без декоративной черты в inline-варианте */
.catalog-cards-section--inline .section-header h2::after {
  display: none;
}

/* Карточки каталога внутри статьи — заголовки-ссылки без подчёркивания.
   Специфичность 4 класса — гарантированно перебивает .content-article a (3 класса). */
.content-article .catalog-cards-section .catalog-cards .card-title a {
  text-decoration: none;
}

/* Каталог — вариант «links»: компактные карточки-ссылки */
.catalog-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.catalog-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--gray-dark);
  text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), color var(--transition-normal);
}

.catalog-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
}

.catalog-link-card__title {
  font-weight: 600;
}

.catalog-link-card i {
  color: var(--primary-color);
  flex: 0 0 auto;
}

/* «Смотрите также» плитками с фото целевой страницы */
.catalog-links--images {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.catalog-link-card.catalog-link-card--image {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.catalog-link-card--image .catalog-link-card__image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.catalog-link-card--image .catalog-link-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.catalog-link-card--image:hover .catalog-link-card__image img {
  transform: scale(1.05);
}

.catalog-link-card--image .catalog-link-card__body {
  display: block;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
  text-align: left;
}

.catalog-link-card--image .catalog-link-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
}

.catalog-link-card--image .catalog-link-card__body i {
  display: none;
}

/* Карта (iframe из контактов) не шире колонки контента */
.content-article iframe {
  display: block;
  max-width: 100%;
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
}

/* Иконка мессенджера Max в контактах — полуокруглые углы */
.contact-link__icon {
  border-radius: 25%;
}

/* Подзаголовок таблицы цен */
.price-subtitle {
  margin: -6px 0 16px;
  color: var(--gray-dark);
  font-size: 15px;
}

.catalog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.catalog-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  position: relative;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-description {
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-description p {
  font-size: 15px;
  color: var(--gray-dark);
  margin-bottom: 15px;
  line-height: 1.6;
}

.card-features {
  padding-left: 5px;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--gray-dark);
}

.card-features li i {
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 16px;
  flex-shrink: 0;
}

.card-price-block {
  margin: 20px 0;
  padding: 15px;
  background: rgba(30, 75, 148, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 14px;
  color: var(--gray-dark);
  margin-bottom: 5px;
}

.price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
}

.price-unit {
  font-size: 16px;
  color: var(--gray-dark);
  margin-left: 3px;
}

.card-delivery {
  text-align: right;
}

.delivery-label {
  font-size: 14px;
  color: var(--gray-dark);
  display: block;
  margin-bottom: 5px;
}

.delivery-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
}

.card-actions {
  text-align: center;
}

.card-actions .btn {
  width: 100%;
  margin-top: 12px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
}

.cta-content {
  color: white;
}

.cta-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 16px;
  opacity: 0.9;
}

.cta-button {
  flex-shrink: 0;
  margin-left: 20px;
}

#show-callback {
  background: var(--secondary-color);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  white-space: nowrap;
}

#show-callback:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

/* Fix for hero section on mobile */
@media (max-width: 576px) {
  .company-name {
    font-size: 22px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .contact-item {
    padding: 5px 10px;
    font-size: 13px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-benefits li span {
    font-size: 14px;
  }

  .feature {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .hero-section {
    padding: 30px 0 80px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  .callback-button {
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }

  .callback-button i {
    font-size: 20px;
  }

  .back-to-top-button {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }

  .back-to-top-button i {
    font-size: 20px;
  }

  .callback-form {
    width: 95%;
    padding: 20px;
  }

  .callback-form h3 {
    font-size: 20px;
  }

  /* Catalog cards responsive for mobile */
  .catalog-cards,
  .catalog-cards-section--inline .catalog-cards {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 20px;
  }

  .catalog-cards-section {
    padding: 40px 0;
  }

  .cta-content h3 {
    font-size: 20px;
  }

  .cta-content p {
    font-size: 14px;
  }
}

/* Other responsive styles */
/* Responsive styles */
@media (max-width: 1200px) {
  .contact-links {
    gap: 15px;
  }

  .contact-item {
    padding: 5px 10px;
  }
}

@media (max-width: 1024px) {
  .menu-level-1 {
    gap: 15px;
  }

  .contact-links {
    gap: 10px;
  }

  .contact-item i {
    margin-right: 5px;
  }

  .address {
    display: none;
  }

  .hero-content {
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-badges {
    gap: 10px;
  }

  .hero-badge {
    min-width: 80px;
    padding: 10px;
  }

  .badge-number {
    font-size: 20px;
  }

  .badge-text {
    font-size: 12px;
  }
}

@media (max-width: 992px) {
  /* Show burger menu and hide regular menu */
  .burger-menu {
    display: flex;
  }

  .header-inner {
    justify-content: flex-end;
    padding: 0;
  }

  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    z-index: 500;
    width: 100%;
  }

  .main-menu.active {
    max-height: 1000px;
  }

  .menu-level-1 {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    justify-content: flex-start;
  }

  .menu-level-1 > li {
    width: 100%;
  }

  .menu-level-1 > li > a {
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .menu-level-1 > li > a:after {
    display: none;
  }

  /* Change dropdown behavior */
  .menu-level-2, .menu-level-3 {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding: 0;
    border: none;
    background: none;
  }

  .menu-level-2 {
    background: rgba(0, 0, 0, 0.2);
  }

  .menu-level-3 {
    background: rgba(0, 0, 0, 0.3);
  }

  .menu-level-2.active,
  .menu-level-3.active {
    max-height: 1000px;
  }

  .menu-level-2 > li > a,
  .menu-level-3 > li > a {
    padding-left: 30px;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: normal;
  }

  .menu-level-2 > li > a:hover,
  .menu-level-3 > li > a:hover {
    padding-left: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-left: none;
  }

  .menu-level-3 > li > a {
    padding-left: 45px;
  }

  .menu-level-3 > li > a:hover {
    padding-left: 45px;
  }

  /* Rotate icons for mobile */
  .menu-level-1 > li > a i.fa-chevron-down,
  .menu-level-2 > li > a i.fa-chevron-right {
    transform: none;
    transition: transform var(--transition-normal);
  }

  .menu-level-1 > li > a.active i.fa-chevron-down,
  .menu-level-2 > li > a.active i.fa-chevron-right {
    transform: rotate(180deg);
  }

  /* Change icon direction for submenu level 2 */
  .menu-level-2 > li > a i.fa-chevron-right {
    transform: rotate(90deg);
  }

  .menu-level-2 > li > a.active i.fa-chevron-right {
    transform: rotate(270deg);
  }

  /* Hero section responsive */
  .hero-content {
    flex-direction: column;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
    order: 2;
  }

  .hero-text h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-image {
    order: 1;
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .lead-form-container {
    flex-direction: column;
  }

  .lead-form-features {
    flex-direction: row;
    padding: 20px 40px;
    min-width: auto;
  }

  /* Catalog cards responsive */
  .catalog-cards {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .cta-content {
    margin-bottom: 20px;
  }

  .cta-button {
    margin-left: 0;
    width: 100%;
  }

  .cta-button .btn {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .header-top {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    border-bottom: none;
  }

  .contact-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .contact-item.email {
    order: 3;
  }

  .contact-item.whatsapp {
    order: 2;
  }

  .contact-item.phone {
    order: 1;
  }

  .header-contact .messenger-dropdown {
    order: 99;
    flex-basis: 100%;
    display: flex;
    justify-content: center;
  }

  .contact-item.address {
    display: none;
  }

  .header-inner {
    justify-content: center;
    background: none;
  }

  .burger-menu {
    position: absolute;
    right: 15px;
    top: 10px;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-benefits li {
    align-items: center;
  }

  .lead-form-content {
    padding: 30px 20px;
  }

  .lead-form-content h2 {
    font-size: 24px;
  }

  .lead-form-features {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure no horizontal overflow in mobile */
  .hero-image {
    width: 100%;
    overflow: hidden;
  }

  .main-image {
    width: 100%;
  }

  .lead-form-features {
    width: 100%;
  }

  body, html {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    width: auto;
    overflow: hidden;
  }

  .hero-badges {
    width: calc(100% - 30px);
    max-width: 100%;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
  }

  /* Catalog cards responsive */
  .catalog-cards-section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .section-header p {
    font-size: 16px;
  }

  .card-price-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-delivery {
    text-align: left;
    margin-top: 10px;
  }
}

/* Article Section Styles */
.article-section {
  padding: 80px 0;
  background-color: #fff;
  position: relative;
}

.content-article,
.container > .wrapper > .content-section {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* Article Header */
.article-header {
  margin-bottom: 30px;
  text-align: center;
}

.article-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  color: var(--gray-dark);
}

.article-meta i {
  color: var(--secondary-color);
  margin-right: 5px;
}

/* Article Main Image */
.article-main-image {
  margin: 30px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-main-image figcaption {
  padding: 12px 15px;
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

/* Table of Contents */
.article-toc {
  background: var(--gray-light);
  padding: 25px 30px;
  border-radius: var(--radius-md);
  margin: 30px 0;
}

.article-toc h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.article-toc ol {
  padding-left: 20px;
}

.article-toc li {
  margin-bottom: 10px;
}

.article-toc a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.article-toc a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Article Body */
.article-body {
  margin-top: 40px;
}

/* Article Sections */
.content-article section {
/*  margin-bottom: 50px;*/
}

.content-article h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 35px 0 20px;
  position: relative;
  padding-bottom: 10px;
}


/* Компактная шапка страницы (Hero, variant = compact) — без фото, в колонке контента */
.content-article .page-head {
  margin: 10px 0 30px;
}

.page-head .page-head__title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary-dark);
  margin: 0 0 20px;
  padding-bottom: 14px;
  position: relative;
}

.page-head .page-head__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.page-head .page-head__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-dark);
  margin: 0;
}

.page-head .page-head__cta {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .page-head .page-head__title {
    font-size: 28px;
  }

  .page-head .page-head__lead {
    font-size: 16px;
  }
}

.content-article h2,
.content-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 35px 0 20px;
  position: relative;
  padding-bottom: 10px;
}

.content-article h2::after,
.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.content-article h3,
.content-section h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 35px 0 20px;
  position: relative;
  padding-bottom: 10px;
}

.content-article h3::after,
.content-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Заголовки карточек каталога — без декоративной черты и лишнего отступа */
.content-article .catalog-cards-section .card-title {
  padding-bottom: 0;
  margin: 0 0 15px;
}

.content-article .catalog-cards-section .card-title::after {
  display: none;
}

.content-article h4,
.content-section h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 25px 0 15px;
}

.content-article p,
.content-section p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.content-article strong,
.content-section strong {
  font-weight: 600;
  color: var(--primary-dark);
}

/* Картинки с float — отступы от текста */
.content-article img[style*="float"],
.content-section img[style*="float"] {
  margin: 5px 25px 15px 0;
  border-radius: var(--radius-sm);
}

.content-article img[style*="float: right"],
.content-article img[style*="float:right"],
.content-section img[style*="float: right"],
.content-section img[style*="float:right"] {
  margin: 5px 0 15px 25px;
}

.content-article::after,
.container > .wrapper > .content-section::after {
  content: "";
  display: block;
  clear: both;
}


/* Блок «Текст с фото» — вставляется кнопкой в TinyMCE (textwithphoto) */
.text-with-photo {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin: 25px 0;
}

.text-with-photo__image {
  flex: 0 1 auto;
  min-width: 0;
}

.text-with-photo__image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.text-with-photo__content {
  flex: 1 0 260px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.text-with-photo__content p {
  margin: 0 0 15px;
}

.text-with-photo__content p:last-child {
  margin-bottom: 0;
}

/* Картинка справа, текст слева — добавь класс text-with-photo--reverse */
.text-with-photo--reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .text-with-photo {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .text-with-photo__image {
    flex: none;
    max-width: 280px;
  }
}

/* Картинки с обтеканием текстом — перенесено из temp/blagoustroystvo */
.article-image-right {
  float: right;
  width: 300px;
  margin: 0 0 20px 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-image-left {
  float: left;
  width: 300px;
  margin: 0 30px 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-image-right img,
.article-image-left img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image-right figcaption,
.article-image-left figcaption {
  padding: 10px;
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

/* На мобильных — картинки с обтеканием встают по центру, без float */
@media (max-width: 576px) {
  .article-image-right,
  .article-image-left {
    float: none;
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 20px auto;
  }

  .content-article img[style*="float"],
  .content-section img[style*="float"],
  .content-article img[style*="float: left"],
  .content-article img[style*="float:left"],
  .content-article img[style*="float: right"],
  .content-article img[style*="float:right"],
  .content-section img[style*="float: left"],
  .content-section img[style*="float:left"],
  .content-section img[style*="float: right"],
  .content-section img[style*="float:right"] {
    float: none !important;
    display: block;
    margin: 20px auto !important;
    max-width: 100%;
    height: auto;
  }
}

.article-image-full {
  margin: 30px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .article-image-right,
  .article-image-left {
    float: none;
    width: 100%;
    margin: 20px 0;
  }
}

/* Ссылки в статье */
.content-article a:not(.btn):not(.catalog-link-card),
.content-section a:not(.btn):not(.catalog-link-card) {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.content-article a:not(.btn):not(.catalog-link-card):hover,
.content-section a:not(.btn):not(.catalog-link-card):hover {
  color: var(--secondary-color);
}

/* Article Lists — стили из оригинала temp/blagoustroystvo (.numbered-list / .unordered-list)
   применяются ко всем обычным ol/ul внутри .content-article */
.content-article ol,
.content-section ol {
  counter-reset: item;
  list-style-type: none;
  padding-left: 0;
  margin: 20px 0;
}

.content-article ol > li,
.content-section ol > li {
  counter-increment: item;
  margin-bottom: 15px;
  padding-left: 40px;
  position: relative;
}

.content-article ol > li::before,
.content-section ol > li::before {
  content: counter(item);
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
}

.content-article ul,
.content-section ul {
  list-style-type: none;
  padding-left: 0;
  margin: 20px 0;
}

.content-article ul > li,
.content-section ul > li {
  margin-bottom: 15px;
  padding-left: 40px;
  position: relative;
}

.content-article ul > li::before,
.content-section ul > li::before {
  content: "\2022";
  color: var(--primary-color);
  font-weight: bold;
  font-size: 24px;
  position: absolute;
  left: 12px;
  top: -5px;
}

/* Списки преимуществ в карточках каталога — свой маркер (галочка fa-check),
   гасим общую точку и отступ от .content-article ul > li */
.content-article .card-features > li {
  padding-left: 0;
}

.content-article .card-features > li::before {
  content: none;
}

@media (max-width: 576px) {
  .content-article ol > li,
  .content-section ol > li {
    padding-left: 30px;
  }
  .content-article ol > li::before,
  .content-section ol > li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

.feature-list li, .warning-list li {
  padding-left: 5px;
}

.feature-list strong, .warning-list strong {
  color: var(--primary-color);
}

.warning-list li strong {
  color: #e74c3c;
}

.numbered-list {
  counter-reset: item;
  list-style-type: none;
  padding-left: 0;
}

.numbered-list li {
  counter-increment: item;
  margin-bottom: 15px;
  padding-left: 40px;
  position: relative;
}

.numbered-list li::before {
  content: counter(item);
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
}

.unordered-list {
  list-style-type: none;
  padding-left: 0;
}

.unordered-list li {
  margin-bottom: 15px;
  padding-left: 40px;
  position: relative;
}

.unordered-list li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  font-size: 24px;
  position: absolute;
  left: 25px;
  top: -5px;
}

.conclusion-list {
  background: var(--gray-light);
  padding: 25px 25px 25px 60px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary-color);
}

.conclusion-list li::before {
  background: var(--secondary-color);
}

/* Картинки в статьях */

.no-shadow {
  box-shadow: none!important;
}

.article-image-right {
  float: right;
  width: 300px;
  margin: 0 0 20px 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-image-left {
  float: left;
  width: 300px;
  margin: 0 30px 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-image-right img, .article-image-left img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image-right figcaption, .article-image-left figcaption {
  padding: 10px;
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

.article-image-full {
  margin: 30px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-image-full img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image-full figcaption {
  padding: 12px 15px;
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

/* Blockquotes */
.article-quote {
  margin: 30px 0;
  padding: 25px 30px;
  background: var(--gray-light);
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.article-quote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 60px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.1);
  font-family: 'Georgia', serif;
}

.article-quote p {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.article-quote cite {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-dark);
  text-align: right;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
}

.comparison-table th {
  background: var(--primary-color);
  color: white;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.comparison-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--gray-medium);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--gray-light);
}

.comparison-table tbody tr:hover {
  background-color: #e7f1fd;
}

/* Article CTA */
.article-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  color: white;
  margin: 40px 0 20px;
  box-shadow: var(--shadow-md);
}

.article-cta p {
  font-size: 18px;
  margin-bottom: 20px;
}

#article-cta-button {
  background: var(--secondary-color);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  padding: 12px 25px;
  font-size: 16px;
}

#article-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

/* Article Footer */

.article-footer {
  margin-top: 50px;
  padding-top: 20px;
/*  border-top: 1px solid var(--gray-medium);*/
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 20px;
}

.article-tags a {
  display: inline-block;
  background: var(--gray-light);
  color: var(--gray-dark);
  padding: 5px 10px;
  border-radius: 30px;
  margin: 0 5px 5px 0;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.article-tags a:hover {
  background: var(--primary-light);
  color: white;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gray-light);
  color: var(--gray-dark);
  border-radius: 50%;
  margin-left: 10px;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.article-share a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.article-share a.share-button i {
  font-size: 18px;
}

.article-share a.share-button:nth-child(2):hover {
  background: #4C75A3;
  color: white;
}

.article-share a.share-button:nth-child(3):hover {
  background: #0088cc;
  color: white;
}

.article-share a.share-button:nth-child(4):hover {
  background: #25D366;
  color: white;
}

/* Responsive Styles for Articles */

@media (max-width: 992px) {
  .article-header h2 {
    font-size: 30px;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .article-image-right, .article-image-left {
    width: 250px;
  }

  .article-footer {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .article-section {
    padding: 50px 0;
  }

  .article-header h2 {
    font-size: 26px;
  }

  .content-article h3,
  .content-section h3 {
    font-size: 24px;
  }

  .content-article h4,
  .content-section h4 {
    font-size: 20px;
  }

  .article-image-right, .article-image-left {
    float: none;
    width: 100%;
    margin: 20px 0;
  }

  .article-quote p {
    font-size: 16px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th, .comparison-table td {
    padding: 10px;
  }
}

@media (max-width: 576px) {
  .article-section {
    padding: 40px 0;
  }

  .article-header h2 {
    font-size: 22px;
  }

  .article-toc {
    padding: 15px 20px;
  }

  .article-toc h3 {
    font-size: 18px;
  }

  .article-toc li {
    font-size: 14px;
  }

  .content-article h3,
  .content-section h3 {
    font-size: 20px;
  }

  .content-article h4,
  .content-section h4 {
    font-size: 18px;
  }

  .article-quote {
    padding: 20px 15px 20px 20px;
  }

  .numbered-list li {
    padding-left: 30px;
  }

  .numbered-list li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .article-cta p {
    font-size: 16px;
  }
}

/* Footer */

.site-footer {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px 0 20px;
    box-shadow: var(--shadow-lg) inset;
    position: relative;
    z-index: 600;
  }

  /* Декоративная подложка всего футера — поверх градиента, полупрозрачная */
  .site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/networks/blagoustroystvo/assets/img/footer-landscaping.webp') center 120% / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
  }

  .site-footer > * {
    position: relative;
    z-index: 1;
  }

  @media (max-width: 860px) {
    .site-footer::before {
      display: none;
    }
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-column {
    margin-bottom: 20px;
  }

  .footer-logo .company-name {
    font-family: var(--font-logo);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
  }

  .footer-title {
    font-family: var(--font-text);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }

  .footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
  }

  .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-menu li {
    margin-bottom: 10px;
  }

  .footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-menu a:hover {
    color: white;
    text-decoration: underline;
  }

  .footer-menu span.is-current {
    color: var(--secondary-color);
    font-weight: 600;
    cursor: default;
  }

  .footer-contact {
    margin: 20px 0;
  }

  .footer-contact .contact-item {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Тултип для обрезанного текста (ellipsis) — показывается JS при overflow */
  .truncate-tooltip {
    position: fixed;
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .truncate-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-dark);
  }

  .truncate-tooltip.visible {
    opacity: 1;
  }

  .footer-contact .contact-item:hover {
    color: white;
  }

  .social-links {
    display: flex;
    gap: 15px;
  }

  .social-icon {
    color: white;
    font-size: 20px;
    transition: transform 0.3s;
  }

  .social-icon:hover {
    transform: translateY(-3px);
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
  }

  .copyright {
    color: rgba(255, 255, 255, 0.7);
  }

  .developer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
  }

  .developer a:hover {
    color: white;
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    .footer-bottom {
      flex-direction: column;
      text-align: center;
      gap: 10px;
    }
  }

  footer .policy {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;

  }

  footer .policy a {
    color: var(--secondary-color);
    transition: all var(--transition-normal);
  }

  footer .policy a:hover {
    color: var(--secondary-light);
    box-shadow: var(--shadow-md);
  }

/* Сайдбар */

  .content-with-sidebar {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin: 30px auto;
  }

  .content-article,
  .container > .wrapper > .content-section {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
  }

  .content-article--narrow {
    max-width: 820px;
    margin: 30px auto;
  }

  /* Калькулятор внутри колонки с sidebar — адаптируется под узкую ширину */
  .content-article .blagoustroystvo-calculator {
    padding: 15px 0;
  }

  .content-article .blagoustroystvo-calculator .container {
    padding: 0;
  }

  .content-article .block-wrap {
    margin-bottom: 25px;
  }

  .sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;

  }

  /* для мобильных отключаeм прилипание */
  @media (max-width: 992px) {
    .sidebar {
      position: static;
    }
  }

  .sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 25px;
  }

  /* Виджет-призыв к калькулятору (главная лид-форма) */
  .sidebar-widget.sidebar-calc {
    background: var(--primary-dark);
    color: #fff;
  }

  .sidebar-calc .sidebar-calc__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
  }

  .sidebar-calc .sidebar-calc__text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
    opacity: .85;
  }

  .sidebar-calc .sidebar-calc__btn {
    width: 100%;
    background: var(--secondary-color);
  }

  .widget-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--primary-color);
  }

  .widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .widget-list li {
    margin-bottom: 10px;
  }

  .widget-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
  }

  .widget-list a:hover {
    color: var(--primary-color);
  }

  .widget-list span {
    background-color: var(--primary-color);
    color: white;
    padding-left: 7px;
    padding-right: 7px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 3px;
  }

  .widget-contact p {
    margin: 0 0 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .widget-contact i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
  }

  .contact-icon--whatsapp {
    color: var(--accent-color)!important;
  }

  .contact-link {
    color: var(--gray-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

  .contact-link:hover {
    color: var(--primary-light);
  }

  .contact-link i {
    width: 1em;
    text-align: center;
  }

  .contact-link__icon {
    width: 1em;
    height: 1em;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 25%;
  }

  .contact-icon--whatsapp {
    color: var(--accent-color);
    font-size: 1.2em;
    transition: 
      color var(--transition-fast),
      transform var(--transition-fast);
  }

  .contact-link:hover .contact-icon--whatsapp {
    color: var(--accent-color);
    transform: scale(1.1);
  }

  @media (max-width: 992px) {
    .content-with-sidebar {
      flex-direction: column;
    }

    .sidebar {
      display: none;
    }

    .content-article,
    .container > .wrapper > .content-section {
      max-width: 100%;
    }
  }

/* Прайсы */

.tabs-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 35px 0 20px;
  position: relative;
  padding-bottom: 10px;
}

.tabs-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Панорамная (fullwidth) версия — отбивка снизу всей секции */
.blagoustroystvo-prices {
  margin-bottom: 50px;
}

/* Inline-режим: блок в колонке с сайдбаром */
.blagoustroystvo-prices--inline {
  margin-bottom: 30px;
}

.blagoustroystvo-prices--inline .tabs-container {
  max-width: none;
  margin: 0;
}

.blagoustroystvo-prices--inline .tabs-heading {
  font-size: 26px;
  margin: 20px 0 16px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab {
  font-family: var(--font-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  background-color: var(--gray-medium);
  color: var(--gray-dark);
  font-weight: 500;
  transition: var(--transition-normal);
  white-space: nowrap;
  flex-grow: 1;
  text-align: center;
}

.tab:hover {
  background-color: var(--primary-light);
  color: white;
}

.tab.active {
  background-color: var(--secondary-color);
  color: #fff;
}

.tab-content h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.price-subheading {
  margin: 24px 0 10px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--gray-light);
  border-left: 3px solid var(--secondary-color);
  border-radius: var(--radius-sm);
}

.price-subheading:first-child,
.tab-content .price-subheading:first-of-type {
  margin-top: 8px;
}

.price-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* плавная инерция на старых iOS */
  touch-action: pan-x pan-y;          /* разрешаем горизонтальный свайп, не ломая вертикальный скролл страницы */
  /* Firefox: тонкий скролл, оранжевый ползунок на светлом треке */
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) var(--gray-light);
}

/* Chrome / Safari / Edge — кастомный горизонтальный скролл */
.price-table-wrapper::-webkit-scrollbar {
  height: 10px;
}
.price-table-wrapper::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 5px;
}
.price-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}
.price-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-dark);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-medium);
  text-align: center;
  white-space: nowrap;
}

.price-table thead th {
  color: var(--primary-dark);
}

/* Первый столбец (наименование) — по левому краю, остальные по центру */
.price-table th:first-child,
.price-table td:first-child {
  text-align: left;
}

@media (max-width: 768px) {
  .tab {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .tab {
    flex: 1 1 100%;
  }
}

/* Порядок работы */

.work-process-section {
  padding: 80px 0;
  background-color: #fff;
  position: relative;
}

.work-process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/networks/blagoustroystvo/assets/img/back-houses.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
}

.process-steps {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  z-index: 1;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  bottom: 50px;
  left: 50px;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary-dark));
  border-radius: 4px;
  z-index: -1;
}

.process-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  background: var(--secondary-color);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.step-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 30px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.process-step:hover .step-icon {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.step-icon i {
  font-size: 36px;
  color: white;
}

.step-content {
  flex-grow: 1;
  background: white;
  padding: 25px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.process-step:hover .step-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.step-content p {
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}

.process-cta {
  text-align: center;
  margin-top: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 30px;
  border-radius: var(--radius-md);
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 100;
}

.process-cta p {
  font-size: 18px;
  margin-bottom: 20px;
}

#process-cta-button {
  background: var(--secondary-color);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

#process-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

@media (max-width: 992px) {
  .process-steps::before {
    left: 40px;
  }

  .step-icon {
    width: 80px;
    height: 80px;
    margin-right: 25px;
  }

  .step-icon i {
    font-size: 30px;
  }

  .step-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .work-process-section {
    padding: 60px 0;
  }

  .process-steps {
    margin: 40px auto;
  }

  .process-steps::before {
    left: 30px;
  }

  .step-number {
    top: -5px;
    left: -5px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
  }

  .step-icon i {
    font-size: 24px;
  }

  .step-content {
    padding: 20px;
  }

  .step-content h3 {
    font-size: 18px;
  }

  .step-content p {
    font-size: 14px;
  }

  .process-cta {
    padding: 25px 20px;
  }

  .process-cta p {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .work-process-section {
    padding: 40px 0;
  }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-left: 50px;
  }

  .process-steps::before {
    left: 25px;
    top: 30px;
    bottom: 30px;
  }

  .step-number {
    top: -5px;
    left: -5px;
  }

  .step-icon {
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
  }

  .step-icon i {
    font-size: 20px;
  }

  .step-content {
    width: 100%;
  }

  .process-cta {
    margin-top: 30px;
  }
}

/* Анимация кнопок */

.button__animation {
  overflow: hidden;
  position: relative;
}

.button__animation:after {
  content: "";
  margin-left: 60px;
  width: 30px;
  height: 300px;
  background: #fff;
  -webkit-animation-delay: 0.05s;
  animation-delay: 0.05s;
  position: absolute;
  left: -40px;
  top: -150px;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-transition: all 0.1s;
  -o-transition: all 0.1s;
  transition: all 0.1s;
  -webkit-animation-name: slideme;
  animation-name: slideme;
  -webkit-animation-duration: 3s;
  animation-duration: 3s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
      transform: rotate(45deg);
}

@-webkit-keyframes slideme { 0% { left: -30px; margin-left: 0px; }
  30% { left: 110%; margin-left: 80px; }
  100% { left: 110%; margin-left: 80px; } }

@keyframes slideme { 0% { left: -30px; margin-left: 0px; }
  30% { left: 110%; margin-left: 80px; }
  100% { left: 110%; margin-left: 80px; } }


/* === Хлебные крошки  === */
.custom-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--gray-dark);
  padding-left: 0px!important;
}
.custom-breadcrumbs li {
  display: flex;
  align-items: center;
}
.custom-breadcrumbs li:not(:last-child)::after {
  content: ">";
  display: inline-block;
  margin-left: 10px;
  color: var(--secondary-light);
  font-weight: bold;
}
.custom-breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.custom-breadcrumbs a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}
.custom-breadcrumbs li:last-child {
  color: var(--gray-dark);
  font-weight: 500;
}

/* ============================
   Lead Form Section
   (перенесено из инлайн-стилей lead-form.php)
   ============================ */

.lead-form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  position: relative;
}

.lead-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/networks/blagoustroystvo/assets/img/back-working.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.lead-form-container {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  position: relative;
  z-index: 1;
}

.lead-form-content {
  flex: 1;
  padding: 40px;
}

.lead-form-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.lead-form-content p {
  font-size: 16px;
  color: var(--gray-dark);
  margin-bottom: 25px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: all var(--transition-normal);
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(30, 75, 148, 0.1);
  outline: none;
}

.lead-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.lead-form-features {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  min-width: 270px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature i {
  font-size: 24px;
  color: var(--secondary-light);
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feature span {
  font-size: 16px;
  font-weight: 500;
}

.lead-form .btn-submit {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  cursor: pointer;
  border: none;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.lead-form .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.form-privacy {
  font-size: 12px;
  color: var(--gray-dark);
  text-align: center;
  margin-top: 10px;
}

.form-privacy a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-dark);
  margin: 0 0 20px;
}

.breadcrumbs > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.breadcrumbs a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--gray-dark);
  font-weight: 500;
}

@media (max-width: 992px) {
  .lead-form-container {
    flex-direction: column;
  }
  .lead-form-features {
    min-width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px;
  }
  .feature {
    flex: 1 1 45%;
  }
}

/* ============================
   Блок калькулятора (Благоустройство) — заголовок блока
   ============================ */
.blagoustroystvo-calculator {
  padding: 20px 0;
}

.blagoustroystvo-calculator__head {
  text-align: left;
  margin-bottom: 30px;
}

.blagoustroystvo-calculator__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 10px;
}

.blagoustroystvo-calculator__subtitle {
  font-size: 16px;
  color: var(--gray-dark);
  margin: 0;
}

/* ============================
   Estimates Section
   (перенесено из инлайн-стилей smety.php)
   ============================ */

.estimates-section {
  padding: 80px 0;
}

.estimates-header {
  text-align: center;
  margin-bottom: 50px;
}

.estimates-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.estimates-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.estimates-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  list-style: none;
  padding: 0;
}

.estimate-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.estimate-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.estimate-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.estimate-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.estimate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.estimate-card:hover .estimate-image img {
  transform: scale(1.05);
}

.estimate-area {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-color);
  color: white;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.estimate-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.estimate-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.estimate-price {
  font-weight: 700;
  color: var(--primary-dark);
}

.estimate-desc {
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.estimate-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.estimate-features li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--gray-dark);
}

.estimate-features i {
  color: var(--secondary-color);
  margin-right: 8px;
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.estimates-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
}

.estimates-cta-content {
  color: white;
}

.estimates-cta-content p {
  font-size: 16px;
  opacity: 0.9;
}

.estimates-cta-button {
  flex-shrink: 0;
  margin-left: 20px;
}

.btn-estimates {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  white-space: nowrap;
}

.btn-estimates:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

@media (max-width: 992px) {
  .estimates-cta {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  .estimates-cta-content {
    margin-bottom: 20px;
  }
  .estimates-cta-button {
    margin-left: 0;
    width: 100%;
  }
  .btn-estimates {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .estimates-list {
    grid-template-columns: 1fr;
  }
  .estimates-header h2 {
    font-size: 28px;
  }
  .estimate-title {
    font-size: 20px;
  }
}

/* Fancy-картинка — вставляется кнопкой «Fancy-картинка» в TinyMCE (fancyimg).
   Открывается на клик через fancybox (init в main.js: Fancybox.bind('[data-fancybox]')). */
.fancy-block {
  margin: 30px 0;
}

.fancy-block__link {
  display: block;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-md);
}

.fancy-block__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.fancy-block__overlay {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(30, 52, 35, 0.55) url('/networks/blagoustroystvo/assets/img/icon-zoom.svg') no-repeat center / 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fancy-block__link:hover .fancy-block__overlay {
  opacity: 1;
}

.fancy-block__link:hover .fancy-block__img {
  transform: scale(1.05);
}

/* Подсветка текущей страницы в шапочном меню:
   <a> заменяется на <span class="is-current">, но визуально должен выглядеть
   как соответствующий <a> + индикация «вы здесь» (оранжевый цвет и полоска). */
.menu-level-1 > li > span.is-current {
  display: flex;
  align-items: center;
  padding: 10px 5px;
  font-size: 18px;
  font-weight: 400;
  color: var(--secondary-color);
  font-family: var(--font-text);
  border-radius: var(--radius-sm);
  position: relative;
  cursor: default;
}

.menu-level-1 > li > span.is-current::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
}

.menu-level-2 > li > span.is-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px 10px 20px;
  color: var(--secondary-color);
  border-left: 3px solid var(--secondary-color);
  cursor: default;
  white-space: nowrap;
}

.menu-level-3 > li > span.is-current {
  display: block;
  padding: 10px 15px 10px 20px;
  color: var(--secondary-color);
  border-left: 3px solid var(--secondary-color);
  cursor: default;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .menu-level-1 > li > span.is-current {
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .menu-level-1 > li > span.is-current::after {
    display: none;
  }
  .menu-level-2 > li > span.is-current,
  .menu-level-3 > li > span.is-current {
    padding: 12px 15px 12px 30px;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: normal;
  }
  .menu-level-3 > li > span.is-current {
    padding-left: 45px;
  }
}

/* ===== SIDEBAR SEARCH ===== */
.sidebar-search {
  margin-bottom: 20px;
}

.sidebar-search__form {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-search__input {
  flex: 1;
  border: 2px solid var(--gray-medium);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
  background: #fff;
}

.sidebar-search__input:focus {
  border-color: var(--primary-color);
}

.sidebar-search__btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 16px;
  transition: background var(--transition-fast);
}

.sidebar-search__btn:hover {
  background: var(--primary-dark, var(--primary-color));
}

/* ===== SEARCH PAGE ===== */
.search-page {
  padding: 40px 0 60px;
  min-height: 50vh;
}

.search-page__title {
  font-family: var(--font-logo);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.search-page__form {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 600px;
}

.search-page__input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-md);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-page__input:focus {
  border-color: var(--primary-color);
}

.search-page__btn {
  padding: 12px 24px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-page__btn:hover {
  background: var(--primary-dark, var(--primary-color));
}

.search-page__results {
  max-width: 800px;
}

.search-page__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-medium);
  transition: background var(--transition-fast);
}

.search-page__item:hover {
  background: var(--gray-light);
}

.search-page__item-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.search-page__item-title:hover {
  color: var(--primary-dark, var(--secondary-color));
}

.search-page__item-desc {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.5;
}

.search-page__item-desc mark {
  background: #fff3cd;
  color: inherit;
  padding: 1px 2px;
  border-radius: 2px;
}

.search-page__empty {
  text-align: center;
  font-size: 18px;
  color: var(--gray-dark);
  padding: 60px 0;
}

@media (max-width: 768px) {
  .search-page__title {
    font-size: 22px;
  }

  .search-page__form {
    flex-direction: column;
  }
}

/* ===== Calculator / lead form (bcalc) ===== */
.bcalc { padding: 60px 0; background: #f4f7f2; }
.bcalc .container { max-width: 920px; }
/* В колонке контента (inline-блок) — карточка по ширине колонки, а не полноширинная секция с полями */
.content-article .bcalc { padding: 28px; margin: 30px 0; border-radius: var(--radius-lg); }
.content-article .bcalc .container { max-width: none; padding: 0; }
.content-article .bcalc .bcalc__title { margin-top: 0; }
.bcalc__head { text-align: left; margin-bottom: 22px; }
.bcalc__title { font-size: 30px; color: var(--primary-dark); margin-bottom: 8px; }
.bcalc__subtitle { color: #5b6b57; font-size: 16px; }
.bcalc__notice { display: flex; gap: 12px; align-items: flex-start; background: rgba(43,98,26,0.06); border: none; border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; }
.bcalc__notice i { color: var(--primary-color); font-size: 20px; margin-top: 2px; }
.bcalc__notice p { font-size: 14px; line-height: 1.5; color: #4a5a46; margin: 0; }
.bcalc__form { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); padding: 28px; }
.bcalc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.bcalc__group { display: flex; flex-direction: column; min-width: 0; }
.bcalc__group--full { grid-column: 1 / -1; }
.bcalc__group label { font-size: 13px; font-weight: 600; color: var(--primary-dark); margin-bottom: 6px; }
.bcalc__group select, .bcalc__group input { width: 100%; padding: 11px 14px; border: 1px solid #d6ddd2; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; color: #1e3423; transition: border-color .2s, box-shadow .2s; }
.bcalc__group select:focus, .bcalc__group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(43,98,26,0.12); }
.bcalc__btn { margin-top: 22px; width: 100%; padding: 15px 24px; border: none; border-radius: 10px; background: var(--secondary-color); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s; }
.bcalc__btn:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.bcalc__btn:disabled { opacity: .6; cursor: default; transform: none; }
.bcalc__privacy { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: #5b6b57; }
.bcalc__privacy a { color: var(--primary-color); text-decoration: underline; }
.bcalc__success { text-align: center; padding: 40px 20px; }
.bcalc__success i { font-size: 60px; color: var(--primary-color); margin-bottom: 16px; }
.bcalc__success h3 { color: var(--primary-dark); margin-bottom: 10px; font-size: 24px; }
.bcalc__success p { color: #4a5a46; font-size: 16px; line-height: 1.6; }
@media (max-width: 600px) {
  .bcalc__grid { grid-template-columns: 1fr; }
  .bcalc__form { padding: 20px 16px; }
  .bcalc__title { font-size: 24px; }
  .content-article .bcalc { padding: 16px; }
}


/* ==========================================================================
   Виджеты (баннеры и попапы из админки) — рендерит core/widgets.php
   ========================================================================== */

.widget-banner {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px 48px 12px 20px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  z-index: 900;
}

.widget-banner--top {
  position: sticky;
  top: 0;
}

.widget-banner--bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.widget-banner__content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.widget-banner__link {
  text-decoration: underline;
  font-weight: 600;
}

.widget-banner__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  padding: 4px 8px;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.widget-banner__close:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

/* Тост — используется для уведомления о cookie */
.widget-banner--toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  top: auto;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  z-index: 9999;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.widget-banner--toast.widget-banner--visible {
  opacity: 1;
  transform: translateY(0);
}

.widget-banner--toast .widget-banner__content {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}

.widget-banner--toast .widget-banner__text {
  font-size: 14px;
  line-height: 1.5;
}

.widget-banner--toast .widget-banner__text a {
  color: inherit;
  text-decoration: underline;
}

.widget-banner--toast .widget-banner__accept {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.widget-banner--toast .widget-banner__accept:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Кнопки «наверх» и обратного звонка на мобильных занимают правый нижний угол */
@media (max-width: 480px) {
  .widget-banner--toast {
    bottom: 70px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

.widget-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.widget-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.widget-popup__dialog {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 520px;
}

.widget-popup__close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  opacity: 0.5;
  line-height: 1;
  padding: 4px 8px;
  color: inherit;
}

.widget-popup__close:hover {
  opacity: 1;
}

.widget-popup__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.widget-popup__content {
  margin-bottom: 16px;
  line-height: 1.6;
}

.widget-popup__button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: background var(--transition-fast);
}

.widget-popup__button:hover {
  background: var(--primary-dark);
}

/* Перечень юридических документов в подвале */
.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 10px;
}

/* ==========================================================================
   Подзаголовки в тексте: вместо короткой черты — линия на всю ширину
   с акцентным началом (раздел читается как раздел, без «обрубков»)
   ========================================================================== */
.content-article h2,
.content-section h2,
.tabs-heading {
  padding-bottom: 12px;
}

.content-article h2::after,
.content-section h2::after,
.tabs-heading::after {
  width: 100%;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg,
    var(--secondary-color) 0, var(--secondary-color) 72px,
    var(--gray-medium) 72px, var(--gray-medium) 100%);
}

.content-article h3,
.content-section h3 {
  padding-bottom: 0;
}

.content-article h3::after,
.content-section h3::after {
  display: none;
}

/* Каталог с одной карточкой: горизонтальная карточка во всю ширину (фото слева, текст справа) */
.catalog-cards.catalog-cards--single {
  grid-template-columns: 1fr;
}

.catalog-cards--single .catalog-card {
  flex-direction: row;
}

.catalog-cards--single .catalog-card:hover {
  transform: translateY(-4px);
}

.catalog-cards--single .card-image {
  flex: 0 0 42%;
  width: 42%;
  height: auto;
  min-height: 240px;
}

@media (max-width: 768px) {
  .catalog-cards--single .catalog-card {
    flex-direction: column;
  }

  .catalog-cards--single .card-image {
    width: 100%;
    flex-basis: auto;
    min-height: 200px;
  }
}

/* Подзаголовки без подчёркивания (решение владельца 2026-10-16) */
.content-article h2::after,
.content-section h2::after,
.tabs-heading::after {
  display: none;
}

.content-article h2,
.content-section h2,
.tabs-heading {
  padding-bottom: 0;
}

/* Верхнее меню: 7 пунктов в одну строку на десктопе (после добавления «Земляных работ») */
@media (min-width: 993px) {
  .menu-level-1 {
    gap: 8px;
    justify-content: space-between;
  }

  .menu-level-1 > li > a {
    white-space: nowrap;
    font-size: 17px;
    font-weight: 600;
    gap: 6px;
  }
}

/* Узкий десктоп (993–1199): логотип шире прежнего Oswald — ужимаем шапку и меню */
@media (min-width: 993px) and (max-width: 1199px) {
  .site-header .company-name {
    font-size: 21px;
  }

  .header-contact .contact-item.email {
    display: none;
  }

  .menu-level-1 > li > a {
    font-size: 15px;
    padding: 10px 2px;
  }
}

/* Поля форм наследуют шрифт страницы (по умолчанию браузер ставит системный — было видно в плейсхолдере поиска) */
input,
select,
textarea,
button {
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  font-family: inherit;
}

/* Галочки и переключатели — цветом темы, а не синим браузерным */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary-color);
}

/* Никаких декоративных черт под заголовками — нигде (решение владельца 2026-10-16) */
.hero-text h1::after,
.section-header h2::after,
.page-head .page-head__title::after,
.estimates-header h2::after,
.content-article h2::after,
.content-section h2::after,
.content-article h3::after,
.content-section h3::after,
.tabs-heading::after,
.bcalc__title::after {
  display: none !important;
}

.page-head .page-head__title {
  padding-bottom: 0;
}

/* Карточка «N соток»: схема участка, площадь — цифрой в пустом центре плана (как карточки смет) */
.card-image .plot-scheme {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    url('/networks/blagoustroystvo/assets/img/plot-scheme.svg') center / auto 86% no-repeat,
    linear-gradient(160deg, #f1f6ee 0%, #e2ecdc 100%);
}

.plot-scheme .plot-scheme__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: translateY(4px);
}

.plot-scheme .plot-scheme__num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--primary-color);
  margin-bottom: 2px;
}

/* Таблицы цен без горизонтального скролла: шапка и названия переносятся, цены — нет */
.price-table th,
.price-table td:first-child {
  white-space: normal;
}

.price-table thead th {
  line-height: 1.3;
  vertical-align: middle;
}

@media (max-width: 576px) {
  .price-table th,
  .price-table td {
    padding: 0.6rem 0.6rem;
    font-size: 14px;
  }
}

/* Компактные карточки каталога внутри страниц (inline): 3 в ряд, ниже фото, мельче текст,
   тонкая плашка цены, кнопки в одну строку (решение владельца 2026-10-21) */
.catalog-cards-section--inline .catalog-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.catalog-cards-section--inline .catalog-card {
  border: 1px solid var(--gray-medium);
  box-shadow: var(--shadow-sm);
}

.catalog-cards-section--inline .catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.catalog-cards-section--inline .card-image {
  height: 140px;
}

.catalog-cards-section--inline .card-content {
  padding: 14px 14px 16px;
}

.content-article .catalog-cards-section--inline .card-title {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.catalog-cards-section--inline .card-description {
  margin-bottom: 10px;
}

.catalog-cards-section--inline .card-features li {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 5px;
}

.catalog-cards-section--inline .card-features li i {
  font-size: 12px;
  margin: 3px 7px 0 0;
}

.catalog-cards-section--inline .card-price-block {
  margin: 0 0 12px;
  padding: 7px 10px;
  background: var(--gray-light);
  border-left: 3px solid var(--secondary-color);
}

.catalog-cards-section--inline .price-value {
  font-size: 15px;
}

.catalog-cards-section--inline .card-actions {
  display: flex;
  gap: 8px;
}

.catalog-cards-section--inline .card-actions .btn {
  flex: 1 1 0;
  width: auto;
  margin-top: 0;
  padding: 8px 6px;
  font-size: 11px;
  letter-spacing: 0.3px;
  border-width: 1px;
}

/* Одна карточка — горизонтальная, но тоже компактная */
.catalog-cards-section--inline .catalog-cards--single {
  grid-template-columns: 1fr;
}

.catalog-cards-section--inline .catalog-cards--single .card-image {
  flex: 0 0 34%;
  width: 34%;
  height: auto;
  min-height: 170px;
}

.catalog-cards-section--inline .catalog-cards--single .card-actions {
  max-width: 320px;
}

@media (max-width: 1199px) {
  .catalog-cards-section--inline .catalog-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .catalog-cards-section--inline .catalog-cards {
    grid-template-columns: 1fr;
  }

  .catalog-cards-section--inline .card-image,
  .catalog-cards-section--inline .catalog-cards--single .card-image {
    height: 170px;
    min-height: 0;
    width: 100%;
  }
}

/* ===== REELS: истории с объектов в сайдбаре + просмотр как в сторис (перенос из zabory, 2026-10-21) ===== */
:root {
  --reels-white: #fff;
  --reels-backdrop: rgba(0, 0, 0, 0.92);
  --reels-card-bg: #111;
  --reels-shade: rgba(0, 0, 0, 0.7);
  --reels-glass: rgba(0, 0, 0, 0.4);
  --reels-glass-strong: rgba(0, 0, 0, 0.6);
  --reels-light: rgba(255, 255, 255, 0.2);
  --reels-light-strong: rgba(255, 255, 255, 0.35);
  --reels-bar: rgba(255, 255, 255, 0.3);
  --reels-bar-viewed: rgba(255, 255, 255, 0.8);
}

.sidebar-reels {
  margin-bottom: 20px;
  background: var(--reels-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px 10px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.sidebar-reels__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 4px;
}

.sidebar-reels__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  cursor: grab;
  padding: 6px 0;
}

.sidebar-reels__track::-webkit-scrollbar {
  display: none;
}

.sidebar-reels__item {
  flex: 0 0 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sidebar-reels__thumb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid transparent;
  background-image: linear-gradient(var(--reels-white), var(--reels-white)),
    linear-gradient(135deg, var(--secondary-color), var(--primary-light), var(--primary-color));
  background-origin: border-box;
  background-clip: content-box, border-box;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sidebar-reels__item:hover .sidebar-reels__thumb {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.sidebar-reels__name {
  font-size: 11px;
  color: var(--gray-dark);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.reels-overlay {
  position: fixed;
  inset: 0;
  background: var(--reels-backdrop);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reels-overlay__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--reels-card-bg);
}

/* Фото с объектов в основном горизонтальные — показываем целиком, без обрезки */
.reels-overlay__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.reels-overlay__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 24px;
  background: linear-gradient(transparent, var(--reels-shade));
  color: var(--reels-white);
  pointer-events: none;
}

.reels-overlay__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.reels-overlay__desc {
  font-size: 14px;
  opacity: 0.9;
}

.reels-overlay__link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--secondary-color);
  color: var(--reels-white);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.reels-overlay__link:hover {
  background: var(--secondary-dark);
  color: var(--reels-white);
}

.reels-overlay__close,
.reels-overlay__nav {
  position: absolute;
  z-index: 10;
  border: none;
  color: var(--reels-white);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.reels-overlay__close {
  top: 44px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--reels-glass);
}

.reels-overlay__close:hover {
  background: var(--reels-glass-strong);
}

.reels-overlay__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--reels-light);
}

.reels-overlay__nav:hover {
  background: var(--reels-light-strong);
}

.reels-overlay__nav--prev {
  left: 12px;
}

.reels-overlay__nav--next {
  right: 12px;
}

.reels-overlay__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 12px 16px 0;
}

.reels-overlay__bar {
  flex: 1;
  height: 3px;
  background: var(--reels-bar);
  border-radius: 2px;
  overflow: hidden;
}

.reels-overlay__bar--viewed {
  background: var(--reels-bar-viewed);
}

.reels-overlay__fill {
  height: 100%;
  background: var(--reels-white);
  border-radius: 2px;
  width: 0%;
}

.reels-overlay__counter {
  position: absolute;
  top: 44px;
  left: 16px;
  z-index: 10;
  color: var(--reels-white);
  font-size: 13px;
  background: var(--reels-glass);
  padding: 4px 12px;
  border-radius: 20px;
}

@media (max-width: 500px) {
  .reels-overlay__card {
    max-width: 100%;
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
  }

  .reels-overlay__nav {
    display: none;
  }
}

/* ===== Галерея объектов: плитка фото и видео, просмотр в Fancybox (2026-10-21) ===== */
.media-gallery {
  padding: 60px 0;
}

.media-gallery--inline {
  padding: 0;
  margin: 24px 0;
}

.media-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.media-gallery--inline .media-gallery__grid {
  grid-template-columns: repeat(3, 1fr);
}

.media-gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--gray-medium);
  box-shadow: var(--shadow-sm);
}

.media-gallery__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.media-gallery__item:hover .media-gallery__media {
  transform: scale(1.05);
}

.media-gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--reels-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  transition: background var(--transition-fast);
}

.media-gallery__item:hover .media-gallery__play {
  background: var(--secondary-dark);
}

.media-gallery__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(transparent, var(--reels-shade));
  color: var(--reels-white);
  font-size: 13px;
  font-weight: 600;
}

.media-gallery__more {
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 992px) {
  .media-gallery__grid,
  .media-gallery--inline .media-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .media-gallery__grid,
  .media-gallery--inline .media-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Шапочное меню: 9 пунктов после добавления «Работы» (2026-10-21) — плотнее, чтобы влезало в контейнер */
@media (min-width: 1025px) {
  .menu-level-1 {
    gap: 6px;
    justify-content: space-between;
  }
}

@media (min-width: 1025px) {
  .menu-level-1 > li > a,
  .menu-level-1 > li > span.is-current {
    font-size: 16px;
    padding: 10px 2px;
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .menu-level-1 {
    gap: 6px;
  }

  .menu-level-1 > li > a,
  .menu-level-1 > li > span.is-current {
    font-size: 14px;
  }
}

/* ===== Карта сайта (блок blagoustroystvositemap, 2026-10-21) ===== */
.site-map {
  padding: 40px 0;
}

.site-map--inline {
  padding: 0;
  margin: 8px 0 24px;
}

.site-map__group {
  margin-bottom: 28px;
}

.content-article .site-map__title {
  font-size: 20px;
  margin: 0 0 10px;
  padding-bottom: 0;
}

.content-article .site-map__title::after {
  display: none;
}

.site-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-map__list .site-map__list {
  margin: 4px 0 4px 18px;
  padding-left: 14px;
  border-left: 2px solid var(--gray-medium);
}

.content-article .site-map__item {
  margin: 0 0 4px;
  padding-left: 0;
  font-size: 15px;
  line-height: 1.45;
}

.content-article .site-map__item::before {
  content: none;
}

.content-article .site-map a.site-map__link {
  color: var(--primary-color);
  text-decoration: none;
}

.content-article .site-map a.site-map__link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.site-map__group--columns > .site-map__list {
  columns: 2;
  column-gap: 28px;
}

.site-map__group--columns .site-map__item {
  break-inside: avoid;
}

@media (max-width: 576px) {
  .site-map__group--columns > .site-map__list {
    columns: 1;
  }
}

/* Список преимуществ в первом блоке на планшете/мобиле: сам список по центру, строки — от галочки влево */
@media (max-width: 992px) {
  .hero-benefits {
    display: inline-block;
    text-align: left;
  }

  .hero-benefits li {
    align-items: flex-start;
  }

  .hero-benefits li i {
    margin-top: 2px;
  }
}

/* Полноширинные секции карточек и плиток: под последней сеткой свой отступ не нужен — хватает паддинга секции */
.catalog-cards-section:not(.catalog-cards-section--inline) .catalog-cards:last-child,
.catalog-cards-section:not(.catalog-cards-section--inline) .catalog-links:last-child {
  margin-bottom: 0;
}

/* Мобила: калькулятор и следующие блоки ближе к карточкам */
@media (max-width: 768px) {
  .catalog-cards-section {
    padding-bottom: 30px;
  }

  .bcalc {
    padding: 30px 0;
  }
}

/* Нумерованный список: кружок с цифрой по центру первой строки текста.
   Высота строки в пикселях, кружок сдвинут на (строка - кружок) / 2 — одинаково во всех браузерах */
.content-article ol > li,
.content-section ol > li {
  line-height: 30px;
}

.content-article ol > li::before,
.content-section ol > li::before {
  top: 1px;
  line-height: 1;
}

@media (max-width: 576px) {
  .content-article ol > li,
  .content-section ol > li {
    line-height: 30px;
  }

  .content-article ol > li::before,
  .content-section ol > li::before {
    top: 3px;
  }
}

@media (max-width: 576px) {
  /* Плитки «Популярные услуги» / «Смотрите также» — по две в ряд, а не огромной лентой */
  .catalog-links--images {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .catalog-link-card--image .catalog-link-card__body {
    padding: 10px 12px 12px;
  }

  .catalog-link-card--image .catalog-link-card__title {
    font-size: 14px;
  }

  /* Футер: контакты и мессенджеры крупнее, меню в две колонки */
  .footer-contact .contact-item {
    font-size: 16px;
    padding: 10px 14px;
  }

  .footer-contact .messenger-dropdown .messenger-dropdown__menu {
    gap: 20px;
  }

  .footer-contact .messenger-dropdown .messenger-dropdown__item i,
  .footer-contact .messenger-dropdown .messenger-dropdown__item img {
    font-size: 30px;
    width: 34px;
    height: 34px;
  }

  .footer-menu {
    columns: 2;
    column-gap: 16px;
  }

  .footer-menu li {
    break-inside: avoid;
  }

  .footer-column {
    margin-bottom: 0;
  }

  .footer-grid {
    gap: 24px;
  }
}

/* Заголовок калькулятора — того же размера, что заголовки разделов текста (h2 «Расценки…») */
.bcalc__title,
.content-article .bcalc .bcalc__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

/* Футер на мобиле: контакты и мессенджеры ещё крупнее */
@media (max-width: 576px) {
  .footer-contact .contact-item {
    font-size: 18px;
    padding: 12px 16px;
  }

  .footer-contact .messenger-dropdown .messenger-dropdown__menu {
    gap: 26px;
  }

  .footer-contact .messenger-dropdown .messenger-dropdown__item i,
  .footer-contact .messenger-dropdown .messenger-dropdown__item img {
    font-size: 36px;
    width: 40px;
    height: 40px;
  }
}

/* Мобильная шапка: название по центру, по бокам одинаковые поля — справа под бургер (он поверх, абсолютно) */
@media (max-width: 860px) {
  .header-top .logo {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    padding: 0 56px;
  }

  .site-header .company-name {
    font-size: 18px;
  }

  .burger-menu {
    top: 12px;
  }
}

@media (max-width: 400px) {
  .site-header .company-name {
    font-size: 18px;
  }
}

/* Главная кнопка первого блока: фирменный оранжевый + бегущий блик (анимация slideme темы) */
.hero-cta .btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color) 55%, var(--secondary-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.4);
}

.hero-cta .btn-primary:hover {
  box-shadow: 0 10px 24px rgba(255, 140, 0, 0.5);
}

/* Блик не выходит за кнопку ни по высоте, ни по ширине: двигается transform'ом внутри кнопки,
   isolation + translateZ — чтобы Safari обрезал его по скруглённым краям кнопки */
.hero-cta .btn-primary {
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-cta .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30px;
  background: #fff;
  opacity: 0.35;
  transform: translateX(-60px) skewX(-25deg);
  pointer-events: none;
  -webkit-animation: hero-shine 3s ease-in-out 0.05s infinite;
  animation: hero-shine 3s ease-in-out 0.05s infinite;
}

@-webkit-keyframes hero-shine {
  0% { -webkit-transform: translateX(-60px) skewX(-25deg); }
  30%, 100% { -webkit-transform: translateX(460px) skewX(-25deg); }
}

@keyframes hero-shine {
  0% { transform: translateX(-60px) skewX(-25deg); }
  30%, 100% { transform: translateX(460px) skewX(-25deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-primary::after {
    animation: none;
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-cta .btn {
    font-size: 16px;
    padding: 15px 25px;
  }
}

/* Мобильная шапка: контакты и мессенджеры крупнее */
@media (max-width: 860px) {
  .header-contact .contact-item {
    font-size: 16px;
    padding: 8px 16px;
  }

  .header-contact .messenger-dropdown .messenger-dropdown__menu {
    gap: 22px;
  }

  .header-contact .messenger-dropdown .messenger-dropdown__item i,
  .header-contact .messenger-dropdown .messenger-dropdown__item img {
    font-size: 30px;
    width: 32px;
    height: 32px;
  }
}

/* Мобильная шапка без адреса (он есть в футере и на «Контактах») */
@media (max-width: 860px) {
  .header-contact .contact-item.address {
    display: none;
  }
}

/* Мобильный футер: название, контакты и мессенджеры по центру */
@media (max-width: 768px) {
  .footer-logo {
    text-align: center;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-contact .contact-item {
    max-width: 100%;
    text-align: center;
  }

  .footer-contact .messenger-dropdown--footer {
    align-self: center;
    display: flex;
    justify-content: center;
  }
}

/* Мобильный футер: шрифт ещё крупнее */
@media (max-width: 576px) {
  .footer-logo .company-name {
    font-size: 26px;
  }

  .footer-contact .contact-item {
    font-size: 20px;
    padding: 12px 18px;
  }

  .footer-menu a,
  .footer-menu span.is-current {
    font-size: 17px;
  }

  .footer-title {
    font-size: 20px;
  }
}

/* Страница «Спасибо»: кнопки связи в ряд */
.content-section .thanks-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-section .thanks-contacts .btn {
  gap: 8px;
}

/* Мессенджеры на «Спасибо» — цветные иконки, как в шапке и футере */
.content-section .thanks-messengers {
  display: flex;
  align-items: center;
  gap: 24px;
}

.content-section .thanks-messengers a.thanks-messengers__item {
  display: inline-flex;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.thanks-messengers .thanks-messengers__item:hover {
  transform: scale(1.1);
}

.thanks-messengers .thanks-messengers__item img {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.thanks-messengers .thanks-messengers__item i {
  font-size: 44px;
}

.thanks-messengers .thanks-messengers__item--tg i {
  color: #0088cc;
}

.thanks-messengers .thanks-messengers__item--wa i {
  color: #25D366;
}

@media (max-width: 576px) {
  .content-section .thanks-contacts .btn {
    flex: 1 1 100%;
  }

  .content-section .thanks-messengers {
    justify-content: center;
  }
}

/* Мобильные: подзаголовки разделов меньше главного заголовка страницы (H1 — 28px) */
@media (max-width: 768px) {
  .content-article h2,
  .content-section h2,
  .section-header h2 {
    font-size: 24px;
  }
}

/* Защита от горизонтальной прокрутки на телефонах (iOS не всегда учитывает overflow-x:hidden у body) */
@supports (overflow: clip) {
  html, body {
    overflow-x: clip;
  }
}

/* Мобильная шапка не прилипает — уезжает вместе со страницей */
@media (max-width: 860px) {
  .site-header {
    position: relative;
  }
}
