/* We Do Weddings: ivory, blush and gold, soft on the eyes so the packages can
   speak. Mobile first. Pictures are drawn SVG (Services/Art.cs). */
:root {
  --bg: #fbf7f2;
  --tint: #f5ece5;
  --card: #fffdf9;
  --ink: #3a2f2a;
  --muted: #8a7d74;
  --line: #eadfd3;
  --gold: #b08a57;
  --gold-dark: #8f6d3f;
  --blush: #f3e3dc;
  --ok: #5c8a5a;
  --ok-bg: #edf5ea;
  --warn-bg: #fbf1e3;
  --danger: #b2483d;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 10px 30px rgba(80, 55, 35, .08);
  --shadow-s: 0 4px 14px rgba(80, 55, 35, .07);
  --pk: var(--gold);
}
/* Text on a package colour: the colour darkened enough for white text. */
.plan-form, .pick, .pkg-hero { --pk-ink: color-mix(in srgb, var(--pk) 62%, #3a2f2a); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.top-gap { margin-top: 2rem; }
.top-gap-s { margin-top: 12px; }
.light { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Logo: "We Do Weddings", the o of Do is a ring ─────── */
.brand { font-family: var(--serif); font-size: 1.65rem; color: var(--ink); text-decoration: none; letter-spacing: .4px; white-space: nowrap; display: inline-block; line-height: 1.2; }
.brand-mark { white-space: nowrap; }
.brand-mark .do { color: var(--gold); font-style: italic; }
.ring { display: inline-block; width: .5em; height: .65em; margin: 0 .01em 0 .03em; vertical-align: -.03em; overflow: visible; }
.ring .band { fill: none; stroke: var(--gold); stroke-width: 2.6; }
.ring .gem { fill: #fbf1e3; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; }
.ring .facet { fill: none; stroke: var(--gold); stroke-width: .7; opacity: .7; }
.brand small { font-family: var(--sans); font-size: .75rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 242, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 14px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; letter-spacing: .2px; white-space: nowrap; }
.nav a.current { color: var(--gold-dark); }
.nav a:not(.btn):hover { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 1140px) { .nav { gap: 16px; } .nav a { font-size: .9rem; } }
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 8px 18px 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-block; background: var(--gold); color: #fff; border: 1px solid var(--gold); border-radius: 999px; padding: 13px 28px; font: 500 .95rem var(--sans); letter-spacing: .4px; text-decoration: none; cursor: pointer; transition: background .2s, transform .1s, color .2s; text-align: center; }
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 18px; font-size: .86rem; }
.btn-wide { width: 100%; padding: 16px; font-size: 1rem; }
.btn-wide.btn-small { padding: 10px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--gold-dark); }
.btn-ghost:hover { background: var(--blush); color: var(--gold-dark); }
.btn-light { background: #fff; color: var(--gold-dark); border-color: #fff; }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--gold-dark); }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-dark); font: inherit; cursor: pointer; text-decoration: underline; }
.linklike.danger { color: var(--danger); }
.text-link { color: var(--gold-dark); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.inline { display: inline; }

/* ── Icons ──────────────────────────────────────────────── */
.icon { width: 40px; height: 40px; color: var(--gold-dark); flex: none; }
.icon .a { fill: var(--blush); }
.icon .dots { stroke: var(--gold); }
.icon-xs { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.icon-sm { width: 24px; height: 24px; }
.icon-lg { width: 46px; height: 46px; }
.icon-xl { width: 72px; height: 72px; }
.icon-ring { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); flex: none; }
.icon-ring.big { width: 92px; height: 92px; }
.icon-ring.big .icon { width: 50px; height: 50px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 64px 0 56px; background: radial-gradient(ellipse at 85% 30%, #f3e3dc 0, rgba(243, 227, 220, 0) 60%), var(--bg); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); font-weight: 400; margin-bottom: .35em; }
.hero h1 em { color: var(--gold-dark); }
.hero-sub { max-width: 560px; font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-note { margin-top: 18px; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 1 / .9; }
.hero-card { position: absolute; width: 62%; background: var(--card); border-radius: 16px; padding: 10px 10px 8px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .3s; }
.hero-card .pkg-art { border-radius: 10px; aspect-ratio: 4 / 3; width: 100%; height: auto; }
.hero-card span { display: block; font-family: var(--serif); font-size: 1.2rem; padding: 6px 4px 0; }
.hero-card-0 { left: 0; top: 4%; transform: rotate(-5deg); z-index: 1; }
.hero-card-1 { right: 0; top: 0; transform: rotate(4deg); }
.hero-card-2 { left: 20%; bottom: 0; transform: rotate(-1deg); z-index: 2; }
.hero-card:hover { transform: rotate(0) scale(1.02); z-index: 3; }
.eyebrow { font-size: .8rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: .6em; font-weight: 500; }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 480px; width: 100%; margin: 0 auto; }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-tight { padding-top: 24px; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-title.small-h { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 700px; }
.page-head { padding: 52px 0 12px; }
.cta-band { background: linear-gradient(120deg, #a8824f, #c9a46c); }
.cta-band p { font-size: 1.1rem; }
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.split > div:first-child { flex: 1 1 420px; }
.split-icons { display: flex; gap: 16px; }
.partner-band { padding: 56px 0; border-top: 1px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-s); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--gold-dark); font-family: var(--serif); font-size: 1.4rem; margin-bottom: 12px; }
.steps h3 { font-size: 1.5rem; }
.steps p { color: var(--muted); margin: 0; }
.steps-small { margin-top: 40px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 24px; }
.why-grid h3 { font-size: 1.5rem; }
.why-grid p { color: var(--muted); }

/* ── Package cards ──────────────────────────────────────── */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
@media (max-width: 980px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pkg-grid { grid-template-columns: 1fr; } }
.pkg-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pkg-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pkg-art { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.pkg-art-link { display: block; }
.pkg-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pkg-body h3 { font-size: 1.85rem; margin-bottom: .25em; }
.pkg-body h3 a { color: var(--ink); text-decoration: none; }
.pkg-body > p { color: var(--muted); font-size: .98rem; }
.signature { color: var(--gold-dark); font-size: .92rem; font-weight: 400; display: flex; gap: 6px; align-items: flex-start; }
.signature .icon { color: var(--gold); }
.signature.big { font-size: 1.05rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pkg-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 6px; }
.pkg-scratch { border: 1.5px dashed var(--line); box-shadow: none; background: transparent; }
.scratch-art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--tint); }
.pkg-scratch .scratch-art { background: rgba(245, 236, 229, .6); }

/* Basics row and included cards */
.basics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-top: 30px; }
.basic-tile { text-align: center; padding: 10px 6px; }
.basic-tile .icon-ring { margin-bottom: 10px; }
.basic-tile h3 { font-size: 1.25rem; margin-bottom: .3em; }
.basic-tile p { color: var(--muted); font-size: .9rem; margin: 0; }
.included-grid, .who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 26px; }
.included-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.included-card h3 { font-size: 1.3rem; margin-bottom: .2em; }
.included-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.change-note { display: flex; gap: 10px; align-items: center; margin-top: 24px; color: var(--gold-dark); }

/* Extras teaser on the home page */
.extras-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 22px; margin-top: 30px; }
.teaser-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.teaser-group h3, .extra-section h3 { font-size: 1.6rem; margin-bottom: .1em; }
.teaser-group h3 span, .extra-section h3 span { color: var(--gold); }
.teaser-group > p { font-size: .92rem; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.chip-list a:hover { border-color: var(--gold); }
.chip-list .icon { width: 24px; height: 24px; }

/* Package page */
.pkg-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 10px; }
.pkg-art-big { border-radius: 18px; box-shadow: var(--shadow); }
.pkg-hero-text .section-title { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin-bottom: .2em; }
.swatches { display: flex; gap: 8px; margin: 6px 0 4px; }
.swatches span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 860px) { .pkg-hero { grid-template-columns: 1fr; gap: 24px; } }
.mini-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.mini-pkg { text-decoration: none; color: var(--ink); background: var(--card); border-radius: 12px; padding: 6px 6px 8px; box-shadow: var(--shadow-s); }
.mini-pkg .pkg-art { border-radius: 8px; }
.mini-pkg span { display: block; font-family: var(--serif); font-size: 1.1rem; text-align: center; padding-top: 6px; }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 24px; }
.extra-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.extra-card:hover { border-color: var(--gold); }
.extra-text { display: flex; flex-direction: column; flex: 1; }
.extra-text b { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.extra-text span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.plus { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-dark); font-size: 1.3rem; flex: none; }

/* ── Questions ──────────────────────────────────────────── */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
details p { margin: 12px 0 0; color: var(--muted); }
.faq-group { font-size: 1.7rem; color: var(--gold-dark); margin: 34px 0 14px; }
.faq-group:first-child { margin-top: 0; }
.cta-box { margin-top: 40px; background: var(--tint); border-radius: var(--radius); padding: 28px; text-align: center; }
.cta-box .btn { margin: 4px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; background: var(--card); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.footer-about { max-width: 380px; }
.brand-footer { font-size: 1.5rem; margin-bottom: 8px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.footer-links a, .footer-contact a { color: var(--ink); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-dark); }

/* ── Forms ──────────────────────────────────────────────── */
.plain-form, .plan-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 500; font-size: .95rem; }
.opt { font-weight: 300; color: var(--muted); font-size: .85rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 0; } }
input, select, textarea { font: 400 1rem var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 87, .18); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.hint { color: var(--muted); font-size: .93rem; }
.field-error { color: var(--danger); font-size: .88rem; }
.field-error:empty { display: none; }
.form-errors { background: #fbeceb; border: 1px solid #f0c9c4; color: var(--danger); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.input-validation-error { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 4px; font-size: .95rem; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-direct a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 16px; border: 1.5px dashed #d9c8b6; border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 400; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: #fffaf2; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-main { color: var(--gold-dark); }
.seal { display: flex; justify-content: center; margin-bottom: 10px; }
.notice { background: var(--warn-bg); border-radius: 10px; padding: 12px 16px; }
.banner { background: var(--warn-bg); border: 1px solid #f0dcbb; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.banner-ok { background: var(--ok-bg); border-color: #cfe3c9; }

/* ── The plan builder ───────────────────────────────────── */
.plan-head { padding-bottom: 0; }
.plan-nav { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; }
.plan-nav a span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blush); color: var(--gold-dark); font-family: var(--serif); font-size: 1rem; }
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; padding-top: 30px; padding-bottom: 80px; }
.plan-step { margin-bottom: 48px; scroll-margin-top: 90px; }
.plan-step legend { font-family: var(--serif); font-size: 2rem; font-weight: 500; margin-bottom: 6px; padding: 0; display: flex; align-items: center; gap: 12px; }
.plan-step legend .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pk-ink); color: #fff; font-size: 1.3rem; transition: background .3s; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; margin-top: 12px; }
.pick { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2px solid transparent; border-radius: 14px; padding: 6px 6px 12px; box-shadow: var(--shadow-s); cursor: pointer; transition: border-color .2s, transform .15s; }
.pick:hover { transform: translateY(-2px); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .pick-art { border-radius: 9px; }
.pick-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; padding: 8px 6px 0; line-height: 1.15; }
.pick-sig { font-size: .8rem; color: var(--muted); padding: 2px 6px 0; line-height: 1.35; }
.pick.on, .pick:has(input:checked) { border-color: var(--pk); }
.pick.on::after, .pick:has(input:checked)::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--pk-ink); color: #fff; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 0 0 2px #fff; }
.pick:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pick-scratch { border-style: dashed; border-color: var(--line); box-shadow: none; }
.pick-scratch .scratch-art { border-radius: 9px; }
.pick-scratch.on, .pick-scratch:has(input:checked) { border-style: solid; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.item .icon-ring { width: 56px; height: 56px; grid-row: 1 / 3; }
.item .icon-ring .icon { width: 36px; height: 36px; }
.item-text h4 { font-size: 1.25rem; margin: 0 0 2px; }
.item-line { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.item-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.toggle { position: relative; display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 14px; border: 1px solid var(--gold); color: var(--gold-dark); font-size: .88rem; font-weight: 500; cursor: pointer; user-select: none; transition: background .2s, color .2s; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle b { font-size: 1.1rem; font-weight: 500; margin-right: 2px; }
.toggle .t-on { display: none; }
.toggle:hover { background: var(--blush); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.item-note { display: none; grid-column: 1 / -1; margin-top: 8px; font-size: .9rem; padding: 9px 12px; resize: vertical; }
.item.on, .item:has(.toggle input:checked) { border-color: var(--pk); background: #fffaf2; box-shadow: 0 0 0 1px var(--pk); }
.item.on .toggle, .item:has(.toggle input:checked) .toggle { background: var(--pk-ink); border-color: var(--pk-ink); color: #fff; }
.note-btn { display: none; background: none; border: 0; padding: 4px 2px; color: var(--muted); font: 400 .86rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.note-btn:hover { color: var(--gold-dark); }
.js .item.on .note-btn, .js .item:has(.toggle input:checked) .note-btn { display: inline-block; }
.js .item .item-note:not(.open) { display: none !important; }
.item.on .t-on, .item:has(.toggle input:checked) .t-on { display: inline; }
.item.on .t-off, .item:has(.toggle input:checked) .t-off { display: none; }
.item.on .item-note, .item:has(.toggle input:checked) .item-note { display: block; }
.extra-section { margin-top: 26px; }
.extra-section > p { margin-bottom: 4px; font-size: .95rem; }
.item.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 1px var(--pk); } 30% { box-shadow: 0 0 0 6px rgba(176, 138, 87, .35); } }

.plan-summary { position: sticky; top: 90px; }
.sum-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-s); border-top: 4px solid var(--pk); }
.sum-card h2 { font-size: 1.6rem; margin-bottom: .2em; }
.sum-pkg { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-dark); margin-bottom: 2px; }
.sum-list { list-style: none; padding: 0; margin: 10px 0 16px; max-height: 42vh; overflow: auto; }
.sum-list li { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sum-list li::before { content: "+"; color: var(--gold); font-weight: 500; }
.sum-list li.none::before { content: ""; }
.sum-saved { margin: 12px 0 0; }
.plan-bar { display: none; }
@media (max-width: 960px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-summary { position: static; }
  .js .plan-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(80, 55, 35, .08); padding: 10px 0; }
  .plan-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .95rem; }
  .plan-bar .btn { white-space: nowrap; flex: none; }
  #bar-count { font-size: .85rem; }
  .js .plan-page .site-footer { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .section { padding: 54px 0; }
  .page-head { padding-top: 34px; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pick-name { font-size: 1.15rem; }
  .plan-step legend { font-size: 1.65rem; }
  .item-grid { grid-template-columns: 1fr; }
  .split-icons { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
}

/* ── Offer page ─────────────────────────────────────────── */
.offer-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; overflow-x: auto; }
.offer-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.offer-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85rem; letter-spacing: .5px; border-bottom: 1px solid var(--line); padding: 8px 6px; }
.offer-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.offer-table tfoot td { border-bottom: 0; padding-top: 10px; }
.offer-table .total td { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-dark); }
.num { text-align: right; white-space: nowrap; }
.offer-notes { margin-top: 18px; padding: 14px 16px; background: var(--tint); border-radius: 10px; }
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .page-head { padding-top: 36px; }
  .offer-card { padding: 16px; }
  .offer-table thead { display: none; }
  .offer-table, .offer-table tbody, .offer-table tfoot { display: block; width: 100%; }
  .offer-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
  .offer-table tfoot td { padding: 0; }
  .offer-table tbody tr { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .offer-table tbody td { border: 0; padding: 0; }
  .offer-table tbody td:first-child { grid-column: 1 / -1; color: var(--ink); }
  .offer-table tbody td:nth-child(2), .offer-table tbody td:nth-child(3) { color: var(--muted); font-size: .9rem; text-align: left; }
  .offer-table tbody td:nth-child(2)::after { content: " \00d7"; }
  .offer-table tbody td:nth-child(4) { text-align: right; }
  .offer-table .total td { font-size: 1.4rem; }
}
.reply-form { margin-top: 28px; }
.reply-form label { font-weight: 500; display: block; margin-bottom: 6px; }
.reply-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.prose p { font-size: 1.05rem; }

/* ── Admin ──────────────────────────────────────────────── */
body.admin { background: #f8f4ef; }
.admin-header { background: var(--card); border-bottom: 1px solid var(--line); }
.admin-nav { display: flex; gap: 20px; align-items: center; }
.admin-nav a { color: var(--ink); text-decoration: none; }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search { display: flex; gap: 8px; flex: 1; max-width: 440px; }
.search input { padding: 9px 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tab { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
.tab.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.tab .count { opacity: .7; margin-left: 4px; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover { background: #fffaf2; }
.admin-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .3px; background: #eee; white-space: nowrap; }
.badge-big { font-size: .95rem; padding: 6px 16px; }
.badge-new { background: #fbe7cf; color: #8a5a17; }
.badge-offersent { background: #e3ecf8; color: #2f5b8f; }
.badge-accepted, .badge-o-accepted { background: var(--ok-bg); color: var(--ok); }
.badge-declined, .badge-o-declined { background: #f8e4e1; color: var(--danger); }
.badge-completed { background: #ece6f5; color: #5b4a86; }
.badge-archived { background: #eee; color: #777; }
.badge-o-sent { background: #e3ecf8; color: #2f5b8f; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.6rem; }
.panel h3 { font-size: 1.2rem; margin-top: 18px; }
.facts { display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.message { background: var(--tint); border-radius: 10px; padding: 12px 14px; white-space: pre-line; }
.svc-list { padding-left: 18px; margin: 0; }
.svc-list li { margin-bottom: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.builder-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.builder-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85rem; padding: 6px; }
.builder-table td { padding: 4px; }
.builder-table td:first-child { width: 55%; }
.builder-table input { padding: 9px 10px; }
.builder-table .num input { text-align: right; max-width: 140px; }
.builder-table .amount { color: var(--muted); padding-right: 10px; }
.icon-btn { background: none; border: 0; font-size: 1.4rem; color: var(--muted); cursor: pointer; padding: 0 6px; }
.icon-btn:hover { color: var(--danger); }
.builder-bottom { display: grid; grid-template-columns: 1fr 260px; gap: 24px; margin-top: 18px; }
.builder-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.builder-fields .wide { grid-column: 1 / -1; }
.totals { background: var(--tint); border-radius: 12px; padding: 16px 18px; align-self: start; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-dark); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
@media (max-width: 1100px) {
  .builder-bottom, .builder-fields { grid-template-columns: 1fr; }
  .builder-table thead { display: none; }
  .builder-table tr { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .builder-table td:first-child { grid-column: 1 / -1; width: auto; }
  .builder-table .amount { display: none; }
  .builder-table .num input { max-width: none; }
}
.sent-offer { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.sent-offer.superseded { opacity: .6; }
.sent-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 4px; }
.link-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.link-row input { flex: 1; min-width: 220px; padding: 8px 10px; font-size: .88rem; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.panel textarea { margin-bottom: 10px; }
.login-box { max-width: 380px; margin: 60px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }

/* EN | МК language switch (public header and admin header) */
.header-inner > .nav, .header-inner > .admin-nav { margin-left: auto; }
.lang-switch { display: flex; align-items: center; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.lang-switch a { display: block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: 1px; line-height: 1.5; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--gold-dark); }
.lang-switch a.active { background: var(--gold); color: #fff; }
@media (max-width: 1020px) { .lang-switch { margin-left: auto; } }
@media (max-width: 400px) { .site-header .brand { font-size: 1.35rem; } .lang-switch a { padding: 3px 8px; } }

/* Admin additions (2026-11-27) */
.badge-contact { background: #eee4f3; color: #6a4a7d; }
.plan-pkg { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.plan-pkg .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.svc-list .note { color: var(--muted); font-size: .92rem; margin-left: 18px; }
.partner-row h2 { margin-bottom: 4px; }
.admin-header .brand { font-size: 1.4rem; }

/* ── Workshop (admin): board, sheets, calculator (2026-11-30) ── */
.tiny { font-size: .75rem; }
.count { opacity: .7; margin-left: 4px; font-weight: 400; }
.ws-top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ws-top-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.ws-new { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ws-new-card h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 8px; }
.ws-idea-card { background: #fffaf2; }
@media (max-width: 860px) { .ws-new { grid-template-columns: 1fr; } }
.ws-board { display: grid; gap: 16px; margin-top: 8px; }
.ws-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-cols-1 { grid-template-columns: minmax(0, 520px); }
@media (max-width: 960px) { .ws-cols-3 { grid-template-columns: 1fr; } }
.ws-col { background: var(--tint); border-radius: var(--radius); padding: 14px; min-height: 160px; }
.ws-col h2 { font-size: 1.5rem; margin-bottom: 2px; }
.ws-empty { border: 1px dashed #dccbb9; border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; }
.ws-card { --pk: var(--gold); display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--pk); border-radius: 12px; padding: 12px 14px; margin-top: 10px; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .15s; }
.ws-card:hover { box-shadow: var(--shadow-s); transform: translateY(-1px); }
.ws-card > b { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.ws-card-money { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; }
.ws-card-money .pos b { color: var(--ok); }
.ws-card-money .neg b, .neg { color: var(--danger); }
.ws-card-note { font-size: .88rem; color: var(--muted); white-space: pre-line; }

.ws-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ws-name { font-family: var(--serif); font-size: 2rem; font-weight: 500; border: 1px solid transparent; background: transparent; padding: 4px 8px; margin-left: -8px; flex: 1 1 360px; min-width: 0; }
.ws-name:hover { border-color: var(--line); }
.ws-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-state { font-size: .85rem; color: var(--muted); }
.ws-state.ok::before { content: "✓ "; color: var(--ok); }
.ws-state.dirty { color: var(--gold-dark); }
.ws-state.err { color: var(--danger); max-width: 420px; }
.ws-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ws-meta .field { margin-bottom: 10px; }
.ws-meta input, .ws-meta select { padding: 9px 10px; }
@media (max-width: 960px) { .ws-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ws-notes { margin: 6px 0 16px; }
.ws-notes summary { font-size: 1.15rem; }
.ws-notes textarea { margin-top: 10px; }
.ws-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.ws-tools input[type=search] { max-width: 320px; padding: 9px 12px; }
.ws-inline-field { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.ws-inline-field input { width: 76px; padding: 7px 8px; }
.ws-spacer { flex: 1; }

.ws-sheet-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.ws-sheet { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 1240px; table-layout: fixed; }
.ws-sheet th { background: #f6efe7; text-align: left; font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: .3px; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ws-sheet th small { font-weight: 300; }
.ws-sheet td { border-bottom: 1px solid #f1e8de; border-right: 1px solid #f6efe7; padding: 0; vertical-align: middle; }
.ws-sheet td input { border: 0; border-radius: 0; background: transparent; padding: 8px; font-size: .92rem; height: 36px; width: 100%; }
.ws-sheet td input:focus { background: #fffaf2; box-shadow: inset 0 0 0 2px var(--gold); }
.ws-sheet td input.num { text-align: right; font-variant-numeric: tabular-nums; }
.ws-sheet td input.formula { color: #6a4a7d; }
.ws-sheet td input.bad { background: #fbeceb; color: var(--danger); }
.ws-sheet .c-n { width: 34px; text-align: center; color: var(--muted); font-size: .78rem; background: #fbf7f2; }
.ws-sheet th.c-item { width: 240px; }
.ws-sheet th.c-unit { width: 70px; }
.ws-sheet th.c-num { width: 100px; }
.ws-sheet th.c-cat, .ws-sheet th.c-sup { width: 140px; }
.ws-sheet th.c-note { width: auto; }
.ws-sheet td input { min-width: 0; text-overflow: ellipsis; }
.ws-sheet th.c-calc, .ws-sheet td.calc-cell { width: 112px; text-align: right; padding: 0 10px; background: #fcf8f3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-sheet td.calc-cell.neg { color: var(--danger); }
.ws-sheet .c-x { width: 34px; text-align: center; }
.ws-sheet .c-x .icon-btn { font-size: 1.1rem; opacity: .35; }
.ws-sheet tr:hover .c-x .icon-btn { opacity: 1; }
.ws-sheet tfoot td { padding: 10px 8px; background: #f6efe7; border-bottom: 0; }
.ws-sheet tfoot td.c-calc { text-align: right; font-weight: 500; }
.ws-under { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 20px; }
.ws-under .hint { margin: 0; }
.ws-totals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.ws-totals div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ws-totals span { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }
.ws-totals b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.ws-totals .k-profit b { color: var(--ok); }
.ws-totals .k-profit.neg b { color: var(--danger); }
@media (max-width: 860px) { .ws-totals { grid-template-columns: repeat(2, 1fr); } .ws-name { font-size: 1.5rem; } }
.ws-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }

.calc-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 11px 18px 11px 14px; font: 500 .9rem var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(40, 30, 25, .25); }
.calc-toggle svg { width: 22px; height: 22px; }
.calc-toggle[aria-expanded=true] { background: var(--gold-dark); }
.calc { position: fixed; right: 20px; bottom: 76px; z-index: 41; width: 290px; max-height: calc(100vh - 100px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 16px 40px rgba(40, 30, 25, .22); }
.calc[hidden] { display: none; }
.calc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--serif); font-size: 1.2rem; }
.calc-display { font: 400 1.05rem var(--sans); text-align: right; padding: 10px 12px; }
.calc-result { text-align: right; font-family: var(--serif); font-size: 2rem; padding: 4px 4px 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.calc-keys button { height: 44px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; font: 500 1.05rem var(--sans); color: var(--ink); cursor: pointer; }
.calc-keys button:hover { background: var(--blush); }
.calc-keys button.op { background: #f6efe7; color: var(--gold-dark); }
.calc-keys button.clr { color: var(--danger); }
.calc-keys button.eq { background: var(--gold); color: #fff; border-color: var(--gold); }
.calc #calc-put:disabled { opacity: .45; cursor: default; }
.calc-history { list-style: none; padding: 0; margin: 10px 0 0; }
.calc-history button { width: 100%; text-align: right; background: none; border: 0; border-top: 1px solid var(--line); padding: 6px 2px; font: 400 .86rem var(--sans); color: var(--muted); cursor: pointer; }
.calc-history button:hover { color: var(--gold-dark); }
@media print { .calc-toggle, .calc { display: none !important; } }

/* Admin header on phones: the menu wraps instead of pushing the page sideways. */
@media (max-width: 1100px) {
  .admin-header .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  .admin-nav { flex-wrap: wrap; gap: 6px 16px; order: 3; width: 100%; font-size: .92rem; }
  .admin-header .brand { font-size: 1.25rem; }
}

/* Admin accounts (2026-11-30) */
.acct-list { list-style: none; padding: 0; margin: 0 0 6px; }
.acct-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-list .badge { margin-left: 8px; }
.acct-actions { display: flex; align-items: center; gap: 12px; }
.acct-link { border-color: var(--gold); background: #fffaf2; }
.admin-nav a, .admin-nav .inline { white-space: nowrap; }
