/* СураВеб — публичный сайт. Графитовый фон, белый текст, белые «таблетки». */

body.site { font-size: 17px; line-height: 1.55; background: var(--bg); }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.skip:focus { left: 8px; }

/* --- Шапка ------------------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand .logo { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 4px; height: 100%; }
.site-nav a { position: relative; display: flex; align-items: center; padding: 0 12px; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--text); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.head-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px; }
.head-link:hover { opacity: .8; }
.menu-btn { display: none; }

/* --- Первый экран --------------------------------------------------------------------- */
.hero { padding: 26px 0 40px; text-align: center; overflow: hidden; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--line-strong); }
.segmented button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; }
.segmented button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.segmented .i { width: 17px; height: 17px; }
.hero-title { margin: 34px 0 22px; font-size: clamp(64px, 11vw, 132px); font-weight: 800; letter-spacing: -0.055em; line-height: .95; }
.hero-sub { margin: 0 auto 40px; max-width: 38ch; font-size: clamp(19px, 2.3vw, 29px); line-height: 1.25; font-weight: 600; color: color-mix(in srgb, var(--text) 82%, transparent); letter-spacing: -0.01em; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions .btn { min-height: 56px; padding: 0 26px; font-size: 18px; }
.hero-actions .btn-outline { background: var(--bg-card); }
.hero-meta { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hero-meta a { color: var(--text); }
.hero-meta span + span::before { content: ""; display: inline-block; width: 1px; height: 14px; background: var(--line-strong); margin: 0 12px; vertical-align: -2px; }

/* Ноутбук */
.stage { position: relative; width: min(1100px, 100%); margin: 0 auto; }
.laptop { position: relative; width: 100%; }
.lid { position: relative; background: #000; border: 2px solid #4a4a4a; border-bottom: 0; border-radius: 40px 40px 0 0; padding: 13px 13px 0; }
.screen { position: relative; overflow: hidden; border-radius: 22px 22px 0 0; background: #fff; aspect-ratio: 16 / 10.1; }
.screen-inner { position: absolute; top: 0; left: 0; width: 1100px; height: 694px; transform-origin: 0 0; text-align: left; }
.base { position: relative; height: 24px; margin: 0 -6.5%; border-radius: 2px 2px 26px 26px / 2px 2px 18px 18px; background: #d5d5d5; border-top: 2px solid #ededed; }
.base::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 13%; height: 9px; border-radius: 0 0 12px 12px; background: #b9b9b9; }

.slide { position: absolute; inset: 0; display: none; }
.slide.is-current { display: block; animation: slide-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } }

.pager { position: absolute; top: 50%; right: -96px; transform: translateY(-50%); display: grid; gap: 14px; justify-items: center; }
.pager-dots { display: grid; gap: 14px; padding: 18px 12px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--line-strong); }
.pager-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--muted); cursor: pointer; transition: height .25s, background-color .25s; }
.pager-dots button[aria-current="true"] { height: 30px; background: var(--text); }
.pager-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.pager-play .i { width: 15px; height: 15px; fill: currentColor; }

/* --- Секции ------------------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.section-head h2, .page-title { margin: 0; font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); font-size: 19px; max-width: 46ch; }
.page-hero { padding: 64px 0 36px; }
.page-hero .lead { margin: 18px 0 0; font-size: 21px; color: var(--muted); max-width: 54ch; line-height: 1.45; }

/* Прайс в виде строк настроек */
.price-rows .row { padding: 20px 22px; gap: 18px; }
.price-rows .ibadge { width: 40px; height: 40px; border-radius: 12px; }
.price-rows .ibadge .i { width: 20px; height: 20px; }
.price-rows .label { font-size: 19px; font-weight: 700; }
.price-rows .label small { font-size: 15px; max-width: 58ch; }
.price-rows .value { display: grid; justify-items: end; gap: 2px; flex: none; }
.price-rows .value strong { font-size: 19px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-rows .value span { font-size: 14px; }
.price-rows .tag { margin-left: 8px; vertical-align: 2px; background: var(--ink); color: var(--on-ink); }

.included { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.included > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.included .ibadge { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; }
.included b { font-size: 18px; }
.included p { margin: 0; color: var(--muted); font-size: 16px; }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.process li { counter-increment: step; padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); }
.process li::before { content: counter(step); display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; color: var(--faint); }
.process b { display: block; font-size: 19px; margin-bottom: 6px; }
.process p { margin: 0; color: var(--muted); font-size: 16px; max-width: 34ch; }

/* Работы */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.work { display: block; text-decoration: none; }
.browser { border-radius: 16px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line-strong); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 10px; flex: 1; padding: 3px 12px; border-radius: 999px; background: var(--bg-pill); font-size: 13px; color: var(--muted); }
.browser-view { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--bg-side); }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-view .domain { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.04em; color: var(--faint); }
.work-text { padding: 16px 4px 0; }
.work-text b { font-size: 20px; }
.work-text p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.work:hover .browser { border-color: var(--muted); }

/* Вопросы */
.faq { border-radius: var(--r-l); border: 1px solid var(--line); background: var(--bg-card); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { margin-left: auto; transition: transform .2s; color: var(--muted); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); max-width: 72ch; }
.faq .answer p:last-child { margin: 0; }

/* Статьи */
.article-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.article-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.article-item time { color: var(--muted); font-size: 15px; }
.article-item b { font-size: 21px; letter-spacing: -0.015em; }
.article-item p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.article-item:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Заявка */
.cta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.cta h2 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; margin-bottom: 18px; }
.cta-text p { color: var(--muted); font-size: 18px; }
.cta-contacts { margin-top: 28px; }
.form-card { padding: 28px; border-radius: var(--r-xl); background: var(--bg-card); border: 1px solid var(--line); }
.form-card .btn-primary { min-height: 52px; font-size: 17px; }
.form-ok { text-align: center; padding: 40px 10px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Документы и статьи */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 18px; }
.doc .prose { font-size: 17px; }
.doc .prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 1.8em 0 .6em; }
.doc .prose a { color: var(--text); }
.doc .prose ul, .doc .prose ol { padding-left: 1.2em; }
.doc .prose li { margin-bottom: .35em; }
.doc .prose blockquote { margin: 1em 0; padding-left: 18px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.doc .prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.doc-meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.versions { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.versions a { color: var(--text); }
.crumbs-site { display: flex; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.crumbs-site a { text-decoration: none; }
.crumbs-site a:hover { color: var(--text); }

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.price-card { position: sticky; top: 96px; padding: 26px; border-radius: var(--r-xl); background: var(--bg-card); border: 1px solid var(--line); }
.price-card .price { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 4px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 10px; font-size: 16px; }
.price-card li { display: flex; gap: 10px; }
.price-card li .i { margin-top: 3px; }

/* Вход и регистрация */
.auth { display: grid; place-items: start center; padding: 56px 20px 88px; }
.auth-card { width: min(460px, 100%); padding: 32px; border-radius: var(--r-xl); background: var(--bg-card); border: 1px solid var(--line); }
.auth-card h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.auth-card .btn-primary { min-height: 50px; font-size: 17px; }
.auth-alt { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--muted); }
.auth-alt a { color: var(--text); font-weight: 600; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-yandex .ya { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fc3f1d; color: #fff; font-weight: 800; font-size: 14px; }

/* --- Подвал ---------------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.requisites { color: var(--muted); line-height: 1.6; margin-top: 14px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Cookie */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(440px, calc(100vw - 40px)); padding: 20px; border-radius: var(--r-l); background: var(--bg-card); border: 1px solid var(--line-strong); font-size: 15px; }
.cookie p { margin: 0 0 14px; color: var(--muted); }
.cookie p a { color: var(--text); }
.cookie .cluster .btn { flex: 1; }
.cookie[hidden] { display: none; }

/* --- Мокапы на экране ноутбука (всегда светлые) ------------------------------------------ */
.screen .app { min-height: 0; height: 694px; grid-template-columns: 248px 1fr; font-size: 15px; }
.screen .side { position: relative; inset: auto; width: auto; transform: none; height: 694px; padding-top: 14px; overflow: hidden; z-index: auto; }
.screen .traffic { display: flex; gap: 8px; padding: 4px 10px 16px; }
.screen .traffic i { width: 12px; height: 12px; border-radius: 50%; background: #e1e1e1; }
.screen .main { padding: 0; overflow: hidden; height: 694px; }
.screen .main .slide { padding: 26px 30px; }
.screen .side-search input { pointer-events: none; }
.screen .rows .row { min-height: 52px; padding: 11px 16px; }
.screen .hero-card { padding: 18px 20px; }
.mock-site { height: 694px; overflow: hidden; background: #f4efe6; color: #2a211b; font-family: var(--font); }
.mock-site nav { display: flex; align-items: center; gap: 26px; padding: 22px 48px; font-weight: 600; font-size: 15px; }
.mock-site nav b { font-size: 21px; margin-right: auto; letter-spacing: -0.02em; }
.mock-site nav .cta-mini { padding: 9px 18px; border-radius: 999px; background: #2a211b; color: #f4efe6; }
.mock-site .mhero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 30px 48px 0; align-items: center; }
.mock-site h3 { font-size: 64px; line-height: .95; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 18px; }
.mock-site p { font-size: 17px; color: #6b5b4e; max-width: 34ch; }
.mock-site .photo { height: 420px; border-radius: 28px; background: #c9a77f; position: relative; overflow: hidden; }
.mock-site .photo::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: #f4efe6; left: 50%; top: 52%; transform: translate(-50%, -50%); box-shadow: 0 0 0 26px #e4d6c3; }
.mock-site .photo::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: #6d4529; left: 50%; top: 52%; transform: translate(-50%, -50%); }
.mock-site .mbtns { display: flex; gap: 10px; margin-top: 26px; }
.mock-site .mbtns span { padding: 14px 22px; border-radius: 999px; background: #2a211b; color: #f4efe6; font-weight: 700; }
.mock-site .mbtns span + span { background: transparent; color: #2a211b; border: 1.5px solid #2a211b; }
.mock-site .menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 34px 48px; }
.mock-site .menu div { padding: 18px; border-radius: 18px; background: #fffaf2; font-weight: 700; display: flex; justify-content: space-between; }
.mock-site.alt { background: #eef1f4; color: #13202d; }
.mock-site.alt nav .cta-mini { background: #13202d; color: #fff; }
.mock-site.alt p { color: #4e5d6c; }
.mock-site.alt .photo { background: #c8d3de; }
.mock-site.alt .photo::before { background: #13202d; box-shadow: 0 0 0 26px #a9b8c7; border-radius: 30px; }
.mock-site.alt .photo::after { background: #eef1f4; border-radius: 12px; width: 110px; height: 70px; }
.mock-site.alt .mbtns span { background: #13202d; color: #fff; }
.mock-site.alt .mbtns span + span { background: transparent; color: #13202d; border-color: #13202d; }
.mock-site.alt .menu div { background: #fff; }
.mock-label { position: absolute; right: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: 12px; font-weight: 600; }

/* --- Адаптив ----------------------------------------------------------------------------- */
@media (max-width: 1340px) {
  .pager { position: static; transform: none; margin: 22px auto 0; display: flex; justify-content: center; align-items: center; gap: 12px; }
  .pager-dots { display: flex; padding: 12px 18px; }
  .pager-dots button[aria-current="true"] { height: 8px; width: 30px; }
}
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: grid; position: absolute; top: 72px; left: 0; right: 0; height: auto; padding: 10px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.is-open a { padding: 12px 0; font-size: 18px; }
  .site-nav.is-open a.is-active::after { display: none; }
  .menu-btn { display: inline-flex; }
  .head-right .head-link span { display: none; }
  .section-head, .cta, .service-layout { grid-template-columns: 1fr; }
  .included, .process { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .price-card { position: static; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .lid { border-radius: 22px 22px 0 0; padding: 7px 7px 0; }
  .screen { border-radius: 14px 14px 0 0; }
  .base { height: 12px; margin: 0 -3%; }
  .base::after { height: 5px; }
  .included, .process, .works, .foot-grid { grid-template-columns: 1fr; }
  .price-rows .row { flex-wrap: wrap; }
  .price-rows .value { justify-items: start; margin-left: 58px; }
  .price-rows .chev { display: none; }
  .article-item { grid-template-columns: 1fr; gap: 4px; }
  .form-card, .auth-card { padding: 22px; }
  .hero-meta span { display: block; }
  .hero-meta span + span::before { display: none; }
}
