/* =========================================================================
   bitumarazogrev.ru — main stylesheet
   Clean, framework-free replacement for Elementor
   ========================================================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: #6e6e6e;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.3;
  color: var(--dark);
}
h1 { font-size: 38px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 25px; }
h5 { font-size: 20px; }
h6 { font-size: 17px; }

/* ===== DESIGN TOKENS ===== */
:root {
  --red: #CE1212;
  --dark: #1B1717;
  --cream: #EEEBDD;
  --gray: #6e6e6e;
  --white: #fff;
  --container: 1250px;
  --gap: 30px;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; position: relative; }
.row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.col-50 { flex: 0 0 calc(50% - var(--gap)/2); max-width: calc(50% - var(--gap)/2); position: relative; }
.col-25 { flex: 0 0 calc(25% - var(--gap)*3/4); max-width: calc(25% - var(--gap)*3/4); position: relative; }
.col-20 { flex: 0 0 calc(20% - var(--gap)*4/5); max-width: calc(20% - var(--gap)*4/5); position: relative; }
.col-33 { flex: 0 0 calc(33.333% - var(--gap)*2/3); max-width: calc(33.333% - var(--gap)*2/3); position: relative; }

/* ===== TYPOGRAPHY ===== */
.section-label {
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--dark);
}
.section-title--red { color: var(--red); }
.section-title--large { font-size: 29px; }
.section-title--red-small {
  display: block;
  font-size: 20px;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.section-title--cream { color: var(--cream); }
p { margin-bottom: 15px; }
p:last-child { margin-bottom: 0; }

/* ===== SECTIONS ===== */
.section { padding: 50px 0; position: relative; }
.section--sm { padding: 25px 0; position: relative; }

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: opacity .3s;
}
.btn--red { background: var(--red); color: var(--cream); }
.btn--red:hover { opacity: .85; }
.btn--dark { background: var(--dark); color: var(--cream); border: 2px solid var(--cream); }
.btn--dark:hover { opacity: .85; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 15px 0;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1250px;
}
.site-header__logo img { height: 45px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 30px; }
.site-header__nav a {
  color: var(--cream);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color .3s;
}
.site-header__nav a:hover { color: var(--red); }
.site-header__nav .has-dropdown { position: relative; }
.site-header__nav .has-dropdown:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--dark);
  min-width: 280px;
  padding: 10px 0;
  z-index: 200;
}
.dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--cream);
}
.dropdown a:hover { background: rgba(255, 255, 255, .1); }
.site-header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 18px;
  font-weight: 600;
}
.site-header__phone i { color: var(--red); font-size: 17px; }

/* ===== Бургер мобильного меню (по умолчанию скрыт, виден ≤768px) ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO (homepage) ===== */
.hero {
  position: relative;
  background: url('../img/universal_background.webp') center/cover no-repeat fixed;
  background-color: var(--dark);
  padding: 200px 0;
  overflow: hidden;
}
.hero--fullscreen {
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(600deg, transparent 31%, #000 51%);
  opacity: .65;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  max-width: 1250px;
}
.hero__content { width: 55%; padding-right: 50px; position: relative; }
.hero__title { font-size: 29px; color: var(--cream); margin-bottom: 25px; }
.hero__subtitle { color: rgba(238, 235, 221, .85); font-size: 17px; margin-bottom: 30px; }
.hero__image { width: 45%; flex-shrink: 0; }
.hero__image img {
  width: 100%; height: auto;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 103 89'%3E%3Cpath d='M77.2114,0H25.7523L0,44.5045,25.7523,89H77.2114L103,44.5045ZM61.7691,62.261H41.2218L30.9391,44.5045,41.2218,26.739H61.7691L72.0519,44.5045Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 103 89'%3E%3Cpath d='M77.2114,0H25.7523L0,44.5045,25.7523,89H77.2114L103,44.5045ZM61.7691,62.261H41.2218L30.9391,44.5045,41.2218,26.739H61.7691L72.0519,44.5045Z'/%3E%3C/svg%3E");
  mask-size: contain; -webkit-mask-size: contain;
  mask-position: center; -webkit-mask-position: center;
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
}
.deco-circle { position: absolute; color: rgba(238, 235, 221, .19); pointer-events: none; z-index: 1; }
.deco-circle--sm { font-size: 150px; top: 0; left: 0; line-height: 1; }
.deco-circle--lg { font-size: 350px; bottom: -200px; right: -50px; line-height: 1; }

/* ===== DECORATIVE SECTION ICON (fa-circle-notch watermark)
   Mimics Elementor's margin:-100% trick: icon renders but takes no space,
   next heading/content draws on top, overlapping the icon visually. */
.deco-section-icon {
  height: 0;
  overflow: visible;
  line-height: 0;
  pointer-events: none;
  color: var(--cream);
  margin-left: -20px;
}
.deco-section-icon i {
  font-size: 150px;
  line-height: 1;
  display: inline-block;
  vertical-align: top;
}

/* ===== PAGE HERO (service pages, article pages) ===== */
.page-hero {
  position: relative;
  padding: 200px 0 200px;
  background: var(--dark) center/cover no-repeat;
  color: var(--cream);
  overflow: hidden;
}
.page-hero--fullscreen {
  padding: 140px 0 200px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero__title {
  font-size: 38px;
  color: var(--cream);
  margin-bottom: 15px;
  max-width: 900px;
}
.page-hero__subtitle {
  color: rgba(238, 235, 221, .85);
  font-size: 18px;
  max-width: 800px;
}

/* Content box that overlaps the page-hero (service pages + article pages) */
.content-overlap {
  position: relative;
  z-index: 3;
  margin-top: -100px;
  padding-bottom: 50px;
}
.content-overlap > .container {
  max-width: calc(var(--container) + 100px);
  padding: 0 20px;
}
.content-overlap__box {
  background: var(--white);
  padding: 60px 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 768px) {
  .content-overlap__box { padding: 25px 20px; }
}
.breadcrumbs {
  font-size: 13px;
  color: rgba(238, 235, 221, .6);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumbs a { color: var(--red); }
.breadcrumbs span { margin: 0 8px; }

/* ===== METHODS (homepage) ===== */
.methods { padding: 50px 0 25px; }
.methods .row { align-items: center; }
.methods__image img { border-radius: 15px; }

/* ===== SOLUTION ===== */
.solution { padding: 25px 0; }

/* ===== ADVANTAGES CARDS ===== */
.advantages-heading { padding: 25px 0; }
.advantages { display: flex; gap: 0; flex-wrap: wrap; }
.advantage-card { flex: 1; padding: 50px 25px; min-height: 220px; min-width: 250px; }
.advantage-card:nth-child(odd) { background: var(--dark); }
.advantage-card:nth-child(even) { background: var(--red); }
.advantage-card h4 {
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  color: var(--cream);
}
.advantage-card p { color: var(--cream); }

/* ===== CTA SECTION ===== */
.cta-section .row { align-items: stretch; }
.cta-section__photo {
  position: relative;
  background: url('../img/stdomik001r_heating_bitumen.jpg') center/cover no-repeat fixed;
  background-color: var(--dark);
  min-height: 400px;
}
.cta-section__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
}

/* ===== TRUST / WHY US ===== */
.trust ul { list-style: disc; padding-left: 40px; }
.trust li { margin-bottom: 0; line-height: 1.6; }
.trust li strong { color: var(--dark); }

/* ===== PARTNER + COUNTERS ===== */
.partner .row { align-items: center; }
.partner__image img { border-radius: 15px; }
.counters { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.counter { text-align: center; }
.counter__number { font-size: 48px; font-weight: 700; color: var(--red); line-height: 1; }
.counter__suffix { font-size: 24px; font-weight: 700; color: var(--red); }
.counter__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-top: 5px;
}

/* ===== HOW WORKS ===== */
.how-works .row { gap: var(--gap); }

/* ===== TABLE ===== */
.cases-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.cases-table th {
  background: var(--gray);
  color: var(--white);
  padding: 15px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.cases-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  vertical-align: top;
}
.cases-table tr:nth-child(even) { background: #f9f9f9; }

/* ===== SUCCESS STORIES ===== */
.success .row { align-items: flex-start; }
.success__left { padding-right: 50px; padding-left: 25px; }
.success__right { padding-left: 50px; }
.success__images { position: relative; width: 100%; padding-bottom: 105%; }
.success__images img { position: absolute; width: 75%; height: auto; border-radius: 0; }
.success__images img:nth-child(1) { top: 0; right: 0; }
.success__images img:nth-child(2) { top: 23.3%; left: 0; }
.success__images img:nth-child(3) { top: 60%; right: 0; }

/* ===== COMPONENTS (icon-box horizontal: icon left | text right) ===== */
.components .row { gap: 30px; }
.icon-box-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 35px;
  border: 1px solid var(--cream);
  height: 100%;
}
.icon-box-horizontal__icon {
  flex-shrink: 0;
  font-size: 65px;
  color: var(--red);
  line-height: 1;
}
.icon-box-horizontal__body { flex: 1; }
.icon-box-horizontal__body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.icon-box-horizontal__body p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ===== STEPS ===== */
.steps .row { gap: 15px; justify-content: center; }
.step { text-align: center; flex: 0 0 calc(20% - 15px); }
.step__icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}
.step__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gray);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  line-height: 1;
  z-index: 2;
  white-space: nowrap;
}
.step__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #e4ecf9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 33px;
  color: var(--gray);
  padding: 0;
}
.step h3 {
  font-size: 14px;
  color: var(--red);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.step p { font-size: 13px; color: var(--gray); }

/* ===== NEW UNIVERSAL BLOCKS ===== */

/* Stats row — компактная горизонтальная полоса метрик (используется ПЕРЕД feature-grid) */
.stats-row {
  background: var(--dark);
  color: var(--cream);
  padding: 30px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 30px 0 0;
  position: relative;
}
.stats-row + .feature-grid {
  margin-top: 0;
}
.stats-row__item {
  text-align: left;
  position: relative;
  padding-right: 20px;
}
.stats-row__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(238, 235, 221, 0.18);
}
.stats-row__number {
  font-size: 38px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}
.stats-row__label {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.95;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.stats-row__sublabel {
  font-size: 12px;
  color: rgba(238, 235, 221, 0.65);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}
@media (max-width: 980px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); padding: 25px 30px; gap: 25px; }
  .stats-row__item:nth-child(2)::after { display: none; }
}
@media (max-width: 520px) {
  .stats-row { grid-template-columns: 1fr; padding: 25px; }
  .stats-row__item::after { display: none !important; }
  .stats-row__item { border-bottom: 1px solid rgba(238, 235, 221, 0.15); padding-bottom: 15px; }
  .stats-row__item:last-child { border: none; padding-bottom: 0; }
}

/* Stat cards — legacy (оставлено для совместимости, но новая концепция — stats-row) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 30px 0;
}
@media (max-width: 980px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
}
.stat-card {
  background: var(--cream);
  padding: 30px 25px;
  text-align: center;
  border-left: 4px solid var(--red);
}
.stat-card__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.stat-card__label {
  font-size: 14px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.stat-card__sublabel {
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
}

/* Problem cards — переделаны: нумерованные карточки с цветным углом */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
  counter-reset: problem;
}
@media (max-width: 980px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .problem-grid { grid-template-columns: 1fr; }
}
.problem-card {
  background: #fff;
  border: 1px solid #ebebeb;
  padding: 30px 25px 25px;
  position: relative;
  counter-increment: problem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}
.problem-card::before {
  content: counter(problem, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 42px;
  font-weight: 700;
  color: rgba(206, 160, 100, 0.18);
  line-height: 1;
  letter-spacing: -1px;
  font-family: 'Poppins', sans-serif;
}
.problem-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  transform: scaleY(0.3);
  transform-origin: top;
  transition: transform 0.3s;
}
.problem-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}
.problem-card:hover::after {
  transform: scaleY(1);
}
.problem-card.solution::before {
  content: "✓";
  font-size: 32px;
  color: #2d8f3a;
  opacity: 0.25;
  top: 20px;
}
.problem-card.solution::after {
  background: #2d8f3a;
}
.problem-card h4 {
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--dark);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  padding-right: 50px;
  font-weight: 700;
}
.problem-card p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* Highlight callout — выделение важной информации */
.callout {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-left: 4px solid var(--red);
  padding: 25px 30px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}
.callout__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.callout__title i {
  color: var(--red);
  font-size: 22px;
}
.callout p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* Feature blocks — крупные блоки преимуществ с иконкой */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 30px 0;
}
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-block {
  background: #fff;
  padding: 30px 25px;
  border: 1px solid #eee;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.feature-block__icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--red);
  margin-bottom: 15px;
}
.feature-block h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--dark);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}
.feature-block p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* Comparison row — две колонки "плохо vs хорошо" */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}
.comparison__col {
  padding: 25px;
}
.comparison__col--bad {
  background: #fff8f8;
  border: 1px solid #f0d0d0;
}
.comparison__col--good {
  background: #f3faf4;
  border: 1px solid #c8e0c8;
}
.comparison__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comparison__col--bad .comparison__title { color: #c44; }
.comparison__col--good .comparison__title { color: #2d8f3a; }
.comparison__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comparison__col li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: #444;
}
.comparison__col--bad li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: #c44;
  font-weight: 700;
}
.comparison__col--good li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #2d8f3a;
  font-weight: 700;
}

/* Inline quiz CTA — компактный блок с CTA */
.quiz-cta {
  background: var(--dark);
  color: var(--cream);
  padding: 50px 60px;
  margin: 50px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.quiz-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(196, 68, 67, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.quiz-cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(206, 160, 100, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.quiz-cta__icon {
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.quiz-cta__icon i {
  font-size: 28px;
  color: #fff;
}
.quiz-cta__text {
  position: relative;
  z-index: 2;
}
.quiz-cta h3 {
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.quiz-cta p {
  font-size: 15px;
  color: rgba(238,235,221,.75);
  margin: 0;
  line-height: 1.5;
}
.quiz-cta .btn {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .comparison { grid-template-columns: 1fr; }
  .quiz-cta {
    padding: 35px 25px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .quiz-cta__icon { margin: 0 auto; }
  .quiz-cta h3 { font-size: 20px; }
}


/* ===== TESTIMONIALS ===== */
.testimonials .row { align-items: flex-start; }
.testimonial__stars { color: #f90; font-size: 18px; margin-bottom: 10px; display: flex; gap: 3px; }
.testimonial__text { font-size: 16px; line-height: 1.6; color: var(--gray); margin-bottom: 15px; }
.testimonial__author { font-size: 16px; font-weight: 700; color: var(--dark); }
.testimonial__quote {
  font-size: 120px;
  color: rgba(206, 160, 100, .25);
  line-height: 1;
  position: absolute;
  right: 20px; top: -20px;
  font-family: Georgia, serif;
}
.testimonials__right { position: relative; }

/* ===== PHOTO GALLERY ===== */
.photo-gallery { padding: 25px 0; overflow: hidden; }
.photo-gallery .swiper { overflow: hidden; }
.photo-gallery .swiper-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}
.photo-gallery .swiper-button-prev,
.photo-gallery .swiper-button-next {
  width: 2.66em; height: 2.66em;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: #8c8c8c;
}
.photo-gallery .swiper-button-prev::after,
.photo-gallery .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}
.photo-gallery .swiper-button-prev:hover,
.photo-gallery .swiper-button-next:hover { background: #fff; }
/* Fix swiper arrows (swiper-icons font not embedded) */
.swiper-button-prev::after,
.swiper-button-next::after { font-family: inherit !important; font-weight: 700; }
.swiper-button-prev::after { content: '‹' !important; }
.swiper-button-next::after { content: '›' !important; }

/* ===== FAQ ACCORDION ===== */
.faq .row { align-items: flex-start; }
.accordion { width: 100%; }
.accordion__item { border: 1px solid #e0e0e0; margin-bottom: -1px; }
.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  background: var(--white);
  transition: background .3s;
}
.accordion__header:hover { background: #f5f5f5; }
.accordion__header.active { background: var(--dark); color: #fff; }
.accordion__arrow { font-size: 20px; transition: transform .3s; flex-shrink: 0; margin-left: 15px; }
.accordion__header.active .accordion__arrow { transform: rotate(90deg); }
.accordion__body {
  display: none;
  padding: 18px 25px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  border-top: 1px solid #e0e0e0;
}
.accordion__item.open .accordion__body { display: block; }
.accordion__body p { margin-bottom: 10px; }
.accordion__body p:last-child { margin-bottom: 0; }

/* ===== RED CTA BANNER ===== */
.cta-banner {
  background: var(--red);
  padding: 60px;
  border-radius: 0;
  margin: 0 auto;
  max-width: calc(var(--container) - 80px);
}
.cta-banner h2 { color: var(--cream); margin-bottom: 20px; }
.cta-banner p { color: rgba(238, 235, 221, .9); margin-bottom: 25px; font-size: 16px; }

/* ===== CONTENT (article-like) ===== */
.content-page { padding: 60px 0; }
.content-page .container { max-width: var(--container); }
.content-page h2 {
  font-size: 26px;
  color: var(--dark);
  margin: 35px 0 15px;
}
.content-page h3 {
  font-size: 20px;
  color: var(--dark);
  margin: 25px 0 12px;
}
.content-page p { margin-bottom: 15px; font-size: 16px; line-height: 1.7; }
.content-page ul,
.content-page ol { margin: 15px 0 20px 30px; }
.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }
.content-page li { margin-bottom: 8px; line-height: 1.6; }
.content-page a { color: var(--red); text-decoration: underline; }
.content-page strong { color: var(--dark); }
.content-page img { margin: 20px 0; border-radius: 6px; height: auto; }
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 14px;
}
.content-page table th {
  background: var(--gray);
  color: var(--white);
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
}
.content-page table td {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}
.content-page table tr:nth-child(even) td { background: #f9f9f9; }
.content-page ol li { list-style: decimal; }
.content-page br + br { display: none; }
.content-page h3 + img,
.content-page p + img { margin-top: 10px; }

/* ===== ICON-BOX GRID ===== */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.icon-box {
  padding: 30px 25px;
  background: rgba(238, 235, 221, 0.19);
  border: none;
  text-align: left;
}
.icon-box__icon {
  width: 60px; height: 60px;
  background: var(--red);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.icon-box__title {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.icon-box__text { font-size: 15px; line-height: 1.6; color: var(--gray); }

/* ===== RELATED POSTS (blog grid + swiper) =====
   Unified article listing used across service pages ("Статьи по теме"),
   blog index and blog category pages.
   - Static grid (.posts-grid) for blog listings: max 3 per row on desktop
   - Swiper variant (.related-posts-swiper) for "Статьи по теме" blocks
     so long lists stay in one swipeable row instead of wrapping */
.related-posts { padding: 50px 0; background: #f7f7f7; }
.related-posts__title {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 30px;
  text-align: center;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; gap: 18px; }
}
.post-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: box-shadow .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.post-card__thumb { display: block; }
.post-card__thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__title {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card__title a { color: var(--dark); }
.post-card__title a:hover { color: var(--red); }
.post-card__meta { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.post-card__more {
  display: inline-block;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

/* Swiper variant of the related-posts block */
.related-posts-swiper { position: relative; padding-bottom: 44px; }
.related-posts-swiper .swiper-slide { height: auto; display: flex; }
.related-posts-swiper .swiper-slide > .post-card { width: 100%; }
.related-posts-swiper .swiper-pagination { bottom: 0; }
.related-posts-swiper .swiper-pagination-bullet-active { background: var(--red); }
.related-posts-swiper .swiper-button-prev,
.related-posts-swiper .swiper-button-next {
  color: var(--red);
  width: 36px;
  height: 36px;
  top: 50%;
  margin-top: -36px;
}
.related-posts-swiper .swiper-button-prev::after,
.related-posts-swiper .swiper-button-next::after { font-size: 22px; font-weight: 700; }
@media (max-width: 560px) {
  .related-posts-swiper .swiper-button-prev,
  .related-posts-swiper .swiper-button-next { display: none; }
}

/* ===== BLOG LAYOUT — 2-column (posts + sidebar) =====
   Used on blog index and category pages. Articles stay full-width
   (better for reading). On mobile sidebar stacks below the posts. */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 30px; }
}
.blog-layout__main  { min-width: 0; }
.blog-layout__aside { position: sticky; top: 90px; }
@media (max-width: 900px) {
  .blog-layout__aside { position: static; }
}

/* ----- Sidebar blocks ----- */
.blog-sidebar__block {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 22px 22px 18px;
  margin-bottom: 20px;
}
.blog-sidebar__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin: 0 0 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}

/* category list */
.blog-sidebar__cats { list-style: none; padding: 0; margin: 0; }
.blog-sidebar__cats li { margin: 0; }
.blog-sidebar__cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--dark);
  font-size: 15px;
  transition: color .2s, padding-left .2s;
}
.blog-sidebar__cats li:last-child a { border-bottom: 0; }
.blog-sidebar__cats a:hover { color: var(--red); padding-left: 4px; }
.blog-sidebar__cats a.is-active { color: var(--red); font-weight: 700; }
.blog-sidebar__count {
  font-size: 12px;
  color: var(--gray);
  background: #f7f7f7;
  padding: 2px 9px;
  border-radius: 10px;
  min-width: 26px;
  text-align: center;
}
.blog-sidebar__cats a:hover .blog-sidebar__count,
.blog-sidebar__cats a.is-active .blog-sidebar__count {
  background: var(--red);
  color: #fff;
}

/* recent posts list in sidebar */
.blog-sidebar__recent { list-style: none; padding: 0; margin: 0; }
.blog-sidebar__recent li { margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid #f0f0f0; }
.blog-sidebar__recent li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.blog-sidebar__recent a {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--dark);
  font-weight: 600;
}
.blog-sidebar__recent a:hover { color: var(--red); }
.blog-sidebar__recent time {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 400;
}

/* plain CTA block in sidebar */
.blog-sidebar__cta p { font-size: 14px; line-height: 1.5; margin: 0 0 14px; color: var(--gray); }
.blog-sidebar__cta .btn { width: 100%; text-align: center; }

/* ===== PAGINATION =====
   Semantic <nav aria-label="Пагинация"> with buttons/links inside. */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 10px;
  flex-wrap: wrap;
}
.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.pagination__item:hover { border-color: var(--red); color: var(--red); }
.pagination__item.is-current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  cursor: default;
  pointer-events: none;
}
.pagination__item.is-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination__gap { color: var(--gray); padding: 0 4px; user-select: none; }


.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacts-grid__info .section-title {
  margin-bottom: 15px;
}
.contacts-grid__info > p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 25px;
}
.contacts-grid__block {
  padding: 20px 0;
  border-top: 1px solid #eee;
}
.contacts-grid__block h4 {
  font-size: 13px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  font-weight: 700;
}
.contacts-grid__block p {
  font-size: 15px;
  color: var(--dark);
  margin: 0;
  line-height: 1.55;
}
.contacts-grid__info h3 {
  font-size: 18px;
  color: var(--dark);
  margin: 25px 0 10px;
  text-transform: uppercase;
}
.contacts-grid__info h3:first-child { margin-top: 0; }
.contacts-grid__info p:not(.section-lead),
.contacts-grid__info a { font-size: 16px; color: var(--gray); }
.contacts-grid__info a { color: var(--red); }
.contacts-form {
  background: #f7f7f7;
  padding: 40px;
  border: 1px solid #e8e8e8;
}
.contacts-form h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.contacts-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
  min-height: 110px;
}
.contacts-map {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}
.contacts-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); padding: 80px 0 40px; color: var(--cream); }
.site-footer .row { align-items: flex-start; }
.site-footer__logo img { height: 50px; margin-bottom: 20px; }
.site-footer__credit {
  font-size: 13px;
  color: rgba(238, 235, 221, .6);
  margin-top: 20px;
}
.site-footer__credit a { color: var(--red); }
.site-footer h5 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: var(--cream);
}
.site-footer__links a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  color: rgba(238, 235, 221, .8);
  transition: color .3s;
}
.site-footer__links a:hover { color: var(--red); }
.site-footer__links a::before {
  content: '›';
  margin-right: 8px;
  color: var(--red);
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 15px;
  color: rgba(238, 235, 221, .8);
}
.footer-contact svg {
  width: 20px; height: 20px;
  fill: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== POPUP MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  max-width: 450px;
  width: 90%;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}
.modal h2 {
  font-size: 22px;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.modal p { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}
.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-group--checkbox input { margin-top: 4px; }
.form-group--checkbox label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.form-group--checkbox a { color: var(--red); text-decoration: underline; }
.btn--submit { width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .col-50, .col-25, .col-20, .col-33 { flex: 0 0 100%; max-width: 100%; }
  .hero, .hero--fullscreen { min-height: auto; padding: 120px 0 80px; display: block; }
  .hero .container { flex-direction: column; }
  .hero__content { width: 100%; padding-right: 0; }
  .hero__image { display: none; }
  .advantages { flex-direction: column; }
  .steps .row { flex-direction: column; align-items: center; }
  .step { flex: 0 0 100%; max-width: 300px; }
  .counters { justify-content: center; }
  .success__images { flex-direction: column; }
  .cta-banner { margin: 0 20px; padding: 40px 30px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero, .page-hero--fullscreen { padding: 140px 15px 100px; min-height: auto; display: block; }
  .page-hero__title { font-size: 28px; }
  .content-overlap { margin-top: -50px; padding-bottom: 25px; }
  h1 { font-size: 50px; }
  h2, .section-title { font-size: 35px; }
  h3 { font-size: 30px; }
  h4 { font-size: 23px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; margin-left: 0; order: 3; }
  /* Шапка на мобильном: лого слева, справа — иконка-телефон и бургер;
     номер целиком прячем (остаётся tap-to-call по иконке), лого мельче —
     чтобы на 320px не было горизонтального скролла. */
  .site-header__logo { margin-right: auto; }
  .site-header__logo img { height: 38px; }
  .site-header__phone { order: 2; gap: 0; }
  .site-header__phone-num { display: none; }
  .site-header__phone i { font-size: 20px; }
  /* Навигация → выезжающая панель под фиксированной шапкой.
     position:absolute + top:100% привязывает её к низу .site-header
     (она fixed) без зависимости от точной высоты шапки. */
  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
    padding: 6px 0 10px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-header__nav > a,
  .site-header__nav .has-dropdown > a {
    display: block;
    padding: 13px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  /* На тач-устройствах :hover не работает — показываем подменю «Услуги»
     раскрытым списком вместо выпадающего по наведению. */
  .site-header__nav .has-dropdown .dropdown {
    display: block;
    position: static;
    min-width: 0;
    padding: 0;
    background: rgba(0, 0, 0, .25);
  }
  .site-header__nav .has-dropdown > a .fa-angle-down { display: none; }
  .dropdown a { padding: 11px 22px 11px 36px; font-size: 13px; }
  /* fixed-фоны дёргаются и часто ломаются на iOS — на мобильном делаем scroll. */
  .hero,
  .cta-section__photo { background-attachment: scroll; }
  .hero, .hero--fullscreen { padding: 120px 0 80px; }
  .hero__title { font-size: 22px; }
  h1 { font-size: 28px; }
  h2, .section-title { font-size: 25px; }
  h3 { font-size: 23px; }
  h4 { font-size: 20px; }
  .cases-table { font-size: 12px; }
  .cases-table th, .cases-table td { padding: 10px 8px; }
  .photo-gallery .swiper-button-prev,
  .photo-gallery .swiper-button-next { display: none; }
  .page-hero__title { font-size: 24px; }
  .content-page { padding: 40px 0; }
  .content-page h2 { font-size: 22px; }
}

/* ===== INTERACTIVE QUIZ ===== */
.quiz-section {
  padding: 80px 0;
  background: var(--cream);
  position: relative;
}
.quiz-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(196, 68, 67, 0.15);
}
.quiz-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
  max-width: var(--container);
  margin: 0;
  background: transparent;
  border: 0;
  padding: 0;
  position: relative;
}
.quiz-header {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  position: sticky;
  top: 100px;
}
.quiz-header__label {
  display: inline-block;
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  padding-left: 45px;
  position: relative;
}
.quiz-header__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 35px;
  height: 2px;
  background: var(--red);
}
.quiz-header__icon {
  display: none;
}
.quiz-header__title {
  font-size: 32px;
  color: var(--dark);
  margin: 0 0 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
}
.quiz-header__subtitle {
  font-size: 15px;
  color: var(--gray);
  margin: 0 0 25px;
  line-height: 1.6;
}
.quiz-header__list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  border-top: 1px solid #e5e5e5;
  padding-top: 25px;
}
.quiz-header__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--dark);
}
.quiz-header__list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.quiz {
  background: #fff;
  padding: 40px 45px;
  border: 1px solid #e5e5e5;
  position: relative;
}
.quiz::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 60px;
  height: 3px;
  background: var(--red);
}

@media (max-width: 980px) {
  .quiz-wrapper {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .quiz-header { position: static; }
  .quiz-header__title { font-size: 26px; }
  .quiz { padding: 30px 25px; }
}

.quiz__progress {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.quiz__progress-bar {
  flex: 1;
  height: 6px;
  background: #eee;
  position: relative;
  overflow: hidden;
}
.quiz__progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--red);
  width: var(--quiz-progress, 16.66%);
  transition: width 0.3s;
}
.quiz__progress-text {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
  white-space: nowrap;
}

.quiz__step { display: none; }
.quiz__step.active { display: block; animation: quizFadeIn 0.3s ease; }
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.quiz__question {
  font-size: 22px;
  color: var(--dark);
  margin: 0 0 20px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}
.quiz__hint {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.4;
}
.quiz__option:hover { border-color: var(--red); background: #fffafa; }
.quiz__option input[type="radio"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  cursor: pointer;
}
.quiz__option input[type="radio"]:checked + span { font-weight: 600; }
.quiz__option:has(input:checked) { border-color: var(--red); background: #fff5f5; }

.quiz__form { display: grid; gap: 16px; }
.quiz__form .form-group label:first-child {
  font-size: 13px;
  color: var(--dark);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.quiz__step--success {
  text-align: center;
  padding: 40px 0 20px;
}
.quiz__success-icon {
  width: 80px;
  height: 80px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.quiz__success-icon i { font-size: 40px; color: #2d8f3a; }
.quiz__success-title {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #ebebeb;
}
.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid #d0d0d0;
}
.btn--outline:hover { background: #f5f5f5; border-color: #999; }
.quiz__back { visibility: hidden; }
.quiz__back.visible { visibility: visible; }

@media (max-width: 768px) {
  .quiz-wrapper { padding: 30px 25px; }
  .quiz-header { flex-direction: column; align-items: flex-start; text-align: left; }
  .quiz-header__title { font-size: 20px; }
  .quiz__question { font-size: 18px; }
  .quiz__option { padding: 13px 15px; font-size: 14px; }
  .quiz__nav { flex-direction: column-reverse; }
  .quiz__nav .btn { width: 100%; }
}

/* ===== ADVANTAGE LIST — unified concept (number + content in one row) ===== */
.section-lead {
  font-size: 16px;
  color: var(--gray);
  max-width: 780px;
  margin: -10px 0 35px;
  line-height: 1.6;
}

.advantage-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eee;
}
.advantage-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 35px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.advantage-row__stat {
  text-align: left;
  padding-right: 20px;
  border-right: 1px solid #e8e8e8;
}
.advantage-row__num {
  font-size: 56px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -1px;
}
.advantage-row__unit {
  font-size: 20px;
  margin-left: 4px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--red);
}
.advantage-row__cap {
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  font-weight: 600;
}
.advantage-row__body h4 {
  font-size: 20px;
  color: var(--dark);
  margin: 0 0 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.advantage-row__body p {
  font-size: 15px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .advantage-row {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px 0;
  }
  .advantage-row__stat {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 15px;
  }
  .advantage-row__num { font-size: 42px; }
}

/* ===== TARGET SECTION (для кого наша установка) ===== */
.target-section {
  background: var(--cream);
}
.target-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.target-grid__types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.target-type {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  border-left: 3px solid var(--red);
}
.target-type i {
  color: var(--red);
  font-size: 18px;
  flex-shrink: 0;
}

.target-signals__title {
  font-size: 16px;
  color: var(--dark);
  font-weight: 700;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.target-signals {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.target-signal {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
}
.target-signal:last-child { border-bottom: none; }
.target-signal__mark {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1;
}
.target-signal__text {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .target-grid { grid-template-columns: 1fr; gap: 40px; }
  .target-grid__types { grid-template-columns: 1fr; }
}

/* ===== CASE NOTES under cases table ===== */
.cases-table-wrap { overflow-x: auto; margin: 0 0 30px; }
.case-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}
.case-note {
  padding: 25px;
  background: var(--cream);
  border-top: 3px solid var(--red);
}
.case-note__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.case-note p {
  font-size: 14px;
  color: var(--dark);
  margin: 0;
  line-height: 1.6;
}
.cases-cta-note {
  font-size: 15px;
  color: var(--gray);
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}
.link-red {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px dashed var(--red);
  font-weight: 600;
}
.link-red:hover { border-bottom-style: solid; }

@media (max-width: 900px) {
  .case-notes { grid-template-columns: 1fr; }
}

/* ===== CALCULATOR ===== */
.calc-section { background: var(--cream); }
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.07);
  overflow: hidden;
}
.calc-form {
  padding: 45px 50px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.calc-field { display: flex; flex-direction: column; }
.calc-field label {
  font-size: 13px;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.calc-range {
  display: flex;
  align-items: center;
  gap: 20px;
}
.calc-range input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
}
.calc-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.calc-range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.calc-output {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  min-width: 40px;
  text-align: right;
  font-family: 'Poppins', sans-serif;
}
.calc-select select {
  width: 100%;
  padding: 12px 40px 12px 15px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #ddd;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 15px center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--dark);
  cursor: pointer;
  border-radius: 0;
}
.calc-select select:focus { outline: none; border-color: var(--red); }

.calc-result {
  background: var(--dark);
  color: var(--cream);
  padding: 45px 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.calc-result::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(196, 68, 67, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.calc-result__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(238,235,221,.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(238,235,221,0.15);
  position: relative;
  z-index: 2;
}
.calc-result__header i { color: var(--red); font-size: 16px; }
.calc-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  position: relative;
  z-index: 2;
}
.calc-metric__label {
  font-size: 14px;
  color: rgba(238,235,221,.75);
  line-height: 1.4;
}
.calc-metric__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--cream);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.calc-metric__value--muted {
  color: rgba(238,235,221,.55);
  text-decoration: line-through;
  font-size: 22px;
}
.calc-metric__value--small { font-size: 20px; }
.calc-metric--main .calc-metric__value {
  font-size: 34px;
  color: #fff;
}
.calc-metric--highlight {
  padding: 15px 20px;
  background: rgba(196, 68, 67, 0.15);
  border-left: 3px solid var(--red);
  margin: 5px 0;
}
.calc-metric--highlight .calc-metric__value {
  color: var(--red);
  font-size: 30px;
}
.calc-note {
  font-size: 12px;
  color: rgba(238,235,221,.55);
  line-height: 1.5;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(238,235,221,0.15);
  position: relative;
  z-index: 2;
}
.calc-note .link-red {
  color: #ff7a6e;
  border-bottom-color: #ff7a6e;
}

@media (max-width: 900px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-form, .calc-result { padding: 30px 25px; }
  .calc-metric__value { font-size: 22px; }
  .calc-metric--main .calc-metric__value { font-size: 28px; }
  .calc-metric--highlight .calc-metric__value { font-size: 24px; }
}

/* ===== SUCCESS STORIES (3 case cards) ===== */
.success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.success-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.success-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.success-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.success-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.success-card__badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(196, 68, 67, 0.35);
}
.success-card__body {
  padding: 25px 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.success-card__label {
  font-size: 12px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
}
.success-card__title {
  font-size: 18px;
  color: var(--dark);
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.success-card__body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}

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

/* ===== FAQ — redesigned for 2-column layout, compact, centered header ===== */
.faq.section { background: var(--cream); }
.faq .container { max-width: var(--container); }
.faq-header {
  text-align: center;
  margin-bottom: 45px;
}
.faq-header .section-label { justify-content: center; }
.faq-header h2 { margin: 0 auto; }
.faq-header p {
  color: var(--gray);
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.55;
}
.faq-grid {
  column-count: 2;
  column-gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid #ebebeb;
  border-left: 3px solid #e5e5e5;
  transition: border-color 0.25s, box-shadow 0.25s;
  break-inside: avoid;
  margin-bottom: 12px;
  display: inline-block;
  width: 100%;
}
.faq-item[open] {
  border-left-color: var(--red);
  border-color: #e0e0e0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.4;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--red);
  font-weight: 400;
  transition: transform 0.25s, background 0.25s, color 0.25s;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--red);
  color: #fff;
  transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--red); }
.faq-item__body {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  animation: faqFadeIn 0.25s ease;
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-item__body p { margin: 0 0 8px; }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body ul { margin: 8px 0 0; padding-left: 18px; }
.faq-item__body li { margin-bottom: 5px; font-size: 13px; }

@media (max-width: 768px) {
  .faq-grid { column-count: 1; }
  .faq-item summary { font-size: 14px; padding: 16px 18px; }
  .faq-item__body { padding: 0 18px 16px; }
}

/* ===== SUCCESS CTA single photo ===== */
.success-photo {
  position: relative;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.success-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.success-photo::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
}
@media (max-width: 980px) {
  .success-photo { min-height: 260px; }
}

/* ===== CONTACTS PAGE — простой лейаут как в оригинале ===== */
.contacts-hero {
  background: var(--dark);
  padding: 150px 0 60px;
  color: var(--cream);
}
.contacts-hero__title {
  font-size: 32px;
  color: var(--cream);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
  max-width: 900px;
}

.contacts-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  padding: 40px 0;
}
.contacts-info__item {
  padding: 30px 20px;
}
.contacts-info__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 2px solid var(--red);
}
.contacts-info__icon i {
  font-size: 26px;
  color: var(--red);
}
.contacts-info__title {
  font-size: 15px;
  color: var(--gray);
  margin: 0 0 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.contacts-info__value {
  font-size: 18px;
  color: var(--dark);
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
.contacts-info__value a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}
.contacts-info__value a:hover { color: var(--red); }

@media (max-width: 768px) {
  .contacts-hero { padding: 100px 0 40px; }
  .contacts-hero__title { font-size: 24px; }
  .contacts-info { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
}

/* ===== BLOG CATEGORY — intro + SEO text under posts ===== */
.blog-intro {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 0 25px;
  max-width: 820px;
}
.blog-seo-text h2 {
  font-size: 24px;
  color: var(--dark);
  margin: 0 0 18px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.blog-seo-text h3 {
  font-size: 17px;
  color: var(--dark);
  margin: 25px 0 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.blog-seo-text p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
  margin: 0 0 15px;
}

/* ===== CASES CONTEXT (analytical note under cases table, no duplication) ===== */
.cases-context {
  background: var(--cream);
  padding: 30px 35px;
  margin-top: 30px;
  border-left: 4px solid var(--red);
}
.cases-context__title {
  font-size: 18px;
  color: var(--dark);
  margin: 0 0 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.cases-context > p {
  font-size: 15px;
  color: var(--dark);
  margin: 0 0 15px;
  line-height: 1.6;
}
.cases-context__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cases-context__list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.55;
}
.cases-context__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
}
.cases-context__list li strong { color: var(--dark); }

@media (max-width: 600px) {
  .cases-context { padding: 25px 20px; }
}

/* ===== SOLUTION BLOCK — unified "решение + преимущества" on homepage ===== */
.solution-block {
  background: var(--cream);
}
.solution-block__intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}
.solution-block__intro .section-label {
  justify-content: center;
  display: block;
  text-align: center;
}
.solution-block__intro h2 {
  margin: 0 0 20px;
}
.solution-block__intro p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.65;
}

.solution-block__advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.adv-card {
  background: #fff;
  padding: 30px 28px;
  position: relative;
  border-top: 3px solid var(--red);
  transition: transform 0.25s, box-shadow 0.25s;
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.adv-card__num {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}
.adv-card h4 {
  font-size: 17px;
  color: var(--dark);
  margin: 0 0 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}
.adv-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 980px) {
  .solution-block__advantages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .solution-block__advantages { grid-template-columns: 1fr; }
  .solution-block__intro { margin-bottom: 30px; }
}

/* ===== SERVICES GRID — cards linking between service pages ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  padding: 30px 28px 28px;
  background: #fff;
  border: 1px solid #ececec;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: #ddd;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 68, 67, 0.08);
  border-radius: 50%;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.service-card__icon i {
  color: var(--red);
  font-size: 20px;
}
.service-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}
.service-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.service-card__link {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.service-card__link::after {
  content: '→';
  transition: transform 0.25s;
}
.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}
.service-card--active {
  border-color: var(--red);
  background: var(--cream);
  cursor: default;
  pointer-events: none;
}
.service-card--active::before {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Swiper variant of .services-grid — used on service pages to show
   sibling services without the current page (SEO: avoid self-link,
   keep all outbound links in DOM so they're crawlable). */
.services-swiper { position: relative; padding-bottom: 44px; }
.services-swiper .swiper-slide { height: auto; display: flex; }
.services-swiper .swiper-slide > .service-card { width: 100%; }
.services-swiper .swiper-pagination { bottom: 0; }
.services-swiper .swiper-pagination-bullet-active { background: var(--red); }
.services-swiper .swiper-button-prev,
.services-swiper .swiper-button-next {
  color: var(--red);
  width: 36px;
  height: 36px;
  top: 50%;
  margin-top: -36px;
}
.services-swiper .swiper-button-prev::after,
.services-swiper .swiper-button-next::after { font-size: 22px; font-weight: 700; }
@media (max-width: 560px) {
  .services-swiper .swiper-button-prev,
  .services-swiper .swiper-button-next { display: none; }
}

/* =========================================================================
   LAYOUT MODIFIERS & CONTENT HELPERS
   Replaces inline style="..." attributes across all pages.
   Grouped by purpose, kept minimal and semantic.
   ========================================================================= */

/* --- page-hero background variants --- */
.page-hero,
.page-hero--default     { background-image: url('../img/universal_background.webp'); }
.page-hero--interior    { background-image: url('../img/interior-design-dining-room-comtemporary-style-concept-1-2-1.jpg'); }
.page-hero--workshop    { background-image: url('../img/IMG_20200406_103851.jpg'); }

/* --- section modifiers (padding/background variants) --- */
.section--flush-top     { padding-top: 0; }
.section--compact       { padding: 40px 0; }
.section--wide-bottom   { padding: 40px 0 80px; }
.section--light         { background: #f7f7f7; }
.section--lighter       { background: #fafafa; }
.section--center        { text-align: center; }
.section--bordered-top  { padding-top: 40px; border-top: 1px solid #eee; }

/* --- simple "callback" CTA (h3 + p + button, centered in container) --- */
.callback-cta__title    { font-size: 28px; margin-bottom: 15px; }
.callback-cta__text     { margin-bottom: 25px; }

/* --- section-lead width variant --- */
.section-lead--wide     { max-width: 700px; }

/* --- services-grid spacing when used under section-lead --- */
.services-grid--spaced  { margin-top: 35px; }

/* --- service-card disabled/current-page state --- */
.service-card__link--muted { opacity: .6; }

/* --- page-hero__subtitle variant for article dates --- */
.page-hero__subtitle--meta { opacity: .7; }

/* --- dropdown caret inside header nav (small fa-angle-down) --- */
.site-header__nav .has-dropdown > a .fa-angle-down { font-size: 12px; }

/* --- testimonial swiper: slide padding was inline, keep it in CSS --- */
.testimonial-swiper .swiper-slide { padding: 20px; }

/* --- rounded photos in "about"/"partner" blocks --- */
.img--rounded { border-radius: 15px; }

/* --- content link accent used inside blog SEO text and in-copy references --- */
.blog-seo-text a,
.content-link {
  color: var(--red);
  text-decoration: underline;
}
.content-link--plain { color: inherit; text-decoration: none; }

/* --- blog SEO text lists and nested headings (used in article-body/blog-seo-text) --- */
.blog-seo-text ul,
.article-body ul.list-disc { list-style: disc; padding-left: 22px; margin: 0 0 15px; }
.blog-seo-text ol,
.article-body ol.list-decimal { list-style: decimal; padding-left: 22px; margin: 0 0 20px; }
.article-body .subheading--center {
  margin: 30px 0 15px;
  font-size: 20px;
  text-align: center;
}
.article-body .caption {
  margin-top: 15px;
  font-size: 14px;
  color: var(--gray);
}
.article-body .caption--mt20 { margin-top: 20px; }
.article-body .caption--mt30 { margin-top: 30px; }

/* --- map container on contacts page --- */
.map-embed {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.map-embed iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* --- quiz nav visibility: main.js toggles classes, never style="" --- */
.quiz__submit.is-hidden { display: none; }
.quiz__next.is-hidden { display: none; }
.quiz__back.is-hidden { display: none; }
.quiz__progress.is-hidden { display: none; }
.quiz__nav.is-hidden { display: none; }

/* --- quiz validation/server error under the active step --- */
.quiz__error {
  display: block;
  margin-top: 10px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.4;
}

/* --- big, muted icon used inside "Как мы работаем" step blocks --- */
.step-icon__font {
  font-size: 32px;
  color: #7A7A7A;
}

/* --- brand-red accent text (used on phone-call links in copy) --- */
.text-red { color: var(--red); }

/* --- "advantage" inline row (icon + text) used inside article body --- */
.advantage-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.advantage-item__icon {
  color: var(--red);
  font-size: 18px;
  flex-shrink: 0;
}

/* --- misc small utilities (only those replacing recurring inlines) --- */
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }

/* ========== 404 page (классы вместо инлайнов v1.6) ========== */
.page-hero__link {
  color: #fff;
  text-decoration: underline;
}
.page-hero__link:hover { opacity: .85; }

.fourohfour__links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  line-height: 2;
}
.fourohfour__links a { color: var(--red); }
.fourohfour__links a:hover { text-decoration: underline; }

/* ========== a11y utility ========== */
/* Визуально скрытый элемент, доступный читалкам (noscript-пиксель Метрики). */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* ===== BLOG INDEX V1.10 =====
   The blog index is a standalone editorial canvas: no overlapping white
   content card. Single articles keep their existing content-overlap layout. */
.page-hero--blog {
  min-height: auto;
  padding: 145px 15px 82px;
}
.page-hero--blog .page-hero__title { max-width: 900px; }
.page-hero--blog .page-hero__subtitle { max-width: 760px; }
.blog-index {
  padding: 64px 0 76px;
  background: #f7f7f7;
}
.blog-intro {
  max-width: 850px;
  margin: 0 0 30px;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.75;
}
.blog-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 42px;
}
.posts-grid--blog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.posts-grid--blog .post-card { min-width: 0; }
.posts-grid--blog .post-card__thumb {
  min-height: 210px;
  background: #eeebdd;
}
.posts-grid--blog .post-card__thumb img { height: 210px; }
.post-card__placeholder {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--dark);
  background:
    linear-gradient(135deg, rgba(147, 24, 31, .09), rgba(238, 235, 221, .72)),
    var(--cream);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.blog-layout__aside { top: 104px; }
.blog-sidebar__block {
  border-color: #dedede;
  box-shadow: 0 10px 30px rgba(20, 20, 20, .035);
}
.blog-seo-text {
  padding: 72px 0;
  background: #fff;
}
.blog-seo-text__inner {
  max-width: 920px;
}
.blog-seo-text__inner > :first-child { margin-top: 0; }
.blog-seo-text__inner > :last-child { margin-bottom: 0; }
.blog-seo-text__inner h2,
.blog-seo-text__inner h3 { max-width: 820px; }
.blog-seo-text__inner p { max-width: 78ch; }
.blog-empty {
  padding: 44px;
  border: 1px solid #e5e5e5;
  background: #f8f8f8;
}
.blog-empty h2 { margin: 0 0 10px; font-size: 26px; }
.blog-empty p { margin: 0; color: var(--gray); }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, color .2s, background-color .2s;
}
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination .page-numbers.current {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
}
@media (max-width: 900px) {
  .page-hero--blog { padding: 125px 15px 72px; }
  .blog-index { padding: 50px 0 60px; }
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-layout__aside { position: static; }
  .blog-layout__aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .blog-sidebar__block { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .page-hero--blog { padding: 112px 15px 58px; }
  .posts-grid--blog { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .blog-layout__aside { grid-template-columns: minmax(0, 1fr); }
  .blog-seo-text { padding: 52px 0; }
  .blog-empty { padding: 28px 22px; }
}

