/* ============================================
   АСД Групп — стили (перенос с Битрикса)
   Цвета и шрифты через CSS-переменные
   ============================================ */

:root {
  /* Цвета как на старом сайте (Bitrix CUSTOM_s1) */
  --primary-color: #1f3565;
  --primary-dark: #26417c;
  --text-color: #333;
  --text-muted: #777;
  --light-bg: #f5f7fb;
  --section-grey: #f8f9fb;
  --white: #ffffff;
  --footer-bg: #111;
  --footer-text: #aaa;
  --footer-border: #333;
  --font-main: 'PT Sans Caption', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-main);
  line-height: 1.5;
}

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

a:hover, a:focus {
  color: var(--text-color);
}

/* Контейнеры */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.maxwidth-theme {
  max-width: 1200px;
  margin: 0 auto;
}

/* Сетка (вместо Bootstrap) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-sm-12 { flex: 0 0 100%; max-width: 100%; }

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.pull-left { float: left; }
.pull-right { float: right; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Типографика */
.font_xs { font-size: 0.8667em; line-height: 1.38; }
.dark-color { color: var(--text-color); }
h1, h2, h3, h4, h5 { color: var(--text-color); margin-top: 0; }
.introtext { font-size: 1.05em; line-height: 1.6; }

/* ========== HEADER ========== */
.header_wrap {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #d8d8d8;
}

.header-top-contacts {
  background: var(--light-bg);
  padding: 10px 0;
  font-size: 0.9em;
}

.header-top-contacts a {
  color: var(--text-color);
  margin-right: 20px;
}

.header-v1.logo_and_menu-row {
  background: var(--white);
}

.header_container {
  max-width: 1920px;
  padding: 0 40px;
  margin: 0 auto;
}

.header-row-full .header_container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.header-row-full .menu-row {
  width: 100%;
}

.header-row-full .nav-main {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

.header-row-full .nav-menu {
  flex: 1;
  justify-content: flex-start;
}

.logo-row {
  padding: 26px 0;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block .logo a {
  display: inline-block;
}

.logo-block .logo svg {
  display: block;
  height: 37px;
  width: auto;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 216px;
  object-fit: contain;
  object-position: left center;
}

.nav-menu .nav-item > a {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Основное меню и выпадающие списки */
.nav-main {
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-menu .nav-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.nav-menu .nav-item > a {
  display: block;
  color: var(--primary-color);
  padding: 12px 19px;
  font-size: 1.04em;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-menu .nav-item > a:hover,
.nav-menu .nav-item.active > a {
  color: var(--primary-dark);
}

.nav-menu .nav-item.has-dropdown > a::after,
.nav-menu .nav-item.has-megamenu > a::after {
  content: '';
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: none;
}

/* Блок телефона и поиск в шапке */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 24px;
}

.header-phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.header-phone-icon {
  display: inline-flex;
  color: var(--text-color);
}

.header-phone-icon svg {
  display: block;
}

.header-phone-num {
  font-weight: 600;
  font-size: 1em;
  color: var(--text-color);
  text-decoration: none;
}

.header-phone-num:hover {
  color: var(--primary-color);
}

.header-phone-callback {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-phone-callback:hover {
  color: var(--primary-color);
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-color);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.header-search-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: var(--light-bg);
}

.header-search-btn svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.search-panel {
  padding: 16px 0;
  background: var(--light-bg);
  border-bottom: 1px solid #eee;
}

.search-panel:not(:target) {
  display: none;
}

.search-panel:target {
  display: block;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.search-form button {
  padding: 10px 20px;
  font-size: 1rem;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* Мега-меню «Услуги» */
.nav-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(6px);
  min-width: 720px;
  max-width: 960px;
  width: max-content;
  margin: 0;
  padding: 28px 40px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}

.nav-menu .nav-item.has-megamenu:hover .nav-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-megamenu-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 28px 40px;
}

.nav-megamenu-col {
  min-width: 160px;
}

.nav-megamenu-title {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.nav-megamenu-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-megamenu-col ul li {
  margin: 0 0 6px 0;
}

.nav-megamenu-col ul a {
  display: block;
  font-size: 0.9em;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
}

.nav-megamenu-col ul a:hover {
  color: var(--primary-color);
}

/* Выпадающее меню */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}

.nav-menu .nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  margin: 0;
  padding: 0;
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-color);
  font-size: 0.9em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

/* Старая табличная разметка (если осталась) */
.table-menu table {
  border-collapse: collapse;
  border: none;
}

.table-menu td.menu-item {
  padding: 0 15px;
  border: none;
  vertical-align: middle;
}

.table-menu td.menu-item a {
  color: var(--text-color);
  padding: 8px 0;
  display: inline-block;
}

.table-menu td.menu-item a:hover,
.table-menu td.menu-item.active a {
  color: var(--primary-color);
}

.marker-nav { display: none; }

/* ========== MAIN / Секции ========== */
.main {
  position: relative;
  z-index: 1;
  min-height: 50vh;
  flex: 1 0 auto;
}

body.index .main { padding-bottom: 0; }

.static-page-header {
  padding: 40px 0 20px;
}

.static-page-header h1 {
  margin-bottom: 10px;
}

/* Хлебные крошки */
.breadcrumbs {
  padding: 16px 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.breadcrumbs-sep {
  margin: 0 6px;
}

/* Страница контактов */
.contacts-page-header {
  text-align: center;
}

.contacts-page-header .introtext {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contacts-page-section {
  padding-top: 0;
}

.contacts-page-content {
  text-align: left;
  padding-bottom: 48px;
}

.contacts-page-subtitle {
  margin: 0 0 28px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color);
}

.contacts-page-grid {
  margin: 0 auto 32px auto;
  justify-items: start;
  max-width: 560px;
}

.contacts-page-content .contacts-block-actions {
  text-align: left;
}

.static-section {
  padding: 40px 0;
}

.static-section.grey {
  background: var(--section-grey);
}

/* Страница «Услуги» — компактная вёрстка, чтобы влезало без масштабирования */
.services-page .services-page-top .breadcrumbs {
  padding: 12px 0 6px;
  text-align: center;
}

.services-page .services-page-top .static-page-header {
  padding: 16px 0 20px;
  text-align: center;
}

.services-page .services-page-top .static-page-header h1 {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.services-page .services-intro-reasons {
  background: none;
  text-align: left;
  margin-top: 12px;
}

.services-divider {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin: 0;
}

/* Разделители внутри списка услуг — на всю ширину экрана */
.services-sections-wrap .services-divider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 32px;
  margin-bottom: 32px;
}

.services-sections-wrap .maxwidth-theme {
  overflow-x: hidden;
}

/* Все блоки услуг в одном стиле: заголовок как у страницы */
.services-page .service-section .service-section-title {
  font-size: 1.65rem;
}

.services-page .service-section {
  border-bottom: none;
  padding-bottom: 32px;
  margin-bottom: 0;
}

.services-page .service-section:last-child {
  padding-bottom: 0;
}

.services-page .static-page-header .introtext {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.services-page .static-section {
  padding: 22px 0;
}

.services-page .static-section h2 {
  margin: 0 0 14px 0;
  font-size: 1.25rem;
}

.services-page .static-section > .container > .maxwidth-theme > ul {
  margin: 0 0 8px 0;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.services-page .static-section > .container > .maxwidth-theme > ul li {
  margin-bottom: 4px;
}

.services-page .static-section .introtext {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.services-page .service-item {
  background: var(--white);
  padding: 18px 22px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 18px;
}

.services-page .service-item:last-of-type {
  margin-bottom: 0;
}

.services-page .service-item-title {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
}

.services-page .service-item p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.services-page .service-item p:last-of-type {
  margin-bottom: 0;
}

.services-page .service-item ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.services-page .service-item ul li {
  margin-bottom: 4px;
}

.services-page .service-item .btn {
  margin-top: 12px;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.services-page .static-section > .container > .maxwidth-theme > p[style*="margin-top"],
.services-page .static-section > .container > .maxwidth-theme > p.text-align {
  margin-top: 18px;
  margin-bottom: 0;
  text-align: center;
}

.services-page .static-section > .container > .maxwidth-theme > p .btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Страница «Услуги» — по образцу старого сайта: вступление + секции с РАЗВЕРНУТЬ */
.services-page-intro {
  text-align: center;
}

.services-page-intro .introtext {
  margin-bottom: 12px;
}

.services-page-intro .introtext:last-of-type {
  margin-bottom: 8px;
}

.services-page-intro .services-intro-reasons .introtext {
  text-align: left;
}

.services-intro-list {
  margin: 0 0 28px 0;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-color);
  text-align: left;
}

.services-intro-list li {
  margin-bottom: 6px;
}

.services-sections-wrap .maxwidth-theme {
  padding-bottom: 40px;
}

.service-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}

.service-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.service-section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color);
}

.service-section-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
  background: var(--white);
  color: #888;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.service-section-arrow .service-section-arrow-icon {
  display: block;
  line-height: 1;
}

.service-section:hover .service-section-arrow {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.service-section-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.service-section-desc {
  margin-bottom: 14px;
}

.service-section-desc p {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
}

.service-section-desc p:last-child {
  margin-bottom: 0;
}

.service-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.service-section-toggle:hover {
  color: var(--primary-color);
}

.service-section-toggle-icon {
  font-size: 0.7rem;
}

.service-section-collapse {
  margin-top: 12px;
  padding-left: 0;
}

.service-section-collapse[hidden] {
  display: none;
}

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

.service-section-list li {
  margin-bottom: 6px;
}

.service-section-list a {
  color: var(--text-color);
  font-size: 0.95rem;
}

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

.service-section-cta {
  margin: 14px 0 0 0;
}

.service-section-cta-link {
  color: var(--primary-color);
  font-size: 0.95rem;
  text-decoration: underline;
}

.service-section-cta-link:hover {
  color: var(--primary-dark);
}

.service-section-back {
  margin: 24px 0 0 0;
  font-size: 0.95rem;
}

.service-section-back a {
  color: var(--primary-color);
}

.service-section-back a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Блок контактов на главной */
.contacts-block {
  padding: 50px 0;
  background: var(--white);
}

.contacts-block-label {
  margin: 0 0 8px 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts-block-title {
  margin: 0 0 32px 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
}

.contacts-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  max-width: 560px;
  margin: 0 0 28px 0;
}

.contacts-block .maxwidth-theme {
  text-align: left;
}

.contacts-block-item-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contacts-block-item-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
}

.contacts-block-item-value a {
  color: var(--text-color);
  text-decoration: none;
}

.contacts-block-item-value a:hover {
  color: var(--primary-color);
}

.contacts-block-actions {
  margin: 0;
  text-align: left;
}

.btn-contacts {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-color);
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-contacts:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

@media (max-width: 576px) {
  .contacts-block-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Первый экран главной — баннер во всю ширину фоном */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: stretch;
  width: 100%;
  background-color: var(--primary-dark);
  background-image: url("../images/main-banner.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.4) 45%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 70vh;
  box-sizing: border-box;
}

.hero-content {
  flex: 1;
  min-width: 0;
  padding: 60px 40px 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.hero-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 24px 0;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-color);
  margin: 0 0 36px 0;
  max-width: 480px;
}

.btn-hero {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-hero:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.hero-quick-actions {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.hero-quick-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(240, 240, 240, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  color: var(--text-color);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-quick-action:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.hero-quick-action svg {
  display: block;
}

@media (max-width: 991px) {
  .hero-quick-actions {
    display: none;
  }
}

.hero-visual {
  flex: 1;
  min-width: 0;
  position: relative;
  min-height: 400px;
}

.hero-visual-bg {
  display: none;
}

/* Декоративные формы отключены — только фото баннера */
.hero-shape--white,
.hero-shape--pink,
.hero-shape--blue {
  display: none;
}

@media (max-width: 991px) {
  .hero-inner {
    flex-direction: column;
    padding: 0 20px;
  }

  .hero-content {
    padding: 50px 0 50px;
    min-height: auto;
  }

  .hero-visual {
    min-height: 50vh;
  }
}

@media (max-width: 767px) {
  /* Мобильная версия: баннер выровнен по левому нижнему краю */
  .hero {
    background-position: left bottom;
  }

  .hero-content {
    justify-content: flex-end;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* Блок преимуществ — сниппеты в два ряда (заголовок + описание), без иконок */
.advantages-section {
  padding: 80px 0;
  background: var(--white);
}

.advantage-snippets .advantage-item {
  text-align: left;
  padding: 24px 20px;
  border: none;
  background: none;
}

.advantage-snippets .advantage-item-title {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.advantage-snippets .advantage-item-desc {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
}

/* совместимость со старым оформлением, если где-то остались старые классы */
.advantage-item-label {
  margin: 0 0 10px 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.advantage-item h3 {
  font-size: 1.3em;
  margin: 20px 0 10px;
  color: var(--text-color);
}

.advantage-item p {
  color: var(--text-muted);
  font-size: 0.95em;
}

/* Блок «О компании» на главной */
.about-block {
  padding: 60px 0;
  background: var(--white);
}

.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-content {
  flex: 0 1 520px;
  max-width: 520px;
  min-width: 280px;
  box-sizing: border-box;
}

.about-label {
  margin: 0 0 10px 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-title {
  margin: 0 0 20px 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color);
}

.about-text {
  margin: 0 0 16px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-text:last-of-type {
  margin-bottom: 0;
}

.about-actions {
  margin: 24px 0 0 0;
}

.btn-about {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-about:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.about-logo-wrap {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.about-logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.about-logo-name {
  display: none;
}

@media (max-width: 767px) {
  .about-inner {
    flex-direction: column;
    gap: 32px;
  }

  .about-logo-wrap {
    order: -1;
  }

  .about-logo-img {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* Услуги — карточки */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2em;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.service-card ul li:last-child {
  border-bottom: none;
}

.service-card ul li a {
  color: var(--text-color);
}

.service-card ul li a:hover {
  color: var(--primary-color);
}

/* Блок «Наши услуги» на главной — две колонки */
.services-block {
  padding: 50px 0;
  background: var(--white);
}

.services-block-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 52px;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.services-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-color);
}

.services-all-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.services-all-link:hover {
  color: var(--primary-color);
}

.services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 36px 48px;
  align-items: start;
}

.services-col {
  display: block;
}

.services-group {
  margin-bottom: 0;
}

.services-group-title {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
}

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

.services-list li {
  margin: 0 0 6px 0;
  padding: 0;
}

.services-list li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

@media (max-width: 767px) {
  .services-block-inner {
    padding: 32px 28px;
  }

  .services-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Блок услуг — отдельный пункт */
.service-item {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.service-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Новости — сетка (старый блок, если используется где-то ещё) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item h4 {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.news-item h4 a {
  color: var(--text-color);
}

.news-item h4 a:hover {
  color: var(--primary-color);
}

.news-item p {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.6;
}

/* Страница «Полезные материалы» — шапка */
.news-page .breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.9rem;
}

.news-page .static-page-header {
  text-align: center;
}

/* Пресс-центр — слайдер на главной */
.press-section {
  padding: 60px 0;
  background: var(--section-grey);
}

.press-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.press-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-color);
}

.press-all-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-color);
  text-decoration: none;
}

.press-all-link:hover {
  color: var(--primary-color);
}

.press-slider-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.press-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-top: 80px;
}

.press-arrow:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: var(--light-bg);
}

.press-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.press-arrow svg {
  display: block;
}

.press-slider {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.press-track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.press-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  background: var(--white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.press-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.press-card-title {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.press-card-title a {
  color: var(--text-color);
  text-decoration: none;
}

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

.press-card-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  margin-bottom: 12px;
  border-radius: 2px;
}

.press-card-text {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}

@media (max-width: 991px) {
  .press-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 260px;
  }
}

@media (max-width: 768px) {
  .press-arrow {
    margin-top: 40px;
    width: 38px;
    height: 38px;
  }

  .press-card {
    flex: 0 0 calc(100% - 0px);
    min-width: 100%;
  }
}

/* Список статей на странице новостей */
.news-list { margin-top: 30px; }

.news-list .news-item {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.news-list .news-item:last-child { border-bottom: none; }

.news-list .news-item h3 {
  margin-bottom: 15px;
  font-size: 1.6em;
}

.news-date {
  color: #999;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.news-preview { margin-bottom: 20px; }

/* Страница «Полезные материалы» — плитки */
.news-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.news-tile {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.news-tile:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  border-color: #ddd;
}

.news-tile-cat {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-tile-title {
  position: relative;
  margin: 0 0 16px 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-tile-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 10px;
  border-radius: 2px;
}

.news-tile-title a {
  color: var(--text-color);
  text-decoration: none;
}

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

.news-tile-excerpt {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-actions {
  margin-top: 32px;
  text-align: center;
}

.btn-news-load-more {
  padding: 12px 28px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-news-load-more:hover {
  background: var(--primary-dark);
}

.news-pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.news-pagination-current {
  font-weight: 700;
  color: var(--primary-color);
}

.news-pagination-link {
  color: var(--text-muted);
}

.news-pagination-link:hover {
  color: var(--primary-color);
}

/* Полные статьи (при переходе по #article-N) */
.news-articles-section {
  padding: 48px 0 60px;
  background: var(--section-grey);
}

.news-full {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 32px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.news-full:last-child {
  margin-bottom: 0;
}

.news-full h2 {
  margin: 0 0 20px 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.news-full-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-color);
}

.news-full-body p {
  margin: 0 0 1em 0;
}

.news-full-body p:last-child {
  margin-bottom: 0;
}

.news-full-cat {
  display: inline-block;
  margin: 0 0 12px 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-full-body h2 {
  margin: 1.5em 0 0.75em 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.35;
}

.news-full-body h2:first-of-type {
  margin-top: 1em;
}

.news-full-body h3 {
  margin: 1.25em 0 0.5em 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
}

.news-full-body ul {
  margin: 0.75em 0 1em 0;
  padding-left: 1.5em;
}

.news-full-body li {
  margin-bottom: 0.35em;
}

.news-full-img {
  margin: 1em 0;
  text-align: center;
}

.news-full-body .news-full-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.news-full-author {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #eee;
  font-size: 0.95em;
  color: var(--text-muted);
}

.news-article-cta {
  margin-top: 2em;
  padding: 32px 40px;
  background: var(--light-bg);
  border-radius: 8px;
  border: 2px solid #c4c4c4;
  text-align: center;
}

.news-article-cta-title {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.news-article-cta-text {
  margin: 0 0 20px 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.news-article-cta-links {
  margin-top: 16px;
  font-size: 0.95rem;
}

.news-article-cta-links a {
  color: var(--primary-color);
  font-weight: 600;
}

.news-article-single .news-full h1 {
  margin: 0 0 20px 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.news-back-link {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.news-back-link a {
  color: var(--primary-color);
  font-weight: 600;
}

.news-back-link a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .news-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-tiles {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-full {
    padding: 24px 20px;
  }

  .news-full h2 {
    font-size: 1.35rem;
  }
}

/* Секция консультации */
.consultation-section {
  background: var(--section-grey);
  padding: 60px 0;
}

.consultation-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.consultation-img {
  max-width: 320px;
  height: auto;
  flex-shrink: 0;
}

.consultation-content {
  flex: 1;
  min-width: 260px;
}

.consultation-section h2 {
  color: var(--text-color);
  margin: 0 0 16px 0;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

.consultation-section p {
  color: var(--text-muted);
  margin: 0 0 24px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.consultation-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-consultation {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.btn-consultation--primary {
  background: var(--primary-color);
  color: var(--white);
  border: none;
}

.btn-consultation--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-consultation--outline {
  background: var(--white);
  color: var(--text-color);
  border: 1px solid #ccc;
}

.btn-consultation--outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-default {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
}

.btn-default:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Тизеры (О компании) */
.tizers.in_content .tizer {
  margin-bottom: 20px;
}

.tizers .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tizers .tizer {
  flex: 1 1 200px;
  max-width: 300px;
}

.tizers .tizer .image img {
  max-width: 80px;
  height: auto;
}

.tizers .tizer .title {
  font-weight: 600;
  color: var(--text-color);
}

/* Страница «О компании»: сайдбар + контент */
.company-page .breadcrumbs {
  padding: 16px 0 8px;
}

.company-page-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.company-sidebar {
  flex: 0 0 240px;
  width: 240px;
  padding: 24px 0 0;
}

.company-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.company-sidebar-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.company-sidebar-link:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.company-sidebar-link.is-active {
  background: var(--light-bg);
  color: var(--primary-color);
}

.company-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-sidebar-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.company-sidebar-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--light-bg);
}

.company-sidebar-btn svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.company-main {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 48px;
}

.company-main-inner {
  max-width: 840px;
}

.company-page-header {
  padding: 8px 0 24px;
}

.company-page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  text-align: center;
}

.company-intro {
  margin-bottom: 36px;
}

.company-intro-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
}

.company-tizers {
  margin-bottom: 40px;
}

.company-tizers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.company-tizer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.company-tizer-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-tizer-icon img {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  color: var(--primary-color);
}

.company-tizer-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}

.company-section {
  margin-bottom: 36px;
}

.company-section:last-child {
  margin-bottom: 0;
}

.company-section-title {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.company-list {
  margin: 0 0 0 20px;
  padding: 0;
  list-style: none;
}

.company-list li {
  position: relative;
  margin: 0 0 12px 0;
  padding: 0 0 0 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.company-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.company-section p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-color);
}

/* Блок «Вопросы и ответы» на странице О компании */
.faq-section {
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.company-page-faq .faq-section {
  border-top: none;
  padding-top: 0;
}

.faq-page-title {
  margin: 0 0 16px 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

.faq-intro {
  margin: 0 0 28px 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-color);
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.faq-filter {
  margin: 24px 0 24px;
}

.faq-filter-btn {
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-color);
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.faq-filter-btn.is-active {
  border-color: #e0e0e0;
  border-top-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--white);
}

.faq-accordion {
  margin-bottom: 40px;
}

.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-color);
}

.faq-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px;
  background: var(--light-bg);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.faq-cta-icon {
  flex-shrink: 0;
  color: var(--primary-color);
}

.faq-cta-icon svg {
  display: block;
}

.faq-cta-text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
}

.btn-faq-ask {
  flex-shrink: 0;
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-faq-ask:hover {
  background: var(--primary-dark);
  color: var(--white);
}

@media (max-width: 991px) {
  .company-page-layout {
    flex-direction: column;
    padding: 0 20px 40px;
  }

  .company-sidebar {
    width: 100%;
    flex: none;
    padding: 0 0 24px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
  }

  .company-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .company-sidebar-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .company-main {
    padding: 0;
  }

  .company-tizers-grid {
    grid-template-columns: 1fr;
  }
}

/* Контакты */
.contacts-block h3 {
  margin-top: 0;
}

/* ========== FOOTER ========== */
.static-footer,
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 20px;
}

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

.footer-column h5 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1em;
}

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

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: var(--footer-text);
  font-size: 0.9em;
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85em;
}

.footer-bottom a {
  color: var(--footer-text);
  margin-right: 20px;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: var(--text-color);
}

.modal h3 {
  margin-bottom: 20px;
  padding-right: 30px;
}

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

.modal label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--text-color);
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
}

.modal textarea {
  min-height: 100px;
  resize: vertical;
}

.modal button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 10px;
}

.modal button[type="submit"]:hover {
  background: var(--primary-dark);
}

/* Toast уведомления */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 500;
  z-index: 1001;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  max-width: 90%;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }

/* Кнопки мессенджеров — десктоп */
#messenger-buttons-container {
  position: fixed;
  right: 20px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.messenger-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.messenger-btn:hover {
  transform: scale(1.05);
}

.messenger-btn img,
.messenger-btn svg {
  width: 28px;
  height: 28px;
}

/* Кнопка «Заказать звонок» в хедере (для TZ) */
.btn-callback {
  padding: 8px 16px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9em;
}

.btn-callback:hover {
  background: var(--primary-dark);
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
}

/* ========== АДАПТИВ (768px) ========== */
@media (max-width: 768px) {
  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .header_container {
    padding: 0 15px;
  }

  .menu-row {
    flex-wrap: wrap;
  }

  .nav-main {
    width: 100%;
    margin-top: 15px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu .nav-item {
    border-bottom: 1px solid #eee;
  }

  .nav-menu .nav-item > a {
    padding: 12px 0;
  }

  .header-right {
    display: none;
  }

  .nav-menu .nav-item.has-dropdown > a::after,
  .nav-menu .nav-item.has-megamenu > a::after {
    float: right;
    margin-top: 4px;
    border-top: none;
    border-bottom: 4px solid transparent;
    border-top-color: transparent;
    border-bottom-color: currentColor;
  }

  .nav-menu .nav-item.is-open > a::after {
    border-top: 4px solid currentColor;
    border-bottom: none;
  }

  .nav-megamenu {
    position: static;
    transform: none;
    display: none;
    min-width: 0;
    max-width: none;
    padding: 12px 0 12px 12px;
    margin-top: 8px;
    border: none;
    border-left: 2px solid var(--primary-color);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-item.has-megamenu.is-open .nav-megamenu {
    display: block;
  }

  .nav-megamenu-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: 0;
    padding: 0 0 8px 12px;
    margin-top: 4px;
    border: none;
    border-left: 2px solid var(--primary-color);
    border-radius: 0;
    box-shadow: none;
    background: var(--light-bg);
  }

  .nav-menu .nav-item.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 8px 12px;
    white-space: normal;
  }

  .table-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .advantages-section {
    padding: 40px 0;
  }

  .static-section {
    padding: 30px 0;
  }

  .consultation-buttons {
    flex-direction: column;
  }

  /* Кнопки мессенджеров — мобильная версия */
  #messenger-buttons-container {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
    justify-content: center;
  }

  .main {
    padding-bottom: 100px;
  }
}

/* ============================================
   Страницы услуг: левый сайдбар + контент справа
   ============================================ */
.service-page-section {
  padding: 32px 0 48px;
  background: var(--section-grey);
}

.service-page-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.service-page-sidebar {
  flex: 0 0 280px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  position: sticky;
  top: 24px;
}

.service-sidebar-nav {
  padding: 0 20px 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

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

.service-sidebar-list > li {
  margin-bottom: 4px;
}

.service-sidebar-list > li > a {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
  border-radius: 6px;
}

.service-sidebar-list > li > a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.service-sidebar-sublist {
  list-style: none;
  margin: 0 0 8px 0;
  padding: 0 0 0 20px;
}

.service-sidebar-sublist li {
  margin-bottom: 2px;
}

.service-sidebar-sublist a {
  display: block;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 6px;
}

.service-sidebar-sublist a:hover {
  color: var(--primary-color);
  background: var(--light-bg);
}

.service-sidebar-actions {
  padding: 0 20px;
}

.service-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-color);
  background: var(--light-bg);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.service-sidebar-btn:hover {
  background: #e8ecf4;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.service-sidebar-btn::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.service-sidebar-btn:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f3565'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.service-sidebar-btn:last-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f3565'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.service-page-content {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 32px 40px 40px;
}

.service-page-content .breadcrumb.contacts-breadcrumb {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.service-page-content .static-page-header {
  margin-bottom: 24px;
}

.service-page-content .static-page-header h1 {
  font-size: 1.75rem;
}

.service-page-content .service-item-link,
.service-page-content .consultation-list .service-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  background: #fafafa;
  padding: 22px 28px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-page-content .service-item-link:hover,
.service-page-content .consultation-list .service-item-link:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(31, 53, 101, 0.1);
}

.service-page-content .service-item-link h3,
.service-page-content .consultation-list .service-item-link h3 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.15rem;
}

.service-page-content .service-item-link span[aria-hidden="true"]:last-child,
.service-page-content .consultation-list .service-item-link span[aria-hidden="true"]:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #eee;
  border-radius: 6px;
  color: var(--primary-color);
  font-size: 1.15em;
}

@media (max-width: 991px) {
  .service-page-wrap {
    flex-direction: column;
  }

  .service-page-sidebar {
    flex: 0 0 auto;
    width: 100%;
    position: static;
  }

  .service-page-content {
    padding: 24px 20px 32px;
  }
}

/* Body wrapper (сохраняем классы от старого шаблона) */
.body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.body_media {
  display: none;
}
