/* Открытый сайт юриста — продолжение его книги «Заңнама»: королевский синий, золотые акценты,
   у каждого раздела свой цвет. Сначала телефон: на сайт приходят по QR с обложки. */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/lora-cyrillic-ext.41a70def08d9.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/lora-cyrillic.f617fd584ca5.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/lora-latin.9577af3ccda5.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../core/fonts/inter-cyrillic-ext.251d36f2b5a6.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../core/fonts/inter-cyrillic.de93fdc85e3d.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../core/fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --royal: #2e3993;
  --navy: #1d2477;
  --ink: #11164c;
  --gold: #f6c544;
  --gold-2: #e9ad2c;
  --bg: #f5f5f9;
  --surface: #ffffff;
  --fill: #f0f0f5;
  --text: #15172b;
  --text-2: #5c5f74;
  --text-3: #8d90a3;
  --line: rgba(21, 23, 43, .1);
  --ring: rgba(46, 57, 147, .22);
  --red: #e5372c;
  --radius: 20px;
  --shadow-1: 0 1px 2px rgba(17, 22, 76, .05), 0 0 0 .5px rgba(17, 22, 76, .06);
  --shadow-2: 0 18px 44px rgba(17, 22, 76, .12), 0 2px 6px rgba(17, 22, 76, .06);
  --spring: cubic-bezier(.32, 1.45, .55, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--royal); text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
img { max-width: 100%; height: auto; }
.i { display: block; flex: none; }
.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(--ring); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ——— появление ——— */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .panel.on, .book-3d, .done-mark { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ——— шапка: прозрачная над синим, белая после прокрутки ——— */
.top { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .3s, box-shadow .3s, color .3s; color: #fff; }
.top.solid {
  color: var(--text); background: rgba(250, 250, 252, .86); box-shadow: 0 .5px 0 var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.top-in { max-width: 1160px; margin: 0 auto; height: 68px; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; }
.who-t { min-width: 0; }
.who b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; margin-top: -1px; font-size: 12.5px; opacity: .65; }
.mono {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px/1 var(--serif); letter-spacing: .02em; color: var(--ink);
  background: linear-gradient(160deg, #ffe08a, var(--gold) 55%, var(--gold-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 12px rgba(233, 173, 44, .35);
}
.mono.sm { width: 26px; height: 26px; font-size: 10.5px; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 13px; border-radius: 10px; color: inherit; opacity: .82; font-size: 15px; font-weight: 500; transition: opacity .15s, background .15s; }
.top-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.top.solid .top-nav a:hover { background: rgba(0, 0, 0, .05); }
.top-nav a.on { opacity: 1; }

/* ——— кнопки: одна главная — золотая ——— */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border: 0; border-radius: 14px; font-weight: 600; font-size: 15.5px; cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform .25s var(--spring), box-shadow .2s, background .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .7; cursor: default; transform: none; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 11px; }
.btn.lg { height: 56px; padding: 0 26px; font-size: 16.5px; border-radius: 16px; }
.btn.wide { width: 100%; }
.btn-gold {
  color: #1b1a2e; background: linear-gradient(180deg, #ffd765, var(--gold) 55%, #efb83a);
  box-shadow: 0 10px 24px rgba(233, 173, 44, .32), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold:hover { filter: brightness(1.04); box-shadow: 0 14px 30px rgba(233, 173, 44, .42), inset 0 1px 0 rgba(255, 255, 255, .55); }
/* блик по кнопке при наведении */
.btn-gold::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
}
.btn-gold:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-soft { color: var(--navy); background: #eceefb; }
.btn-soft:hover { background: #e2e5f8; }
.btn .price { padding: 3px 10px; margin-left: 4px; border-radius: 9px; background: rgba(27, 26, 46, .1); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.2px solid rgba(27, 26, 46, .25); border-top-color: #1b1a2e; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— синий фон, как обложка книги ——— */
.hero, .band {
  --band: var(--royal);
  position: relative; color: #fff; overflow: hidden;
  /* запасной фон для старых браузеров без color-mix */
  background: linear-gradient(165deg, var(--band), #10154a);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(246, 197, 68, .22), transparent 62%),
    radial-gradient(760px 520px at -12% 112%, rgba(120, 140, 255, .32), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--band) 88%, #ffffff 12%) 0%, var(--band) 38%, color-mix(in srgb, var(--band) 55%, #050824 45%) 100%);
}
/* тонкие золотые линии внизу — как на обложке */
.hero::after, .band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, transparent, rgba(246, 197, 68, .9) 20%, rgba(246, 197, 68, .9) 80%, transparent) top / 100% 2px no-repeat,
              linear-gradient(90deg, transparent, rgba(255, 255, 255, .35) 30%, rgba(255, 255, 255, .35) 70%, transparent) bottom / 100% 1px no-repeat;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
  background: linear-gradient(90deg, var(--gold), rgba(246, 197, 68, .15)) bottom left / 100% 2px no-repeat;
}
.hero h1 em, .band h1 em, .chapter-head h2 em { font-style: normal; color: var(--gold); }

/* первый экран — ровно одно окно. На коротких экранах (ноутбук с масштабом 150 %) отступы, заголовок
   и книга уменьшаются по высоте окна, чтобы цифры и подпись книги не уходили под край. */
.hero-in {
  --gap-y: clamp(16px, 9vh - 32px, 64px);
  max-width: 1160px; min-height: min(100vh, 960px); min-height: min(100svh, 960px); margin: 0 auto;
  padding: calc(68px + var(--gap-y)) 28px var(--gap-y);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center;
}
.hero .eyebrow { margin-bottom: clamp(10px, 2vh, 14px); }
.hero h1 { font-size: clamp(44px, min(6.4vw, 10.4vh), 76px); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 em { display: block; }  /* «біл!» всегда отдельной строкой, как на обложке */
.hero .role { margin: clamp(12px, 4vh - 8px, 22px) 0 0; font-size: 18px; font-weight: 600; color: #fff; }
.hero .lead { margin: 10px 0 0; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 5.5vh - 10px, 32px); }
.facts { display: flex; gap: 10px; margin: clamp(16px, 6vh - 12px, 34px) 0 0; padding: 0; list-style: none; }
.facts li {
  min-width: 112px; padding: 13px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.facts b { display: block; font: 700 26px/1.1 var(--serif); color: var(--gold); }
.facts span { display: block; margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, .78); }

/* книга в объёме */
.book { margin: 0; display: grid; justify-items: center; gap: 22px; perspective: 1600px; }
.book-3d {
  position: relative; width: min(330px, 100%); aspect-ratio: 720 / 1021; border-radius: 4px 12px 12px 4px;
  transform: rotateY(-22deg) rotateX(5deg); transform-style: preserve-3d; transition: transform .9s var(--ease);
  box-shadow: 34px 44px 70px rgba(4, 8, 40, .55), 10px 14px 24px rgba(4, 8, 40, .35);
  animation: float 8s ease-in-out infinite;
}
.book-3d img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.book-3d::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; border-radius: 4px 0 0 4px; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(255, 255, 255, .22) 45%, rgba(0, 0, 0, .08));
}
.book-3d::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28), transparent 38%, transparent 70%, rgba(0, 0, 0, .12));
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.book:hover .book-3d { transform: rotateY(-10deg) rotateX(2deg); }
.book figcaption { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .82); letter-spacing: .01em; }

/* ——— страницы внутри: синяя полоса, карточки заходят на неё ——— */
.band-in { max-width: 1160px; margin: 0 auto; padding: 116px 28px 84px; }
.band-in.narrow { max-width: 820px; }
.band-in.center { text-align: center; }
.band h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; }
.band h1.q { font-size: clamp(28px, 4vw, 42px); line-height: 1.16; }
.band .lead { margin: 14px 0 0; max-width: 640px; font-size: 17px; color: rgba(255, 255, 255, .8); }
.band-in.center .lead { margin-left: auto; margin-right: auto; }
.back { display: flex; width: fit-content; align-items: center; gap: 2px; margin: 0 0 18px -6px; padding: 5px 10px 5px 4px; border-radius: 10px; color: rgba(255, 255, 255, .85); font-weight: 500; font-size: 15px; }
.back:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px 80px; }
.band + .wrap { margin-top: -44px; position: relative; z-index: 1; }
.hero + .wrap { padding-top: 8px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
p.center { margin-top: 20px; }

/* ——— секции главной ——— */
.section { margin-top: 84px; }
.sec-head { max-width: 700px; margin-bottom: 26px; }
.sec-head .eyebrow { color: var(--royal); background-image: linear-gradient(90deg, var(--gold), rgba(246, 197, 68, .1)); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; }
.sec-head.with-more { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-head.with-more > div { max-width: 700px; }
.more { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; font-size: 15.5px; color: var(--royal); }
.more .i { transition: transform .25s var(--spring); }
.more:hover .i { transform: translateX(4px); }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
/* пунктир между кругами; кольцо цвета фона вокруг круга прячет линию под ним */
.steps::before { content: ""; position: absolute; top: 28px; left: 16.6%; right: 16.6%; border-top: 2px dashed rgba(233, 173, 44, .55); }
.steps li { position: relative; text-align: center; padding: 0 8px; }
.steps .n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  color: var(--ink); background: linear-gradient(160deg, #ffe08a, var(--gold) 60%, var(--gold-2));
  box-shadow: 0 0 0 8px var(--bg), 0 10px 22px rgba(233, 173, 44, .35);
}
.steps small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.steps b { display: block; font: 700 19px/1.25 var(--serif); }
.steps li > span:last-child { display: block; max-width: 280px; margin: 6px auto 0; color: var(--text-2); font-size: 15px; }

.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chapter {
  --c: var(--royal);
  display: grid; gap: 2px; padding: 12px 12px 16px; border-radius: var(--radius); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-1); transition: transform .35s var(--spring), box-shadow .3s;
}
.chapter:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.chapter-img {
  display: grid; place-items: center; aspect-ratio: 360 / 440; margin-bottom: 12px; overflow: hidden; border-radius: 12px; color: #fff;
  background: var(--c); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 40%, transparent);
}
.chapter-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.chapter:hover .chapter-img img { transform: scale(1.04); }
.chapter b { padding: 0 4px; font: 700 18px/1.2 var(--serif); }
.chapter > span:last-child { padding: 0 4px; color: var(--text-3); font-size: 14px; }

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc {
  display: flex; flex-direction: column; gap: 8px; min-height: 170px; padding: 20px; border-radius: var(--radius); background: var(--surface);
  color: var(--text); box-shadow: var(--shadow-1); transition: transform .35s var(--spring), box-shadow .3s;
}
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.doc { --c: var(--royal); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--c); background: #eceefb; background: color-mix(in srgb, var(--c) 11%, #fff); }
.doc-topic { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--c); background: #eceefb; background: color-mix(in srgb, var(--c) 9%, #fff); }
.doc b { font: 700 17px/1.3 var(--serif); }
.doc-hint { color: var(--text-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; color: var(--royal); }
.doc-price { font-weight: 700; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.doc .doc-foot .i { transition: transform .25s var(--spring); }
.doc:hover .doc-foot .i { transform: translateX(4px); }

.cta-band { padding: 0 28px; margin: 4px 0 0; }
.cta-in {
  position: relative; overflow: hidden; max-width: 1104px; margin: 0 auto 84px; padding: 54px 40px; border-radius: 28px; text-align: center; color: #fff;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(246, 197, 68, .25), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(120, 140, 255, .3), transparent 60%),
    linear-gradient(160deg, #36439f, var(--navy) 50%, var(--ink));
  box-shadow: var(--shadow-2);
}
.cta-in h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-in p { margin: 12px auto 26px; max-width: 560px; color: rgba(255, 255, 255, .8); font-size: 17px; }

/* ——— поиск, вкладки, списки ——— */
.search {
  display: flex; align-items: center; gap: 12px; height: 56px; max-width: 640px; margin-top: 28px; padding: 0 18px; border-radius: 16px;
  color: var(--text-3); background: #fff; box-shadow: 0 14px 34px rgba(4, 8, 40, .28);
}
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 16.5px; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search:focus-within { box-shadow: 0 14px 34px rgba(4, 8, 40, .28), 0 0 0 4px rgba(246, 197, 68, .5); }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 22px -28px 0; padding: 4px 28px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  --c: var(--royal);
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 42px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  font-weight: 600; font-size: 15px; transition: background .2s, color .2s, box-shadow .2s;
}
.chips button:hover { background: rgba(255, 255, 255, .16); }
.chips i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.chips small { color: rgba(255, 255, 255, .65); font-size: 13px; font-weight: 600; }
.chips button[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 8px 22px rgba(4, 8, 40, .3); }
.chips button[aria-selected="true"] i { box-shadow: none; }
.chips button[aria-selected="true"] small { color: var(--text-3); }

.panel { display: none; }
.panel.on { display: block; animation: rise .45s var(--ease) both; }
.searching .chips, .searching .chapter-head { display: none; }
.searching .panel { display: block; animation: none; }
.searching .panel + .panel { margin-top: 10px; }

.chapter-head {
  --c: var(--royal);
  position: relative; display: flex; align-items: center; gap: 20px; min-height: 150px; margin-bottom: 14px; padding: 24px 26px; overflow: hidden;
  border-radius: var(--radius); color: #fff;
  background: var(--c);
  background: radial-gradient(500px 220px at 100% 0%, rgba(246, 197, 68, .22), transparent 60%), linear-gradient(150deg, color-mix(in srgb, var(--c) 82%, #fff 18%), var(--c) 60%);
}
.chapter-head > div { flex: 1; min-width: 0; position: relative; z-index: 1; }
.chapter-head .kicker { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.chapter-head h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.chapter-head .count { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.chapter-head img { width: 96px; height: auto; flex: none; border-radius: 8px; transform: rotate(4deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }

.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 15px 20px; color: var(--text); transition: background .15s; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: .5px; background: var(--line); }
.row:hover { background: #fafafd; }
.row:active { background: #f3f3f8; }
.row .main { flex: 1; min-width: 0; }
.row b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.row .main > span { display: block; margin-top: 3px; color: var(--text-2); font-size: 14.5px; }
.two { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chev { color: #c4c5d0; display: grid; place-items: center; transition: transform .25s var(--spring); }
.row:hover .chev { transform: translateX(3px); color: var(--royal); }
.empty { display: grid; justify-items: center; gap: 6px; padding: 40px 24px; text-align: center; }
.empty b { font: 700 19px/1.3 var(--serif); }
.empty span { color: var(--text-2); }
.empty .btn { margin-top: 12px; }
.group-title { margin: 34px 4px 10px; font: 700 20px/1.3 var(--serif); }

/* ——— ответ ——— */
.article { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-2); padding: 34px 38px 28px; }
.article .body { font-size: 17px; line-height: 1.7; }
.article .body p { margin: 0 0 14px; }
.article .body p.h { margin: 24px 0 8px; font: 700 19px/1.35 var(--serif); }
.article .body p:first-child.h { margin-top: 0; }
.article .body ul, .article .body ol { margin: 0 0 16px; padding-left: 24px; }
.article .body li { margin: 6px 0; padding-left: 4px; }
.article .body ul li::marker { color: var(--gold-2); }
.article .body ol li::marker { color: var(--royal); font-weight: 700; }
.byline { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.cta-card {
  display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 22px 22px 22px 26px; border-radius: 22px; color: #fff;
  background: radial-gradient(400px 200px at 100% 0%, rgba(246, 197, 68, .22), transparent 60%), linear-gradient(160deg, #36439f, var(--navy));
  box-shadow: var(--shadow-2);
}
.cta-card > div { flex: 1; min-width: 0; }
.cta-card b { display: block; font: 700 19px/1.3 var(--serif); }
.cta-card span { display: block; margin-top: 3px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.docs.wide { margin-bottom: 4px; }

/* ——— заявка ——— */
.price-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 16px 10px 14px; border-radius: 14px; color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font-size: 14.5px;
}
.price-pill .i { color: var(--gold); }
.price-pill b { font: 700 20px/1 var(--serif); color: #fff; }
.details { margin-bottom: 14px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-2); }
.details > b { display: block; font: 700 17px/1.3 var(--serif); }
.details .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.details .tags span { padding: 5px 10px; border-radius: 9px; background: var(--fill); color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.details p { margin: 12px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-2); }
.order-form { padding: 26px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { margin-bottom: 18px; }
.label { display: block; margin: 0 0 8px 2px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.input {
  width: 100%; font-size: 16px; color: var(--text); background: #fbfbfd; border: 1px solid rgba(21, 23, 43, .14);
  border-radius: 14px; padding: 13px 15px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea.input { resize: vertical; min-height: 130px; line-height: 1.5; }
.input::placeholder { color: #a6a8b6; }
.input:focus { background: #fff; border-color: var(--royal); box-shadow: 0 0 0 4px var(--ring); }
.errorlist { list-style: none; margin: 7px 2px 0; padding: 0; color: var(--red); font-size: 13.5px; }
.form-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #fff3f2; color: #b8241b; font-size: 14.5px; }
.attach {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed rgba(46, 57, 147, .28); background: #f8f8fd; transition: background .2s, border-color .2s;
}
.attach:hover, .attach.dragging { background: #eef0fc; border-color: rgba(46, 57, 147, .5); }
.attach-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: var(--royal); background: #fff; box-shadow: var(--shadow-1); }
.attach b { display: block; font-size: 15px; color: var(--text); }
.attach small { display: block; color: var(--text-3); font-size: 13.5px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 6px 6px 11px; border-radius: 10px; background: var(--fill); font-size: 13.5px; }
.file-chip .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .sz { color: var(--text-3); }
.file-chip button { width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.file-chip button:hover { background: rgba(0, 0, 0, .06); color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 6px 2px 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.consent input { width: 21px; height: 21px; margin: 0; flex: none; accent-color: var(--royal); }
.consent + .errorlist { margin: -12px 2px 16px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--text-3); font-size: 13.5px; }

/* ——— заявка принята ——— */
.done-mark {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(160deg, #ffe08a, var(--gold) 55%, var(--gold-2)); box-shadow: 0 16px 36px rgba(233, 173, 44, .4);
  animation: pop .6s var(--spring) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.next { display: grid; gap: 16px; padding: 24px; }
.next-row { display: flex; gap: 13px; }
.next-row .n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #eceefb; color: var(--royal); font-weight: 700; font-size: 14px; }
.next-row b { display: block; font: 700 17px/1.3 var(--serif); }
.next-row span { display: block; margin-top: 2px; color: var(--text-2); font-size: 15px; }

/* ——— подвал ——— */
.foot { color: rgba(255, 255, 255, .72); background: linear-gradient(170deg, #161c63, #0b0f3b); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 44px 28px 48px; display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.foot-who { display: flex; align-items: center; gap: 14px; }
.foot-who b { display: block; font: 700 18px/1.3 var(--serif); color: #fff; }
.foot-who > div > span { display: block; font-size: 14px; }
.foot-who .foot-book { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--gold); font-weight: 600; font-size: 13.5px; }
.foot-book img { width: 20px; height: auto; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.foot-links a { color: rgba(255, 255, 255, .85); }
.foot-links a:hover { color: var(--gold); }
.foot-links .insta { display: inline-flex; align-items: center; gap: 7px; }
.foot .note { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.tabbar { display: none; }

/* ——— компьютер поуже ——— */
@media (max-width: 1080px) {
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .docs { grid-template-columns: repeat(2, 1fr); }
}

/* ——— телефон ——— */
@media (max-width: 760px) {
  .top-in { height: 58px; padding: 0 16px; gap: 12px; }
  .top-nav { display: none; }
  .top-cta { margin-left: auto; }
  .mono { width: 34px; height: 34px; font-size: 13px; }

  .hero-in { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding: 96px 20px 48px; text-align: center; }
  .hero .eyebrow { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 46px; }
  .hero .role { font-size: 17px; margin-top: 16px; }
  .hero .lead { margin-left: auto; margin-right: auto; font-size: 15.5px; }
  .hero-cta { flex-direction: column; margin-top: 26px; }
  .hero-cta .btn { width: 100%; }
  .facts { justify-content: center; margin-top: 26px; }
  .facts li { flex: 1; min-width: 0; padding: 12px 8px; text-align: center; }
  .facts b { font-size: 23px; }
  .facts span { font-size: 12px; }
  .book-3d { width: 210px; transform: rotateY(-16deg) rotateX(4deg); }

  .band-in { padding: 90px 20px 74px; }
  .band h1 { font-size: 36px; }
  .band h1.q { font-size: 27px; }
  .band .lead { font-size: 15.5px; }
  .search { height: 52px; margin-top: 22px; }

  .wrap { padding: 0 16px 44px; }
  .band + .wrap { margin-top: -38px; }
  .section { margin-top: 56px; }
  .sec-head h2 { font-size: 27px; }
  .sec-head.with-more { display: block; }
  .sec-head.with-more .more { margin-top: 12px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed rgba(233, 173, 44, .55); }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; text-align: left; padding: 0; }
  .steps .n { grid-row: span 3; margin: 0; }
  .steps small { margin-top: 4px; }
  .steps b { font-size: 17.5px; }
  .steps li > span:last-child { max-width: none; margin: 2px 0 0; font-size: 14.5px; }

  /* разделы книги — лентой, как полка */
  .chapters { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 6px 16px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapter { flex: none; width: 150px; scroll-snap-align: start; }
  .docs { grid-template-columns: 1fr; gap: 10px; }
  .doc { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; min-height: 0; padding: 16px; align-items: center; }
  .doc-top { grid-row: span 2; align-self: start; }
  .doc-topic { display: none; }
  .doc b { font-size: 16px; }
  .doc-hint { grid-column: 2; -webkit-line-clamp: 2; }
  .doc-foot { grid-column: 2; padding-top: 0; }
  .cta-band { padding: 0 16px; }
  .cta-in { margin-bottom: 40px; padding: 38px 22px; border-radius: 24px; }
  .cta-in p { font-size: 15.5px; }
  .cta-in .btn { width: 100%; }

  .chips { margin: 18px -20px 0; padding: 4px 20px 6px; }
  .chapter-head { min-height: 0; padding: 20px; gap: 14px; }
  .chapter-head img { width: 70px; }
  .row { padding: 14px 16px; }
  .row + .row::before { left: 16px; }
  .article { padding: 22px 20px; border-radius: 20px; }
  .article .body { font-size: 16.5px; }
  .cta-card { flex-direction: column; align-items: stretch; padding: 20px; }
  .cta-card .btn { width: 100%; }
  .grid2 { grid-template-columns: 1fr; }
  .order-form { padding: 18px; }

  .foot-in { grid-template-columns: 1fr; padding: 34px 20px calc(110px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(250, 250, 252, .9);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -.5px 0 var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 4px 0; color: #9a9cab; font-size: 10.5px; font-weight: 600; }
  .tabbar a.on { color: var(--navy); }
  .tabbar .i { transition: transform .2s var(--spring); }
  .tabbar a:active .i { transform: scale(.88); }
}

/* «тағы N» — остальные сведения документа не показываем списком */
.details .tags .more-tag { background: #eceefb; color: var(--royal); font-weight: 600; }

/* ——— водяные весы и зерно на синем — как на страницах книги ——— */
.hero::before, .band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-position: right -40px bottom -150px, 0 0;
  background-size: 620px auto, 160px 160px;
}
.hero-in, .band-in { position: relative; z-index: 1; }

/* ——— веер: за книгой — обложки двух разделов ——— */
.book-stack { position: relative; width: min(330px, 100%, 46vh); }
.book-stack .book-3d { position: relative; z-index: 2; width: 100%; }
.book-back {
  position: absolute; top: 7%; width: 72%; border-radius: 4px 10px 10px 4px; box-shadow: 0 18px 40px rgba(4, 8, 40, .45);
  filter: saturate(.9) brightness(.8); transition: transform .9s var(--ease), filter .6s;
}
.book-back.b1 { left: -20%; transform: rotate(-11deg); }
.book-back.b2 { right: -20%; transform: rotate(10deg); }
.book:hover .book-back { filter: saturate(1) brightness(.9); }
.book:hover .book-back.b1 { transform: rotate(-14deg) translateX(-10px); }
.book:hover .book-back.b2 { transform: rotate(13deg) translateX(10px); }

/* ——— адвокат туралы: его слова из книги ——— */
.about-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-2); }
.about-quote {
  position: relative; padding: 46px 42px 40px; color: #fff;
  background: radial-gradient(500px 260px at 0% 0%, rgba(246, 197, 68, .22), transparent 60%), linear-gradient(160deg, #36439f, var(--navy) 55%, var(--ink));
}
.qmark { position: absolute; top: -8px; left: 30px; font: 700 128px/1 var(--serif); color: rgba(246, 197, 68, .35); }
.about-quote blockquote { margin: 58px 0 0; font: 700 clamp(24px, 2.6vw, 32px)/1.25 var(--serif); letter-spacing: -.01em; }
.about-quote p { margin: 16px 0 0; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.6; }
.about-quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--gold); }
.about-info { padding: 42px 42px 38px; }
.about-info .eyebrow { color: var(--royal); background-image: linear-gradient(90deg, var(--gold), rgba(246, 197, 68, .1)); }
.about-info h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.about-role { margin: 8px 0 0; color: var(--royal); font-weight: 600; }
.about-facts { display: flex; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.about-facts li { flex: 1; padding: 14px 16px; border-radius: 16px; background: #f5f6fc; }
.about-facts b { display: block; font: 700 26px/1.1 var(--serif); color: var(--royal); }
.about-facts span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--text-2); }
.areas-title { margin: 24px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas span { padding: 7px 13px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 500; }

/* ——— ответ: сколько прочитано, обложка главы рядом с вопросом ——— */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), #ffe08a); transform: scaleX(0); transform-origin: 0 50%;
}
.band-in.with-cover { display: flex; align-items: flex-end; gap: 32px; }
.band-in.with-cover > div { flex: 1; min-width: 0; }
.band-cover { width: 112px; flex: none; margin-bottom: 6px; border-radius: 8px; transform: rotate(4deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }

/* ——— шаги заявки ——— */
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.flow.center { justify-content: center; }
.flow li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.flow i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .14); }
.flow li.on { color: var(--ink); background: var(--gold); box-shadow: none; }
.flow li.on i { background: rgba(17, 22, 76, .12); }
.flow li.done { color: #fff; }
.flow li.done i { color: var(--ink); background: var(--gold); }

@media (max-width: 760px) {
  .hero::before { background-position: right -120px bottom -60px, 0 0; background-size: 420px auto, 160px 160px; }
  .book-stack { width: 200px; }
  .book-stack .book-3d { width: 100%; }
  .about-card { grid-template-columns: 1fr; border-radius: 24px; }
  .about-quote { padding: 34px 24px 28px; }
  .qmark { left: 18px; font-size: 104px; }
  .about-quote blockquote { margin-top: 50px; font-size: 23px; }
  .about-info { padding: 28px 22px 26px; }
  .band-cover { display: none; }
  .flow { gap: 6px; }
  .flow li { gap: 6px; padding: 5px 10px 5px 5px; font-size: 12px; }
  .flow i { width: 20px; height: 20px; font-size: 11px; }
}

/* ——— фото юриста вместо инициалов ——— */
img.mono { object-fit: cover; padding: 0; background: #fff; }
.about-head { display: flex; align-items: center; gap: 16px; }
.about-photo { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 8px 22px rgba(17, 22, 76, .2); }
.about-card.no-quote { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .about-photo { width: 68px; height: 68px; }
}
