:root {
  --bg: #f6f5f1;
  --bg-alt: #ecebe5;
  --card: #ffffff;
  --ink: #15161a;
  --muted: #61646d;
  --line: #dddbd3;
  --accent: #2f54eb;
  --accent-ink: #ffffff;
  --accent-soft: #e5eafe;
  --ok: #1f8a4c;
  --err: #c0392b;
  --radius: 14px;
  --r-arch: #2f54eb;
  --r-back: #0f9d8a;
  --r-front: #e08a00;
  --r-mobile: #7c4dff;
  --r-design: #e0457b;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 8px 24px rgba(20, 20, 30, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215;
    --bg-alt: #17181c;
    --card: #1c1d22;
    --ink: #eeeef0;
    --muted: #9a9ca5;
    --line: #2c2e35;
    --accent: #6d8bff;
    --accent-ink: #0b0d14;
    --accent-soft: #1f2640;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Иконки */
.ico { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.15em; }
.ico-tg { color: #229ed9; }
.link { display: inline-flex; align-items: center; gap: 6px; }
.link .ico { width: 16px; height: 16px; transition: transform .15s; }
.link:hover .ico { transform: translateX(2px); }
.btn .ico { width: 18px; height: 18px; }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(2px); }
.btn .ico { transition: transform .15s; }
.btn .ico-tg { color: #229ed9; }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; flex: none; }
.tile .ico { width: 22px; height: 22px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7em 1.2em; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); filter: none; }
.btn-sm { padding: .5em .9em; font-size: .9rem; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .95rem; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.on { color: var(--ink); }
.top-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
.burger { color: var(--ink); place-items: center; }
.burger .ico { width: 20px; height: 20px; }
.burger .i-close, .burger[aria-expanded=true] .i-open { display: none; }
.burger[aria-expanded=true] .i-close { display: block; }

/* Первый экран */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.stats { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.stats b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: .9rem; line-height: 1.35; display: block; }
.hero-shots { position: relative; aspect-ratio: 1 / .9; }
.shot { position: absolute; width: 78%; border-radius: 12px; box-shadow: 0 20px 50px rgba(20, 20, 40, .18); border: 1px solid var(--line); object-fit: cover; aspect-ratio: 16 / 10; background: var(--card); }
.shot-1 { top: 0; right: 0; }
.shot-2 { top: 30%; left: 0; }
.shot-3 { bottom: 0; right: 8%; width: 60%; }

/* Секции */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 520px; }
.page-head { padding-top: 48px; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.service > p { color: var(--muted); font-size: .95rem; }
.service .btn, .service > .link { margin-top: auto; }
a.service { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.service:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-price { display: flex; flex-direction: column; margin: 8px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.service-price b { font-size: 1.3rem; font-weight: 800; }
.service-price span { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.service-price .ico { width: 15px; height: 15px; }
.service-cases a { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin: .45em 0; font-size: .95rem; }
.checks .ico { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); stroke-width: 2.5; }

/* Кейсы */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.case:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.case[hidden] { display: none; }
.case-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.case:hover .case-img img { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--card); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; gap: 6px; }
.badge .ico { width: 14px; height: 14px; color: var(--accent); }
.case-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 a { text-decoration: none; }
.case-body > p { color: var(--muted); font-size: .95rem; }
.case-meta { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 8px; font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: .45em 1em; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Страница кейса */
.case-head { margin: 20px 0 32px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 48px; }
.gallery img { border-radius: 12px; border: 1px solid var(--line); width: 100%; object-fit: cover; aspect-ratio: 16 / 10; object-position: top; }
.case-content { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.case-aside { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case-aside p { color: var(--muted); font-size: .95rem; }
.case-aside .btn { width: 100%; }

/* Преимущества и этапы */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why p { color: var(--muted); font-size: .95rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps .tile { margin: 0; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-top i::before { content: counter(s, decimal-leading-zero); font-style: normal; font-weight: 800; font-size: .85rem; color: var(--muted); }
.steps b { display: block; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Вопросы */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Заявка */
.contact { background: var(--ink); color: var(--bg); }
.contact .lead, .contact .contact-text p { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.contact .link { color: color-mix(in srgb, var(--accent) 60%, var(--bg)); }
.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.perks { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.perks li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.perks .ico { width: 40px; height: 40px; padding: 9px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--bg) 10%, var(--ink)); color: color-mix(in srgb, var(--accent) 55%, var(--bg)); }
.contact-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-direct p { width: 100%; margin: 0 0 2px; }
.contact-chip { display: inline-flex; align-items: center; gap: 8px; padding: .55em .95em; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--bg) 22%, var(--ink)); color: var(--bg); text-decoration: none; font-weight: 600; font-size: .95rem; transition: border-color .15s, background .15s; }
.contact-chip:hover { border-color: var(--bg); background: color-mix(in srgb, var(--bg) 8%, var(--ink)); }
.contact-chip .ico { width: 18px; height: 18px; }
.form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field span { font-size: .875rem; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: .7em .85em;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field input.bad { border-color: var(--err); }
.consent { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--ok) 14%, var(--card)); border: 1px solid var(--ok); border-radius: 10px; padding: 14px 16px; }
.form-ok[hidden] { display: none; }
.form-ok .ico { width: 22px; height: 22px; flex: none; color: var(--ok); }
.form-err { color: var(--err); font-size: .9rem; }

/* Подвал */
.foot { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.foot-in p { margin-top: 12px; max-width: 340px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot-links a:hover { color: var(--ink); }
.foot-contacts { display: flex; flex-direction: column; gap: 10px; }
.foot-contacts a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.foot-contacts a:hover { color: var(--accent); }
.foot-contacts .ico { width: 18px; height: 18px; color: var(--muted); }
.foot-contacts .ico-tg { color: #229ed9; }

/* Адаптив */
@media (max-width: 1024px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero-in, .contact-in { grid-template-columns: 1fr; }
  .hero-shots { max-width: 560px; width: 100%; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0; }
  .hero-shots { display: none; }
  .hide-sm { display: none; }
  .cases, .why, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stats li { display: flex; align-items: baseline; gap: 12px; }
  .stats b { font-size: 1.4rem; min-width: 76px; }
  .field-row { grid-template-columns: 1fr; }
  .case-content { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  .form { padding: 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ===== Многостраничник: общие элементы ===== */
.tile-sm { width: 34px; height: 34px; border-radius: 9px; margin: 0; }
.tile-sm .ico { width: 18px; height: 18px; }
.eyebrow .tile-sm { width: 26px; height: 26px; border-radius: 7px; vertical-align: middle; display: inline-grid; margin-right: 8px; }
.eyebrow .tile-sm .ico { width: 15px; height: 15px; }

/* аватар роли: цвет у каждой роли свой */
.avatar { --rc: var(--accent); width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--rc) 13%, var(--card)); color: var(--rc); border: 2px solid var(--card); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .ico { width: 19px; height: 19px; }
.avatar-sm { width: 32px; height: 32px; } .avatar-sm .ico { width: 16px; height: 16px; }
.avatar-lg { width: 52px; height: 52px; } .avatar-lg .ico { width: 24px; height: 24px; }
.avatar-xl { width: 76px; height: 76px; } .avatar-xl .ico { width: 34px; height: 34px; }
[data-role=arch] { --rc: var(--r-arch); } [data-role=back] { --rc: var(--r-back); } [data-role=front] { --rc: var(--r-front); }
[data-role=mobile] { --rc: var(--r-mobile); } [data-role=design] { --rc: var(--r-design); }

.team-mini { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.team-mini li { display: flex; align-items: center; gap: 10px; font-size: .86rem; line-height: 1.25; max-width: 190px; }
.team-mini small { display: block; color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

/* шапка: выпадающее меню услуг */
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { width: 15px; height: 15px; transition: transform .2s; }
.drop { position: absolute; top: calc(100% + 14px); left: -16px; width: 330px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px -12px rgba(20,20,40,.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; }
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .nav-caret { transform: rotate(180deg); }
.drop a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink) !important; }
.drop a:hover { background: var(--bg); }
.drop b { display: block; font-size: .93rem; }
.drop small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }

/* первый экран: быстрый расчёт */
.quick { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 30px 70px -30px rgba(20,20,40,.3); }
.quick-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.quick-head small { margin-left: auto; }
.quick-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-types button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.quick-types button .ico { color: var(--muted); }
.quick-types button:hover { border-color: var(--ink); }
.quick-types button[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.quick-types button[aria-pressed=true] .ico { color: var(--accent); }
.quick-out { margin: 20px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.quick-cost { display: block; font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.quick-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--muted); font-size: .92rem; }
.quick-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.quick-go { width: 100%; }

/* витрина живых демо */
.show-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.show-tabs button { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.show-tabs button b { display: block; }
.show-tabs button small { display: block; color: var(--muted); font-size: .82rem; }
.show-tabs button[aria-selected=true] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.show-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.show.autoplay [aria-selected=true] .show-progress { animation: progress var(--autoplay, 7s) linear forwards; }
@keyframes progress { to { width: 100%; } }
.show-panel { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: center; }
.show-panel[hidden] { display: none; }
.show-info h3 { font-size: 1.6rem; font-weight: 800; }
.show-info > p { color: var(--muted); }
.browser { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(20,20,40,.35); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; flex: 1; padding: 4px 12px; border-radius: 7px; background: var(--card); color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-view img[hidden] { display: none; }
.gal-btn { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #15161a; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transition: opacity .2s; }
.browser:hover .gal-btn, .gal-btn:focus-visible { opacity: 1; }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.gal-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: width .2s; }
.gal-dots i.on { background: #fff; width: 20px; }

/* роли на главной и на странице услуги */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.role { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.role h3 { margin: 0; font-size: 1.02rem; }
.role p { margin: 0; color: var(--muted); font-size: .93rem; }
a.role { transition: border-color .15s, transform .15s, box-shadow .15s; }
a.role:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

/* лента этапов */
.strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.strip li { position: relative; padding: 0 12px 0 0; }
.strip li::after { content: ""; position: absolute; top: 22px; left: 52px; right: 8px; height: 2px; background: var(--line); }
.strip li:last-child::after { display: none; }
.strip-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.strip-ico .ico { width: 20px; height: 20px; }
.strip b { display: block; }
.strip small { display: block; color: var(--muted); }
.strip em { display: inline-block; margin-top: 6px; font-style: normal; font-size: .76rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--ok); }

/* услуга: шапка и пакеты */
.svc-head-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.svc-head .eyebrow { margin-top: 20px; }
.svc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-facts div { background: var(--card); padding: 18px 20px; }
.svc-facts small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.svc-facts b { font-size: 1.15rem; }
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.tiers-4 { grid-template-columns: repeat(4, 1fr); }
.tier { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.tier-hit { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.tier-flag { position: absolute; top: -12px; left: 20px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 700; }
.tier-flag .ico { width: 13px; height: 13px; fill: currentColor; }
.tier h3 { margin-bottom: 4px; }
.tier-for { color: var(--muted); font-size: .92rem; min-height: 2.9em; }
.tier-price { display: flex; align-items: baseline; gap: 6px; }
.tier-price small { color: var(--muted); font-weight: 600; }
.tier-price b { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.tier-term { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin: 4px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tier .checks { flex: 1; }
.tier-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 8px; }
.tier-actions .link { justify-content: center; font-size: .92rem; }

/* список услуг */
.svc-list { display: grid; gap: 12px; margin: 32px 0; }
.svc-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 20px; align-items: center; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.svc-row:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.svc-row .tile { margin: 0; }
.svc-row-main b { display: block; font-size: 1.1rem; }
.svc-row-main > .muted { display: block; font-size: .93rem; }
.svc-row-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.svc-row-tiers span { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.svc-row-side { text-align: right; }
.svc-row-side b { display: block; font-size: 1.2rem; white-space: nowrap; }
.svc-row-side small { color: var(--muted); }
.svc-row-go { color: var(--muted); width: 22px; height: 22px; }
.banner { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--accent-soft); }
.banner .tile { margin: 0; background: var(--card); }
.banner p { margin: 4px 0 0; }
.banner .btn { margin-left: auto; }

/* калькулятор */
.calc { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; margin-top: 32px; }
.calc-step { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.calc-step[hidden] { display: none; }
.calc-step legend { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; padding: 0; }
.calc-step legend i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-style: normal; font-size: .85rem; }
.calc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.calc-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt[hidden] { display: none; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-in { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s, box-shadow .15s, background .15s; }
.opt-in b { font-size: .95rem; }
.opt-in small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.opt:hover .opt-in { border-color: var(--ink); }
.opt input:checked + .opt-in { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt input:focus-visible + .opt-in { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-feat .opt-in { flex-direction: row; align-items: flex-start; gap: 12px; }
.opt-feat .opt-in > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opt-check { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s; }
.opt-check .ico { width: 14px; height: 14px; stroke-width: 3; }
.opt input:checked + .opt-in .opt-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt-add { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.opt input:checked + .opt-in .opt-add { color: var(--accent); }
.range { display: flex; align-items: center; gap: 18px; }
.range input { flex: 1; accent-color: var(--accent); }
.range output { min-width: 54px; text-align: center; font-size: 1.3rem; font-weight: 800; padding: 6px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.seg-lg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-lg label { position: relative; cursor: pointer; }
.seg-lg input { position: absolute; opacity: 0; }
.seg-lg span { display: block; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.seg-lg small { display: block; color: var(--muted); font-size: .82rem; }
.seg-lg input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-result { position: sticky; top: 84px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(20,20,40,.3); }
.calc-total { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 18px; color: var(--muted); font-size: .9rem; }
.calc-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.calc-stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 14px; }
.calc-stack i { display: block; min-width: 4px; background: var(--rc); transition: flex-grow .35s; }
.calc-roles { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.calc-roles li { display: flex; align-items: center; gap: 10px; }
.cr-name { flex: 1; font-size: .86rem; font-weight: 600; line-height: 1.25; }
.cr-name small { display: block; color: var(--muted); font-weight: 500; }
.calc-roles b { font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-send { width: 100%; }
.calc-copy { margin: 12px auto 4px; display: flex; border: 0; background: none; font: inherit; font-size: .9rem; cursor: pointer; }
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rate { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.rate > div { flex: 1; }
.rate small { display: block; color: var(--muted); font-size: .8rem; }
.rate-val { font-weight: 800; white-space: nowrap; }
.rate-val small { display: inline; font-weight: 600; }
.form-calc { font-size: .88rem; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); }

/* команда */
.people { display: grid; gap: 16px; }
.person { display: flex; gap: 24px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 90px; }
.person:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.person-body { flex: 1; min-width: 0; }
.person h2 { font-size: 1.4rem; margin-bottom: 6px; }
.person-name { font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.person-body > p { color: var(--muted); max-width: 720px; }
.person-stages { margin-top: 18px; }
.person-stages ol { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.person-stages li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: .8rem; font-weight: 600; background: var(--bg); color: color-mix(in srgb, var(--muted) 55%, var(--bg)); }
.person-stages li .ico { width: 14px; height: 14px; }
.person-stages li.in { background: var(--accent-soft); color: var(--accent); }
.tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs-bar button { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.tabs-bar button[aria-selected=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.load { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.load[hidden] { display: none; }
.load-row { display: grid; grid-template-columns: auto 280px 1fr 90px; gap: 14px; align-items: center; padding: 8px 0; }
.load-row.off { opacity: .45; }
.load-name { font-weight: 600; font-size: .92rem; }
.load-bar { height: 12px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.load-bar i { display: block; height: 100%; border-radius: 99px; background: var(--rc); animation: grow .6s ease-out; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.load-row b { text-align: right; font-variant-numeric: tabular-nums; }
.load-total { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.load-total b { font-size: 1.2rem; }
.load-total .link { margin-left: auto; }

/* этапы */
.stepper { margin-top: 32px; }
.stepper-bar { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stepper-bar button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.stepper-bar button:hover { border-color: var(--ink); }
.stepper-bar button[aria-selected=true] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step-num { font-size: .75rem; font-weight: 800; color: var(--muted); }
.step-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--muted); margin: 4px 0; }
.stepper-bar button[aria-selected=true] .step-ico { background: var(--accent); color: #fff; }
.stepper-bar small { color: var(--muted); font-size: .8rem; }
.stepper-panel { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; animation: fade .25s ease; }
.stepper-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.sp-main h2 { display: flex; align-items: center; gap: 14px; }
.sp-main h2 .tile { margin: 0; }
.sp-main > p { color: var(--muted); font-size: 1.05rem; }
.sp-main h3 { margin-top: 20px; }
.sp-side { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--bg); }
.sp-fact { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sp-fact small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.sp-fact b { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.sp-who { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sp-who li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; opacity: .35; filter: grayscale(1); }
.sp-who li.in { opacity: 1; filter: none; }
.sp-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.paybar { display: flex; gap: 4px; }
.paybar div { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); }
.paybar div:nth-child(2) { border-top-color: var(--r-back); }
.paybar div:nth-child(3) { border-top-color: var(--ok); }
.paybar b { font-size: 1.8rem; font-weight: 800; }
.paybar span { font-weight: 700; }
.paybar small { color: var(--muted); }

/* подвал в колонках */
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col b, .foot-contacts b { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-col a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.foot-col a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .tiers-4 { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .strip li:nth-child(3)::after { display: none; }
  .stepper-bar { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr 340px; }
  .load-row { grid-template-columns: auto 200px 1fr 80px; }
}
@media (max-width: 1024px) {
  .show-panel, .svc-head-in, .stepper-panel { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}
@media (max-width: 760px) {
  .show-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px 3px 6px; }
  .show-tabs button { scroll-snap-align: start; }
  .tiers, .tiers-4 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip li::after { display: none; }
  .stepper-bar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px; overflow-x: auto; padding: 3px 3px 6px; }
  .svc-row { grid-template-columns: auto 1fr; }
  .svc-row-side { grid-column: 2; text-align: left; }
  .svc-row-go { display: none; }
  .banner { flex-direction: column; align-items: flex-start; }
  .banner .btn { margin-left: 0; }
  .person { flex-direction: column; padding: 22px; }
  .load-row { grid-template-columns: auto 1fr 70px; }
  .load-bar { grid-column: 1 / -1; order: 3; }
  .paybar { flex-direction: column; }
  .calc-total { font-size: 2rem; }
  .team-mini li { max-width: none; }
}

/* калькулятор на телефоне: сумма закреплена внизу экрана */
.calc-mini { display: none; }
@media (max-width: 1024px) {
  .calc-mini { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; box-shadow: 0 12px 30px rgba(20,20,40,.3); transition: transform .2s, opacity .2s; }
  .calc-mini small { display: block; font-size: .75rem; opacity: .7; }
  .calc-mini b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
  .calc-mini-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .9rem; }
  .calc-mini.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) {
  .calc-types { grid-template-columns: 1fr 1fr; }
  .calc-types .opt-in small { display: none; }
}

/* ===== Страница кейса: галерея и стоимость ===== */
.case-head { margin: 20px 0 32px; max-width: 820px; }
.cgal { margin-bottom: 48px; }
.cgal-main { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; box-shadow: 0 30px 70px -40px rgba(20,20,40,.35); }
.cgal-main img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .4s; }
.cgal-main:hover img { transform: scale(1.01); }
.cgal-zoom { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: rgba(15,16,20,.78); color: #fff; font-weight: 700; font-size: .9rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cgal-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 3px 3px 6px; scrollbar-width: thin; }
.cgal-thumbs button { flex: none; width: 150px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-alt); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.cgal-thumbs button:hover { opacity: 1; }
.cgal-thumbs button.on { border-color: var(--accent); opacity: 1; }
.cgal-thumbs img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.case-aside { display: flex; flex-direction: column; gap: 4px; }
.case-cost { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.case-cost-note { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.case-facts div { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.case-facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.case-facts dt .ico { width: 14px; height: 14px; }
.case-facts dd { margin: 2px 0 0; font-weight: 700; }
.case-team { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.case-team li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; }
.case-aside-actions { display: flex; flex-direction: column; gap: 10px; }
.case-aside-actions .btn { width: 100%; }

/* просмотр во весь экран */
.lbox { position: fixed; inset: 0; z-index: 1000; display: none; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center; background: rgba(10,11,14,.94); color: #fff; }
.lbox.on { display: grid; animation: fade .2s ease; }
.lbox-fig { grid-column: 2; margin: 0; padding: 56px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; height: 100%; justify-content: center; }
.lbox-fig img { max-width: 100%; max-height: calc(100svh - 190px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lbox-count { font-size: .9rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lbox-nav, .lbox-close { width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .15s; }
.lbox-nav:hover, .lbox-close:hover { background: rgba(255,255,255,.2); }
.lbox-nav .ico, .lbox-close .ico { width: 24px; height: 24px; }
.lbox-prev { grid-column: 1; justify-self: center; }
.lbox-next { grid-column: 3; justify-self: center; }
.lbox-close { position: absolute; top: 14px; right: 14px; }
.lbox.single .lbox-nav { visibility: hidden; }
.lbox-strip { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; padding: 0 16px 18px; overflow-x: auto; }
.lbox-strip button { flex: none; width: 84px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; cursor: pointer; opacity: .55; }
.lbox-strip button.on { border-color: #fff; opacity: 1; }
.lbox-strip img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.browser-view img { cursor: zoom-in; }

@media (max-width: 760px) {
  .cgal-thumbs button { width: 110px; }
  .cgal-zoom { right: 10px; bottom: 10px; padding: 7px 11px; font-size: .82rem; }
  .lbox { grid-template-columns: 1fr; }
  .lbox-fig { grid-column: 1; padding: 64px 8px 8px; }
  .lbox-fig img { max-height: calc(100svh - 170px); }
  .lbox-nav { position: absolute; bottom: 92px; }
  .lbox-prev { left: 16px; } .lbox-next { right: 16px; }
  .lbox-strip { justify-content: flex-start; }
  .lbox-strip button { width: 64px; }
}

/* ===== Кейс: фото и стоимость рядом, текст ниже, листалка ===== */
.case-page { padding-top: 32px; }
.case-nav { display: flex; align-items: center; gap: 16px; }
.case-nav-pos { margin-left: auto; }
.case-nav-arrows { display: flex; gap: 6px; }
.btn-icon { padding: .5em; }
.case-page .case-head { margin: 18px 0 26px; max-width: 760px; }
.case-page .case-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.case-page .case-head .lead { margin-bottom: 0; }
.case-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.case-top .cgal { margin: 0; }
.case-top .cgal-thumbs button { width: 112px; }
.case-top .case-aside { position: sticky; top: 84px; }
.case-aside-pkg { margin-top: 14px; justify-content: center; }
.case-text { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.case-text .prose { max-width: 720px; }
.case-text .prose h2 { margin-top: 0; }
.case-stack h3 { font-size: 1rem; margin-bottom: 12px; }
.case-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.case-pager a { display: grid; grid-template-columns: 46% 1fr; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.case-pager a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.pager-img { display: block; background: var(--bg-alt); min-height: 100%; }
.pager-img img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .4s; }
.case-pager a:hover .pager-img img { transform: scale(1.03); }
.pager-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; min-width: 0; }
.pager-text small { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: .8rem; }
.pager-text small .ico { width: 14px; height: 14px; }
.pager-text b { font-size: 1.05rem; line-height: 1.3; }
.pager-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pager-meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.pager-meta .tile-sm { width: 26px; height: 26px; border-radius: 7px; }
.pager-meta .tile-sm .ico { width: 14px; height: 14px; }
.pager-meta em { margin-left: auto; font-style: normal; color: var(--ink); font-weight: 800; white-space: nowrap; }
.pager-next { grid-template-columns: 1fr 46%; }
.pager-next .pager-img { order: 2; }
.case-facts .wide { grid-column: 1 / -1; }
.svc-row-side small { display: block; }
.svc-row-tiers b { font-weight: 800; }

@media (max-width: 1024px) {
  .case-top, .case-text { grid-template-columns: minmax(0, 1fr); }
  .case-top .case-aside { position: static; }
}
@media (max-width: 760px) {
  .case-pager { grid-template-columns: 1fr; }
  .case-pager a, .pager-next { grid-template-columns: 38% 1fr; }
  .pager-next .pager-img { order: 0; }
  .pager-desc { -webkit-line-clamp: 2; }
  .case-top .cgal-thumbs button { width: 92px; }
}

/* калькулятор: экономия за счёт ИИ */
.calc-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: .88rem; }
.calc-ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--ok); font-weight: 700; }
.calc-ai-badge .ico { width: 14px; height: 14px; }
.ai-explain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 24px; }
.ai-step { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.ai-step b { display: block; margin: 12px 0 4px; }
.ai-step p { margin: 0; font-size: .9rem; }
.ai-step-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-arrow { color: var(--muted); width: 22px; height: 22px; }
@media (max-width: 900px) { .ai-explain { grid-template-columns: 1fr; } .ai-arrow { transform: rotate(90deg); justify-self: center; } }

/* ===== Оценка по ТЗ нейросетью ===== */
.nav-ai { display: inline-flex; align-items: center; gap: 5px; color: var(--accent) !important; }
.nav-ai .ico { width: 15px; height: 15px; }
.section-tight { padding: 0 0 56px; }
.ai-banner { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 18px; color: #fff; text-decoration: none;
  background: radial-gradient(120% 160% at 0% 0%, #5b7cff 0%, #2f54eb 45%, #1d2f9c 100%); box-shadow: 0 24px 50px -24px rgba(47,84,235,.6); transition: transform .2s; }
.ai-banner:hover { transform: translateY(-2px); }
.ai-banner-ico { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.ai-banner-ico .ico { width: 26px; height: 26px; }
.ai-banner-text { flex: 1; }
.ai-banner-text b { display: block; font-size: 1.2rem; }
.ai-banner-text span { opacity: .85; font-size: .95rem; }
.ai-banner .btn { background: #fff; color: var(--accent); border-color: #fff; }

.est-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.est-steps li { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.est-steps .tile { margin-bottom: 8px; }
.est-steps small { color: var(--muted); }
.est-form { display: grid; gap: 16px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 900px; }
.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; text-align: center; border: 2px dashed var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.drop-zone:hover, .drop-zone.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone .tile { margin: 0 0 4px; }
.est-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.est-files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.est-files li > .ico { color: var(--accent); }
.est-files li span { flex: 1; min-width: 0; }
.est-files li b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-files li small { color: var(--muted); }
.est-files li.bad small { color: var(--err); }
.est-files button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.est-files button:hover { background: var(--bg); color: var(--ink); }
.est-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.est-result { margin-top: 40px; scroll-margin-top: 80px; }
.est-result[hidden] { display: none; }
.est-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.est-main h2 { font-size: 1.8rem; }
.est-main h3 { margin-top: 24px; }
.est-extra { margin: 0; padding-left: 20px; color: var(--muted); }
.est-q { margin: 0; padding-left: 22px; }
.est-q li { margin: .45em 0; }
.est-price { position: sticky; top: 84px; }
.est-price .chips { margin: 0 0 16px; }
.est-shots { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
/* компьютер 3:2 и телефон 2:3 одной высоты: ширины относятся как 2,25 к 1 */
.est-shots-grid { display: grid; grid-template-columns: 2.25fr 1fr; gap: 16px; margin-top: 12px; align-items: start; }
.shot-slot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); display: grid; }
.shot-desktop { aspect-ratio: 3 / 2; }
.shot-mobile { aspect-ratio: 2 / 3; }
.shot-open { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.shot-open img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot-skel { display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px; color: var(--muted); text-align: center; }
.shot-skel span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.shot-slot:not(.loading) .shot-skel span { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.shot-slot.loading { background: linear-gradient(100deg, var(--bg-alt) 30%, color-mix(in srgb, var(--bg-alt) 60%, #fff) 50%, var(--bg-alt) 70%) 0 0 / 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 1024px) {
  .est-steps { grid-template-columns: 1fr 1fr; }
  .est-top { grid-template-columns: minmax(0, 1fr); }
  .est-price { position: static; }
}
@media (max-width: 760px) {
  .ai-banner { flex-direction: column; align-items: flex-start; }
  .est-steps { grid-template-columns: 1fr; }
  .est-form { padding: 18px; }
  .est-shots-grid { grid-template-columns: 1fr; }
  .shot-mobile { max-width: 340px; width: 100%; justify-self: center; }
}

/* меню в бургер уже на планшете: пунктов много, в одну строку не влезают */
.nav a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; }
  .burger { display: grid; }
  .nav { max-height: calc(100svh - 64px); overflow-y: auto; }
  .nav-drop > a { display: flex; }
  .drop { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 4px; background: none; }
  .drop::before { display: none; }
  .nav { align-items: stretch; }
  .nav-drop > a { justify-content: space-between; }
}

/* дизайн с ИИ: подсказки об экономии */
.calc-step legend i .ico { width: 15px; height: 15px; }
.seg-save { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--ok); margin-left: 4px; }
.tip { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 9%, var(--card)); color: var(--ink); font-size: .92rem; }
.tip .ico { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }
.est-design { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 9%, var(--card)); font-size: .9rem; }
.est-design .ico { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; flex: none; }

/* оценка: остаток попыток и прошлые оценки */
.est-left { font-size: .9rem; color: var(--muted); }
.est-left b { color: var(--ink); }
.est-left.none { display: block; width: 100%; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); }
.est-actions .est-left:not(.none) { margin-left: auto; }
.est-history { margin-top: 32px; }
.est-hist-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.est-hist-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; max-width: 300px; }
.est-hist-list button b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.est-hist-list button small { color: var(--muted); }
.est-hist-list button[aria-pressed=true] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.est-shots[hidden] { display: none; }

/* hidden должен побеждать display из классов выше */
.est-left[hidden] { display: none !important; }

/* мини-диалог: уточнение стиля перед отрисовкой примеров экранов */
.est-clarify { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.est-clarify[hidden] { display: none; }
.clarify-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.clarify-head .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; flex: none; }
.clarify-head b { display: block; }
.clarify-head small { display: block; margin-top: 2px; }
.clarify-q { margin-top: 16px; }
.clarify-q > p { margin: 0 0 8px; font-weight: 600; font-size: .95rem; }
.clarify-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.clarify .chip:hover { border-color: var(--accent); }
.clarify .chip.chip-skip { color: var(--muted); font-weight: 500; }
.clarify-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.clarify-foot .btn .ico { width: 16px; height: 16px; }
