/* ===== LawSide — фірмові токени ===== */
:root {
  --navy: #0B2742;
  --navy-2: #0F3254;
  --navy-3: #16406A;
  --gold: #D9AE79;
  --gold-2: #C89A62;
  --ivory: #F7F3EC;
  --white: #FFFFFF;
  --ink: #0B2742;
  --muted: #5B6B7D;
  --line: rgba(11, 39, 66, .12);
  --line-dark: rgba(255, 255, 255, .12);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 46px); max-width: 18ch; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; margin-top: 48px; }
.muted { opacity: .7; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #E4BD8C; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--full { width: 100%; }

/* ===== Logo ===== */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 22px; letter-spacing: .06em;
  color: var(--white); text-decoration: none;
}
.logo__mark { width: 22px; height: 33px; fill: var(--gold); }
.logo--sm { font-size: 18px; }
.logo--sm .logo__mark { width: 18px; height: 27px; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(11, 39, 66, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.burger { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, var(--navy-3) 0%, var(--navy) 55%);
  color: var(--white);
  padding: 150px 0 110px;
}
.hero__bg-mark {
  position: absolute; right: -80px; bottom: -120px; width: 520px; height: 770px;
  fill: var(--gold); opacity: .05; pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.78); max-width: 34em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { list-style: none; padding: 0; margin: 56px 0 0; display: flex; gap: 48px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--gold); }
.hero__facts span { font-size: 14px; color: rgba(255,255,255,.6); }

/* Mini chat preview */
.mini-chat {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  border-radius: 22px; padding: 22px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  display: flex; flex-direction: column; gap: 12px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.mini-chat__head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); margin-bottom: 4px; }
.mini-chat__head small { display: block; color: #7FD3A0; font-size: 13px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--navy); border: 1px solid var(--gold);
  display: grid; place-items: center;
}
.avatar svg { width: 14px; height: 21px; fill: var(--gold); }
.bubble { padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; max-width: 88%; }
.bubble--user { align-self: flex-end; background: var(--gold); color: var(--navy); border-bottom-right-radius: 4px; }
.bubble--bot { align-self: flex-start; background: rgba(255,255,255,.08); color: var(--white); border-bottom-left-radius: 4px; }
.bubble--action { border: 1px solid var(--gold); background: transparent; color: var(--gold); font-weight: 500; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--soft { background: var(--ivory); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 40px rgba(11,39,66,.08); }
.card__num { font-family: var(--serif); color: var(--gold-2); font-size: 15px; display: block; margin-bottom: 28px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 36px 32px; border: 1px solid var(--line-dark); border-radius: var(--radius); position: relative; }
.step__num {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-size: 20px; color: var(--gold);
  margin-bottom: 24px;
}
.step p { color: rgba(255,255,255,.7); margin: 0; font-size: 16px; }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.about__mark {
  aspect-ratio: 4/5; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
}
.about__mark svg { width: 34%; height: 50%; fill: var(--gold); }
.about p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230B2742' stroke-width='2'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details:first-of-type { margin-top: 32px; border-top: 1px solid var(--line); }
summary {
  font-family: var(--serif); font-size: 21px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold-2); font-size: 26px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 14px 0 0; }

/* Contact & form */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; flex-direction: column; font-size: 18px; }
.contact__list span { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--gold); }

.lead-form {
  background: var(--white); color: var(--ink); padding: 36px; border-radius: 22px;
  display: grid; gap: 18px;
}
.lead-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.lead-form input:not([type=checkbox]), .lead-form textarea, .chat-lead input {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ivory); color: var(--ink); width: 100%;
  transition: border-color .2s, background .2s;
}
.lead-form input:focus, .lead-form textarea:focus, .chat-lead input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.lead-form textarea { resize: vertical; }
.consent { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--navy); }
.form-status { margin: 0; font-size: 15px; min-height: 1em; }
.form-status.ok { color: #1F7A4D; }
.form-status.err { color: #B23A3A; }

/* Footer */
.footer { background: #081D32; color: rgba(255,255,255,.6); padding: 40px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__legal { margin: 0; flex: 1; }


/* ===== AI chat widget ===== */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 14px; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--navy); color: var(--white); font-weight: 500;
  box-shadow: 0 14px 40px rgba(11,39,66,.35);
  transition: transform .2s, opacity .2s;
}
.chat-fab svg { width: 18px; height: 27px; fill: var(--gold); }
.chat-fab:hover { transform: translateY(-2px); }
.chat-open .chat-fab { opacity: 0; pointer-events: none; }

.chat {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 400px; height: min(640px, calc(100vh - 48px));
  background: var(--white); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(11,39,66,.35);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(20px) scale(.98); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.chat-open .chat { opacity: 1; transform: none; pointer-events: auto; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--navy); color: var(--white); }
.chat__head small { display: block; color: rgba(255,255,255,.6); font-size: 13px; }
.chat__close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); font-size: 18px; padding: 8px; }
.chat__body { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--ivory); }
.chat__body .bubble--bot { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(11,39,66,.06); }
.chat__body .bubble--user { background: var(--navy); color: var(--white); }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chat__chips { display: flex; gap: 8px; padding: 10px 18px 0; overflow-x: auto; background: var(--ivory); scrollbar-width: none; }
.chat__chips button {
  flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--gold); background: var(--white); color: var(--navy);
}
.chat__chips button:hover { background: var(--gold); }
.chat__input { display: flex; gap: 8px; padding: 14px 18px; background: var(--ivory); }
.chat__input input {
  flex: 1; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); min-width: 0;
}
.chat__input input:focus { outline: none; border-color: var(--gold); }
.chat__input button { width: 46px; flex: none; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); font-size: 16px; }
.chat__note { margin: 0; padding: 0 18px 12px; font-size: 12px; color: var(--muted); background: var(--ivory); text-align: center; }

.chat-lead { align-self: stretch; background: var(--white); border: 1px solid var(--gold); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.chat-lead b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.chat-lead input { padding: 11px 14px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .mini-chat { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Tablet ===== */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__chat { max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { gap: 48px; }
}

/* ===== Mobile menu (tablet & phone) ===== */
@media (max-width: 1000px) {
  .header__inner { gap: 12px; }
  .header__cta { margin-left: auto; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; background: none; border: 0; padding: 10px;
  }
  .burger span { height: 1.5px; background: var(--white); transition: transform .3s; }
  .nav-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h, 76px) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy); padding: 8px 16px 24px; margin: 0;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav-open .nav { transform: none; }
  .nav-open .header { background: var(--navy); }
  .nav a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--serif); }

}

/* ===== Mobile ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .header__inner { height: 64px; gap: 12px; }
  .header { --header-h: 64px; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .logo { font-size: 18px; gap: 9px; }
  .logo__mark { width: 18px; height: 27px; }

  .hero { padding: 110px 0 72px; }
  .hero .lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .hero__bg-mark { width: 300px; height: 444px; right: -90px; bottom: -60px; }
  .hero__facts b { font-size: 26px; }
  .hero__facts span { font-size: 12px; max-width: 10ch; }
  .hero__chat { display: none; }

  .cards, .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .card { padding: 24px; }
  .card__num { margin-bottom: 16px; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__mark { aspect-ratio: 16/9; }
  .lead-form { padding: 24px; }
  summary { font-size: 18px; }

  .chat-fab { right: 16px; bottom: 16px; }
  .chat { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===== Services: три напрями ===== */
.section__lead { color: var(--muted); max-width: 40em; font-size: 18px; }
.pillars { display: grid; gap: 20px; margin-top: 48px; }
.pillar {
  display: grid; grid-template-columns: .9fr 1.4fr; gap: 48px;
  padding: 40px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s;
}
.pillar:hover { border-color: var(--gold); box-shadow: 0 20px 40px rgba(11,39,66,.06); }
.pillar__head .card__num { margin-bottom: 18px; }
.pillar__head h3 { font-size: 30px; }
.pillar__head p { color: var(--muted); margin: 0; }
.pillar__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start;
}
.pillar__list li {
  padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px;
}
.pillar__list li::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 8px;
  border: 1px solid var(--gold-2); transform: rotate(45deg);
}

/* ===== Угода під ключ ===== */
.deal { background: var(--ivory); border-top: 1px solid var(--line); padding: 80px 0; }
.deal__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.deal h2 { max-width: none; margin-bottom: 12px; }
.deal p:not(.eyebrow) { color: var(--muted); max-width: 44em; margin: 0; }
.deal .btn { flex: none; background: var(--navy); color: var(--white); }
.deal .btn:hover { background: var(--navy-3); }
#services h2 { max-width: 22ch; }

@media (max-width: 1000px) {
  .pillar { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .section__lead { font-size: 16px; }
  .pillars { margin-top: 32px; gap: 12px; }
  .pillar { padding: 24px; }
  .pillar__head h3 { font-size: 24px; }
  .pillar__list { grid-template-columns: 1fr; }
  .pillar__list li { font-size: 15px; padding: 11px 0 11px 22px; }
  .pillar__list li::before { top: 19px; }
  .deal { padding: 56px 0; }
  .deal__inner { flex-direction: column; align-items: stretch; gap: 28px; }
}

/* ===== Контакти: телефон і месенджери ===== */
.header__phone { margin-left: 8px; color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.header__phone:hover { color: var(--gold); }
.contact__phone { font-family: var(--serif); font-size: 30px; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.messenger {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-dark);
  color: var(--white); text-decoration: none; font-size: 15px;
  transition: border-color .2s, color .2s, background .2s;
}
.messenger svg { width: 18px; height: 18px; fill: var(--gold); }
.messenger:hover { border-color: var(--gold); background: rgba(217,174,121,.08); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer__links a:hover { color: var(--gold); }

@media (max-width: 1180px) { .header__phone { display: none; } }
@media (max-width: 760px) {
  .contact__phone { font-size: 26px; }
  .messengers { display: grid; grid-template-columns: 1fr 1fr; }
  .messenger { justify-content: center; }
}

.chat__body .bubble { white-space: pre-line; }

/* ===== Онлайн-запис ===== */
.booking {
  margin-top: 40px; background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; padding: 36px; display: grid; gap: 36px;
}
.booking__title { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 18px; }
.booking__title span {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold-2); color: var(--gold-2);
  display: grid; place-items: center; font-size: 15px; flex: none;
}
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.format {
  text-align: left; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--ivory); color: var(--ink); display: grid; gap: 4px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.format b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.format small { color: var(--muted); font-size: 14px; }
.format em { font-style: normal; font-weight: 600; margin-top: 8px; }
.format:hover { border-color: var(--gold); }
.format[aria-checked="true"] { border-color: var(--navy); background: var(--white); box-shadow: inset 0 0 0 1px var(--navy); }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day {
  flex: none; width: 72px; padding: 10px 0; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); display: grid; gap: 2px; text-align: center;
}
.day small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.day:hover { border-color: var(--gold); }
.day[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.day[aria-pressed="true"] small { color: rgba(255,255,255,.7); }

.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.time {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums;
}
.time:hover { border-color: var(--gold); }
.time[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.booking__hint { color: var(--muted); font-size: 15px; margin: 12px 0 0; min-height: 1em; }

.booking__form { display: grid; gap: 16px; }
.booking__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.booking__form input:not([type=checkbox]), .booking__form textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ivory); color: var(--ink); width: 100%;
}
.booking__form input:focus, .booking__form textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.booking__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking__summary { margin: 0; padding: 14px 18px; background: var(--ivory); border-radius: 12px; border-left: 3px solid var(--gold); }
.booking__form .btn { justify-self: start; }

.booking__done { text-align: center; padding: 20px 0; }
.booking__done svg { width: 36px; height: 54px; fill: var(--gold); margin-bottom: 16px; }
.booking__done h3 { font-size: 28px; }
.booking__done p { color: var(--muted); max-width: 32em; margin: 0 auto 8px; }
.booking__done a { color: var(--navy); font-weight: 600; }

@media (max-width: 760px) {
  .booking { padding: 20px; gap: 28px; margin-top: 28px; }
  .formats, .booking__fields { grid-template-columns: 1fr; }
  .format { padding: 16px 18px; }
  .booking__form .btn { justify-self: stretch; }
}

[hidden] { display: none !important; }
.booking > * { min-width: 0; }

/* ===== Для кого (перший екран) ===== */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; max-width: 640px; }
.audience a {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-dark); text-decoration: none; color: var(--white);
  transition: border-color .2s, background .2s;
}
.audience a:hover { border-color: var(--gold); background: rgba(217,174,121,.06); }
.audience b { font-family: var(--serif); font-weight: 500; font-size: 20px; display: flex; justify-content: space-between; }
.audience b::after { content: "→"; color: var(--gold); font-family: var(--sans); font-size: 16px; }
.audience span { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.4; }

/* ===== Пакети для бізнесу ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
}
.plan h3 { font-size: 28px; margin-bottom: 4px; }
.plan__for { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.plan__price { font-family: var(--serif); font-size: 36px; margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan__price small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 28px; position: relative; font-size: 15px; line-height: 1.5; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23C89A62' stroke-width='2'/%3E%3C/svg%3E") center/100% no-repeat;
}
.plan .btn { width: 100%; }
.plan--featured { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 30px 60px rgba(11,39,66,.25); }
.plan--featured .plan__for, .plan--featured .plan__price small { color: rgba(255,255,255,.65); }
.plan--featured .plan__price { border-color: var(--line-dark); color: var(--gold); }
.plan--featured li::before { background-color: rgba(255,255,255,.1); }
.plan__badge {
  position: absolute; top: -13px; left: 32px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.btn--ghost-dark { border-color: var(--line); color: var(--navy); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--navy); }
.plans__note { margin: 28px 0 0; color: var(--muted); text-align: center; }
.plans__note a { color: var(--navy); font-weight: 500; }

/* ===== Податковий адвокат ===== */
.tax { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tax h2 { max-width: 14ch; }
.tax__lead { color: rgba(255,255,255,.75); font-size: 18px; }
.tax__cases { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tax__cases li { padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 14px; color: rgba(255,255,255,.85); }
.tax__steps { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: 22px; padding: 36px; }
.tax__steps h3 { font-size: 24px; margin-bottom: 20px; }
.tax__steps ol { list-style: none; padding: 0; margin: 0; counter-reset: t; display: grid; gap: 20px; }
.tax__steps li { counter-increment: t; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; }
.tax__steps li::before {
  content: counter(t); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif);
}
.tax__steps li span { color: rgba(255,255,255,.65); font-size: 15px; }
.tax__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .tax { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .audience { grid-template-columns: 1fr; gap: 8px; margin-top: 32px; }
  .audience a { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; padding: 14px 16px; }
  .audience b { font-size: 18px; }
  .audience b::after { content: none; }
  .plans { margin-top: 32px; gap: 28px; }
  .plan { padding: 26px 22px; }
  .tax__steps { padding: 24px 20px; }
  .tax__cta .btn { flex: 1 1 100%; }
}

/* ===== Кримінальний захист ===== */
.audience { grid-template-columns: repeat(2, 1fr); }
.crim { background: #081D32; }
.crim h2 { max-width: 16ch; }
.crim__lead { color: rgba(255,255,255,.75); font-size: 18px; max-width: 40em; }
.crim__urgent {
  margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(217,174,121,.14), rgba(217,174,121,.04));
}
.crim__urgent b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 4px; }
.crim__urgent span { color: rgba(255,255,255,.75); }
.crim__urgent .btn { flex: none; }
.crim__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.crim__grid article { background: #081D32; padding: 26px 28px; }
.crim__grid h3 { font-size: 22px; margin-bottom: 8px; color: var(--gold); }
.crim__grid p { margin: 0; color: rgba(255,255,255,.7); font-size: 15px; }

@media (max-width: 1000px) {
  .crim__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .audience { grid-template-columns: 1fr; }
  .crim__lead { font-size: 16px; }
  .crim__urgent { flex-direction: column; align-items: stretch; padding: 20px; }
  .crim__urgent b { font-size: 21px; }
  .crim__grid { grid-template-columns: 1fr; }
  .crim__grid article { padding: 20px; }
}
