/* ==========================================================================
   NUVIA — styles
   ========================================================================== */
:root {
  --bg: #F6F2EC;
  --surface: #FFFFFF;
  --sand: #EDE6DB;
  --line: #E2DACC;
  --ink: #1E1C19;
  --muted: #5C564E;
  --accent: #9A4B2E;
  --accent-hover: #833E25;
  --accent-ink: #FFFFFF;
  --olive: #5E6B45;
  --danger: #A33A22;
  --dark: #1E1C19;
  --dark-ink: #F6F2EC;
  --scrim: rgba(30, 28, 25, .45);
  --shadow: 0 18px 40px rgba(40, 30, 20, .10);
  --shadow-lg: 0 30px 80px rgba(40, 30, 20, .14);
  --r: 20px;
  --r-sm: 14px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 24px;
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #211E1B;
    --sand: #2C2824;
    --line: #3A352F;
    --ink: #F1ECE4;
    --muted: #B8AFA3;
    --accent: #D9845F;
    --accent-hover: #E69A78;
    --accent-ink: #1A1714;
    --olive: #9DAA7E;
    --danger: #F0876B;
    --dark: #F1ECE4;
    --dark-ink: #161412;
    --scrim: rgba(0, 0, 0, .6);
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--dark); color: var(--dark-ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: 88px; }
.section--tight { padding-block: 48px; }
.band { background: var(--surface); }
.band--sand { background: var(--sand); }
.center { text-align: center; }
.pad { padding-block: 96px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
@media (max-width: 640px) { :root { --gutter: 16px; } .section { padding-block: 64px; } }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 7vw, 82px); line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.display em, .h1 em { color: var(--accent); }
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 540px; margin: 22px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .2s, transform .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--lg { min-height: 54px; padding: 15px 28px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--dark { background: var(--dark); color: var(--dark-ink); }
.btn--dark:hover { color: var(--dark-ink); opacity: .9; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--danger { background: transparent; border-color: var(--line); color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); color: var(--danger); }
.btn svg, .icon-btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.link-btn { border: 0; background: none; padding: 8px; color: var(--accent); font-weight: 600; font-size: 13px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn.is-on { color: var(--accent); }
.icon-btn.is-on svg { fill: currentColor; }

/* ---------- Header ---------- */
.demo-bar { background: var(--dark); color: var(--dark-ink); font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-bar code { background: rgba(127,127,127,.25); padding: 1px 6px; border-radius: 6px; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .18em; text-decoration: none; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.site-nav > a { text-decoration: none; padding: 8px 0; }
.site-nav > a.is-active { color: var(--accent); font-weight: 700; }
.auth-area { display: flex; align-items: center; gap: 10px; }
.auth-area a:not(.btn) { text-decoration: none; padding: 8px 4px; }
.auth-area a.is-active { color: var(--accent); font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav > a { padding: 12px 4px; font-size: 16px; }
  .auth-area { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px; }
  .auth-area a:not(.btn) { padding: 12px 4px; font-size: 16px; }
  .auth-area .avatar { display: none; }
  body.nav-open .site-nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 80px 64px; }
.hero__text { flex: 1 1 420px; min-width: 0; }
.hero__art { flex: 1 1 440px; min-width: 0; }
.hero-board { background: var(--surface); border-radius: 28px; padding: 16px; box-shadow: var(--shadow-lg); }
.hero-collage { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 170px 170px; gap: 10px; }
.hero-collage > :first-child { grid-row: span 2; }
.hero-collage .thumb { border-radius: 16px; aspect-ratio: auto; height: 100%; }
.hero-board__cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 6px 4px; }
.hero-board__cap strong { font-family: var(--serif); font-size: 24px; font-weight: 600; display: block; line-height: 1.2; }
@media (max-width: 640px) { .hero { padding-block: 48px 32px; gap: 36px; } .hero-collage { grid-template-rows: 120px 120px; } }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section-head p { margin: 8px 0 0; }
.page-head { padding-top: 48px; padding-bottom: 20px; }
.page-head p { margin: 8px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumbs a { text-decoration: none; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card {
  background: var(--surface); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__link { text-decoration: none; color: inherit; display: block; }
.card__link:hover { color: inherit; }
.card__body { padding: 12px 6px 0; }
.card__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.card__meta { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.card__actions { display: flex; justify-content: flex-end; gap: 4px; padding: 6px 2px 0; margin-top: auto; }
@media (max-width: 560px) { .card { padding: 8px; } .card__title { font-size: 14px; } .card__actions .icon-btn { width: 40px; height: 40px; } }

.thumb {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--tone, var(--sand));
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .thumb img, .card:hover .thumb video { transform: scale(1.03); }
.thumb img:not([src]), .thumb video:not([src]) { visibility: hidden; }
.thumb__pdf, .thumb__lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #2A2622; font-weight: 700; font-size: 13px; letter-spacing: .06em;
}
.thumb__pdf svg { width: 40px; height: 40px; }
.thumb__lock { background: color-mix(in srgb, var(--tone, #D9CBB6) 70%, #fff); backdrop-filter: blur(6px); letter-spacing: 0; font-weight: 600; }
.thumb__lock svg { width: 26px; height: 26px; }
.thumb__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.thumb__play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1E1C19; display: flex; align-items: center; justify-content: center; }
.thumb__play svg { width: 20px; height: 20px; margin-left: 3px; }
.badge {
  position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: #1E1C19;
}
.badge--draft { left: auto; right: 10px; background: #F3E0D6; color: #7A3A22; }
.thumb--err::after { content: 'Preview unavailable'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #2A2622; }

.unlock {
  margin-top: -170px; height: 240px; position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 62%);
}

/* ---------- Steps / tiles ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.step { background: var(--surface); border-radius: var(--r); padding: 26px 22px; }
.step__n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.step h3 { margin: 14px 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile { text-decoration: none; color: var(--ink); border-radius: var(--r); overflow: hidden; background: var(--bg); display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.band .tile { background: var(--bg); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.tile__art { height: 150px; background: var(--tone); display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; }
.tile__art span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.88); color: #1E1C19; }
.tile__body { padding: 16px 18px; }
.tile__body strong { display: block; }
.tile__body span { font-size: 13px; color: var(--muted); }

.style-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.style-tile {
  min-height: 250px; border-radius: 24px; padding: 30px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--tone); color: #1E1C19; transition: transform .35s, box-shadow .35s;
}
.style-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #1E1C19; }
.style-tile--dark { color: #F6F2EC; }
.style-tile--dark:hover { color: #F6F2EC; }
.style-tile__dots { display: flex; gap: 8px; }
.style-tile__dots span { width: 42px; height: 42px; border-radius: 12px; }
.style-tile__name { font-family: var(--serif); font-size: 44px; line-height: 1; }
.style-tile--more { background: transparent; border: 1.5px dashed var(--line); color: var(--ink); align-items: center; justify-content: center; text-align: center; }

/* ---------- About / FAQ / CTA ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about__art { flex: 1 1 340px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about__art span { border-radius: var(--r); display: block; }
.about__text { flex: 1 1 420px; min-width: 0; }
.about__text p { font-size: 17px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); }
.cta { border-radius: 32px; background: var(--dark); color: var(--dark-ink); padding: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta p { opacity: .85; margin: 12px 0 0; }
.cta .btn { background: var(--dark-ink); color: var(--dark); }
.cta .btn:hover { color: var(--dark); opacity: .92; }

/* ---------- Library ---------- */
.lib { display: flex; gap: 32px; align-items: flex-start; padding-bottom: 96px; }
.lib__main { flex: 1; min-width: 0; }
.filters {
  flex: 0 0 270px; background: var(--surface); border-radius: var(--r); padding: 20px;
  position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto;
}
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__close, .filters__apply { display: none !important; }
.fgroup { border: 0; margin: 18px 0 0; padding: 0; }
.fgroup legend { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.check__n { margin-left: auto; font-size: 12px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; min-height: 50px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font-size: 15px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.select, .sort select {
  min-height: 46px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink);
}
.filters-btn { display: none !important; }
.fcount { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--sand); color: var(--ink); padding: 8px 14px; font-size: 13px; font-weight: 600; }
.chip:hover { background: var(--line); }
.scrim { display: none; }
@media (max-width: 900px) {
  .filters-btn { display: inline-flex !important; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: 82vh; border-radius: 26px 26px 0 0;
    transform: translateY(105%); transition: transform .35s ease; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .filters__close { display: inline-flex !important; }
  .filters__apply { display: flex !important; margin-top: 20px; position: sticky; bottom: 0; }
  body.filters-open .filters { transform: translateY(0); }
  body.filters-open .scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 55; }
  body.filters-open { overflow: hidden; }
  .fgroup .opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .fgroup .check { padding: 0; }
  .fgroup .check input { position: absolute; opacity: 0; pointer-events: none; }
  .fgroup .check span:first-of-type { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: var(--bg); }
  .fgroup .check input:checked + span { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
  .fgroup .check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
  .fgroup .check__n { display: none; }
  .sort { flex: 1 1 auto; justify-content: flex-end; }
}

/* ---------- Empty, loading ---------- */
.empty { text-align: center; padding: 64px 24px; background: var(--surface); border-radius: 24px; }
.empty svg { width: 34px; height: 34px; color: var(--accent); margin: 0 auto 8px; display: block; }
.empty h2, .empty h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0; }
.empty p { color: var(--muted); margin: 8px 0 20px; }
.boot { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Detail ---------- */
.detail { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 20px 64px; }
.detail__media { flex: 999 1 560px; min-width: 0; }
.detail__info { flex: 1 1 320px; max-width: 440px; min-width: 0; }
.viewer { background: var(--surface); border-radius: 26px; padding: 14px; }
.viewer img { width: 100%; border-radius: 16px; cursor: zoom-in; background: var(--tone); min-height: 200px; }
.viewer video { width: 100%; border-radius: 16px; background: #000; max-height: 75vh; }
.viewer iframe { width: 100%; height: min(78vh, 900px); border: 0; border-radius: 16px; background: var(--sand); }
.viewer__locked { border-radius: 16px; background: var(--tone); aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; color: #1E1C19; }
.viewer__locked svg { width: 32px; height: 32px; }
.viewer__note { font-size: 13px; color: var(--muted); padding: 10px 6px 2px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--sand); text-decoration: none; color: var(--ink); }
.detail__info h1 { margin-top: 16px; }
.rating-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.stars-static { color: var(--accent); letter-spacing: 2px; }
.desc { margin: 18px 0 0; font-size: 16px; color: var(--muted); white-space: pre-line; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 20px 0 0; font-size: 14px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.actions .row > .btn { flex: 1; }
.estimate-cta { display: block; margin-top: 20px; text-decoration: none; color: var(--dark-ink); background: var(--dark); border-radius: var(--r); padding: 22px; }
.estimate-cta:hover { color: var(--dark-ink); opacity: .94; }
.estimate-cta strong { font-family: var(--serif); font-weight: 500; font-size: 26px; display: block; }
.estimate-cta span { font-size: 14px; opacity: .85; }

/* reviews */
.reviews { display: flex; flex-wrap: wrap; gap: 48px; }
.reviews__summary { flex: 1 1 260px; }
.reviews__body { flex: 2 1 460px; min-width: 0; }
.big-rating { font-family: var(--serif); font-size: 72px; line-height: 1; margin-top: 16px; }
.bars { margin-top: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.bar { display: flex; align-items: center; gap: 10px; }
.bar__track { flex: 1; height: 6px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.bar__fill { height: 100%; background: var(--accent); border-radius: 6px; }
.review-form { background: var(--bg); border-radius: var(--r); padding: 22px; }
.band .review-form { background: var(--bg); }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 8px 0 12px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; padding: 4px; transition: color .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.review { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.review p { margin: 8px 0 0; color: var(--muted); white-space: pre-line; }

/* ---------- Forms ---------- */
.panel { background: var(--surface); border-radius: 26px; padding: clamp(20px, 4vw, 32px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg);
  font-size: 15px; font-weight: 500; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .hint { font-weight: 500; color: var(--muted); }
.field[aria-invalid="true"] input { border-color: var(--danger); }
.phone { display: flex; gap: 8px; }
.phone span { padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--sand); font-weight: 600; }
.phone input { flex: 1; min-width: 0; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; margin: 0; min-height: 1px; }
.form-error:empty { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.pills legend { font-size: 13px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pill input:checked + span { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.auth { display: flex; flex-wrap: wrap; min-height: calc(100vh - var(--header-h)); }
.auth__art { flex: 1 1 440px; background: #D9CBB6; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; color: #1E1C19; }
.auth__collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 130px 130px 100px; gap: 10px; max-width: 480px; }
.auth__collage span { border-radius: 18px; }
.auth__collage span:first-child { grid-column: span 2; grid-row: span 2; }
.auth__collage span:last-child { grid-column: span 2; }
.auth__quote { font-family: var(--serif); font-size: 40px; line-height: 1.05; max-width: 420px; }
.auth__form { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter); }
.auth__box { width: 100%; max-width: 420px; }
.tabs-seg { display: flex; background: var(--sand); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.tabs-seg a { flex: 1; text-align: center; border-radius: 999px; padding: 11px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--muted); }
.tabs-seg a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); font-weight: 500; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
@media (max-width: 700px) { .auth__art { display: none; } }

.estimate { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 48px 96px; }
.estimate__main { flex: 999 1 560px; min-width: 0; }
.estimate__side { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .estimate__side { position: static; max-width: none; } }
.side-dark { background: var(--dark); color: var(--dark-ink); border-radius: 24px; padding: 28px; }
.side-dark ol { margin: 14px 0 0; padding-left: 20px; opacity: .9; }
.side-dark li + li { margin-top: 6px; }
.ref-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-pick { position: relative; width: 150px; }
.ref-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ref-pick span { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 8px; background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 600; }
.ref-pick span i { display: block; height: 60px; border-radius: 9px; background: var(--tone); margin-bottom: 8px; }
.ref-pick input:checked + span { border-color: var(--accent); }
.ref-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.success { text-align: center; max-width: 640px; margin: 0 auto; padding-block: 110px; }
.success__icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--olive); color: #fff; display: flex; align-items: center; justify-content: center; }
.success__icon svg { width: 32px; height: 32px; }

/* ---------- Profile / favourites ---------- */
.profile { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-block: 40px 96px; }
.profile__card { flex: 1 1 260px; max-width: 320px; background: var(--surface); border-radius: 24px; padding: 28px; }
.profile__card .avatar { width: 64px; height: 64px; font-family: var(--serif); font-size: 28px; }
.profile__main { flex: 999 1 560px; min-width: 0; }

/* ---------- Admin ---------- */
.admin { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-block: 32px 96px; }
.admin__nav { flex: 1 1 220px; max-width: 250px; background: var(--surface); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 16px); }
.admin__nav a { text-decoration: none; padding: 12px 14px; border-radius: 12px; font-weight: 500; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; }
.admin__nav a[aria-current="page"] { background: var(--sand); color: var(--ink); font-weight: 700; }
.admin__main { flex: 999 1 560px; min-width: 0; }
@media (max-width: 860px) {
  .admin__nav { position: static; max-width: none; flex-direction: row; overflow-x: auto; padding: 6px; }
  .admin__nav a { white-space: nowrap; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border-radius: 18px; padding: 18px 20px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1.1; }
.drop {
  border: 1.5px dashed var(--line); border-radius: 18px; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s;
}
.drop svg { width: 30px; height: 30px; color: var(--accent); }
.drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.up-list { display: flex; flex-direction: column; gap: 10px; }
.up-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--bg); }
.up-item__type { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--sand); }
.up-item input[type="text"] { flex: 1 1 200px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.up-item__size { font-size: 12px; color: var(--muted); }
.progress { flex-basis: 100%; height: 4px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.up-item.is-done .progress i { background: var(--olive); }
.up-item.is-error { border-color: var(--danger); }

.table-wrap { background: var(--surface); border-radius: var(--r); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 14px 16px; white-space: nowrap; }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table .mini { width: 52px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--tone); flex: none; }
.table .mini img, .table .mini video { width: 100%; height: 100%; object-fit: cover; }
.table select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.status { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--sand); white-space: nowrap; }
.status--New { background: #F3E0D6; color: #7A3A22; }
.status--Won, .status--published { background: #E4E8DA; color: #3F4A2C; }
.tax-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tax-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tax-item strong { flex: 1; }
.tax-item small { color: var(--muted); }
.tax-add { display: flex; gap: 8px; margin-top: 12px; }
.tax-add input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.lead-card { background: var(--surface); border-radius: var(--r); padding: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.lead-card + .lead-card { margin-top: 12px; }
.lead-card__main { flex: 1 1 320px; min-width: 0; }
.lead-card__main p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.lead-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Modal & toasts ---------- */
.modal { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: var(--scrim); }
.modal__inner { padding: 28px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.lightbox { width: min(1200px, calc(100vw - 24px)); background: transparent; box-shadow: none; }
.lightbox img { width: 100%; height: auto; border-radius: 16px; }
.lightbox .icon-btn { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.92); color: #1E1C19; }
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 200; pointer-events: none; }
.toast { background: var(--dark); color: var(--dark-ink); padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: toastIn .25s ease; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); text-align: center; }
.toast.error { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 48px 24px; }
.footer-brand { max-width: 320px; }
.footer-brand p { margin: 8px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.footer-col strong { color: var(--ink); }
.footer-col a { text-decoration: none; }
.footer-base { padding-bottom: 32px; font-size: 13px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
