/* =========================================================
   The Publishers Republic — site styles
   Palette: Royal Navy & Champagne Gold
   ========================================================= */
:root {
  --navy: #0b1f5c;
  --navy-2: #16327f;
  --navy-3: #16327f;
  --gold: #b8901c;
  --gold-dark: #b8901c;
  --gold-soft: #efe8d5;
  --ivory: #F8F5EF;
  --ivory-2: #F1ECE2;
  --white: #FFFFFF;
  --slate: #34494A;
  --ink: #1B2433;
  --muted: #5F6878;
  --line: #E4DDD0;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16,31,53,.06), 0 2px 8px rgba(16,31,53,.05);
  --shadow: 0 10px 30px -12px rgba(16,31,53,.22);
  --shadow-lg: 0 30px 60px -25px rgba(16,31,53,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
em.gold, .gold-i { font-style: italic; color: var(--gold-dark); font-weight: 400; }
.on-dark em.gold, .on-dark .gold-i { color: var(--gold); }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-white { background: color-mix(in srgb, var(--bg2) 50%, transparent); }
.bg-ivory { background: transparent; }
.bg-ivory-2 { background: transparent; }
.bg-navy { background: var(--navy); color: #D5DCE6; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }

/* ---------- section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 14px;
}
.bg-navy .eyebrow, .on-dark .eyebrow { color: var(--gold); }
.section-head .eyebrow::before, .section-head .eyebrow::after, .page-hero .eyebrow::before, .page-hero .eyebrow::after, .modal-head .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.left::before { display: none; }
.eyebrow.left::after { width: 40px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.bg-navy .section-head p { color: #B7C1CF; }
.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 22px 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px -10px rgba(16,31,53,.6); }
.btn-primary:hover { background: var(--navy-3); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(16,31,53,.6); }
.btn.btn-gold { background: var(--gold); color: var(--ink); }
.btn.btn-gold:hover { background: #D4B67D; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(198,166,106,.8); }
.btn.btn-outline { border-color: rgba(16,31,53,.25); color: var(--ink); background: transparent; }
.btn.btn-outline:hover { border-color: var(--ink); background: var(--navy); color: var(--white); }
.btn.btn-outline-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn.btn-outline-light:hover { background: var(--glass); color: var(--ink); border-color: var(--white); }
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--gold); padding-bottom: 3px; transition: gap .3s var(--ease), color .3s;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 12px; color: var(--gold-dark); }
.on-dark .link-arrow { color: var(--white); }

/* =========================================================
   Service cards
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-grid.three { grid-template-columns: repeat(3, 1fr); }
.svc-card {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px;
  display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  overflow: hidden;
}
.svc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--card); color: var(--gold-dark); display: grid; place-items: center; margin-bottom: 20px; transition: background .4s, color .4s, transform .5s var(--ease); }
.svc-ico svg { width: 26px; height: 26px; }
.svc-card:hover .svc-ico { background: var(--navy); color: var(--gold); transform: rotate(-4deg); }
.svc-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 18px; }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.svc-card .more svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.svc-card:hover .more svg { transform: translateX(4px); }

/* =========================================================
   Rights band
   ========================================================= */
.rights {
  position: relative; overflow: hidden; color: #C9D2DE;
  background:
    radial-gradient(50% 120% at 0% 50%, rgba(198,166,106,.16), transparent 60%),
    radial-gradient(40% 100% at 100% 0%, rgba(52,73,74,.55), transparent 70%),
    var(--navy);
}
.rights::before { /* subtle book-spine pattern */
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(90deg, #000 0, transparent 22%, transparent 78%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 22%, transparent 78%, #000 100%);
}
.rights .container { position: relative; }
.rights h2 { color: var(--white); text-align: center; margin-bottom: 48px; }
.rights h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.rights-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.rights-item { text-align: center; padding: 8px 36px; }
.rights-item + .rights-item { border-left: 1px solid rgba(198,166,106,.25); }
.rights-item svg { width: 34px; height: 34px; color: var(--gold); margin: 0 auto 16px; }
.rights-item h3 { color: var(--white); font-size: 1.15rem; }
.rights-item p { font-size: .95rem; margin: 0; color: #AEB9C8; }

/* =========================================================
   Books showcase
   ========================================================= */

.book3d {
  position: relative; width: 170px; aspect-ratio: 218/327; border-radius: 2px 6px 6px 2px; overflow: hidden;
  box-shadow: -16px 24px 40px -10px rgba(0,0,0,.6), inset 4px 0 6px -2px rgba(255,255,255,.25);
  transform-origin: bottom center; transition: transform .6s var(--ease);
}
.book3d::before { /* spine highlight */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.15) 40%, rgba(0,0,0,.05));
}
.book3d img { width: 100%; height: 100%; object-fit: cover; }
.shelf-wrap { position: relative; }
.shelf { display: flex; justify-content: center; align-items: flex-end; gap: 28px; padding: 10px 0 0; flex-wrap: wrap; }
.shelf a { display: block; }
.shelf .book3d { width: 150px; transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.shelf a:hover .book3d { transform: translateY(-12px) rotate(-1.5deg); box-shadow: -18px 34px 44px -14px rgba(16,31,53,.55); }
.shelf-board { height: 16px; margin: 0 auto; max-width: 1080px; border-radius: 4px; background: linear-gradient(180deg, #E7DFD0, #D8CCB5); box-shadow: 0 14px 22px -10px rgba(16,31,53,.35); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.head-row .section-head { text-align: left; margin: 0; }

/* ---------- distribution logos ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 46px; }
.logos img { height: 30px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .35s, opacity .35s, transform .35s var(--ease); }
.logos img:hover { filter: none; opacity: 1; transform: translateY(-2px); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; padding: 56px 60px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: radial-gradient(70% 140% at 100% 0%, rgba(198,166,106,.32), transparent 60%), var(--navy); color: #C3CDDA; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.cta-band h2 em { color: var(--gold); font-weight: 400; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero { position: relative; overflow: hidden; padding: 88px 0 80px; background: radial-gradient(45% 90% at 100% 0%, rgba(198,166,106,.18), transparent 65%); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.page-hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.page-hero .hero-actions { margin-top: 30px; }
.page-hero.center { text-align: center; }
.page-hero.center p.lead { margin-left: auto; margin-right: auto; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-hero.center .crumbs { justify-content: center; }
.crumbs a:hover { color: var(--gold-dark); }
.crumbs span { opacity: .5; }
.ph-figure { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 530/380; box-shadow: var(--shadow-lg); }
.ph-figure img { width: 100%; height: 100%; object-fit: cover; }
.ph-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(16,31,53,.35)); }
.ph-figure-wrap { position: relative; }
.ph-figure-wrap::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: 20px; }

/* =========================================================
   Services page — detailed rows
   ========================================================= */
.svc-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.svc-index a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: .9rem; font-weight: 500; color: var(--ink); transition: all .3s var(--ease); }
.svc-index a svg { width: 16px; height: 16px; color: var(--gold-dark); transition: color .3s; }
.svc-index a:hover { background: var(--navy); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.svc-index a:hover svg { color: var(--gold); }

.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-row:last-child { border-bottom: 0; }
.svc-row.flip .svc-media { order: 2; }
.svc-num { font: 400 italic 1rem var(--serif); color: var(--gold-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.svc-num::after { content: ""; width: 40px; height: 1px; background: var(--gold); }
.svc-row h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.svc-row .intro { font-size: 1.07rem; color: var(--muted); }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 26px 0 30px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink); line-height: 1.45; }
.checklist li svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--gold-dark); margin-top: 2px; }
.checklist.one { grid-template-columns: 1fr; }
.svc-media { position: relative; isolation: isolate; }
.svc-media .frame { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow-lg); }
.svc-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-row:hover .svc-media .frame img { transform: scale(1.04); }
.svc-media .tag {
  position: absolute; right: -14px; bottom: 28px; background: var(--glass); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; max-width: 260px; font-size: .86rem; color: var(--muted); line-height: 1.35;
}
.svc-row.flip .svc-media .tag { right: auto; left: -14px; }
.svc-media .tag strong { display: block; color: var(--ink); font-size: .95rem; }
.svc-media .tag .ti { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.svc-media .tag .ti svg { width: 20px; height: 20px; }
.svc-media .gold-block { position: absolute; width: 46%; height: 46%; left: -22px; top: -22px; border-radius: 20px; background: var(--gold-soft); z-index: -1; }
.svc-row.flip .svc-media .gold-block { left: auto; right: -22px; }
.mini-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.mini-steps span { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 500; }
.mini-steps span b { color: var(--gold-dark); margin-right: 4px; }

/* =========================================================
   Generic blocks
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature .f-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--card); color: var(--gold-dark); display: grid; place-items: center; margin-bottom: 18px; }
.feature .f-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.bg-ivory .feature, .bg-ivory-2 .feature { background: var(--glass); }
.bg-white .feature { background: var(--card); border-color: transparent; }
.bg-white .feature .f-ico { background: var(--glass); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.split .frame img { width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.statbox { text-align: center; padding: 28px 14px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(198,166,106,.22); }
.statbox strong { display: block; font: 700 2.4rem var(--serif); color: var(--gold); line-height: 1.1; }
.statbox span { font-size: .92rem; color: #B7C1CF; }

.timeline { list-style: none; position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), rgba(198,166,106,.15)); }
.timeline li { position: relative; padding: 0 0 38px 86px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .t-num { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--gold); font: 700 1.15rem var(--serif); color: var(--ink); }
.timeline h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .35s var(--ease), border-color .35s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--gold-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--card); position: relative; transition: background .3s, transform .4s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--navy); transform: translate(-50%,-50%); transition: transform .4s var(--ease), background .3s; }
.faq summary .pm::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq details[open] summary .pm { background: var(--navy); }
.faq details[open] summary .pm::before { background: var(--gold); }
.faq details[open] summary .pm::after { transform: translate(-50%,-50%) rotate(0deg); background: var(--gold); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* =========================================================
   Pricing
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 36px 30px 32px; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.featured { background: var(--navy); color: #C3CDDA; border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .price { color: var(--white); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.5rem; margin-bottom: 6px; }
.plan .desc { font-size: .93rem; color: var(--muted); min-height: 72px; }
.plan.featured .desc { color: #AEB9C8; }
.plan .was { text-decoration: line-through; color: var(--muted); font-size: 1rem; }
.plan.featured .was { color: #8C99AB; }
.plan .price { font: 700 2.8rem var(--serif); color: var(--ink); line-height: 1.1; }
.plan .note { font-size: .85rem; color: var(--muted); margin: 6px 0 22px; }
.plan.featured .note { color: #AEB9C8; }
.plan .btn { width: 100%; margin-bottom: 26px; }
.plan h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin: 6px 0 12px; }
.plan.featured h4 { color: var(--gold); }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.plan li { display: flex; gap: 10px; font-size: .93rem; line-height: 1.45; }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--gold-dark); margin-top: 1px; }
.plan.featured li svg { color: var(--gold); }
.plan .addons li { justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.plan.featured .addons li { border-color: rgba(255,255,255,.12); }
.plan .addons li span:last-child { font-weight: 600; white-space: nowrap; color: var(--ink); }
.plan.featured .addons li span:last-child { color: var(--gold); }
.plans-foot { text-align: center; margin-top: 32px; color: var(--muted); font-size: .95rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-card { background: var(--navy); color: #C3CDDA; border-radius: 20px; padding: 40px 36px; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(198,166,106,.35), transparent 70%); }
.contact-card h2 { color: var(--white); font-size: 1.8rem; }
.c-line { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 1; }
.c-line .ci { flex: 0 0 44px; height: 44px; border-radius: 12px; background: rgba(198,166,106,.15); color: var(--gold); display: grid; place-items: center; }
.c-line .ci svg { width: 20px; height: 20px; }
.c-line small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.c-line a, .c-line span { color: var(--white); }
.c-line a:hover { color: var(--gold); }
.form-card { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--glass); box-shadow: 0 0 0 4px rgba(198,166,106,.18); }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-msg { margin-top: 14px; font-size: .95rem; display: none; padding: 12px 14px; border-radius: 10px; }
.form-msg.ok { display: block; background: #EEF5EC; color: #2C5A2E; }
.form-msg.err { display: block; background: #FBEDEA; color: #8A2E22; }
.map-wrap { margin-top: 56px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* =========================================================
   Blog
   ========================================================= */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post .p-img { aspect-ratio: 16/10; overflow: hidden; }
.post .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .p-img img { transform: scale(1.05); }
.post .p-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post .p-cat { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.post h3 { font-size: 1.18rem; }
.post p { color: var(--muted); font-size: .94rem; flex: 1; }

/* =========================================================
   Legal
   ========================================================= */
.legal { max-width: 820px; margin: 0 auto; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 56px 60px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #3D4656; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--gold-dark); text-decoration: underline; }

/* =========================================================
   Reveal animations (subtle)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.fade { transform: none; }
.js .reveal.left { transform: translateX(-30px); }
.js .reveal.right { transform: translateX(30px); }
.js .reveal.zoom { transform: scale(.96); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-copy > * { animation: heroIn 1s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; } .hero-copy > *:nth-child(6) { animation-delay: .4s; }
.hero-visual { animation: heroIn 1.2s .2s var(--ease) both; }
.hero-copy .rule { margin: 24px 0 26px; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .svc-grid, .svc-grid.three { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan .desc { min-height: 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .page-hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-row { grid-template-columns: 1fr; gap: 40px; padding: 72px 0; }
  .svc-row.flip .svc-media { order: 0; }
  .svc-media .tag, .svc-row.flip .svc-media .tag { right: 12px; left: auto; }
  .feature-grid, .posts { grid-template-columns: 1fr 1fr; }
  .rights-grid { grid-template-columns: 1fr; gap: 32px; }
  .rights-item + .rights-item { border-left: 0; border-top: 1px solid rgba(198,166,106,.25); padding-top: 32px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .legal { padding: 40px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svc-grid, .svc-grid.three, .feature-grid, .posts, .form-grid, .checklist { grid-template-columns: 1fr; }
  .shelf { gap: 18px; }
  .shelf .book3d { width: 132px; }
  .form-card, .contact-card { padding: 30px 22px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .statbox strong { font-size: 1.9rem; }
}
.section-head .eyebrow, .page-hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; }

[data-theme=dark] { --gold-soft: rgba(198,166,106,.28); }
