:root {
  color-scheme: light;
  --ink: #1e2126;
  --muted: #54585e;
  --paper: #eeece8;
  --white: #f7f5f1;
  --rule: #cecac2;
  --night: #17191d;
  --night-rule: #41434a;
  --warm: #d9c8ac;
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: max(clamp(1.3rem, 5vw, 5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --header-size: 4.65rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-height: calc(var(--header-size) + var(--safe-top));
  --ease: cubic-bezier(.2,.7,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1.2rem); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.58 var(--sans); }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #8a643b; outline-offset: 4px; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h2 { font-size: clamp(2.5rem, 4.7vw, 4.85rem); line-height: 1.05; text-wrap: balance; }
.shell { width: min(100% - var(--gutter) * 2, 82rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 15; left: 1rem; top: 1rem; transform: translateY(-160%); padding: .7rem 1rem; background: var(--white); }
.skip-link:focus { transform: none; }

.header { height: var(--header-height); padding-top: var(--safe-top); position: sticky; top: 0; z-index: 5; background: var(--night); color: var(--white); border-bottom: 1px solid #34363c; }
.header-layout, .footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; height: 100%; }
.header-layout { position: relative; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font: 1.35rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.navigation { display: flex; gap: clamp(1rem, 3.4vw, 3.3rem); }
.mobile-menu, .mobile-apply { display: none; }
.navigation a, .footer-layout > a, .footer-link { text-decoration: none; color: #d8d6d2; font-size: .91rem; transition: color 180ms; }
.navigation a:hover, .footer-layout > a:hover, .footer-link:hover { color: var(--warm); }
.footer-link { padding: 0; background: none; border: 0; text-align: start; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .72rem 1.27rem; border: 1px solid transparent; border-radius: 2px; text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .95rem; transition: border-color 180ms, color 180ms, background-color 180ms, transform 180ms var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .72; transform: none; }
.button-outline { color: var(--white); border-color: #626168; background: transparent; }
.button-outline:hover { border-color: var(--warm); color: var(--warm); }
.button-primary { background: var(--warm); color: #211d18; min-height: 3.5rem; padding-inline: 1.55rem; }
.button-primary:hover { background: #ebddc7; }
.button-dark { color: var(--white); background: var(--night); }
.button-dark:hover { background: #353840; }
.button-outline-dark { color: var(--ink); border-color: #8b8985; background: transparent; }
.button-outline-dark:hover { background: #e1ded8; }

.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: min(45rem, calc(100svh - var(--header-height))); background: #18191c; color: var(--white); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-image { object-fit: cover; object-position: center 51%; transform: translate3d(0, var(--hero-offset, 0px), 0) scale(1.035); }
.hero-shade { z-index: -1; background: linear-gradient(90deg, #121316f5 0%, #121316e6 29%, #1213169e 57%, #12131618 82%), linear-gradient(0deg, #121316dd, transparent 32%); }
.hero-content { padding-block: clamp(4rem, 8vw, 7.3rem) clamp(5.3rem, 9vw, 8.25rem); }
.hero-content h1 { font-size: clamp(2.5rem, 5.4vw, 5.6rem); line-height: .99; }
.hero-content h1 span { color: #ead5b3; }
.hero-content p { width: min(100%, 30rem); margin-block: 1.5rem 1.9rem; color: #e8e4dc; font-size: clamp(1rem, 1.3vw, 1.19rem); }
.hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: .6rem; }
.hero-actions .button { border-radius: .3rem; }
.messenger-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 18rem); gap: .6rem; }
.messenger-actions .button { min-width: 0; padding-inline: .5rem; line-height: 1.25; text-align: center; white-space: normal; }
.messenger-link { gap: .5rem; }
.messenger-link img { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; object-fit: contain; }
.mobile-menu a.messenger-link { display: flex; align-items: center; }
.hero-content > * { animation: enter 720ms var(--ease) both; }
.hero-content p { animation-delay: 80ms; }
.hero-content .hero-actions { animation-delay: 150ms; }
@keyframes enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.hero-bottom { position: absolute; bottom: 0; inset-inline: 0; border-top: 1px solid #ffffff26; }
.hero-note { display: flex; align-items: center; min-height: 3.25rem; color: #eee8dd; font-size: .88rem; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading > p { max-width: 26rem; color: var(--muted); }
.practice-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.practice-photo { grid-area: 1 / 1; overflow: hidden; background: #b8b3aa; aspect-ratio: 8/9; border-radius: .5rem; }
.practice-layout .service-list { grid-area: 1 / 2; }
.practice-photo img { height: 100%; object-fit: cover; object-position: 50% 59%; transition: transform 700ms var(--ease); }
.practice-photo:hover img { transform: scale(1.025); }
.service-list, .faq-list { border-top: 1px solid var(--rule); }
.service-list details, .faq-list details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.service-list summary, .faq-list summary { position: relative; display: flex; align-items: center; min-height: 4.45rem; padding: 1.03rem 2.75rem 1.03rem 0; font-size: clamp(1.03rem, 1.5vw, 1.26rem); font-weight: 600; line-height: 1.35; transition: color 180ms; }
.service-list summary:hover, .faq-list summary:hover { color: #785536; }
.service-list details { transition: background-color 200ms var(--ease); }
.service-list details[open] { background: #f6f2eb; }
.service-list summary { display: grid; gap: .3rem; padding: .9rem 3.4rem .95rem .9rem; }
.service-list summary small { display: block; color: var(--muted); font-size: .82rem; font-weight: 450; }
.service-list summary::before, .service-list summary::after { right: 1.12rem; }
summary::before, summary::after { content: ""; width: .88rem; height: 1px; position: absolute; right: .4rem; top: 50%; background: currentColor; }
summary::after { transform: rotate(90deg); transition: transform 200ms var(--ease); }
details[open] summary::after { transform: rotate(0); }
.service-content, .faq-list details > p { max-width: 37rem; padding: 0 2.2rem 1.3rem 0; color: var(--muted); }
.service-content { padding-inline: .9rem 2.2rem; }
.service-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-top: .65rem; }
.service-links .text-link { margin-top: 0; }
.service-list details[open] > .service-content, .faq-list details[open] > p { animation: enter 220ms var(--ease); }

.service-hero { position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; background: var(--night); color: var(--white); }
.service-hero::after, .service-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-hero-image { z-index: -2; object-fit: cover; object-position: 68% 52%; }
.service-hero::after { content: ''; z-index: -1; background: linear-gradient(92deg, #121316 3%, #121316ed 36%, #12131699 70%, #1213164d); }
.service-hero-body { padding-block: clamp(2.2rem, 5.5vw, 5.25rem); }
.service-back { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: .5rem; color: #e8e0d2; font-size: .88rem; text-underline-offset: .22em; }
.service-hero h1 { max-width: 18ch; font-size: clamp(2.35rem, 5.8vw, 5.35rem); line-height: 1.03; text-wrap: balance; }
.service-hero p { max-width: 34rem; margin-block: 1rem 1.65rem; color: #f0eae0; font-size: clamp(1rem, 1.5vw, 1.23rem); }
.service-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); align-items: start; gap: clamp(2rem, 5.4vw, 5rem); padding-block: clamp(2.3rem, 6vw, 5.25rem); }
.service-page main h2 { font-size: clamp(1.95rem, 3vw, 3.15rem); }
.service-situations { display: grid; gap: .85rem; padding-left: 1.2rem; margin: 1.1rem 0 0; }
.service-situations li::marker { color: #835e3b; }
.service-preparation { border-left: 1px solid var(--rule); padding-left: clamp(1.25rem, 3vw, 2.55rem); }
.service-preparation p { margin-block: .9rem 1rem; color: var(--muted); }
.related-services { padding: clamp(1.4rem, 4vw, 2.7rem) 0 clamp(2.3rem, 6vw, 4rem); border-top: 1px solid var(--rule); }
.related-services ul { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.related-services a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .18em; }
.service-page .footer-layout > .wordmark { font-size: 1.35rem; }
@media (max-width: 44rem) {
  .service-hero h1 { font-size: clamp(2.05rem, 9vw, 3.75rem); }
  .service-hero::after { background: linear-gradient(90deg, #121316ed, #121316c9 58%, #12131675); }
  .service-detail { grid-template-columns: minmax(0, 1fr); }
  .service-preparation { border-left: 0; border-top: 1px solid var(--rule); padding: 1.3rem 0 0; }
}
.text-link { text-underline-offset: 4px; font-weight: 600; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .35rem; }
.text-link:hover { color: #785536; }

.process { background: #202226; color: var(--white); }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; gap: clamp(1.6rem, 4vw, 4rem); margin-top: 2.8rem; }
.process-list li { border-top: 1px solid #72695b; padding-top: 1.5rem; }
.process-list h3 { color: var(--warm); font-size: 1.17rem; font-weight: 600; margin-bottom: .65rem; }
.process-list p { max-width: 21rem; color: #e0deda; }

.application { background: #e5dfd6; }
.application-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2rem, 6vw, 6.2rem); align-items: start; }
.application-intro h2 { text-wrap: initial; }
.application-intro > p { margin-top: 1.45rem; max-width: 24rem; color: var(--muted); }
.application-channels { margin-top: 1rem; }
.application-channels .button { border-radius: .3rem; }
.application-content { min-width: 0; }
.request-form, .success-panel { background: var(--white); padding: clamp(1.15rem, 4vw, 2.55rem); border: 1px solid #d9d5cd; }
.legal-home .request-form, .legal-home .success-panel { border-radius: .6rem; box-shadow: 0 1rem 2.4rem #2f251018; }
.legal-home .form-actions .button { border-radius: .3rem; }
.request-form, .field { display: grid; gap: 1.2rem; }
.field { gap: .42rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field label { font-weight: 600; font-size: .93rem; }
.optional { color: var(--muted); font-weight: 400; }
.required-mark { color: #785536; }
.field input, .field select, .field textarea, .status-select { width: 100%; min-width: 0; min-height: 3.05rem; color: var(--ink); background-color: #fffefd; border: 1px solid #aea9a0; border-radius: 2px; padding: .67rem .75rem; }
.field input::placeholder, .field textarea::placeholder { color: #65676b; opacity: 1; }
.field textarea { resize: vertical; min-height: 7.1rem; }
.field select, .status-select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, #56585e 50%),linear-gradient(135deg,#56585e 50%,transparent 50%); background-position: calc(100% - 17px) 52%,calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field-hint { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .84rem; }
.field-hint > span:last-child { flex: none; }
[aria-invalid="true"] { border-color: #922e2c !important; }
.form-trap { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.request-form > .button { justify-self: start; }
.form-actions, .data-links { display: flex; flex-wrap: wrap; gap: .55rem .8rem; align-items: start; }
.data-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .2em; font-weight: 600; }
.data-links a:hover { color: #785536; }
.form-title { font: clamp(1.65rem, 3vw, 2.2rem)/1.12 var(--serif); }
.request-terms { border-top: 1px solid #d9d5cd; padding-top: .7rem; font-size: .87rem; }
.consent-check { position: relative; display: flex; gap: .65rem; align-items: start; min-height: 2.75rem; padding-block: .42rem; cursor: pointer; }
.consent-check input { position: absolute; inset-inline-start: 0; width: 1.12rem; height: 1.12rem; margin: .14rem 0 0; opacity: 0; }
.consent-box { display: grid; place-items: center; flex: none; width: 1.12rem; height: 1.12rem; margin-top: .14rem; border: 1.5px solid #a33132; border-radius: .23rem; background: #fffefd; }
.consent-check input:checked + .consent-box { border-color: #197248; background: #197248; }
.consent-check input:checked + .consent-box::after { content: ""; width: .3rem; height: .55rem; border: solid #fff; border-width: 0 .125rem .125rem 0; transform: translateY(-.06rem) rotate(45deg); }
.consent-check input:focus-visible + .consent-box { outline: 2px solid currentColor; outline-offset: 3px; }
@media (forced-colors: active) {
  .consent-check input { position: static; opacity: 1; flex: none; }
  .consent-box { display: none; }
}
.request-terms .data-links { color: var(--muted); padding-inline-start: 1.77rem; column-gap: 1rem; }
.review-values { display: grid; gap: .7rem; margin: 0; }
.review-values > div { display: grid; gap: .15rem; padding-bottom: .7rem; border-bottom: 1px solid #d9d5cd; }
.review-values dt { font-size: .84rem; color: var(--muted); }
.review-values dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
.case-panel { margin-block: 1.5rem; }
.case-panel p { margin: 0; }
.case-panel .form-actions > * { min-height: 2.75rem; }
.form-error, .field-error { color: #922e2c; font-size: .92rem; font-weight: 600; }
.field-error { font-size: .84rem; margin: 0; }
#submit-request:disabled { cursor: not-allowed; }
#submit-request[aria-busy="true"] { cursor: wait; }
.demo-note { color: var(--muted); font-size: .84rem; }
.application-content > .demo-note { margin-top: .75rem; }
.success-panel { min-height: 19rem; }
.success-panel > * + * { margin-top: 1rem; }
.success-panel h3 { font: 2.1rem/1.1 var(--serif); }
.success-status { color: #305e4c; font-weight: 700; }
.receipt { font-size: .91rem; color: var(--muted); }
.questions-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(2rem, 5vw, 5.5rem); }
.questions .faq-list summary { min-height: 4rem; font-size: 1.08rem; }
.footer { background: var(--night); color: var(--white); padding-block: 2rem calc(2rem + var(--safe-bottom)); }
.footer-layout { flex-wrap: wrap; }
.footer-layout > div > p { margin-top: .65rem; color: #d8d6d2; font-size: .84rem; }
.cookie-notice {
  position: fixed;
  z-index: 12;
  inset-inline: max(.65rem, env(safe-area-inset-left, 0px)) max(.65rem, env(safe-area-inset-right, 0px));
  bottom: max(.65rem, var(--safe-bottom));
  max-width: 26rem;
  margin-inline-start: auto;
  max-height: calc(100dvh - 1.3rem - var(--safe-top) - var(--safe-bottom));
  overflow: auto;
  padding: .75rem .85rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: .55rem;
  box-shadow: 0 .45rem 1.8rem #14151930;
}
.cookie-notice h2 { font: 700 1rem/1.25 var(--sans); letter-spacing: 0; }
.cookie-notice p { margin-block: .3rem .6rem; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.cookie-notice p a { color: var(--ink); text-underline-offset: .16em; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.cookie-actions .button { min-width: 0; min-height: 2.75rem; padding: .35rem .4rem; border-color: #a29e95; border-radius: .35rem; font-size: .875rem; line-height: 1.2; text-align: center; white-space: normal; }
.legal-home:has(.cookie-notice:not([hidden])) .mobile-apply { display: none; }
.has-reveal .reveal { opacity: 0; transform: translateY(20px); transition: transform 550ms var(--ease), opacity 550ms var(--ease); }
.has-reveal .reveal.is-visible, .has-reveal .reveal:focus-within { opacity: 1; transform: none; }
.legal-copy { width: min(100% - var(--gutter) * 2, 53rem); margin: 0 auto; }
.legal-copy p { margin-top: 1.2rem; overflow-wrap: anywhere; }
.legal-copy h2 { font: 1.4rem/1.3 var(--serif); letter-spacing: normal; margin-top: 1.75rem; }

.cabinet-intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.cabinet-intro h1, .legal-copy h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.06; }
.cabinet-login { max-width: 28rem; }
.cabinet-login .button { justify-self: start; }
.cabinet-area { min-height: 70vh; }
.cabinet-tools { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; border-block: 1px solid var(--rule); padding: .85rem 0; margin-bottom: 1rem; }
.cabinet-tools label { font-weight: 600; }
.cabinet-tools select { width: auto; }
.cabinet-tools .live-state { color: var(--muted); margin-left: auto; }
.lead-list { display: grid; gap: .7rem; }
.lead { background: var(--white); border: 1px solid #d7d3ca; }
.lead summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .25rem 1.25rem; padding: 1rem 2.6rem 1rem 1.1rem; position: relative; }
.lead summary::before, .lead summary::after { right: 1rem; }
.lead-title { font-size: 1.1rem; font-weight: 650; grid-column: 1; }
.lead-preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; grid-column: 1; color: var(--muted); }
.lead-status { grid-column: 2; grid-row: 1; color: #33373a; font-weight: 600; }
.lead-time { grid-column: 2; grid-row: 2; color: var(--muted); font-size: .85rem; }
.lead-content { padding: 1rem 1.1rem 1.1rem; border-top: 1px solid var(--rule); }
.lead-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.lead-meta { margin-block: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.lead-controls { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.lead-controls select { width: auto; }
.cabinet-header-actions { display: flex; gap: .55rem; }
.lead-delete { margin-top: .95rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
.lead-delete p { margin-bottom: .6rem; }
.lead-delete button { margin: 0 .55rem .35rem 0; }
.pagination { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; }
.withdraw-form { margin-top: 1.45rem; max-width: 37rem; }
.bot-section { min-height: calc(100svh - var(--header-height)); padding-block: clamp(1.2rem, 5vw, 4.25rem); }
.bot-layout {
  --bot-space: clamp(1rem, 2.5vw, 2rem);
  width: min(100% - var(--gutter) * 2, 72rem);
  display: grid;
  grid-template-columns: minmax(15rem, .82fr) minmax(0, 1.35fr);
  border: 1px solid #d9d2c7;
  border-radius: 1.15rem;
  background: #fffcf7;
  box-shadow: 0 1.5rem 4rem #29262212;
  animation: enter 420ms var(--ease) both;
}
.bot-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: end;
  min-width: 0;
  min-height: 27rem;
  padding: clamp(1.4rem, 3.6vw, 3rem);
  border-radius: 1.08rem 0 0 1.08rem;
  color: #fcf8ee;
  background: #222124;
}
.bot-photo { position: absolute; inset: 0; z-index: -2; height: 100%; object-fit: cover; object-position: 53% 55%; }
.bot-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #1415181a 15%, #14151855 45%, #141518ef 84%, #141518 100%);
}
.bot-intro h1 { font-size: clamp(2.65rem, 5.1vw, 4.65rem); line-height: .98; }
.bot-intro h1 span { color: #e8cfa5; }
.bot-intro-copy p { max-width: 22rem; margin-top: 1.15rem; color: #f0ece5; font-size: .97rem; }
.bot-panel { display: flex; flex-direction: column; min-width: 0; min-height: 35rem; }
.bot-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: var(--bot-space) var(--bot-space) .85rem;
}
.bot-header h2 { font: 650 clamp(.98rem, 1.7vw, 1.2rem)/1.2 var(--sans); letter-spacing: -.015em; }
.bot-header-copy p { margin-top: .23rem; color: #626065; font-size: .79rem; }
.bot-reset {
  min-height: 2.75rem;
  padding: .45rem .6rem;
  color: #5d4d3a;
  background: transparent;
  border: 1px solid #dcd4c7;
  border-radius: .52rem;
  line-height: 1.25;
  font-size: .78rem;
  font-weight: 650;
}
.bot-reset:hover { background: #efe8dc; }
.bot-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .4rem;
  padding: .45rem var(--bot-space) .95rem;
  border-bottom: 1px solid #eae3d9;
  list-style: none;
}
.bot-progress li {
  display: grid;
  gap: .35rem;
  color: #655d54;
  font-size: clamp(.65rem, 1.1vw, .77rem);
  font-weight: 600;
}
.bot-progress li::before {
  content: "";
  height: .2rem;
  border-radius: 1rem;
  background: #e6dfd4;
  transition: background-color 220ms;
}
.bot-progress .is-complete::before { background: #b29570; }
.bot-progress [aria-current="step"] { color: #513919; font-weight: 750; }
.bot-progress [aria-current="step"]::before { background: #75552f; }
.bot-dialog {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  min-height: 11rem;
  max-height: clamp(16rem, 44svh, 26rem);
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-gutter: stable;
  padding: var(--bot-space);
}
.bot-dialog:focus-visible { outline-offset: -3px; }
.chat-message {
  max-width: min(100%, 37rem);
  flex: none;
  padding: .86rem 1.05rem;
  border: 1px solid #e8dfd2;
  border-radius: .2rem .95rem .95rem .95rem;
  background: #f1ebe2;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  animation: bot-reply 230ms var(--ease) both;
}
.chat-receipt { border-color: #c6af8e; font-weight: 650; }
@keyframes bot-reply {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.bot-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  padding: .95rem var(--bot-space) var(--bot-space);
  border-top: 1px solid #eae3d9;
}
.bot-controls .button {
  min-height: 2.85rem;
  border-radius: .55rem;
  white-space: normal;
  text-align: left;
  line-height: 1.23;
}
.bot-controls .button-outline-dark { border-color: #c9beb0; }
.bot-controls .button-outline-dark:hover { background: #eee6da; }
.bot-controls .text-link { width: 100%; margin-top: 0; color: #654b2e; font-size: .86rem; }
.bot-controls[data-step="topic"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bot-controls[data-step="topic"] .button { justify-content: flex-start; padding-inline: .85rem; }
.bot-controls[data-step="welcome"] > .button { min-width: min(100%, 10rem); }
.bot-controls[data-step="welcome"] > .button::after { content: ""; width: .45rem; height: .45rem; margin-left: .8rem; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.telegram-demo-message { min-width: 0; margin-bottom: .8rem; }
.telegram-demo-message > img { height: auto; display: block; border-radius: .55rem; margin-bottom: .45rem; }
.telegram-demo-message .chat-message { max-width: 100%; }
.telegram-demo-keys { display: grid; gap: .3rem; margin-top: .35rem; }
.telegram-demo-keys > div { display: flex; flex-wrap: wrap; gap: .3rem; }
.telegram-demo-keys .button { flex: 1; min-width: min(100%, 9rem); min-height: 2.75rem; white-space: normal; }
#telegram-error { margin: 0 1rem 1rem; }
.bot-error { padding: 0 var(--bot-space) var(--bot-space); }
.bot-input { width: 100%; }
.bot-input input, .bot-input textarea { border-radius: .55rem; }
.bot-input textarea { min-height: 5.7rem; }
.bot-input-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }

@media (max-width: 56rem) {
  .navigation { gap: 1.2rem; }
  .hero { min-height: min(41rem, calc(100svh - var(--header-height))); }
  .hero-shade { background: linear-gradient(90deg, #121316f7 0%, #121316d9 35%, #12131675 77%, #12131630), linear-gradient(0deg, #121316a3, transparent 32%); }
  .practice-layout, .application-layout { gap: 2rem; }
}
@media (max-width: 44rem) {
  :root { --header-size: 4.05rem; }
  html { scroll-padding-bottom: calc(4.8rem + var(--safe-bottom)); }
  .header .wordmark { white-space: normal; line-height: 1.1; }
  .header-layout > .button, .mobile-menu, .cabinet-header-actions { flex: none; }
  .navigation, .header-action { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { position: relative; display: flex; align-items: center; min-height: 2.75rem; padding: .55rem 1.9rem .55rem .75rem; border: 1px solid #626168; border-radius: .28rem; font-size: .91rem; font-weight: 600; }
  .mobile-menu summary::before, .mobile-menu summary::after { right: .63rem; width: .66rem; }
  .mobile-menu nav { position: absolute; right: 0; top: calc(100% - .18rem); width: min(17rem, 100%); padding: .4rem .85rem; background: var(--night); border: 1px solid #626168; border-radius: .38rem; box-shadow: 0 14px 28px #0c0d104d; }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 2.8rem; padding: .35rem .15rem; font-size: .95rem; text-decoration: none; }
  .mobile-menu nav a + a { border-top: 1px solid var(--night-rule); }
  .hero { justify-content: flex-end; min-height: min(37rem, calc(100svh - var(--header-height))); }
  .hero-content { padding-top: clamp(8rem, 25svh, 14rem); padding-bottom: 4.3rem; }
  .hero-content h1 { font-size: clamp(1.95rem, 8.6vw, 3.65rem); text-wrap: balance; }
  .hero-content > * { animation: none; }
  .hero-image { object-position: 71% 25%; }
  .hero-shade { background: linear-gradient(180deg, #18191c26 7%, #18191c18 26%, #18191cce 56%, #18191cf5 80%, #18191c 100%), linear-gradient(90deg, #15161886, #15161828 74%); }
  .hero-content p { max-width: 25rem; margin-block: 1.05rem 1.35rem; }
  .hero-actions .button { min-height: 3rem; }
  .mobile-apply { display: block; position: fixed; z-index: 4; bottom: 0; inset-inline: 0; padding-block: .45rem calc(.45rem + var(--safe-bottom)); background: var(--night); border-top: 1px solid #4a4540; }
  .mobile-apply .button { width: 100%; min-height: 3rem; border-radius: .3rem; }
  .section-heading { display: grid; gap: .85rem; }
  .practice-layout, .application-layout, .questions-layout, .process-list { grid-template-columns: minmax(0,1fr); }
  .practice-layout .service-list { grid-area: 1 / 1; }
  .practice-photo { grid-area: 2 / 1; aspect-ratio: 2.3/1; }
  .practice-photo img { object-position: 50% 46%; }
  .section { padding-block: clamp(3.05rem, 9vw, 4.7rem); }
  .legal-home .application-layout { gap: 1.45rem; }
  .legal-home .application-intro > p { margin-top: .8rem; }
  .legal-home .field-row { grid-template-columns: minmax(0, 1fr); }
  .legal-home .form-actions { display: grid; }
  .legal-home .form-actions .button { width: 100%; white-space: normal; text-align: center; }
  .legal-home .field :is(input, select, textarea) { scroll-margin-top: .7rem; }
  .process-list { margin-top: 1.8rem; }
  .process-list li { padding-top: 1rem; }
  .footer-layout { align-items: start; flex-direction: column; gap: .9rem; }
  .cabinet-tools .live-state { margin-left: 0; }
  .lead summary { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .lead-status, .lead-time { grid-column: 1; grid-row: auto; }
  .bot-layout { width: min(100% - 2 * max(.75rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), 33rem); grid-template-columns: minmax(0, 1fr); }
  .bot-intro { min-height: 11.3rem; padding: 1.15rem; border-radius: 1.08rem 1.08rem 0 0; }
  .bot-intro::after { background: linear-gradient(90deg, #18191bf5, #18191bae 59%, #18191b30), linear-gradient(0deg, #18191b88, transparent 70%); }
  .bot-intro h1 { font-size: clamp(2.17rem, 7.5vw, 3.5rem); }
  .bot-intro-copy p { max-width: 17rem; margin-top: .6rem; font-size: .86rem; }
  .bot-panel { min-height: 0; }
  .bot-header { gap: .65rem; }
  .bot-dialog { min-height: 10rem; max-height: 34svh; }
  .chat-message { padding: .7rem .85rem; font-size: .93rem; }
  .cabinet-header-actions a { display: none; }
}
@media (max-width: 26rem) {
  .header-layout { gap: .7rem; }
  .wordmark { gap: .48rem; font-size: 1.17rem; }
  .header-action { padding-inline: .65rem; font-size: .85rem; }
  .field-row { grid-template-columns: 1fr; }
  .hero-note { font-size: .8rem; }
  .header .button { padding-inline: .7rem; font-size: .86rem; }
  .hero-content { padding-top: clamp(7rem, 22svh, 12rem); }
  .bot-controls[data-step="topic"] .button { font-size: .84rem; }
  .bot-reset { max-width: 5.1rem; }
  .withdraw-form .button { white-space: normal; }
}
@media (max-width: 36rem) {
  .hero-actions > .button-primary, .messenger-actions { width: 100%; }
  .hero-actions, .messenger-actions { gap: .45rem; }
}
@media (max-width: 44rem) and (max-height: 42rem) {
  .hero { min-height: 0; }
  .hero-content { padding-top: clamp(4rem, 16svh, 8rem); }
  .hero-shade { background: linear-gradient(180deg, #18191c2e, #18191c75 23%, #18191cdd 52%, #18191c), linear-gradient(90deg, #15161890, #15161821 75%); }
}
@media (max-width: 58rem) and (max-height: 30rem) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-content { padding-block: 3rem 4.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-image { transform: none; }
  .has-reveal .reveal { opacity: 1; transform: none; }
}
