/* =========================================================
   Базовые переменные
   ========================================================= */
:root {
  --c-accent: #e52b38;
  --c-accent-dark: #c21f2b;
  --c-dark: #1a1d24;
  --c-dark-2: #252a35;
  --c-text: #2b2f38;
  --c-muted: #6b7280;
  --c-soft: #f4f5f7;
  --c-border: #e5e7eb;
  --c-white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 24, 33, .08);
  --section-y: 56px;

  --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--c-text);
  --bs-link-color-rgb: 229, 43, 56;
  --bs-link-hover-color-rgb: 194, 31, 43;
}

@media (min-width: 992px) {
  :root { --section-y: 96px; }
}

html { font-size: 81%; } /* базовый размер шрифта: 81% от 16px ≈ 13px */

body {
  background: var(--c-white);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--c-dark); }

/* =========================================================
   Кнопки
   ========================================================= */
.btn { font-weight: 600; border-radius: var(--radius-sm); }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--c-accent);
  --bs-btn-border-color: var(--c-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--c-accent-dark);
  --bs-btn-hover-border-color: var(--c-accent-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--c-accent-dark);
  --bs-btn-active-border-color: var(--c-accent-dark);
  --bs-btn-focus-shadow-rgb: 229, 43, 56;
}

.form-control { border-radius: var(--radius-sm); border-color: var(--c-border); }
.form-control:focus { border-color: var(--c-accent); box-shadow: 0 0 0 .2rem rgba(229, 43, 56, .15); }
.form-check-input:checked { background-color: var(--c-accent); border-color: var(--c-accent); }

/* =========================================================
   Секции
   ========================================================= */
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--c-soft); }

.section-kicker {
  display: inline-block;
  margin-bottom: .5rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem); line-height: 1.2; margin-bottom: .75rem; }
.lead-muted { color: var(--c-muted); font-size: 1.05rem; }

.container-narrow { max-width: 880px; }

/* Заглушки под изображения — заменить на <img> */
.ph {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e3e6eb, #cfd4dc);
  color: #7c8491;
  font-size: .85rem;
  text-align: center;
  overflow: hidden;
}
.ph span { padding: 0 1rem; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-16x10 { aspect-ratio: 16 / 10; }
.ph-hero { aspect-ratio: 5 / 4; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5); }

/* =========================================================
   Шапка
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--c-white); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(20, 24, 33, .08); }

.topbar { background: var(--c-dark); color: rgba(255, 255, 255, .75); font-size: .85rem; padding: .45rem 0; }
.topbar-phone { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar-phone:hover { color: #fff; opacity: .85; }

.main-nav { padding: .7rem 0; border-bottom: 1px solid var(--c-border); }

.logo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 64px;
  padding: 0 .75rem;
  border-radius: 8px;
  background: var(--c-soft);
  border: 1px dashed #c3c8d0;
  color: var(--c-muted);
  font-weight: 700;
  font-size: .9rem;
}
.logo-ph--1c { min-width: 48px; background: #ffe14d; border-color: #e6c300; color: #c8102e; }

.navbar-toggler { border: 0; font-size: 1.9rem; padding: 0 .25rem; color: var(--c-dark); }
.navbar-toggler:focus { box-shadow: none; }

.main-nav .nav-link { font-weight: 600; color: var(--c-dark); padding: .6rem .9rem; border-radius: var(--radius-sm); }
.main-nav .nav-link:hover,
.main-nav .nav-link.show { color: var(--c-accent); }

.main-nav .dropdown-menu {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .5rem;
  min-width: 260px;
}
.main-nav .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 500; }
.main-nav .dropdown-item:hover { background: var(--c-soft); color: var(--c-accent); }

/* Десктоп: выпадающее меню по наведению */
@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .main-nav .dropdown-menu { top: 100%; }
}

/* Мобильное меню: вложенные пункты без тени */
@media (max-width: 991.98px) {
  .main-nav .offcanvas { max-width: 86vw; }
  .main-nav .nav-link { font-size: 1.1rem; padding: .75rem 0; border-bottom: 1px solid var(--c-border); border-radius: 0; }
  .main-nav .dropdown-menu { box-shadow: none; padding: .25rem 0 .5rem .75rem; }
  .main-nav .dropdown-toggle::after { float: right; margin-top: .6rem; }
}

/* =========================================================
   Главная: слайдер УТП
   ========================================================= */
.hero {
  background: radial-gradient(1200px 500px at 85% 20%, #3a2330 0%, transparent 60%), var(--c-dark);
  color: #fff;
  padding: 48px 0 32px;
  overflow: hidden;
}
@media (min-width: 992px) { .hero { padding: 80px 0 48px; } }

.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(229, 43, 56, .18);
  color: #ff8b93;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-title { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.43vw, 3.4rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.hero-sub { color: rgba(255, 255, 255, .7); font-size: 1.1rem; max-width: 560px; margin-bottom: 1.75rem; }

.hero-form { display: flex; flex-direction: column; gap: .75rem; max-width: 560px; }
@media (min-width: 576px) { .hero-form { flex-direction: row; align-items: flex-start; } }
.hero-form .btn { white-space: nowrap; }

.hero-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.hero-nav {
  width: 48px; height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  transition: background .2s, border-color .2s;
}
.hero-nav:hover { background: var(--c-accent); border-color: var(--c-accent); }
.hero-pagination { display: flex; gap: .4rem; width: auto !important; }
.hero-pagination .swiper-pagination-bullet { width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); opacity: 1; margin: 0 !important; }
.hero-pagination .swiper-pagination-bullet-active { background: var(--c-accent); }

/* =========================================================
   Главная: цифры
   ========================================================= */
.stat { height: 100%; padding: 1.25rem; border-radius: var(--radius); background: var(--c-soft); }
@media (min-width: 992px) { .stat { padding: 2rem; } }
.stat-num { font-size: clamp(2rem, 1.4rem + 1.94vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--c-accent); margin-bottom: .5rem; }
.stat-label { color: var(--c-muted); font-weight: 500; }

/* =========================================================
   Главная: «Наша ответственность» (вкладки)
   ========================================================= */
.resp-tabs { display: flex; flex-wrap: nowrap; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
.resp-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .resp-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: .75rem; } }

.resp-tab {
  display: flex; align-items: center; gap: .75rem;
  flex: 0 0 auto;
  padding: .8rem 1.1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-dark);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  transition: all .2s;
}
@media (min-width: 992px) { .resp-tab { padding: 1.2rem 1.4rem; font-size: 1.1rem; white-space: normal; } }
.resp-tab i { font-size: 1.3rem; color: var(--c-accent); }
.resp-tab:hover { border-color: var(--c-accent); }
.resp-tab.active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.resp-tab.active i { color: #fff; }

.resp-panel { height: 100%; padding: 1.5rem; border-radius: var(--radius); background: var(--c-white); box-shadow: var(--shadow); }
@media (min-width: 992px) { .resp-panel { padding: 2.5rem; } }
.resp-group-title { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .6rem; font-size: 1.15rem; font-weight: 700; color: var(--c-dark); text-decoration: none; }
.resp-group-title:hover { color: var(--c-accent); }
.resp-links { list-style: none; padding: 0; margin: 0; }
.resp-links li + li { margin-top: .35rem; }
.resp-links a { color: var(--c-muted); text-decoration: none; }
.resp-links a:hover { color: var(--c-accent); }

/* =========================================================
   Команда
   ========================================================= */
.person .ph { margin-bottom: .9rem; }
.person-name { font-weight: 700; color: var(--c-dark); }
.person-info { font-size: .9rem; color: var(--c-muted); }

/* =========================================================
   Техподдержка
   ========================================================= */
.support-box { padding: 1.5rem; border-radius: var(--radius); background: var(--c-soft); }
@media (min-width: 992px) { .support-box { padding: 3rem; } }
.badge-live { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: #16a34a; }
.badge-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } }

/* =========================================================
   FAQ
   ========================================================= */
.faq .accordion-item { border: 0; border-radius: var(--radius-sm) !important; margin-bottom: .75rem; overflow: hidden; }
.faq .accordion-button { font-weight: 700; color: var(--c-dark); padding: 1.1rem 1.25rem; }
.faq .accordion-button:not(.collapsed) { background: var(--c-white); color: var(--c-accent); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-body { color: var(--c-muted); padding-top: 0; }

/* =========================================================
   Кейсы
   ========================================================= */
.case-card { height: 100%; border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-border); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case-card .ph { border-radius: 0; }
.case-body { padding: 1.25rem; }
.case-tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--c-soft); font-size: .8rem; font-weight: 600; color: var(--c-muted); margin-bottom: .6rem; }
.case-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: .6rem; }
.case-result { margin: 0; color: var(--c-muted); }
.case-result strong { color: var(--c-accent); font-size: 1.2rem; }

/* =========================================================
   Отраслевые пакеты
   ========================================================= */
.package + .package { margin-top: 2.5rem; }
@media (min-width: 992px) { .package + .package { margin-top: 4rem; } .package .col-md-7 { padding: 0 2.5rem; } }
.package-title { font-size: clamp(1.35rem, 1.1rem + .81vw, 1.9rem); margin-bottom: .75rem; }

/* =========================================================
   Форма обратной связи
   ========================================================= */
.feedback-box { padding: 1.75rem; border-radius: var(--radius); background: var(--c-dark); }
@media (min-width: 992px) { .feedback-box { padding: 3.5rem; } }
.feedback-box .invalid-feedback { color: #ff9aa2; }

.form-success { padding: 1.25rem; border-radius: var(--radius-sm); background: rgba(22, 163, 74, .12); color: #15803d; font-weight: 600; }
.feedback-box .form-success,
.trial-box .form-success,
.hero .form-success { background: rgba(255, 255, 255, .1); color: #fff; }

/* =========================================================
   Подвал
   ========================================================= */
.site-footer { background: #111318; color: rgba(255, 255, 255, .8); padding: 56px 0 24px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-muted { color: rgba(255, 255, 255, .5); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: inherit; }

/* =========================================================
   Внутренние страницы: шапка страницы
   ========================================================= */
.page-hero { background: var(--c-soft); padding: 28px 0 40px; }
@media (min-width: 992px) { .page-hero { padding: 40px 0 64px; } }
.breadcrumb { font-size: .85rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }
.page-title { font-size: clamp(2rem, 1.4rem + 1.94vw, 3rem); font-weight: 800; margin-bottom: .75rem; }
.page-sub { color: var(--c-muted); font-size: 1.1rem; max-width: 640px; }

/* Карточка услуги / оборудования */
.item-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-white); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.item-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.item-card .ph { border-radius: 0; }
.item-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.item-title { font-size: 1.1rem; line-height: 1.3; margin-bottom: .5rem; }
.item-text { color: var(--c-muted); font-size: .95rem; }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; }
.item-price { font-weight: 800; color: var(--c-dark); }
.item-foot i { color: var(--c-accent); font-size: 1.2rem; transition: transform .2s; }
.item-card:hover .item-foot i { transform: translateX(4px); }

.pagination { --bs-pagination-color: var(--c-dark); --bs-pagination-active-bg: var(--c-accent); --bs-pagination-active-border-color: var(--c-accent); --bs-pagination-border-radius: var(--radius-sm); --bs-pagination-hover-color: var(--c-accent); --bs-pagination-focus-box-shadow: none; gap: .35rem; }
.pagination .page-link { border-radius: var(--radius-sm) !important; min-width: 42px; text-align: center; }

/* =========================================================
   Страница услуги
   ========================================================= */
.service-price { margin-top: 1.25rem; font-size: 1.8rem; font-weight: 800; color: var(--c-dark); }
.service-price span { display: block; font-size: .85rem; font-weight: 600; color: var(--c-muted); }

.quick-form { padding: 1.5rem; border-radius: var(--radius); background: var(--c-white); box-shadow: var(--shadow); }
@media (min-width: 992px) { .quick-form { padding: 2rem; } }
.quick-form-title { font-size: 1.3rem; margin-bottom: 1rem; }

.pain-list { display: grid; gap: .75rem; }
.pain { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--c-soft); }
.pain i { font-size: 1.4rem; color: var(--c-accent); line-height: 1; }
.pain strong { display: block; color: var(--c-dark); margin-bottom: .2rem; }
.pain span { color: var(--c-muted); }

.trial-box { padding: 1.75rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--c-accent), #b3162a); }
@media (min-width: 992px) { .trial-box { padding: 3rem; } }
.trial-box .invalid-feedback { color: #fff; }

.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-white); color: var(--c-dark); font-size: 1.2rem; transition: all .2s; }
.slider-btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.slider-btn.swiper-button-disabled { opacity: .4; pointer-events: none; }

.case-slide { padding: 1.25rem; border-radius: var(--radius); background: var(--c-white); }
@media (min-width: 992px) { .case-slide { padding: 2rem; } }
.case-done { padding-left: 1.2rem; color: var(--c-muted); }
.case-quote { margin: 1rem 0 0; padding: 1rem 1.25rem; border-left: 3px solid var(--c-accent); background: var(--c-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.case-quote cite { display: block; margin-top: .4rem; font-style: normal; font-size: .9rem; color: var(--c-muted); }
.cases-pagination { text-align: center; }
.cases-pagination .swiper-pagination-bullet-active { background: var(--c-accent); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { position: relative; counter-increment: step; padding: 0 0 1.75rem 4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--c-border); }
.steps strong { display: block; font-size: 1.1rem; color: var(--c-dark); padding-top: .55rem; }
.steps span { color: var(--c-muted); }

.benefit { height: 100%; padding: 1.5rem; border-radius: var(--radius); background: var(--c-white); }
.benefit i { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(229, 43, 56, .1); color: var(--c-accent); font-size: 1.5rem; margin-bottom: 1rem; }
.benefit strong { display: block; font-size: 1.1rem; color: var(--c-dark); margin-bottom: .3rem; }
.benefit span { color: var(--c-muted); }

.handout { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 2px dashed var(--c-border); border-radius: var(--radius); }
@media (min-width: 768px) { .handout { flex-direction: row; align-items: center; padding: 2rem; gap: 1.5rem; } }
.handout > i { font-size: 2.5rem; color: var(--c-accent); }
.handout-title { font-size: 1.25rem; margin-bottom: .3rem; }

.seo-text { color: var(--c-muted); }
.seo-text h2 { font-size: 1.4rem; margin-bottom: 1rem; }
