/*
Theme Name: 103rempc
Version: 1.0
*/
/* =========================
   base.css (minimal + clamp headings + container)
   ========================= */

/* =========================
   BASE KIT (Reset + Typography + Forms + Tables)
   ========================= */

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;

  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* под высоту шапки */
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(16px, 0.95vw + 12px, 18px);
  line-height: 1.65;
  color: #111;
  background: #fff;
}

img, svg, video, canvas{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Active menu link (scrollspy) */
.nav-menu a.is-active{ color:#1d4ed8; }
.mobile-menu a.is-active{ color:#1d4ed8; }

/* =========================
   Container
   ========================= */

.container{
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}
.container-narrow{ max-width: 820px; }
.container-wide{ max-width: 1280px; }

@media (max-width: 420px){
  .container{ padding-inline: 14px; }
}

/* =========================
   Typography
   ========================= */

p{ margin: 0 0 1em; }

/* Links */
a{
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover{ opacity: .9; }
a:focus-visible{
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Headings */
h1, h2, h3, h4, h5, h6{
  margin: 0 0 .6em;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #111;
  text-wrap: balance;
}

h1{ font-size: clamp(30px, 2.2vw + 18px, 48px); }
h2{ font-size: clamp(24px, 1.6vw + 16px, 36px); }
h3{ font-size: clamp(20px, 1.1vw + 14px, 28px); }
h4{ font-size: clamp(18px, 0.8vw + 13px, 22px); }
h5{ font-size: 16px; }
h6{ font-size: 14px; }

small{ font-size: 0.875rem; }
strong{ font-weight: 700; }
em{ font-style: italic; }

hr{
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

/* Lists */
ul, ol{
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
li{ margin: 0.35rem 0; }

/* Blockquote */
blockquote{
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
}

/* =========================
   Forms (base)
   ========================= */

input, button, textarea, select{
  font: inherit;
  color: inherit;
}

label{
  display: inline-block;
  margin: 0 0 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
select,
textarea{
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
}

textarea{ min-height: 120px; resize: vertical; }

button{
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  cursor: pointer;
}
button:hover{ background: #e5e7eb; }

:focus-visible{
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* =========================
   Tables (base)
   ========================= */

/* Базовый вид таблиц */
table{
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
th, td{
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}
th{ font-weight: 700; }

/* Универсальная обёртка для горизонтального скролла (если нужно) */
.table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Если таблица реально шире контейнера — не ломаем разметку display:block */
.table-wrap table{
  min-width: 520px; /* можно убрать, если не нравится */
}

/* WP/Gutenberg: у блока таблицы бывает figure.wp-block-table */
figure.wp-block-table{
  margin: 0;
}

/* =========================
   Code
   ========================= */

code, pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

code{
  padding: 0.12em 0.35em;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

pre{
  margin: 0 0 1rem;
  padding: 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  overflow: auto;
}
pre code{ border: 0; padding: 0; background: transparent; }

.skip-link{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:.6rem .8rem; background:#fff;
  border:1px solid #d1d5db; border-radius:10px; z-index:9999;
}

.site-header{ position:sticky; top:0; z-index:1000; background:#fff; border-bottom:1px solid #e5e7eb; }

/* Desktop top bar */
.header-top{ background:#fafafa; border-bottom:1px solid #eef2f7; }
.header-top__inner{
  display:flex; align-items:center; gap:1rem;
  padding-block:.55rem;
}
.header-top__brand .brand-logo,
.header-top__brand .custom-logo{ max-height:42px; width:auto; display:block; }

.header-top__meta{
  margin-inline:auto;
  display:flex; align-items:center; gap:.6rem;
  color:#374151; font-size:.92rem;
  min-width:0;
}
.meta-item{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.meta-dot{ opacity:.6; }

.header-top__phone{
  text-decoration:none;
  color:#111;
  white-space:nowrap;
}

/* Desktop bottom bar: menu only */
.header-main{ background:#fff; }
.header-main__inner{ padding-block:.65rem; }
.nav-menu{
  display:flex; align-items:center; justify-content:center;
  gap:1.2rem;
  list-style:none; margin:0; padding:0;
}
.nav-menu a{
  text-decoration:none; color:#111;
  padding:.35rem .2rem;
}
.nav-menu a:hover{ color:#1d4ed8; }

/* Mobile bar (hidden by default; enabled when JS adds .js) */
.header-mobile{ display:none; background:#fff; border-top:1px solid #eef2f7; }
.header-mobile__inner{
  display:flex; align-items:center; gap:.75rem;
  padding-block:.7rem;
}
.header-mobile__brand .brand-logo,
.header-mobile__brand .custom-logo{ max-height:42px; width:auto; display:block; }

.header-mobile__hours{
  margin-left:auto;
  color:#4b5563;
  font-size:.92rem;
  white-space:nowrap;
}

.header-mobile__actions{ display:flex; align-items:center; gap:.55rem; }

/* icon button */
.icon-btn{
  width:44px; height:44px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #d1d5db; border-radius:12px;
  background:#fff; color:#111; text-decoration:none;
}
.icon-btn:hover{ background:#f9fafb; }

/* burger (3 spans, чтобы не было “минуса”) */
.burger{
  width:44px; height:44px;
  border:1px solid #d1d5db; border-radius:12px;
  background:#fff;
  display:inline-flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:6px;
}
.burger:hover{ background:#f9fafb; }
.burger span{
  width:20px; height:2px;
  background:#111;
  border-radius:2px;
  display:block;
}

/* Drawer */
.mobile-drawer{ position:fixed; inset:0; z-index:2000; }
.mobile-drawer__overlay{ position:absolute; inset:0; background:rgba(0,0,0,.45); }
.mobile-drawer__panel{
  position:absolute; right:0; top:0; height:100%;
  width:min(88vw, 360px);
  background:#fff;
  border-left:1px solid #e5e7eb;
  display:flex; flex-direction:column;
}
.mobile-drawer__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:.9rem 1rem; border-bottom:1px solid #e5e7eb;
}
.mobile-close{
  width:40px;height:40px;
  border:1px solid #d1d5db;
  border-radius:12px;
  background:#fff;
  position:relative;

  /* убираем влияние символа × */
  font-size:0;
  line-height:0;
  padding:0;
}

.mobile-close::before,
.mobile-close::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:18px;
  height:2px;
  background:#111;
  border-radius:2px;
  transform-origin:center;
}

.mobile-close::before{ transform: translate(-50%,-50%) rotate(45deg); }
.mobile-close::after { transform: translate(-50%,-50%) rotate(-45deg); }

.mobile-close:hover{ background:#f9fafb; }
/* drawer animation */
.mobile-drawer{
  /* когда hidden снят, но меню закрыто */
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}

.mobile-drawer__overlay{
  opacity:0;
  transition: opacity .18s ease;
}

.mobile-drawer__panel{
  transform: translateX(100%);
  transition: transform .18s ease;
  will-change: transform;
}

/* открыто */
.mobile-drawer.is-open{
  opacity:1;
  pointer-events:auto;
}
.mobile-drawer.is-open .mobile-drawer__overlay{ opacity:1; }
.mobile-drawer.is-open .mobile-drawer__panel{ transform: translateX(0); }

/* уважение к reduce motion */
@media (prefers-reduced-motion: reduce){
  .mobile-drawer,
  .mobile-drawer__overlay,
  .mobile-drawer__panel{ transition:none; }
}


.mobile-nav{ padding:.75rem 1rem; overflow:auto; }
.mobile-menu{ list-style:none; margin:0; padding:0; }
.mobile-menu a{
  display:block; padding:.8rem .2rem;
  text-decoration:none; color:#111;
  border-bottom:1px solid #f1f5f9;
}
.mobile-menu .sub-menu{ list-style:none; margin:0; padding:.25rem 0 .5rem .9rem; }
.mobile-menu .sub-menu a{ color:#374151; border-bottom:none; padding:.55rem .2rem; }

.mobile-drawer__footer{
  margin-top:auto; padding:1rem;
  border-top:1px solid #e5e7eb; background:#fafafa;
}
.mobile-meta{ display:grid; gap:.35rem; color:#374151; font-size:.95rem; }
.mobile-call{
  display:block; margin-top:.8rem;
  text-align:center; text-decoration:none;
  padding:.75rem .9rem;
  border-radius:12px;
  border:1px solid #d1d5db;
  background:#fff;
}

/* Responsive rules */
@media (max-width: 960px){
  .header-top{ display:none; }        /* верхняя полоса уходит */

  /* если JS ЕСТЬ — включаем mobile bar и прячем обычное меню-бар */
  .js .header-main{ display:none; }
  .js .header-mobile{ display:block; }
}
/* HERO */
.hero .container { overflow: visible; }

.hero-background{
  position: relative;
  overflow: hidden;

  border-radius: 36px;
  padding: clamp(18px, 3vw, 36px);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* высота как у референса */
  min-height: clamp(360px, 42vw, 560px);

  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 22px);

  color: #fff;
}

/* затемнение под текст (чтобы читалось) */
.hero-background::before{
  content:"";
  position:absolute;
  inset:0;
  /* слева темнее (под карточку), сверху чуть затемним */
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
}

/* все прямые дети выше затемнения */
.hero-background > *{
  position: relative;
  z-index: 1;
}

/* H1 */
/* HERO H1 — без смены шрифта/характера, только размер + перенос */
.hero-background h1,
.hero-title{
  margin: 0;
  max-width: 22ch;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance; /* если браузер поддерживает — красиво переносит */
  font-size: clamp(28px, 3.2vw, 52px);
  text-shadow: 0 2px 14px rgba(0,0,0,.30);
  color: #fff;
}

@media (max-width: 720px){
  .hero-background h1,
  .hero-title{
    max-width: 100%;
    font-size: clamp(28px, 7.5vw, 40px);
  }
}


/* Фиолетовая карточка */
.hero-text{
  width: min(640px, 58%);
  background: rgba(62, 66, 110, 0.92); /* фиолетовый как в референсе */
  border-radius: 28px;
  padding: clamp(16px, 2.6vw, 30px);
  color: rgba(255,255,255,.92);

  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  backdrop-filter: blur(2px);
}

/* типографика внутри */
.hero-text p{ margin: 0 0 14px; }
.hero-text p:last-child{ margin-bottom: 0; }

.hero-text ul{
  margin: 0 0 18px;
  padding-left: 1.1em;
}
.hero-text li{
  margin: 0 0 .55rem;
}

/* акцент “цена” если есть strong */
.hero-text strong{
  color: #fff;
}

/* Кнопка внутри hero-text:
   если у тебя ссылка "Оставить заявку" имеет class js-cf7 — будет кнопкой */
.hero-text a.js-cf7,
.hero-text a.hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
  margin-top: 10px;
}
.hero-text a.js-cf7:hover,
.hero-text a.hero-btn:hover{
  opacity: .92;
}

/* адаптив */
@media (max-width: 980px){
  .hero-text{ width: min(680px, 70%); }
}

@media (max-width: 720px){
  .hero-background{
    padding: 16px;
    border-radius: 26px;
    min-height: 560px; /* чтобы карточка не “выдавливала” всё */
  }

  .hero-background h1,
  .hero-title{
    max-width: 100%;
    font-size: clamp(30px, 9vw, 46px);
  }

  /* карточку уводим вниз и делаем full width */
  .hero-text{
    width: 100%;
    margin-top: auto;
    border-radius: 26px;
    padding: 18px;
  }

  /* кнопка как в референсе — на всю ширину */
  .hero-text a.js-cf7,
  .hero-text a.hero-btn{
    width: 100%;
  }
}

.advantages__list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.adv-card{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 18px 18px 16px;
}

.adv-card__top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.adv-card__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  flex: 0 0 auto;
}

.adv-card__title{
  font-size: 1.05rem;
  line-height: 1.2;
  color: #111;
}

.adv-card__text{
  color: #374151;
  font-size: 0.95rem;
}
/* PRICE TABLE wrapper (Gutenberg) */
figure.wp-block-table.price-table{
  margin: 1rem 0 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;

  position: relative;
  overflow: hidden; /* внешний блок НЕ скроллится */
}

/* Внутренний скролл-враппер (его добавит JS) */
figure.wp-block-table.price-table .price-scroll{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  position: relative;
  z-index: 1; /* ниже градиента */
}

/* Таблица внутри */
figure.wp-block-table.price-table table{
  display: table;
  width: 100% !important;
  border-collapse: collapse;
  table-layout: auto;
}

/* Визуал */
figure.wp-block-table.price-table td,
figure.wp-block-table.price-table th{
  border: 0 !important;
  border-bottom: 1px solid #eef2f7 !important;
  padding: .9rem 1rem;
  vertical-align: middle;
}

figure.wp-block-table.price-table tbody tr:nth-child(odd){ background:#f8fafc; }
figure.wp-block-table.price-table tbody tr:hover{ background:#eef2ff; }

figure.wp-block-table.price-table td:first-child{ color:#111; }
figure.wp-block-table.price-table td:last-child{
  text-align:right;
  white-space:nowrap;
  color:#0f172a;
}

/* Правый “умный” градиент (только справа) */
figure.wp-block-table.price-table.is-scrollable:not(.at-end)::after{
  content:"";
  position:absolute;
  top:0; bottom:0; right:0;
  width: 34px;
  background: linear-gradient(-90deg, rgba(243,4,4,1), rgba(255,255,255,0));
  pointer-events:none;
  z-index: 2;
}

/* Мобила: форсим переполнение, чтобы точно был скролл (на этапе dev) */
@media (max-width: 700px){
  figure.wp-block-table.price-table table{ min-width: 520px; }
}
/* =========================
   FAQ (animated + plus/minus + single open via JS)
   ========================= */

.faq__list{
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

details.faq-item{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

/* ВАЖНО: перебиваем дефолтный display:none у details */
details.faq-item > .faq-a{
  display: block;
}

/* summary */
summary.faq-q{
  list-style: none;
  cursor: pointer;
  padding: 16px 56px 16px 16px; /* справа место под иконку */
  color: #111;

  position: relative;
  display: block;
}

/* убираем маркеры */
summary.faq-q::-webkit-details-marker{ display:none; }
summary.faq-q::marker{ content:""; }

/* ПЛЮС/МИНУС: рисуем в одном ::after, чтобы ничего не перекрывалось */
summary.faq-q::after{
  content:"";
  position:absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);

  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background-color: #fff;

  /* 2 линии: горизонтальная + вертикальная */
  background-image:
    linear-gradient(#111, #111),
    linear-gradient(#111, #111);
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 12px 2px, 2px 12px;

  transition: background-size .18s ease, background-color .18s ease;
}

details.faq-item[open] summary.faq-q{
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

/* открыто -> вертикаль схлопываем => минус */
details.faq-item[open] summary.faq-q::after{
  background-size: 12px 2px, 2px 0px;
  background-color: #f8fafc;
}

/* Ответ: анимация (работает потому что display:block) */
details.faq-item > .faq-a{
  max-height: 0;
  opacity: 0;
  overflow: hidden;

  padding: 0 16px;
  transform: translateY(-4px);

  transition: max-height .22s ease, opacity .22s ease, padding .22s ease, transform .22s ease;
}

details.faq-item[open] > .faq-a{
  max-height: 900px;      /* если ответы длинные — увеличь */
  opacity: 1;
  padding: 0 16px 16px;
  transform: translateY(0);
}

.faq-a{ color: #374151; }
.faq-a p{ margin: 12px 0 0; }

@media (prefers-reduced-motion: reduce){
  details.faq-item > .faq-a,
  summary.faq-q::after{ transition: none; }
}
.contacts{
  background: #f8fafc;
}
.contacts h2{ margin: 0 0 18px; }

.contacts__grid{
  display: grid;
  grid-template-columns: 2fr 3fr; /* 40/60 */
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px){
  .contacts__grid{ grid-template-columns: 1fr; }
}

.contacts__map{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: 360px;
}
.contacts__map iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contacts__form{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
}

.contacts__meta{
  display: grid;
  gap: 6px;
  color: #374151;
  margin-bottom: 14px;
}
.contacts__meta a{ text-decoration: none; }
.contacts__meta a:hover{ text-decoration: underline; }

/* CF7 твоя разметка mm-form */
.mm-form{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
}
@media (max-width: 900px){
  .mm-form{ grid-template-columns: 1fr; }
}
.mm-form h2{ grid-column: 1 / -1; margin: 0 0 6px; }
.mm-form-right{ display: grid; gap: 12px; align-content: start; }
.mm-form .wpcf7-form-control-wrap{ display:block; }

.custom-input{
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
}
.custom-input:focus-visible{
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.mm-form input[type="submit"],
.mm-form button[type="submit"]{
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.mm-form input[type="submit"]:hover,
.mm-form button[type="submit"]:hover{ opacity: .92; }

.wpcf7-not-valid-tip{ font-size:.9rem; color:#b91c1c; margin-top:6px; }
.wpcf7-response-output{
  margin: 12px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #fff;
}

/* Footer */
.site-footer{
  padding-block: 36px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-muted{ color:#4b5563; }
.footer-phone{ text-decoration: none; color:#111; }
.footer-phone:hover{ text-decoration: underline; }

.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-placeholder{ opacity: .7; }
/* Modal base */
.mm-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 3000; /* выше шапки */
}
.mm-modal.is-open{
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mm-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
body.mm-lock{ overflow: hidden; }

.mm-modal__dialog{
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 18px;
}
.mm-modal__title{
  font-size: 1.25rem;
  margin: 0 44px 12px 0;
}

/* ровный крестик */
.mm-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid #d1d5db;
  background:#fff;
  font-size:0;
}
.mm-modal__close::before,
.mm-modal__close::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:18px;
  height:2px;
  background:#111;
  border-radius:2px;
}
.mm-modal__close::before{ transform: translate(-50%,-50%) rotate(45deg); }
.mm-modal__close::after { transform: translate(-50%,-50%) rotate(-45deg); }

/* В модалке делаем форму в одну колонку */
.mm-modal .mm-form{ grid-template-columns: 1fr; }
.mm-modal .mm-form-right{ grid-template-columns: 1fr; }
.mm-modal textarea.custom-input{ min-height: 120px; }
/* ===== sections ===== */
.section{ padding-top: 48px; }
.cards-block h2,
.problems h2{ margin: 0 0 18px; }

/* ===== reusable cards ===== */
.cards-grid{
  display: grid;
  gap: 16px;
}
.cards-grid--3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){
  .cards-grid--3{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 18px 18px 16px;
}
.card__top{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}
.card__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#1d4ed8;
  flex: 0 0 auto;
}
.card__title{
  font-size: 1.05rem;
  line-height: 1.2;
  color:#111;
}
.card__text{
  color:#374151;
  font-size: .95rem;
}

/* steps: auto numbering */
.cards-grid--steps{ counter-reset: step; }
.cards-grid--steps .card{ counter-increment: step; }
.card__icon--step{
  position: relative;
}
.card__icon--step::before{
  content: counter(step);
  color: #111;
}
/* ===== Problems marquee ===== */
.problems h2{ margin: 0 0 18px; }

.problems-marquee{
  display: grid;
  gap: 10px;
}

/* каждая строка — это “окно” */
.problems-full{
  width: 100%;
}
.problems-row{
  background: #fff;
  overflow: hidden;
  position: relative;

  padding: 10px;
}

/* лёгкая подсказка краями (не криво и не ездит) */
.problems-row::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0) 36px) left/36px 100% no-repeat,
    linear-gradient(-90deg, rgba(255,255,255,1), rgba(255,255,255,0) 36px) right/36px 100% no-repeat;
}

/* трек движется внутри окна */
.problems-track{
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content; /* важно */
  animation: problems-marquee 28s linear infinite;
  will-change: transform;
}

.problems-row--reverse .problems-track{
  animation-direction: reverse;
  animation-duration: 34s; /* немного по-разному — выглядит живее */
}

/* пауза при наведении/фокусе 
.problems-row:hover .problems-track,
.problems-row:focus-within .problems-track{
  animation-play-state: paused;
}*/

/* чипы */
.problem-chip{
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 999px;
  padding: .6rem .85rem;
  color: #111;
  white-space: nowrap;
}

/* бесконечная лента: у нас контент продублирован 2 раза => -50% */
@keyframes problems-marquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* если человек не любит анимации — показываем “облако” переносом */
@media (prefers-reduced-motion: reduce){
  .problems-track{
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .problems-row::after{ display:none; }
}


/* ===== CTA strip ===== */
.cta-strip{
  padding-block: 34px;
  background: #111;
  color: #fff;
}
.cta-strip__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 900px){
  .cta-strip__inner{
    flex-direction: column;
    align-items: stretch;
  }
}
.cta-strip__title{
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.cta-strip__desc{ color: rgba(255,255,255,.85); }
.cta-strip__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 900px){
  .cta-strip__actions a{ width: 100%; text-align:center; }
}

/* simple buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.8rem 1rem;
  border-radius: 12px;
  text-decoration:none;
  border: 1px solid transparent;
}
.btn-primary{
  background: #fff;
  color: #111;
}
.btn-primary:hover{ opacity: .92; }
.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color:#fff;
}
.btn-ghost:hover{ border-color: rgba(255,255,255,.6); }
