/* bit.md — DOXYTERRA Service Center */
:root {
  --red: #c8161d;
  --red-2: #e8371f;
  --red-dark: #8f0f14;
  --ink: #1d2126;
  --ink-2: #3b424b;
  --muted: #6b737d;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --graphite: #2a2f36;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.4rem; margin-top: 1.6em; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .92rem; color: var(--ink-2); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--lg { width: 30px; height: 30px; color: var(--red); }

/* Top bar */
.topbar { background: var(--graphite); color: #c9ced4; font-size: .86rem; }
.topbar-in { display: flex; align-items: center; gap: 22px; min-height: 38px; flex-wrap: wrap; }
.topbar-in > span { display: inline-flex; align-items: center; gap: 7px; }
.langs { display: flex; gap: 4px; margin-right: auto; }
.langs a { color: #c9ced4; text-decoration: none; padding: 3px 9px; border-radius: 6px; font-weight: 600; letter-spacing: .04em; }
.langs a:hover { color: #fff; background: rgba(255,255,255,.08); }
.langs a[aria-current] { background: var(--red); color: #fff; }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { font-weight: 900; font-size: 2rem; letter-spacing: -.04em; color: var(--red); line-height: 1; }
.brand-logo .dot { color: var(--ink); }
.brand-logo--light { color: #fff; }
.brand-logo--light .dot { color: var(--red-2); }
.brand-sub { display: flex; flex-direction: column; font-weight: 800; letter-spacing: .06em; font-size: .95rem; color: var(--ink-2); border-left: 1px solid var(--line); padding-left: 14px; line-height: 1.15; }
.brand-sub b { color: var(--ink); }
.brand-sub small { font-weight: 500; letter-spacing: 0; color: var(--muted); font-size: .76rem; margin-top: 3px; }
.phone-btn { order: 3; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; padding: 9px 16px; border-radius: 10px; }
.phone-btn:hover { background: var(--red-dark); color: #fff; }
.nav { order: 2; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current] { color: var(--red); background: #fdeeee; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-burger { display: none; }

/* DOXYTERRA shop */
.shop-logo { display: block; border-left: 1px solid var(--line); padding-left: 14px; margin-right: auto; }
.shop-logo img { height: 42px; width: auto; }
.brand { margin-right: 0; }
.topbar-shop { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 6px; }
.topbar-shop:hover { color: #fff; background: var(--red); }
.shop { background: #fff; border-top: 1px solid var(--line); }
.shop-in { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 48px; align-items: center; }
.shop-in h2 { margin-top: 0; }
.shop-card-logo { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s ease; }
.shop-card-logo:hover { transform: translateY(-2px); }
.shop-card-logo img { width: 100%; height: auto; }
.footer-shop { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 10px; margin-top: 6px; }
.footer-shop img { width: 190px; height: auto; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, var(--red-dark), var(--red) 45%, var(--red-2)); color: #fff; }
.hero-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; padding: 64px 0; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.92); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: baseline; gap: 14px; }
.facts b { font-size: 1.9rem; font-weight: 900; min-width: 3.6ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: #fff3f2; color: var(--red-dark); }
.btn--outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--block { width: 100%; margin-bottom: 10px; }

/* Sections */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section-title { margin-top: 0; font-size: 1.7rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--red-2)); }
.card:hover { transform: translateY(-3px); border-color: #f2c4c4; box-shadow: 0 10px 30px rgba(200,22,29,.12); color: var(--ink); }
.card-ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; margin-bottom: 6px; }
.card-ico .ico { width: 28px; height: 28px; }
.card-title { font-weight: 800; font-size: 1.08rem; }
.card-text { color: var(--ink-2); font-size: .95rem; flex: 1; }
.card-more { color: var(--red); font-weight: 700; font-size: .9rem; }

/* Page head */
.page-head { background: linear-gradient(120deg, var(--graphite), #3a414a); color: #fff; padding: 36px 0 30px; }
.page-head h1 { color: #fff; margin: 0; display: flex; align-items: center; gap: 14px; }
.h1-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--red); flex: none; }
.h1-ico .ico { width: 28px; height: 28px; }
.crumbs { font-size: .88rem; margin-bottom: 8px; }
.crumbs a { color: #c9ced4; }

/* Content + aside */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose { max-width: 75ch; }
.prose > :first-child { margin-top: 0; }
.list { padding-left: 1.2em; margin: 0 0 1.2em; }
.list li { margin-bottom: .35em; }
.list li::marker { color: var(--red); }
.note { background: #fff5f4; border-left: 4px solid var(--red); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.2em 0; }
.note--star { font-weight: 600; }
.aside { position: sticky; top: 100px; }
.callbox { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.callbox p { font-weight: 600; }
.aside-links { list-style: none; padding: 0; margin: 10px 0 0; }
.aside-links li { padding: 6px 0; border-top: 1px solid var(--line); }
.aside-links a { text-decoration: none; font-weight: 600; }

/* FAQ */
.qa { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.qa summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.5rem; font-weight: 400; }
.qa[open] summary::after { content: "−"; }
.qa p { padding: 0 20px 16px; margin: 0; color: var(--ink-2); }

/* Prices */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prices { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prices th { text-align: left; background: var(--bg-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; }
.prices td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prices tbody tr:hover { background: #fffafa; }
.prices .code { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; width: 64px; }
.prices .price { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.prices th:last-child { text-align: right; }
.free { color: #12805c; }
.table-note { font-size: .9rem; color: var(--ink-2); margin-top: 10px; }
.price-foot { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }

/* Contact strip */
.strip { background: var(--bg-alt); padding: 48px 0; border-top: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info .label { margin: 0 0 4px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.info p { margin: 0 0 10px; font-weight: 600; font-size: .97rem; }
.info a { word-break: break-word; }

/* 404 */
.big404 { font-size: 6rem; font-weight: 900; color: var(--red); margin: 0; line-height: 1; }

/* Footer */
.footer { background: var(--graphite); color: #c9ced4; padding-top: 48px; font-size: .94rem; }
.footer .footer-h { margin: 0 0 .8em; color: #fff; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.footer a { color: #e6e9ec; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .muted { color: #9aa3ad; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr; gap: 40px; padding-bottom: 36px; }
.footer-links, .footer-contacts { list-style: none; padding: 0; margin: 0; }
.footer-links { columns: 2; column-gap: 24px; }
.footer-links li { margin-bottom: 6px; break-inside: avoid; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.footer-contacts .ico { margin-top: 3px; color: var(--red-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; color: #9aa3ad; }

/* Responsive */
.prices th { white-space: nowrap; }
@media (max-width: 1340px) {
  .brand-sub small { display: none; }
  .header-in { gap: 16px; }
}
@media (max-width: 1100px) {
  .brand-sub { display: none; }
  .shop-logo img { height: 34px; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 1020px) {
  .with-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 901px) { .header-in { flex-wrap: nowrap; } }
@media (max-width: 900px) {
  .header-in { gap: 12px; min-height: 64px; }
  .brand-sub { display: none; }
  .phone-btn { order: 1; font-size: 1rem; padding: 8px 12px; }
  .nav-burger { order: 2; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
  .nav-burger .ico { width: 22px; height: 22px; }
  .nav { order: 3; flex-basis: 100%; display: none; padding-bottom: 12px; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--red-2); outline-offset: 2px; }
  .hero-in { grid-template-columns: 1fr; padding: 44px 0; }
  .shop-in { grid-template-columns: 1fr; gap: 24px; }
  .shop-logo { display: none; }
  .brand { margin-right: auto; }
  .topbar-hours { display: none !important; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .strip-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-links { columns: 1; }
  .topbar-addr { display: none !important; }
  .brand-logo { font-size: 1.7rem; }
  .page-head h1 { font-size: 1.6rem; }
  .h1-ico { width: 42px; height: 42px; }
  .prices .code { display: none; }
  .prices th:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .header, .footer, .aside, .hero-cta { display: none; } }
