/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

main.article-page {
    width: 50%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero {
  width: 100%;
  background-color: #fff;
  padding: 3rem 1rem;
  position: relative;
}

.hero-title {
  max-width: 100%;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.hero-content {
  max-width: 50%;
  margin: 0 auto 2rem;
  display: flex;
  gap: 2rem;
  position: relative;
  transform: translateX(-170px); /* ⬅️ Сдвигаем левее */
}

.hero-images {
  display: flex;
}

.hero-images img {
  width: 100%;
  max-width: 90%;
}

.hero-images img:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.hero-images img:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.hero-callout {
  position: absolute;
  right: -470px;
  top: 10px;
  width: 180px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #000;
}

.hero-callout a {
  color: #ff6b5c;
  text-decoration: none;
  font-weight: 500;
}

.hero-callout a:hover {
  text-decoration: underline;
}

.hero-description {
  max-width: 50%;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}


/* Sections */
.section {
    margin-bottom: 3rem;
}
.section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}
.section h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}
.section p {
    margin-bottom: 1rem;
}

/* ===== ХЭДЭР-КАПСУЛА ===== */
.header{
  background:#fd626600;
  padding:16px 0;
  position:sticky;            /* всегда прилипает к верху */
  top:0;
  z-index:2000;
  transition:transform .28s ease, opacity .18s ease;
  will-change:transform;
}
.header.header--hidden{
  transform:translateY(-120%); /* уезжает вверх при прокрутке вниз */
  opacity:0;
  pointer-events:none;
}

.header > .container{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  background:#1f1010;
  border-radius:9999px;
  padding:1px;
  box-shadow:0 12px 40px rgba(0,0,0,.25);
  width:35rem;
  height:2.5rem;
  max-width:none;
  margin:0 auto;
}

/* Логотип (у тебя он чуть левее центра) */
.header .logo{
  position:absolute; left:8%; top:50%;
  transform:translate(-50%,-50%);
  margin:0; line-height:1; z-index:1;
}
.header .sitename{
  color:#fff; font-weight:300; letter-spacing:.01rem;
  font-size:19px; margin:0;
}

/* Вместо .sitename используем картинку */
.header .logo-img{
  display:block;
  height: 22px;              /* вписывается в капсулу 2.5rem */
  width:auto;
  object-fit:contain;
}

/* Если .sitename где-то осталась — убираем отступы/невидимо */
.header .sitename{ display:none; }


/* Бургер справа */
/* Бургер как три белые полоски (без круглой рамки) */
.mobile-nav-toggle{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin-left:auto;
  background:transparent !important;
  border:none !important;
  border-radius:0 !important;   /* убираем «кружок» */
  color:#fff;
  cursor:pointer;
  z-index:2;
  padding:0;
}

/* Иконки Bootstrap — размеры и цвет */
.mobile-nav-toggle i{
  display:block;
  font-size:26px;               /* размер «трёх полосок» */
  line-height:1;
  color:#fff;
}

/* Ховер и фокус */
.mobile-nav-toggle:hover{ opacity:.85; }
.mobile-nav-toggle:focus-visible{
  outline:2px solid rgba(255,255,255,.55);
  outline-offset:3px;
}

/* Переключение иконок при открытом меню */
.mobile-nav-toggle .bi-x{ display:none; }
#menu-toggle:checked ~ .mobile-nav-toggle .bi-list{ display:none; }
#menu-toggle:checked ~ .mobile-nav-toggle .bi-x{ display:block; }


/* ===== МЕНЮ-«ОБЛАЧКО» ПО ЦЕНТРУ ПОД КАПСУЛОЙ ===== */
#navmenu{
  position:absolute !important;
  top:calc(100% + 12px);
  left:50%;
  width:min(92vw,560px);
  background:#0e0e0f;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 60px rgba(0,0,0,.45);
  padding:10px;
  z-index:1001;

  opacity:0;
  transform:translate(-50%,-8px) scale(.98);
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
  visibility:hidden;
}

}
#navmenu > ul{
  display:flex !important; flex-direction:column; gap:4px;
  list-style:none; margin:0; padding:6px;
}
#navmenu a{
  display:block; color:#fff; text-decoration:none;
  text-transform:uppercase; font-weight:700; letter-spacing:.02em;
  padding:12px 14px; border-radius:12px;
}
#navmenu a:hover{ background:rgba(255,255,255,.06); }

/* Открытие по чекбоксу */
#menu-toggle:checked ~ #navmenu{
  opacity:1;
  transform:translate(-50%,0) scale(1);
  pointer-events:auto;
  visibility:visible;
}
#menu-toggle:checked ~ .mobile-nav-toggle .bi-list{ display:none; }
#menu-toggle:checked ~ .mobile-nav-toggle .bi-x{ display:inline-block; }

/* Оверлей, чтобы закрывать кликом вне облачка */
.navmenu-overlay{
  display:block; position:fixed; inset:0;
  background:rgba(0,0,0,.35); backdrop-filter:blur(2px);
  opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:1000;
}

/* Моб. корректировка ширины облачка */
@media (max-width:576px){
  #navmenu{ width:calc(100vw - 24px); }
}

/* --- Чисто CSS бургер/крест (без шрифта и svg) --- */

/* ===== Mobile ≤768px ===== */
@media (max-width: 768px){

  /* Капсула плотнее и резиновая */
  .header{ padding:12px 0; }
  .header > .container{
    width: calc(100% - 24px);  /* поля по 12px слева/справа */
    height: 2.75rem;
    padding: 2px 6px;
    gap: 8px;
    border-radius: 9999px;
  }

  /* Логотип по центру на мобилке */
  .header .logo{
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .header .logo-img{ height: 20px; }

  /* Бургер компактнее, но та же кликабельная зона */
  .mobile-nav-toggle{
    width: 40px;
    height: 40px;
  }
  .mobile-nav-toggle i{
    width: 24px;
    height: 18px;
  }

  /* Соц. ссылки скрываем на мобилке */
  .header-social-links{ display: none; }

  /* Облачко: по центру и почти на всю ширину экрана */
  #navmenu{
    top: calc(100% + 10px);
    left: 50%;
    width: calc(100vw - 24px); /* такие же 12px поля как у капсулы */
    transform: translate(-50%, -8px) scale(.98);
  }

  /* Сетка пунктов: 2×2 для первых четырёх, последние два на всю ширину */
  #navmenu > ul{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 6px;
    align-items: stretch;
  }
  #navmenu > ul > li{ display: flex; }
  #navmenu > ul > li > a{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
  }
  #navmenu > ul > li:nth-child(-n+4){ grid-column: auto; } /* первые четыре — 2×2 */
  #navmenu > ul > li:nth-child(n+5){ grid-column: 1 / -1; } /* последние два — во всю */

}

/* Очень узкие экраны — в одну колонку */
@media (max-width: 420px){
  #navmenu > ul{ grid-template-columns: 1fr; }
  #navmenu > ul > li{ grid-column: 1 / -1 !important; }
}


/* Габариты кликабельной зоны уже заданы .mobile-nav-toggle (44x44) */
.mobile-nav-toggle i{
  display:block;
  width:28px;
  height:22px;
  position:relative;
  font-size:0 !important;       /* на всякий: скрыть пустой глиф иконки */
  line-height:0;
  color:transparent;
}

/* ТРИ ПОЛОСКИ */
.mobile-nav-toggle .bi-list{
  background:
    linear-gradient(#fff,#fff) center 1px/18px 2px no-repeat,
    linear-gradient(#fff,#fff) center 7px/18px 2px no-repeat,
    linear-gradient(#fff,#fff) center 13px/18px 2px no-repeat;
}

/* КРЕСТИК */
.mobile-nav-toggle .bi-x::before,
.mobile-nav-toggle .bi-x::after{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:28px;
  height:2px;
  background:#fff;
  transform-origin:center;
}
.mobile-nav-toggle .bi-x::before{ transform:translateY(-50%) rotate(45deg); }
.mobile-nav-toggle .bi-x::after { transform:translateY(-50%) rotate(-45deg); }

/* Переключение при открытом меню (как и было) */
.mobile-nav-toggle .bi-x{ display:none; }
#menu-toggle:checked ~ .mobile-nav-toggle .bi-list{ display:none; }
#menu-toggle:checked ~ .mobile-nav-toggle .bi-x{ display:block; }

/* ===== Раскладка пунктов в «облачке» ===== */
#navmenu > ul{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* две колонки */
  gap: 8px 12px;                                     /* вертикальный и горизонтальный зазор */
}

/* первые четыре — по колонкам (2×2) */
#navmenu > ul > li:nth-child(-n+4){
  grid-column: auto; /* каждая занимает свою колонку */
  background:#fd6266;
  border-radius:18px;
}

/* последние два — на всю ширину */
#navmenu > ul > li:nth-child(n+5){
  grid-column: 1 / -1; /* растянуть на обе колонки */
  background:#fd6266;
  border-radius:18px;
}

/* чтобы ссылка растягивалась на всю доступную ширину ячейки */
#navmenu > ul > li > a{
  width: 100%;
}

/* На очень узких экранах — в одну колонку */
@media (max-width: 420px){
  #navmenu > ul{
    grid-template-columns: 1fr;
  }
  #navmenu > ul > li{
    grid-column: 1 / -1 !important;
  }
}

/* Центрируем содержимое пунктов меню и выравниваем высоту */
#navmenu > ul{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* как настроили раньше */
  gap: 8px 12px;
  padding: 6px;
  align-items: stretch; /* ячейки одной высоты в строке */
}

#navmenu > ul > li{
  display: flex; /* чтобы ссылка могла растянуться */
}

#navmenu > ul > li > a{
  display: flex;                 /* центр по вертикали/горизонтали */
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;              /* одинаковая высота «плитки» */
  text-align: center;            /* на случай переноса в две строки */
  padding: 12px 14px;            /* твой отступ остаётся */
  border-radius: 12px;           /* твой радиус остаётся */
}

/* первые 4 — в две колонки, последние 2 — на всю ширину */
#navmenu > ul > li:nth-child(-n+4){ grid-column: auto; }
#navmenu > ul > li:nth-child(n+5){ grid-column: 1 / -1; }

/* Узкие экраны — в одну колонку */
@media (max-width: 420px){
  #navmenu > ul{ grid-template-columns: 1fr; }
  #navmenu > ul > li{ grid-column: 1 / -1 !important; }
}


/* Lists */
.key-points, .comparisons, .services-list, .tips-list, .benefits-list {
    list-style: none;
    padding-left: 1rem;
}
.key-points li,
.comparisons li,
.services-list li,
.tips-list li,
.benefits-list li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}
.key-points li::before,
.comparisons li::before,
.services-list li::before,
.tips-list li::before,
.benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c53030;
}
.process-list {
    counter-reset: list;
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}
.process-list li {
    counter-increment: list;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}
.process-list li::before {
    content: counter(list) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #c53030;
}

/* Image rows */
.row-images {
  display: flex;
}

.row-images img {
  width: 100%;
  max-width: 19.4rem;
}

.row-images img:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.row-images img:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.firstsection-callout {
  position: absolute;
  right: -120px;
  width: 180px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #000;
}

.firstsection-callout a {
  color: #ff6b5c;
  text-decoration: none;
  font-weight: 500;
}

.firstsection-callout a:hover {
  text-decoration: underline;
}

/* Image callout */
.image-callout {
  display: flex;
  justify-content: center; /* Центруем весь блок */
  align-items: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 80%;
}

.callout-image {
  flex: 0 0 auto;
}

.callout-image img {
  display: block;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
}

.secondsection-callout {
  position: absolute;
  right: -50px;
  width: 180px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #000;
}

.secondsection-callout a {
  color: #ff6b5c;
  text-decoration: none;
  font-weight: 500;
}

.secondsection-callout a:hover {
  text-decoration: underline;
}
/* Statistics */
.stats-section {
  margin: 4rem 0;
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

.stats-header {
  position: relative;
  display: inline-block;
  background-color: #93c5fd; /* голубой фон */
  padding: 0.5rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  z-index: 1;
}

.stats-header::before,
.stats-header::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10vw;
  height: 3px;
  background-color: #93c5fd;
  z-index: -1;
}

.stats-header::before {
  right: 100%;
  margin-right: -1rem;
}

.stats-header::after {
  left: 100%;
  margin-left: -1rem;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #111;
}

.stats-list li {
  line-height: 1.6;
}

.stats-list li strong {
  font-weight: 700;
}


/* Before and after */
.before-after-section {
    margin: 2rem 0;
}
.before-after-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
  text-align: center;
}

.before-after-images {
  display: flex;
}

.before-after-images img {
  width: 100%;
  max-width: 19.4rem;
}

.before-after-images img:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.before-after-images img:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.gallery-link {
  position: absolute;
  right: -120px;
  width: 180px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #000;
}

.gallery-link a {
  color: #ff6b5c;
  text-decoration: none;
  font-weight: 500;
}

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

/* Statistics */
.stats-section {
  margin: 4rem 0;
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

/* Consultation section */
.consultation {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 8px;
    align-items: center;
}
.consultation-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center; /* центрирует картинку по горизонтали */
  align-items: center;     /* по вертикали — если нужно */
}

.consultation-image img {
  max-width: 50%;
  border-radius: 12px;
  display: block;
}

.consultation-callout {
  position: absolute;
  right: -50px;
  width: 180px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #000;
}

.consultation-callout a {
  color: #ff6b5c;
  text-decoration: none;
  font-weight: 500;
}

.consultation-callout a:hover {
  text-decoration: underline;
}
/* Statistics */
.stats-section {
  margin: 4rem 0;
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

.consultation-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.consultation-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.consultation-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  display: block;
}

.consultation-callout {
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.6;
  color: #111;
}

.consultation-callout a {
  color: #ff6b5c;
  font-weight: 500;
  text-decoration: none;
}
.consultation-callout a:hover {
  text-decoration: underline;
}

.consultation {
  width: 100vw;                  /* Ширина на весь экран */
  margin-left: calc(-50vw + 50%); /* Убираем ограничения родителя */
  background-color: #86b9e5;
  padding: 2rem 1rem;
  text-align: center;
}

.consultation-content {
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
}


.consultation-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.consultation-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.consultation-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.consultation-form input[type="text"],
.consultation-form input[type="date"] {
  padding: 0.75rem;
  border: none;
  border-radius: 12px;
  font-size: 0.8rem;
  width: 160px;
  background-color: #fff;
  color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.consultation-form input::placeholder {
  color: #888;
}

.consultation-form button {
  padding: 0.75rem 2rem;
  background-color: #2296f3;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.consultation-form button:hover {
  background-color: #1b7ed1;
}

@media (max-width: 768px) {
  .consultation-intro {
    flex-direction: column;
    text-align: center;
  }

  .consultation-callout {
    max-width: 90%;
  }

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

  .consultation-form input,
  .consultation-form button {
    width: 100%;
  }
}


/* CTA section */
.cta-section {
    text-align: center;
    margin: 3rem 0;
}
.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #c53030;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #a91e1e;
}

/* Features section */
.more-features {
    margin-top: 4rem;
}
.features-filter {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
    background-color: #c53030;
    color: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.feature-item {
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.feature-image img {
    width: 100%;
    display: block;
    height: auto;
}
.feature-info {
    padding: 1rem;
}
.feature-category {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #c53030;
    font-weight: 700;
}
.feature-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.feature-info p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #555;
}
.feature-date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}
.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #c53030;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.btn-secondary:hover {
    background-color: #a91e1e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    max-width: 90%;
  }
  .hero-images {
    flex-direction: column;
  }
  .hero-description {
    max-width: 90%;
  }
}

/* ========== Footer ========== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 24px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Левый блок */
.footer-logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: #777;
  text-decoration: none;
  margin-bottom: 12px;
}

/* Центральное меню */
.footer-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .2s;
}
.footer-nav a:hover {
  color: #e33;
}
.footer-copy {
  color: #fff;
  font-size: 0.95rem;
}

/* Иконки соцсетей */
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #e33;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background .3s;
}
.footer-social a:hover {
  background: #c22;
}
.footer-social svg {
  width: 20px;
  height: 20px;
}

/* Адаптив */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-logo {
    margin-bottom: 16px;
  }
  .footer-social {
    margin-top: 16px;
  }
}

/* ✅ АДАПТИВНОСТЬ ДЛЯ ВСЕХ ОСНОВНЫХ ЭЛЕМЕНТОВ */

@media (max-width: 1200px) {
  main.article-page {
    width: 80%;
    padding: 2rem 1rem;
  }

  .hero-content {
    transform: none;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-callout,
  .firstsection-callout,
  .secondsection-callout,
  .gallery-link,
  .consultation-callout {
    position: static;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  .hero-images {
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .row-images,
  .before-after-images {
    flex-direction: column;
    align-items: center;
  }

  .image-callout {
    flex-direction: column;
    max-width: 95%;
  }

  .callout-image img {
    max-width: 100%;
  }

  .stats-list {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

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

  .consultation-image,
  .consultation-callout {
    flex: 1 1 100%;
    text-align: center;
  }

  .consultation-image img {
    max-width: 90%;
  }

  .consultation-form {
    flex-direction: column;
    gap: 1rem;
  }

  .consultation-form input,
  .consultation-form button {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .header {
    max-width: 95%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .section h3 {
    font-size: 1.2rem;
  }

  .stats-header {
    font-size: 1.2rem;
    padding: 0.4rem 1.2rem;
  }

  .consultation-content h2 {
    font-size: 1.4rem;
  }

  .consultation-content p {
    font-size: 0.95rem;
  }

  .cta-button {
    width: 100%;
    font-size: 1rem;
  }

  .feature-info h3 {
    font-size: 1rem;
  }

  .feature-info p {
    font-size: 0.85rem;
  }
}

/* Header */
.site-header{ position:fixed; inset:0 0 auto 0; height:64px; z-index:1100; pointer-events:none; }
.site-header__wrap{ height:100%; display:flex; align-items:center; justify-content:flex-end; padding:8px 12px; pointer-events:auto; }

/* Burger */
.burger{ position:relative; width:44px; height:44px; border:0; background:rgba(255,255,255,.95); border-radius:9999px; box-shadow:0 10px 30px rgba(0,0,0,.06); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.burger span{ position:absolute; width:22px; height:3px; background:#ff2d2d; border-radius:2px; left:50%; transform:translateX(-50%); transition:transform .22s ease, opacity .18s ease; }
.burger span:nth-child(1){ top:14px; }
.burger span:nth-child(2){ top:20px; }
.burger span:nth-child(3){ top:26px; }
.burger.is-active span:nth-child(1){ transform:translateX(-50%) translateY(6px) rotate(45deg); }
.burger.is-active span:nth-child(2){ opacity:0; }
.burger.is-active span:nth-child(3){ transform:translateX(-50%) translateY(-6px) rotate(-45deg); }

/* Off-canvas */
.offcanvas{ position:fixed; top:0; right:0; width:min(92vw,420px); height:100dvh; background:#0f0f0f; color:#fff; z-index:1200; transform:translateX(100%); transition:transform .25s ease; display:flex; flex-direction:column; padding:22px; }
.offcanvas.is-open{ transform:translateX(0); }

.offcanvas__backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:1190; opacity:0; pointer-events:none; transition:opacity .25s ease; }
.offcanvas__backdrop.is-show{ opacity:1; pointer-events:auto; }

.no-scroll{ overflow:hidden; }

/* Nav */
.offcanvas__nav{ margin-top:8px; }
.menu{ list-style:none; margin:0; padding:0; }
.menu > li{ margin:22px 0; position:relative; }
.menu a{ color:#fff; text-decoration:none; font-size:28px; font-weight:500; letter-spacing:.02em; }

.menu .has-sub > a{ padding-right:28px; display:inline-block; }
.menu .has-sub > .sub-toggle{ position:absolute; top:6px; right:0; width:22px; height:22px; border:0; background:transparent; cursor:pointer; }
.menu .has-sub > .sub-toggle::after{ content:""; position:absolute; left:6px; top:10px; width:10px; height:2px; background:#fff; transition:transform .22s ease; }
.menu .has-sub > .sub-toggle::before{ content:""; position:absolute; left:10px; top:6px; width:2px; height:10px; background:#fff; transition:opacity .22s ease; }
.menu .has-sub.is-open > .sub-toggle::before{ opacity:0; }

.menu .sub{ list-style:none; margin:10px 0 0; padding:0 0 0 12px; display:none; }
.menu .has-sub.is-open > .sub{ display:block; }
.menu .sub li{ margin:10px 0; }
.menu .sub a{ font-size:18px; opacity:.9; }

/* Фикс конфликта с Bootstrap */
.offcanvas { /* можно оставить как есть */
  /* transform: translateX(100%);  — уже есть у тебя */
  /* visibility: hidden;           — Bootstrap ставит это */
}

.offcanvas.is-open {
  transform: translateX(0);      /* уже есть */
  visibility: visible;           /* <-- важно */
}
