/* Софтмонтаж — стили сайта. Цвета — в /brand/site/colors.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sm-font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--sm-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sm-indigo); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--sm-indigo); font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: 72px 0; }
.section--tint { background: #F6F7FD; }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head p { color: var(--sm-muted); font-size: 18px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sm-orange-btn); margin-bottom: 10px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--sm-radius);
  font: 600 18px/1 var(--sm-font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--accent { background: var(--sm-orange-btn); color: #fff; }
.btn--accent:hover { background: #C2580A; }
.btn--primary { background: var(--sm-indigo); color: #fff; }
.btn--primary:hover { background: var(--sm-indigo-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { background: #fff; color: var(--sm-indigo); border-color: var(--sm-tile-border); }
.btn--outline:hover { border-color: var(--sm-indigo); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #E6E8F2; }
.site-header__row { display: flex; align-items: center; gap: 28px; height: 76px; }
.site-header__logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: #33405A; text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--sm-indigo); }
.nav a.is-active { color: var(--sm-indigo); border-bottom-color: var(--sm-orange); }
.site-header__phone { color: var(--sm-indigo); font-weight: 600; text-decoration: none; white-space: nowrap; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--sm-tile-border); background: #fff; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--sm-indigo); margin: auto; position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav, .site-header__phone, .site-header .btn { display: none; }
  .burger { display: block; }
  .mobile-menu { display: block; position: fixed; inset: 76px 0 0 0; background: #fff; padding: 24px 20px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; overflow-y: auto; z-index: 49; }
  .mobile-menu.is-open { transform: none; visibility: visible; }
  .mobile-menu a.mm-link { display: block; padding: 14px 0; font-size: 20px; font-weight: 500; color: var(--sm-indigo); text-decoration: none; border-bottom: 1px solid #ECEEF5; }
  .mobile-menu .btn { width: 100%; margin-top: 14px; }
}

/* Первый экран */
.hero { background: var(--sm-indigo); color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.04); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 20px; color: #DDE1F7; max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #C9CEF2; font-size: 15px; }
.hero__note span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sm-orange-dk); margin-right: 8px; vertical-align: middle; }

.progress-card { background: #fff; color: var(--sm-text); border-radius: 22px; padding: 28px 30px; box-shadow: 0 20px 50px rgba(10, 16, 60, .28); }
.progress-card__title { font-size: 21px; font-weight: 700; color: var(--sm-indigo); margin: 0; }
.progress-card__sub { font-size: 14px; color: var(--sm-muted); margin: 2px 0 20px; }
.progress-row { margin-bottom: 16px; }
.progress-row__top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.progress-row__top b { color: var(--sm-indigo); }
.bar { height: 10px; border-radius: 6px; background: var(--sm-tile); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--sm-indigo); }
.bar > i.is-done { background: var(--sm-orange); }
.progress-card__foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #ECEEF5; font-size: 14px; color: var(--sm-muted); }
.progress-card__foot img { width: 28px; height: 28px; }
.tag-demo { margin-left: auto; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #F3F4F8; color: #7A819E; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Карточки разделов */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid #E6E8F2; border-radius: 20px; padding: 22px; transition: border-color .15s, box-shadow .15s; }
a.card { text-decoration: none; color: inherit; }
.card:hover { border-color: var(--sm-tile-border); box-shadow: 0 8px 24px rgba(46, 58, 140, .08); }
.card img { width: 64px; height: 64px; flex: none; }
.card h3 { margin: 4px 0 6px; }
.card p { margin: 0; color: var(--sm-muted); font-size: 15.5px; }
.card--more { align-items: center; justify-content: center; background: var(--sm-tile); border-style: dashed; border-color: var(--sm-tile-border); font-weight: 600; color: var(--sm-indigo); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border-radius: 20px; padding: 26px 24px; border: 1px solid #E6E8F2; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sm-indigo); color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--sm-muted); font-size: 15.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* Esemer блок */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 14px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--sm-tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23D9650F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.platform-box { background: #fff; border: 1px solid #E6E8F2; border-radius: 24px; padding: 30px; }
.platform-box__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.platform-box__brand img { width: 52px; height: 52px; }
.platform-box__brand b { font-size: 24px; color: #0C447C; }
.platform-box__brand small { display: block; color: var(--sm-muted); font-size: 14px; font-weight: 400; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi div { background: #F6F7FD; border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-size: 15px; color: var(--sm-indigo); }
.kpi span { font-size: 13.5px; color: var(--sm-muted); }
.split > *, .hero__grid > * { min-width: 0; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .kpi { grid-template-columns: 1fr; } .platform-box { padding: 22px; } }

/* Сертификаты */
.cert-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid #E6E8F2; font-weight: 500; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sm-orange); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { background: #fff; border: 1px solid #E6E8F2; border-radius: 18px; overflow: hidden; cursor: zoom-in; padding: 0; text-align: left; font: inherit; color: inherit; transition: box-shadow .15s, border-color .15s; }
.cert:hover { border-color: var(--sm-tile-border); box-shadow: 0 8px 24px rgba(46, 58, 140, .1); }
.cert img { width: 100%; aspect-ratio: 1.414; object-fit: cover; background: #F3F4F8; }
.cert div { padding: 14px 16px 16px; }
.cert b { display: block; color: var(--sm-indigo); font-size: 15px; }
.cert span { font-size: 14px; color: var(--sm-muted); }
@media (max-width: 960px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; } }

.lightbox { position: fixed; inset: 0; background: rgba(12, 16, 40, .88); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 80vh; margin: auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 14px; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; } .lb-next { right: 18px; top: 50%; }

/* Призыв */
.cta { background: var(--sm-indigo); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #DDE1F7; margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }
.cta__actions .btn { width: 100%; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Страницы: заголовок */
.page-head { background: var(--sm-indigo); color: #fff; padding: 56px 0; }
.page-head h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 10px; }
.page-head p { color: #DDE1F7; font-size: 19px; margin: 0; max-width: 680px; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: #fff; border: 1px solid #E6E8F2; border-radius: 22px; padding: 30px; }
.panel h2 { font-size: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #F0F1F6; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sm-tile); display: grid; place-items: center; flex: none; }
.contact-list .ico svg { width: 20px; height: 20px; color: var(--sm-indigo); }
.contact-list small { display: block; color: var(--sm-muted); font-size: 13.5px; }
.contact-list a { text-decoration: none; font-weight: 600; font-size: 18px; }
.req { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.req td { padding: 10px 0; border-bottom: 1px solid #F0F1F6; vertical-align: top; }
.req td:first-child { color: var(--sm-muted); width: 40%; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Подвал */
.site-footer { background: var(--sm-indigo-dark); color: #C9CEF2; padding: 56px 0 28px; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 46px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 16px; margin: 6px 0 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.socials svg { width: 20px; height: 20px; color: #fff; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Уведомление */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--sm-text); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 500; transition: transform .25s; z-index: 120; }
.toast.is-show { transform: translate(-50%, 0); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sm-orange); outline-offset: 2px; }

/* Карточка фирмы Esemer (виджет платформы) */
.esemer-slot { display: flex; justify-content: center; position: relative; }
.esemer-card { width: 100%; max-width: 420px; }
.esemer-slot:not(.has-card) .esemer-card { position: absolute; inset: 0 auto auto 0; visibility: hidden; pointer-events: none; }
.esemer-slot.has-card .esemer-fallback { display: none; }
/* Карточка в герое: пока не загрузилась или пустая — текст героя на всю ширину */
.hero__grid:not(:has(.esemer-slot--hero.has-card)) { grid-template-columns: 1fr; }
.esemer-slot--hero:not(.has-card) { position: absolute; width: 420px; visibility: hidden; pointer-events: none; }
.esemer-slot--hero { justify-content: flex-end; }
@media (max-width: 960px) { .esemer-slot--hero { justify-content: flex-start; } }

/* Блок «Видите ход работ без звонков» */
.muted-note { color: var(--sm-muted); font-size: 15px; }
.muted-note a { color: var(--sm-indigo); font-weight: 500; }
.access-box { background: #fff; border: 1px solid #E6E8F2; border-radius: 24px; padding: 28px; box-shadow: 0 14px 40px rgba(46, 58, 140, .08); }
.access-box__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid #F0F1F6; }
.access-box__head img { width: 52px; height: 52px; }
.access-box__head b { display: block; font-size: 20px; color: var(--sm-indigo); }
.access-box__head small { color: var(--sm-muted); font-size: 14px; }
.access-list { list-style: none; padding: 0; margin: 0; }
.access-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #F0F1F6; }
.access-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.access-list b { display: block; color: var(--sm-text); font-weight: 600; }
.access-list span:not(.access-ico) { color: var(--sm-muted); font-size: 14.5px; }
.access-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--sm-tile); display: grid; place-items: center; color: var(--sm-indigo); }
.access-ico svg { width: 20px; height: 20px; }
.access-list li:first-child .access-ico { background: #FFF1E4; color: var(--sm-orange-btn); }

/* значки в шапке: избранное и корзина (на всех страницах) */
.cart-link, .fav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--sm-indigo); font-weight: 500; }
.cart-link[hidden], .fav-link[hidden] { display: none; }
.cart-link svg, .fav-link svg { width: 24px; height: 24px; }
.fav-link svg { fill: var(--sm-orange, #F07F1E); stroke: var(--sm-orange, #F07F1E); }
.cart-link b, .fav-link b { position: absolute; top: -8px; left: 14px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--sm-orange-btn, #D9650F); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.fav-link b { background: var(--sm-indigo); }

/* всплывающая подсказка и меню «Поделиться» */
.sm-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1F2633; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: calc(100vw - 32px); }
.sm-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sm-toast a { color: #FF9A3D; font-weight: 600; }
.sm-share { position: absolute; z-index: 1000; background: #fff; border: 1px solid #E6E8F2; border-radius: 14px; box-shadow: 0 12px 32px rgba(31,38,51,.16); padding: 6px; display: flex; flex-direction: column; min-width: 220px; }
.sm-share a, .sm-share button { display: block; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font: inherit; font-size: 15px; color: #1F2633; text-decoration: none; cursor: pointer; }
.sm-share a:hover, .sm-share button:hover { background: #ECEEFB; }
.cart-link b[hidden], .fav-link b[hidden] { display: none; }
