/* =========================================================
   Weidner & Partner — демо налогового консультанта
   Стиль «Архитектура»: бумага, тёмно-синий, шрифт с засечками,
   свет из окна, арки, стопка листов.
   ========================================================= */
@font-face { font-family: "Instrument Serif"; src: url("../../assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../../assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../../assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #F3F1EC;
  --paper-2: #E9E5DC;
  --white: #FBFAF7;
  --ink: #1C2E4A;
  --ink-2: #3A5277;
  --text: #2B3442;
  --muted: #6E7684;
  --line: #D9D3C7;
  --brass: #A8874F;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --side: clamp(18px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* бумажное зерно поверх всей страницы */
body::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1; letter-spacing: -.01em; }
em { font-style: italic; }
h2 em, h1 em { color: var(--ink-2); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.pill-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink); transition: background-color .35s var(--ease), color .35s var(--ease); }
.pill-btn:hover { background: var(--ink); color: var(--paper); }
.pill-btn--solid { background: var(--ink); color: var(--paper); }
.pill-btn--solid:hover { background: var(--ink-2); }
.pill-btn--wide { width: 100%; height: 56px; }
.ask { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.ask:hover { background-size: 100% 1px; }
.ask__spark { color: var(--brass); display: inline-block; transition: transform .6s var(--ease); }
.ask:hover .ask__spark { transform: rotate(180deg) scale(1.2); }

.demo-badge { position: fixed; left: 16px; bottom: 16px; z-index: 90; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.demo-badge b { color: var(--ink); font-weight: 700; }

/* ---------- header ---------- */
.hdr { position: fixed; z-index: 80; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 22px var(--side); transition: padding .4s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.hdr.is-solid { padding-block: 12px; background: rgba(243, 241, 236, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.hdr__nav { display: flex; align-items: center; gap: 30px; font-size: .9rem; font-weight: 500; }
.hdr__nav--r { justify-content: flex-end; }
.hdr__nav a:not(.pill-btn) { position: relative; }
.hdr__nav a:not(.pill-btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.hdr__nav a:not(.pill-btn):hover::after { transform: scaleX(1); }
.hdr .pill-btn { height: 42px; padding: 0 20px; }
.mono { display: inline-flex; align-items: center; gap: 12px; }
.mono__w { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font: italic 400 1.45rem/1 var(--serif); padding-bottom: 2px; }
.mono__txt { display: flex; flex-direction: column; font: 400 1.2rem/1 var(--serif); color: var(--ink); }
.mono__txt small { font: 600 .58rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; padding: 130px var(--side) 56px; overflow: hidden; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.hero__title { font-size: clamp(3.8rem, 8.6vw, 8.6rem); line-height: .92; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln > span { display: inline-block; transform: translateY(100%); filter: blur(8px); opacity: 0; transition: transform 1.3s var(--ease), filter 1.3s var(--ease), opacity 1s; }
.hero__title .ln:nth-child(2) > span { transition-delay: .12s; padding-left: .9em; }
.hero__title .ln:nth-child(3) > span { transition-delay: .24s; }
.is-ready .hero__title .ln > span { transform: none; filter: none; opacity: 1; }
.hero__text { position: relative; z-index: 2; }
.hero__sub { max-width: 44ch; margin-top: 30px; font-size: 1.06rem; color: var(--muted); }
.hero__ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.fx { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease) .5s, transform 1.1s var(--ease) .5s; }
.is-ready .fx { opacity: 1; transform: none; }
.hero__img { position: relative; height: min(78vh, 760px); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 18px 18px; clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); transform: scale(1.12); transition: clip-path 1.6s var(--ease) .2s, transform 2.4s var(--ease) .2s; }
.is-ready .hero__img img { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); transform: none; }
.hero__img figcaption { position: absolute; right: 18px; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(251, 250, 247, .85); backdrop-filter: blur(6px); font-size: .75rem; font-weight: 600; color: var(--ink); }
/* свет из окна: мягкие полосы медленно ползут по странице */
.windowlight { position: absolute; inset: -20% -10%; pointer-events: none; mix-blend-mode: soft-light; opacity: .9; filter: blur(22px);
  background:
    repeating-linear-gradient(104deg, transparent 0 140px, rgba(255, 246, 220, .9) 140px 230px, transparent 230px 300px, rgba(255, 246, 220, .55) 300px 330px, transparent 330px 460px);
  animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-6%) skewX(-4deg); } to { transform: translateX(6%) skewX(4deg); } }

/* ---------- who ---------- */
.who { padding: clamp(100px, 13vw, 180px) var(--side); text-align: center; border-top: 1px solid var(--line); }
.who__line { font: 400 clamp(2.3rem, 6vw, 5.6rem)/1.1 var(--serif); color: var(--ink); }
.slot { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; text-align: left; }
.slot__track { display: flex; flex-direction: column; transition: transform .9s var(--ease); }
.slot__track span { display: block; height: 1.1em; font-style: italic; color: var(--brass); white-space: nowrap; }
.who__sub { margin-top: 22px; color: var(--muted); }

/* ---------- section titles ---------- */
.sec-title { padding: 0 var(--side); margin-bottom: clamp(40px, 6vw, 70px); }
.sec-title--c { text-align: center; }
.sec-title__n { display: inline-block; font: italic 400 1.35rem/1 var(--serif); color: var(--brass); margin-bottom: 16px; }
h2 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); max-width: 16ch; }
.sec-title--c h2 { margin-inline: auto; }

/* ---------- services: стопка листов ---------- */
.services { padding: clamp(80px, 10vw, 140px) 0 60px; background: var(--paper-2); }
.stack { padding: 0 var(--side); }
.sheet { position: sticky; top: calc(100px + var(--i, 0) * 16px); display: grid; grid-template-columns: 1.1fr 1fr; min-height: min(68vh, 600px); margin-bottom: 10vh; background: var(--white); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 -18px 50px -30px rgba(28, 46, 74, .35); transform-origin: 50% 0; transform: scale(var(--s, 1)); filter: brightness(var(--b, 1)); transition: transform .3s linear, filter .3s linear; }
.sheet:last-child { margin-bottom: 0; }
.sheet__text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.sheet__n { font: italic 400 clamp(3.4rem, 6vw, 5.6rem)/1 var(--serif); color: var(--brass); }
.sheet h3 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); margin: 18px 0 16px; }
.sheet p { color: var(--muted); max-width: 40ch; }
.sheet ul { list-style: none; padding: 0; margin-top: auto; padding-top: 28px; }
.sheet li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.sheet li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--brass); flex: none; }
.sheet img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- assistant ---------- */
.assistant { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(100px, 12vw, 160px) var(--side); }
.assistant__text p { color: var(--muted); max-width: 42ch; margin-top: 22px; }
.assistant__note { font-size: .85rem; padding: 10px 14px; border-left: 2px solid var(--brass); }
.chat { background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 50px 90px -50px rgba(28, 46, 74, .45); overflow: hidden; display: flex; flex-direction: column; }
.chat__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat__avatar { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font: italic 400 1.5rem/1 var(--serif); }
.chat__avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--brass); opacity: .6; animation: halo 2.6s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.chat__head b { display: block; font-weight: 700; color: var(--ink); }
.chat__head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.chat__head small i { width: 7px; height: 7px; border-radius: 50%; background: #3BA55C; }
.chat__log { height: 360px; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: .95rem; line-height: 1.5; animation: pop .45s var(--ease) both; }
.msg--bot { align-self: flex-start; background: var(--paper); color: var(--text); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg .go { display: inline-flex; margin-top: 10px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .82rem; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 14px; }
.chat__chips button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--ink); transition: border-color .2s, background-color .2s; }
.chat__chips button:hover { border-color: var(--ink); background: var(--paper); }
.chat__form { display: flex; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 500 .95rem var(--sans); color: var(--text); }
.chat__form input:focus { outline: none; border-color: var(--ink); }
.chat__form button { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.chat__form button:hover { transform: rotate(-30deg); }
.chat__form svg { width: 20px; height: 20px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.launcher { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; border: 1px solid rgba(243, 241, 236, .35); box-shadow: 0 16px 40px -14px rgba(28, 46, 74, .6); transform: translateY(120px); transition: transform .6s var(--ease); }
.launcher span { color: var(--brass); }
.launcher.on { transform: none; }

/* ---------- office ---------- */
.office { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(80px, 10vw, 140px) var(--side); border-top: 1px solid var(--line); }
.collage { position: relative; height: clamp(460px, 56vw, 680px); }
.collage img { position: absolute; object-fit: cover; will-change: transform; transform: translateY(var(--y, 0px)); }
.c1 { left: 0; top: 4%; width: 54%; height: 82%; border-radius: 999px 999px 18px 18px; }
.c2 { right: 0; top: 0; width: 40%; height: 40%; border-radius: 18px; }
.c3 { right: 6%; bottom: 0; width: 42%; height: 38%; border-radius: 18px; }
.office__text p { color: var(--muted); margin-top: 22px; max-width: 42ch; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.figures dt { font: 400 clamp(2.6rem, 4vw, 3.8rem)/1 var(--serif); color: var(--ink); }
.figures dd { margin-top: 6px; color: var(--muted); font-size: .88rem; }

/* ---------- steps (checklist) ---------- */
.steps { padding: clamp(80px, 10vw, 140px) var(--side); background: var(--paper-2); }
.checklist { list-style: none; padding: 0; max-width: 820px; margin: 0 auto; }
.checklist li { display: flex; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { flex: none; width: 44px; height: 44px; }
.checklist rect { fill: var(--white); stroke: var(--line); stroke-width: 1.5; transition: fill .5s, stroke .5s; }
.checklist path { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .7s var(--ease) .2s; }
.checklist li.done rect { fill: var(--ink); stroke: var(--ink); }
.checklist li.done path { stroke-dashoffset: 0; }
.checklist h3 { font-size: 2rem; margin-bottom: 8px; }
.checklist p { color: var(--muted); }

/* ---------- booking ---------- */
.booking { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); padding: clamp(90px, 11vw, 150px) var(--side); background: var(--ink); color: #D9DEE6; }
.booking h2, .booking h2 em { color: var(--paper); }
.booking h2 em { color: #C9B48B; }
.booking__intro p { margin-top: 22px; max-width: 40ch; color: #AEB7C5; }
.booking address { margin-top: 36px; font-style: normal; font-size: .9rem; color: #AEB7C5; line-height: 1.8; }
.book { position: relative; overflow: hidden; display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 44px); background: var(--paper); color: var(--text); border-radius: 28px; }
.book fieldset { border: 0; padding: 0; margin: 0; }
.book legend { font: italic 400 1.3rem/1 var(--serif); color: var(--ink); margin-bottom: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: .86rem; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s; }
.opt:hover:not(:disabled) { border-color: var(--ink); }
.opt.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.opts--days .opt { display: grid; justify-items: center; gap: 2px; min-width: 70px; padding: 10px 12px; border-radius: 18px; }
.opts--days .opt b { font: italic 400 1.4rem/1 var(--serif); }
.opts--days .opt small { font-size: .72rem; font-weight: 600; opacity: .75; }
.book__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.book label:not(.consent) { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.book input:not([type="checkbox"]) { height: 48px; padding: 0 2px; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; font: 500 1rem var(--sans); color: var(--ink); transition: border-color .2s; }
.book input:focus { outline: none; border-color: var(--ink); }
.book .bad { border-color: #B4462E !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.consent a { text-decoration: underline; }
.book__err { display: none; color: #B4462E; font-size: .85rem; }
.book.has-err .book__err { display: block; }
.book__done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.mono__w--big { width: 72px; height: 72px; font-size: 2.6rem; margin-bottom: 8px; }
.book__done p { font: italic 400 2.2rem/1 var(--serif); color: var(--ink); }
.book__done b { font-weight: 700; color: var(--ink); }
.book__done small { color: var(--muted); }
.book.is-done .book__done { opacity: 1; visibility: visible; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; padding: 34px var(--side) 90px; background: #142238; color: #8F9AAB; font-size: .85rem; }
.foot__brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font: 400 1.15rem/1 var(--serif); }
.foot__brand small { display: block; font: 600 .58rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: #8F9AAB; margin-top: 5px; }
.foot .mono__w { background: var(--paper); color: var(--ink); }
.foot nav { display: flex; gap: 22px; }
.foot nav a:hover { color: var(--paper); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hdr { grid-template-columns: auto 1fr; }
  .hdr__nav--l { display: none; }
  .hdr__nav--r a:not(.pill-btn) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; align-items: start; }
  .hero__img { height: 56vh; order: -1; }
  .sheet { grid-template-columns: 1fr; min-height: 0; }
  .sheet img { height: 220px; order: -1; }
  .assistant, .office, .booking { grid-template-columns: 1fr; }
  .collage { height: 520px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .mono__txt { font-size: 1.05rem; }
  .hdr .pill-btn { height: 38px; padding: 0 14px; font-size: .8rem; }
  .hero__title { font-size: clamp(3.2rem, 15vw, 4.4rem); }
  .hero__img { height: 46vh; }
  .who__line { font-size: 2.2rem; }
  .slot { display: block; margin: 6px auto 0; text-align: center; }
  .sheet { top: calc(84px + var(--i, 0) * 10px); border-radius: 22px; }
  .chat__log { height: 320px; }
  .collage { height: 420px; }
  .figures { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .book__row { grid-template-columns: 1fr; }
  .demo-badge { left: 12px; bottom: 12px; font-size: .68rem; }
  .launcher { right: 12px; bottom: 12px; height: 46px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
