*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #DBAD2B;
  --gold: #8F6700;
  --ink: #141414;
  --text: #1D1B16;
  --muted: #6B665A;
  --paper: #FAF8F2;
  --card: #FFFFFF;
  --line: #E9E4D6;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--gold); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* nav */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.links { display: flex; align-items: center; gap: 22px; list-style: none; }
.links a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.links a:hover { color: var(--ink); }
.links a.cta { background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; }
@media (max-width: 720px) { .links li:not(.keep) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  padding: 14px 24px; border-radius: 14px;
  font-weight: 700; text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.dark { background: var(--ink); color: #fff; }
.btn small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.75; line-height: 1.1; }
.btn span { line-height: 1.15; text-align: left; }

/* hero */
.hero { background: var(--ink); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { color: rgba(255, 255, 255, 0.75); font-size: 1.12rem; max-width: 520px; margin: 20px 0 30px; }
.hero .copy { padding-bottom: 72px; }
.hero .note { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; margin-top: 16px; }
.phone { border: 10px solid #000; border-bottom: 0; border-radius: 44px 44px 0 0; overflow: hidden; max-width: 340px; margin: 0 auto; box-shadow: 0 0 0 2px #2b2b2b; }
.phone img { width: 100%; height: 520px; object-fit: cover; object-position: top; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero .copy { padding-bottom: 24px; } .phone img { height: 420px; } }

/* sections */
section { padding: 72px 0; }
.label { display: block; text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
h2.title { text-align: center; font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; }
p.sub { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 44px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -36px; position: relative; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 820px) { .stats { margin-top: 18px; } }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--yellow); }
.card .meta { color: var(--gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: block; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 4px 20px 18px; scroll-snap-type: x mandatory; }
.shots img { width: 240px; flex: none; border-radius: 28px; border: 6px solid #000; scroll-snap-align: center; }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan ul { list-style: none; margin: 14px 0 20px; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.plan.premium { border: 2px solid var(--yellow); }

.final { background: var(--ink); color: #fff; text-align: center; }
.final h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 10px; }
.final p { color: rgba(255, 255, 255, 0.7); margin-bottom: 26px; }

footer { background: #0d0d0d; color: rgba(255, 255, 255, 0.6); padding: 40px 0; font-size: 0.86rem; }
footer a { color: rgba(255, 255, 255, 0.85); }
footer .cols { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-bottom: 18px; }
footer p + p { margin-top: 10px; }

/* article and law pages */
.page-head { background: var(--ink); color: #fff; padding: 52px 0 44px; }
.page-head .crumbs { font-size: 0.85rem; margin-bottom: 14px; color: rgba(255, 255, 255, 0.55); }
.page-head .crumbs a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.page-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.02em; }
.page-head p { color: rgba(255, 255, 255, 0.7); margin-top: 12px; max-width: 640px; }

article { padding: 44px 0 64px; font-size: 1.05rem; }
article h2 { font-size: 1.45rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
article h3 { font-size: 1.12rem; margin: 26px 0 8px; }
article p, article ul, article ol { margin-bottom: 16px; }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 6px; }
article table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 0.96rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
article th, article td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
article th { background: #F3EFE2; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
article tr:last-child td { border-bottom: 0; }
.callout { background: #FFF7DC; border: 1px solid #F0DC9B; border-radius: 14px; padding: 16px 18px; margin: 22px 0; font-size: 0.98rem; }
.appbox { display: flex; gap: 16px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; margin: 30px 0; }
.appbox img { width: 64px; height: 64px; flex: none; }
.appbox p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.8); font-size: 0.96rem; }
.appbox b { color: #fff; display: block; font-size: 1.05rem; }
.appbox .btn { padding: 10px 18px; font-size: 0.92rem; }
.fine { color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 34px; }

.search { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); font-size: 1rem; background: var(--card); margin: 26px 0 18px; }
.items { list-style: none; padding: 0; }
.items li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.items .ref { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.items .ref a { font-weight: 700; text-decoration: none; }

/* law text pages */
.lawtext { padding: 34px 0 64px; }
.lawtext .intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.lawtext .intro p { margin-bottom: 6px; }
.lawtext h2 { font-size: 1.15rem; margin: 30px 0 8px; scroll-margin-top: 80px; }
.lawtext h2 a { color: inherit; text-decoration: none; }
.lawtext h2 a:hover::after { content: " #"; color: var(--gold); }
.lawtext h3.chapter { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin: 40px 0 4px; }
.lawtext p { margin-bottom: 10px; }
.lawtext p.mod { color: var(--muted); font-size: 0.84rem; border-left: 3px solid var(--line); padding-left: 10px; }
.lawtext p.note { background: #FFF7DC; border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; }
.lawtext .hidden { display: none; }
.sticky-search { position: sticky; top: 64px; z-index: 10; background: var(--paper); padding: 6px 0 2px; }
.sticky-search .search { margin: 10px 0; }
.count { color: var(--muted); font-size: 0.86rem; margin-bottom: 8px; }

/* lists of laws */
.list2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 720px) { .list2 { grid-template-columns: 1fr; } }
.list2 a.card { padding: 18px 20px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* related */
.related { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.related h2 { margin-top: 0; }
.related .grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .related .grid { grid-template-columns: 1fr; } }

/* forms */
.form { display: grid; gap: 14px; margin-top: 10px; }
.form label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); }
.form textarea { min-height: 160px; resize: vertical; }
.form button { border: 0; cursor: pointer; font: inherit; justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lawtext section.art { padding: 0; }
