:root {
  --beige: #f5f0eb;
  --lilac: #cfade8;
  --plum: #6b4f7a;
  --ink: #3b353b;
  --muted: #5c534c;
  --terra: #b9654b;
  --cta: #9a4e3b;
  --white: #ffffff;
  --line: rgba(59, 53, 59, 0.14);
  --soft: #f7f1f8;
  --measure: 76rem;
  --shadow: 0 18px 50px rgba(59, 53, 59, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: "Exo 2", sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cta); }
h1, h2, h3 { line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); margin: 0 0 0.8rem; }
h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
p { margin: 0 0 0.8rem; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  padding: 0.5rem 0.8rem;
}
.skip:focus { top: 0.5rem; }
.wrap { width: min(var(--measure), calc(100% - 2.4rem)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--beige);
  border-bottom: 2px solid var(--ink);
}
.header-bar { min-height: 4.6rem; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 0.65rem; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.03em; }
.mark { height: 2.45rem; width: auto; flex: none; display: block; }
.footer .mark { filter: none; }
.desk-nav { display: flex; gap: 1.35rem; align-items: center; }
.desk-nav > a, .has-mega > a { color: var(--ink); text-decoration: none; font-weight: 700; }
.desk-nav > a:hover, .has-mega > a:hover { color: var(--cta); }
.has-mega { position: static; }
.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.5rem max(1.2rem, calc((100% - 76rem) / 2)) 1.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.mega a { color: var(--ink); text-decoration: none; font-weight: 700; }
.mega ul { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.mega li a { font-weight: 400; color: var(--muted); }
.mega li a:hover { color: var(--cta); }
.header-actions { display: flex; gap: 0.8rem; align-items: center; }
.phone { color: var(--ink); font-weight: 700; text-decoration: none; }
.button, .menu-button {
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  background: var(--cta);
  color: white;
  border-radius: 0.55rem;
  min-height: 2.8rem;
  padding: 0.55rem 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:hover { background: #874332; color: white; }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--beige); }
.button-small { min-height: 2.4rem; padding: 0.4rem 0.9rem; }
.menu-button { display: none; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
button:disabled { opacity: 0.6; }
.mobile-panel { border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; background: var(--white); }
.mobile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.mobile-grid a { color: var(--ink); font-weight: 700; text-decoration: none; }
.mobile-grid ul { margin: 0.45rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.mobile-grid li a { font-weight: 400; color: var(--muted); }

.hero { padding: 2.1rem 0 1.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.4rem; align-items: start; }
.hero h1 { font-size: clamp(2.7rem, 4.6vw, 4.6rem); max-width: 12ch; }
.lede { font-size: 1.18rem; max-width: 38rem; color: var(--ink); }
.eyebrow { color: var(--plum); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.7rem; }
.fine { color: var(--muted); font-size: 0.92rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0 1.4rem; }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 0 0 1rem; padding: 0; }
.hero-facts li { border-top: 2px solid var(--terra); padding-top: 0.55rem; }
.hero-facts strong { display: block; font-size: 1.7rem; letter-spacing: -0.04em; }
.hero-facts span { color: var(--muted); font-size: 0.92rem; }

.helper {
  background: #2a262b;
  color: #f5f0eb;
  border-radius: 0.7rem;
  padding: 1.15rem 1.15rem 1rem;
}
.helper h2 { font-size: 1.45rem; color: #f5f0eb; }
.helper .step-label { margin: 0.15rem 0 0.4rem; font-size: 0.82rem; font-weight: 700; color: #cfc6be; }
.helper .choice, .helper .situation { background: #3a3438; color: #f5f0eb; border-radius: 0.4rem; font-weight: 600; }
.helper .choice.is-on, .helper .situation.is-on { background: var(--cta); color: white; box-shadow: none; }
.helper .helper-result { background: #1f1c1f; color: #f5f0eb; }
.helper a, .helper .fine { color: #e7d3f4; }
.helper a:hover { color: white; }
.choice-list, .situation-list { display: grid; gap: 0.4rem; margin-bottom: 0.7rem; }
.choice, .situation, .board-tabs button, .timeline button, .myth {
  font: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  background: var(--beige);
  border: 0;
  border-radius: 0.85rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
}
.choice.is-on, .situation.is-on { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--plum); }
.helper-result { background: var(--beige); border-radius: 0.9rem; padding: 0.85rem; margin: 0.2rem 0 0.6rem; }
.helper-result p { margin-bottom: 0.6rem; }

.anchor-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.anchor-nav .wrap { display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.75rem 0; }
.anchor-nav a { color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.anchor-nav a:hover { color: var(--cta); }

.section { padding: 2.5rem 0; }
.section-soft { background: rgba(207, 173, 232, 0.18); }
.section-head { max-width: 40rem; margin-bottom: 1.4rem; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; max-width: none; }
.subhead { margin-top: 2.4rem; }
.text-link { color: var(--plum); font-weight: 700; }

.board-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.board-tabs button.is-on { background: var(--ink); color: var(--beige); }
.board-panel { display: none; background: var(--white); border-radius: 1.3rem; padding: 1.2rem; }
.board-panel.is-on { display: block; }
.board-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.board-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.board-links a, .index-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  row-gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid rgba(59, 53, 59, 0.12);
  border-radius: 0.55rem;
  padding: 0.9rem 1rem;
}
.board-links a:hover, .index-list a:hover { background: var(--soft); }
.board-links span, .index-list span, .case-tile span, .steps span, .chapters span { color: var(--terra); font-weight: 700; }
.board-links strong, .index-list strong { color: var(--ink); }
.board-links em, .index-list em { grid-column: 2; color: var(--muted); font-style: normal; font-size: 0.95rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.timeline li { background: var(--white); border-radius: 0.55rem; padding: 0.9rem 1rem 1rem; }
.timeline button { background: transparent; border-radius: 0; border-bottom: 2px solid var(--line); padding: 0 0 0.7rem; font-weight: 700; display: flex; flex-direction: column; gap: 0.2rem; color: inherit; }
.timeline li.is-on { background: var(--ink); color: #f5f0eb; }
.timeline li.is-on button { border-color: var(--terra); color: #f5f0eb; }
.timeline li.is-on p { color: #efe8e2; }
.timeline span { color: var(--terra); }
.timeline p { margin: 0.7rem 0 0; }
.faq-split { display: grid; grid-template-columns: minmax(16rem, 0.9fr) 1.1fr; gap: 0.7rem; align-items: start; }
.faq-nav { display: grid; gap: 0.35rem; }
.faq-nav button { font: inherit; font-weight: 600; text-align: left; color: inherit; background: var(--white); border: 0; border-left: 3px solid transparent; border-radius: 0.35rem; padding: 0.75rem 0.9rem; cursor: pointer; }
.faq-nav button.is-on { border-left-color: var(--terra); }
.faq-pane { display: none; background: var(--white); border-radius: 0.55rem; padding: 1.15rem 1.25rem; }
.faq-pane.is-on { display: block; }

.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.limits-dark, .check-list { margin: 0; }
.limits > div { background: var(--white); border-radius: 1.3rem; padding: 1.4rem 1.5rem; }
.limits-dark { background: var(--ink); color: var(--beige); }
.limits-dark .eyebrow { color: var(--lilac); }
.check-list, .limits-dark ul, .doc-list { padding-left: 1.1rem; }
.check-list li, .limits-dark li, .doc-list li { margin: 0 0 0.55rem; }

.myths { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.myth { display: grid; gap: 0.25rem; padding: 1rem 1.05rem; background: var(--white); }
.myth span { color: var(--plum); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.myth em { color: var(--muted); font-style: normal; }
.myth.is-on { box-shadow: inset 0 0 0 1.5px var(--terra); background: var(--white); }
.myths-more { grid-column: 1 / -1; }

.magazine { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; align-items: stretch; }
.magazine .story:last-child:nth-child(odd) { grid-column: 1 / -1; }
.story, .case-tile, .card {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  color: inherit;
  text-decoration: none;
  display: block;
}
.story:hover, .case-tile:hover, .card:hover { box-shadow: var(--shadow); }
.story time { color: var(--plum); font-size: 0.85rem; font-weight: 700; }
.story h2, .story h3, .case-tile h2, .case-tile h3 { margin: 0.35rem 0 0.4rem; }
.story p, .case-tile p, .card p { color: var(--muted); margin: 0; }
.story-lead { background: var(--ink); color: var(--beige); }
.story-lead time, .story-lead p { color: #d9cfc6; }
.case-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.cases-head { margin-top: 2.4rem; }
.case-tile span { display: block; font-size: 0.9rem; }

.page-intro { padding: 2.2rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-intro .lede { margin-bottom: 0.4rem; }
.page-body { padding: 2rem 0 3.4rem; }
.crumbs { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cta); }
.group-block { margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem; }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.index-list a { background: var(--white); }

.service-layout, .contacts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20.5rem; gap: 1.4rem; align-items: start; padding: 2rem 0 1rem; }
.service-aside { position: sticky; top: 5.6rem; }
.aside-card, .panel, .note, .form {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 1.15rem 1.2rem;
}
.panel-warn { background: #f8ebe6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.4rem; }
.steps, .chapters { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.8rem; }
.steps li, .chapters li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.7rem; background: var(--white); border-radius: 1rem; padding: 0.9rem 1rem; }
.steps p, .chapters p { margin: 0.25rem 0 0; }
.reading { max-width: 44rem; padding: 2rem 0 3.4rem; }
.prose h2 { margin-top: 1.8rem; }
.prose a, .faq a, .check a { color: var(--plum); font-weight: 700; }
.prose a:hover, .faq a:hover, .check a:hover { color: var(--cta); }
.flag { display: inline-block; background: var(--soft); color: var(--plum); padding: 0.35rem 0.7rem; border-radius: 999px; font-weight: 700; }
.faq details { background: var(--white); border-radius: 0.9rem; padding: 0.85rem 1rem; margin-bottom: 0.5rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0 0 1.2rem; }
.facts div { background: var(--white); border-radius: 0.9rem; padding: 0.85rem 1rem; }
.facts dt { color: var(--muted); font-size: 0.82rem; }
.facts dd { margin: 0.15rem 0 0; font-weight: 700; }
.entry-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.8rem; }
.entry { background: var(--white); border-radius: 1.1rem; padding: 1.1rem 1.2rem; }
.entry a { color: var(--ink); font-size: 1.25rem; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.entry p { color: var(--muted); margin: 0.4rem 0 0; }

.form { display: grid; gap: 0.4rem; }
.form-section .form { max-width: 40rem; }
input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: var(--beige);
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--terra); background: var(--white); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.3rem; }
.check input { width: auto; margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; }
.search-line { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin: 0 0 1rem; }
.search-line input { max-width: 22rem; background: var(--white); }

.band { background: var(--ink); color: var(--beige); padding: 3.6rem 0; }
.band .eyebrow { color: var(--lilac); }
.band .form { background: transparent; padding: 0; max-width: 38rem; color: inherit; }
.band input, .band textarea { background: #2c272c; color: var(--beige); }
.band a { color: var(--lilac); }
.band-note { width: min(var(--measure), calc(100% - 2.4rem)); margin: 0 auto; padding: 3rem 0; }

.footer { background: #2a262b; color: #efe8e2; padding: 2.6rem 0 2.2rem; }
.footer a { color: #efe8e2; text-decoration: none; }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1fr; gap: 1.5rem; }
.footer-grid a, .footer p { display: block; margin: 0 0 0.4rem; }
.footer-label { color: var(--lilac); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer .brand { color: #efe8e2; margin-bottom: 0.7rem; }
.footer .search-line { display: grid; margin-top: 0.8rem; }
.footer input { background: #3b353b; color: #efe8e2; max-width: none; }
.cookie {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 0.9rem max(1.2rem, calc((100% - 76rem) / 2));
}
.cookie p { margin: 0; }

.admin { padding: 1.4rem 0 3rem; }
.admin h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.admin .form { max-width: 42rem; }
.admin.wrap > .form { max-width: 26rem; }
.admin-help { max-width: 42rem; color: var(--muted); }
.desk { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.side {
  position: sticky;
  top: 1rem;
  background: var(--white);
  border-radius: 1.2rem;
  padding: 0.85rem;
}
.side-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 0.55rem; align-items: center; padding: 0.35rem 0.55rem 0.2rem; }
.side-brand .mark { height: 2.1rem; grid-row: span 2; }
.side-brand span { grid-column: 2; }
.side-brand span, .side-group { color: var(--plum); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.side-group { margin: 0.85rem 0.55rem 0.25rem; }
.side > div > button, .side-links button {
  font: inherit;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 0.7rem;
  min-height: 2.3rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}
.side > div > button.is-on { background: var(--ink); color: var(--beige); }
.side-links { display: grid; gap: 0.2rem; margin-top: 1rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.side-links a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 0.35rem 0.6rem; }
.desk-main .form { max-width: 46rem; }
.admin-form fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; }
.admin-form legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.35rem; }
.admin-form label, .admin.wrap label { display: grid; gap: 0.25rem; font-weight: 700; margin-top: 0.55rem; }
.field-hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.desk-main .form .button { justify-self: start; }
.editor-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.editor-split { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.editor-split .record-list { max-height: calc(100vh - 9rem); overflow: auto; margin: 0; padding-right: 0.15rem; }
.editor-card { position: sticky; top: 0.8rem; max-height: calc(100vh - 1.6rem); overflow: auto; max-width: none; }
.editor-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; }
.editor-card-head .button { flex: none; white-space: nowrap; }
.editor-card-head h2 { margin: 0; font-size: 1.35rem; }
.editor-actions { position: sticky; bottom: 0; background: var(--white); padding: 0.7rem 0 0.15rem; }
.editor-empty { background: var(--white); border-radius: 1.2rem; padding: 1.2rem; color: var(--muted); margin: 0; }
.record-list { display: grid; gap: 0.45rem; margin: 1rem 0; align-content: start; }
.record.is-on { box-shadow: inset 0 0 0 2px var(--terra); }
.record {
  font: inherit;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  text-align: left;
  background: var(--white);
  color: var(--ink);
  border: 0;
  border-radius: 0.95rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.record strong { display: block; }
.record em { display: block; color: var(--muted); font-style: normal; font-weight: 400; font-size: 0.92rem; }
.record-state { color: var(--plum); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.grid-table { width: 100%; border-collapse: collapse; background: white; border-radius: 0.9rem; }
.grid-table td, .grid-table th { border-bottom: 1px solid var(--line); text-align: left; padding: 0.7rem 0.75rem; vertical-align: top; font-size: 0.95rem; }
.grid-table th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.list { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

@media (max-width: 980px) {
  .hero-grid, .limits, .magazine, .service-layout, .contacts-layout, .footer-grid, .board-tabs, .timeline, .case-row, .myths { grid-template-columns: 1fr 1fr; }
  .hero-grid, .service-layout, .contacts-layout, .limits { grid-template-columns: 1fr; }
  .story-lead { grid-row: auto; min-height: 0; }
  .service-aside { position: static; }
  .board-tabs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .desk-nav, .phone { display: none; }
  .menu-button { display: inline-flex; }
  .hero h1 { max-width: none; }
  .desk, .editor-split { grid-template-columns: 1fr; }
  .side, .editor-card { position: static; max-height: none; }
  .editor-split.is-editing .record-list { display: none; }
  .hero-facts, .board-links, .split, .facts, .timeline, .case-row, .myths, .magazine, .footer-grid, .faq-split { grid-template-columns: 1fr; }
  .header-actions { gap: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header { backdrop-filter: none; }
}
