/*
Theme Name: B2I Service — Розлучення онлайн
Description: Самостійний лендинг для піддомену B2I Service.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: b2i-divorce
*/
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #183234; background: #f9f7f1; font: 16px/1.6 system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid #be8b49; outline-offset: 4px; }
.landing { --paper: #f9f7f1; --wash: #e9efea; --line: #cbd7cf; --gold: #eac690; color: var(--ink); background: var(--paper); }
.shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: clamp(55px, 8vw, 115px); }
.compact { padding-block: clamp(36px, 5vw, 74px); }
section[id] { scroll-margin-top: 86px; }
h1, h2, h3, p { margin-block: 0 1rem; }
h1, h2, .price { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.07; }
h1 { font-size: clamp(44px, 6.3vw, 90px); letter-spacing: -.045em; }
h2 { font-size: clamp(32px, 4vw, 57px); letter-spacing: -.032em; margin-bottom: 1.9rem; }
h3 { font-size: 1.2rem; line-height: 1.3; }
.intro { font-size: clamp(17px, 1.55vw, 22px); max-width: 38em; }
.preview { padding: 8px 20px; text-align: center; background: var(--gold); color: #173133; }
.topbar { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .topbar { top: 32px; }
.bar, .actions, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bar { min-height: 76px; }
.wrap { flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; white-space: nowrap; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; letter-spacing: .09em; }
.bar nav { display: flex; gap: clamp(12px, 2.5vw, 36px); }
.bar nav a, .header-phone { text-decoration: none; font-size: .92rem; white-space: nowrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; background: var(--accent); color: white; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center; }
.button:hover { filter: brightness(.9); }
.button:disabled { opacity: .65; cursor: progress; }
.hero, .consult, .footer { color: var(--paper); background: var(--ink); }
.hero { overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(28px, 6vw, 90px); padding-block: clamp(48px, 8vw, 118px); }
.hero .intro { color: #e0e7de; }
.hero-art { height: clamp(330px, 40vw, 540px); position: relative; overflow: hidden; background: radial-gradient(ellipse at 65% 20%, #f7d3a2 0%, #587d6d 25%, #284841 45%, #142d2f 73%); border: 1px solid #a3ac8a; border-radius: 48% 48% 8px 8px / 40% 40% 8px 8px; }
.hero-art::before, .hero-art::after { content: ''; position: absolute; inset: 14% 14% -10%; border: 1px solid #eed5ab93; border-radius: 50% 50% 0 0 / 36% 36% 0 0; background: linear-gradient(115deg, #0c2627ba, #12383800 60%, #142a2a77); }
.hero-art::after { inset: 24% 25% -12%; transform: rotate(-12deg); }
.hero-art.has-image::before, .hero-art.has-image::after { display: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero .lead-form { max-width: 390px; margin-block: 24px 12px; }
.hero .button, .consult .button { background: var(--gold); color: #173133; }
.quiet { display: inline-block; margin-top: 8px; font-weight: 650; }
.points, .grid, .split, .footer-grid { display: grid; gap: 20px; }
.points { grid-template-columns: repeat(4, 1fr); padding-block: 30px; border-bottom: 1px solid var(--line); }
.points article { border-inline-start: 1px solid var(--line); padding-inline: 16px 6px; }
.points p, .card p { margin-bottom: .65rem; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(25px, 7vw, 110px); }
.wash { background: var(--wash); }
.card, .discount { padding: clamp(16px, 2vw, 28px); border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; min-width: 0; overflow-wrap: anywhere; }
.card .button { margin-top: 8px; }
.discount { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: #f4ead7; }
.discount h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: .5rem; }
.switches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.switches button, .arrows button { padding: 9px 15px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-weight: 700; }
.switches [aria-pressed="true"] { background: var(--ink); color: white; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 15px 26px 15px 0; font-weight: 700; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; font-size: 1.2rem; }
details[open] > summary::after { content: '−'; }
summary small { display: block; font-weight: 500; }
.faq { max-width: 760px; margin-top: 34px; }
.faq h3 { margin-bottom: .25rem; }
.document-list ul { padding-left: 22px; }
.steps { padding-left: 0; counter-reset: step; }
.steps li { list-style: none; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--accent); font-size: 1.4rem; display: block; margin-bottom: .65rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 33.33%); gap: 14px; overflow-x: auto; padding: 3px 3px 15px; scroll-snap-type: x mandatory; }
.rail > article { scroll-snap-align: start; }
.rail img { max-height: 340px; object-fit: contain; width: 100%; }
.section-head h2 { margin-bottom: 0; }
.section-head { margin-bottom: 20px; }
.arrows { display: flex; gap: 6px; }
.situations { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 16px; }
.situations .switches { flex-direction: column; }
.situations button { text-align: left; }
.situation { min-height: 210px; }
.price-card { display: flex; flex-direction: column; }
.price-card .button { margin-top: auto; }
.price-card ul { padding-left: 18px; }
.price-card.featured { background: var(--ink); color: white; }
.price-card.featured .button { background: var(--gold); color: #173133; }
.price { font-size: clamp(25px, 2.3vw, 38px); }
.portrait { border-radius: 12px; max-height: 520px; object-fit: cover; }
.lead-form { display: grid; gap: 10px; }
.lead-form label { font-size: .94rem; }
.lead-form input:not([type=checkbox]), .lead-form textarea { display: block; width: 100%; border: 1px solid #a7b6ae; border-radius: 6px; padding: 8px 10px; background: #fffdf8; color: #183234; }
.lead-form input:not([type=checkbox]) { min-height: 45px; }
.consent { display: flex; align-items: start; gap: 8px; }
.consent input { margin-top: .4em; }
.feedback { margin: 0; }
.feedback:empty { display: none; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.footer { border-top: 1px solid #ffffff49; padding: 40px 0; }
.footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-grid div > a, .footer-grid nav > a { display: block; margin-bottom: 6px; overflow-wrap: anywhere; white-space: normal; }
dialog { width: min(530px, calc(100% - 30px)); border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 26px; max-height: 90dvh; }
dialog h2 { margin-right: 30px; margin-bottom: .5rem; font-size: clamp(26px, 4vw, 40px); }
dialog::backdrop { background: #0f2120b5; }
.close-dialog { position: absolute; top: 8px; right: 8px; min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 26px; }
@media (max-width: 1050px) {
  .grid.four, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-phone { display: none; }
}
@media (max-width: 782px) {
  .admin-bar .topbar { top: 46px; }
  .shell { width: calc(100% - 36px); }
  .bar nav { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-art { height: 270px; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .discount { align-items: start; flex-direction: column; }
}
@media (max-width: 490px) {
  .bar { min-height: 60px; gap: 8px; }
  .bar .button { padding-inline: 10px; font-size: .85rem; }
  .grid.four { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 86%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .admin-bar .topbar { top: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
