/* AMAYAD prototype v4.3 — brand palette sampled from the approved logo
   (assets/brand/amayad-logo.png, median of each colour family):
   navy #0E306E · sun #F0A71F · leaf #1F5F35.
   WCAG AA contrast (normal text >= 4.5:1) checked for every text pairing:
   navy/white 12.6 · leaf/white 7.65 · navy on sun 6.15 · sun-ink/white 5.93
   ink/white 15.6 · muted/white 7.5 · sun-light on navy 7.8 · leaf-light on navy 5.9.
   Sun yellow (2.05:1 on white) is NEVER used for text on light backgrounds. */
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-var-latin.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-var-latin.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0E306E; --navy-dark: #0A2350; --navy-700: #2C5BA8; --navy-50: #EEF2F9; --navy-100: #DCE4F2;
  --sun: #F0A71F; --sun-ink: #8A5A00; --sun-light: #F7C35F; --sun-50: #FEF6E6;
  --leaf: #1F5F35; --leaf-dark: #174A29; --leaf-light: #7FC08A; --leaf-50: #EAF3EC;
  --ink: #1B2433; --muted: #4A5568; --line: #DDE3EC; --bg: #F7F9FC; --white: #fff;
  --radius: 14px; --shadow: 0 1px 2px rgba(14,48,110,.06), 0 6px 18px rgba(14,48,110,.07);
  --head: "Montserrat", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
mark.pending { background: var(--sun-50); color: var(--sun-ink); border: 1px dashed var(--sun-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; font-size: .92em; white-space: nowrap; }

/* ---------- header + sticky tabs ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--head); font-weight: 700; font-size: 1.55rem; letter-spacing: .02em; color: var(--navy); }
.brand-text small { font-size: .74rem; color: var(--leaf); font-weight: 600; letter-spacing: .02em; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: #fff; color: var(--muted); font: 600 .8rem var(--body); padding: 7px 11px; cursor: pointer; min-height: 34px; }
.lang button[aria-pressed=true] { background: var(--navy); color: #fff; }
.tabbar { background: var(--navy); }
.tabbar-inner { padding: 0 8px; max-width: 1440px; }
.tablist { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 7px 0; }
.tablist::-webkit-scrollbar { display: none; }
@media (max-width: 1399px) { .tablist { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-left: 6px; padding-right: 24px; } }
.tablist [role=tab] { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; color: #E6ECF7; text-decoration: none; font: 600 .95rem var(--head); white-space: nowrap; transition: background .15s, color .15s; }
.tablist [role=tab]:hover { background: rgba(255,255,255,.12); color: #fff; }
.tablist [role=tab][aria-selected=true] { background: var(--sun); color: var(--navy); }
.tablist .ti { font-size: 1rem; }
@media (min-width: 1400px) { .tablist { justify-content: safe center; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: 700 .95rem var(--head); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: .88rem; }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: var(--sun-light); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-navy-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-navy-outline:hover { background: var(--navy-50); color: var(--navy); }
.btn-ghost { background: var(--navy-50); color: var(--navy); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

/* ---------- panels ---------- */
.panel { padding-top: 28px; padding-bottom: 28px; }
.panel:focus { outline: none; }
.panel-head { max-width: 820px; margin-bottom: 22px; }
.panel-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0; }
.hero { display: grid; grid-template-columns: 1.25fr .9fr; gap: 32px; align-items: center; background: #fff; border-radius: 22px; padding: 34px 40px; box-shadow: var(--shadow); margin-bottom: 24px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, var(--sun-50), transparent 70%); z-index: 0; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.01em; }
.eyebrow { font: 700 .78rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); margin: 0 0 10px; }
.hero-logo { text-align: center; }
.hero-logo img { width: min(100%, 360px); }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--leaf-50); color: var(--leaf-dark); font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.next-ev { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 12px 16px; border-left: 4px solid var(--sun); background: var(--navy-50); border-radius: 0 10px 10px 0; text-decoration: none; color: var(--ink); }
.next-ev:hover { color: var(--ink); background: var(--navy-100); }
.ne-date { font: 700 .85rem var(--head); color: var(--navy); }
.ne-t { font-size: .92rem; }

/* ---------- expandable cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; scroll-margin-top: 140px; }
.card:hover { border-color: var(--navy-100); }
.card.open { grid-column: 1 / -1; border-color: var(--navy-700); box-shadow: 0 8px 28px rgba(14,48,110,.14); }
.card-head { padding: 18px 20px 6px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.card-icon { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-50); display: grid; place-items: center; font-size: 1.35rem; }
.card-head .tag { justify-self: start; margin-bottom: 6px; }
.card-head h3 { font-size: 1.12rem; margin: 0 0 4px; grid-column: 2; }
.card-sum { margin: 0; color: var(--muted); font-size: .95rem; grid-column: 2; }
.card-more { padding: 6px 20px 4px 76px; border-top: 1px dashed var(--line); margin-top: 12px; }
.card-more h4 { font-size: 1rem; margin: 16px 0 6px; }
.card-more ul, .card-more ol { padding-left: 1.2em; }
.card-more li { margin: 4px 0; }
.more-btn { margin: 8px 12px 12px auto; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--navy); font: 700 .9rem var(--head); cursor: pointer; padding: 8px 12px; border-radius: 999px; min-height: 40px; }
.more-btn:hover { background: var(--navy-50); }
.more-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.more-btn[aria-expanded=true] svg { transform: rotate(180deg); }
.tag { display: inline-block; font: 700 .7rem var(--head); letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.tag-confirmed, .tag-active { background: var(--leaf-50); color: var(--leaf-dark); }
.tag-planned, .tag-forming, .tag-soon { background: var(--navy-50); color: var(--navy); }
.tag-proposal { background: var(--sun-50); color: var(--sun-ink); }
.note { font-size: .86rem; color: var(--muted); background: var(--bg); border-left: 3px solid var(--line); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cols3 > div { background: var(--bg); border-radius: 12px; padding: 4px 16px 10px; }
.icon-list { list-style: none; padding: 0 !important; columns: 2; column-gap: 28px; }
.icon-list li { break-inside: avoid; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.kv dt { font-weight: 600; color: var(--navy); }
.kv dd { margin: 0; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.person { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.person strong { display: block; font-family: var(--head); color: var(--navy); }
.person span { font-size: .82rem; color: var(--leaf); font-weight: 600; }
.person p { margin: 6px 0 0; font-size: .92rem; }
.timeline { list-style: none; padding: 0 !important; border-left: 3px solid var(--sun); margin-left: 6px; }
.timeline li { padding: 4px 0 8px 16px; }
.timeline b { display: block; font-family: var(--head); color: var(--navy); }
.regions, .tiers, .social-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.regions li { display: flex; gap: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.regions small { display: block; color: var(--muted); font-size: .85rem; }
.dot { flex: 0 0 14px; height: 14px; border-radius: 50%; margin-top: 5px; }
.tiers li { display: flex; justify-content: space-between; gap: 12px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.tiers small { display: block; color: var(--muted); font-size: .85rem; }
.fee { text-align: right; font-weight: 700; color: var(--navy); font-size: .88rem; flex: 0 0 132px; }
.fee small { display: block; }
.fee mark.pending { white-space: normal; display: inline-block; font-size: .8rem; }
.course-list li small { color: var(--muted); margin-left: 6px; }
.social-list li { background: var(--bg); border-radius: 10px; padding: 10px 12px; }

/* ---------- form ---------- */
.cform { display: grid; gap: 12px; max-width: 760px; margin: 10px 0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.cform input, .cform select, .cform textarea { font: 400 1rem var(--body); color: var(--ink); padding: 10px 12px; border: 1.5px solid #9AA6B8; border-radius: 10px; background: #fff; min-height: 44px; }
.cform [aria-invalid=true] { border-color: #B42318; }
.cform .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--ink); }
.cform .check input { min-height: 0; width: 18px; height: 18px; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.ferr { color: #B42318; font-weight: 600; margin: 0; }

/* ---------- end-of-tab nav ---------- */
.endnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 28px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.endnav a, .endnav button { font: 600 .92rem var(--head); color: var(--navy); text-decoration: none; padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.endnav a:hover, .endnav button:hover { background: var(--navy-50); color: var(--navy); }
.endnav strong { color: var(--leaf); margin-left: 4px; }
.en-prev { justify-self: start; } .en-next { justify-self: end; }
.en-top { background: none; border: 1px solid var(--line); cursor: pointer; }

/* ---------- floating back-to-top (bottom-left) ---------- */
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; background: var(--navy); color: var(--sun); box-shadow: 0 6px 18px rgba(14,48,110,.3); cursor: pointer; display: grid; place-items: center; }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--navy-dark); }
.to-top svg { width: 24px; height: 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; transition: transform .25s; z-index: 70; pointer-events: none; max-width: 90vw; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #E6ECF7; margin-top: 30px; padding-top: 34px; }
.site-footer a { color: var(--sun-light); }
.site-footer a:hover { color: #fff; }
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-badge { flex: 0 0 auto; background: #fff; border-radius: 16px; padding: 8px 10px; }
.foot-badge img { display: block; width: 64px; }
.foot-name { font: 700 1.4rem var(--head); color: #fff; letter-spacing: .02em; }
.foot-brand p { margin: 2px 0; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; font-size: .92rem; }
.foot-social .tag-soon { background: rgba(255,255,255,.14); color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.18); margin-top: 26px; padding: 14px 20px 70px; font-size: .82rem; color: #C8D3E8; }
.noscript { padding: 30px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 10px; }
  .hero-logo { order: -1; } .hero-logo img { width: 150px; }
  .cols3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .bar { height: 60px; }
  .brand-icon { width: 44px; }
  .brand-text strong { font-size: 1.3rem; }
  .brand-text small { display: none; }
  .tablist [role=tab] { padding: 8px 13px; font-size: .9rem; }
  .panel { padding-top: 18px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card-more { padding: 6px 16px 4px; }
  .card-head { padding: 14px 16px 4px; }
  .icon-list { columns: 1; }
  .frow { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
  .tiers li { flex-direction: column; } .fee { text-align: left; }
  .endnav { grid-template-columns: 1fr 1fr; }
  .endnav .en-top { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .endnav a { font-size: .85rem; padding: 8px; flex-direction: column; align-items: flex-start; gap: 0; }
  .endnav .en-next { align-items: flex-end; text-align: right; }
  .endnav strong { margin-left: 0; font-size: .95rem; }
  .more-btn { margin: 0 8px 8px auto; }
  .to-top { left: 12px; bottom: 12px; width: 46px; height: 46px; }
  .foot-bottom { padding-left: 72px; }
  .fee { flex: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (min-width: 1100px) { #panel-inicio .cards { grid-template-columns: repeat(4, 1fr); } #panel-inicio .card.open { grid-column: 1 / -1; } }

/* ---------- v4: key-concept explainers (top of Inicio) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.ex { position: relative; border-radius: 20px; padding: 26px 28px 22px; color: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ex-agrivoltaica { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.ex-agricultura-digital { background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-dark) 100%); }
.ex h2 { color: #fff; font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 6px 0 10px; }
.ex p { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.6; color: #F2F5FA; }
.ex strong { color: var(--sun-light); }
.ex-icon { font-size: 1.8rem; letter-spacing: .1em; }
.ex-points { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.ex-points li { padding-left: 26px; position: relative; font-weight: 600; font-size: .95rem; }
.ex-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); color: var(--navy); font-size: .72rem; display: grid; place-items: center; margin-top: 3px; }
.ex-more { margin-top: auto; align-self: flex-start; color: var(--navy); background: var(--sun); font: 700 .9rem var(--head); padding: 9px 18px; border-radius: 999px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.ex-more:hover { background: var(--sun-light); color: var(--navy); }
/* panel head with logo (Laboratorio viviente) */
.panel-head.has-logo { max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: #fff; border-radius: 20px; padding: 24px 30px; box-shadow: var(--shadow); }
.panel-head.has-logo .ph-text { max-width: 760px; }
.panel-logo img { width: 230px; display: block; }
/* highlight callout (certificate / disclaimer) */
.highlight { display: flex; gap: 16px; align-items: flex-start; background: var(--sun-50); border: 2px solid var(--sun); border-radius: 16px; padding: 16px 20px; margin: 0 0 22px; max-width: 980px; }
.highlight .hl-icon { font-size: 2rem; line-height: 1; }
.highlight p { margin: 0; }
.highlight .hl-title { font: 700 1.12rem var(--head); color: var(--navy); margin-bottom: 4px; }
.highlight .hl-title a { color: var(--navy); }
.highlight.hl-info { background: var(--navy-50); border-color: var(--navy-100); }
.tag-fiscal, .tag-regulatorio { background: var(--navy-50); color: var(--navy); }
.tag-financiamiento, .tag-programa, .tag-social { background: var(--leaf-50); color: var(--leaf-dark); }
.src { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 12px; }
.venues, .cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.venues > div, .cols2 > div { background: var(--bg); border-radius: 12px; padding: 4px 16px 10px; }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin: 10px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .9rem var(--head); display: grid; place-items: center; }
@media (max-width: 1480px) { .tablist { gap: 2px; } .tablist [role=tab] { padding: 9px 12px; font-size: .9rem; gap: 6px; } }
@media (max-width: 760px) {
  .explain { grid-template-columns: 1fr; gap: 12px; }
  .ex { padding: 20px 18px 18px; }
  .panel-head.has-logo { grid-template-columns: 1fr; padding: 18px; }
  .panel-logo { order: -1; } .panel-logo img { width: 150px; }
  .highlight { padding: 14px; }
}

/* ---------- v4.2: contact options + chat ---------- */
.contact-block { background: #fff; border: 2px solid var(--sun); border-radius: 20px; padding: 22px 26px; box-shadow: var(--shadow); margin: 24px 0; }
.panel-head + .contact-block, .highlight + .contact-block { margin-top: 0; }
.cb-head h2 { font-size: 1.4rem; margin: 0 0 4px; }
.cb-head p { margin: 0 0 14px; color: var(--muted); }
.co-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.co { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-radius: 14px; padding: 16px; }
.co-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--navy-50); color: var(--navy); }
.co-wa .co-icon { background: #E7F6EC; color: #0F7A3A; }
.co-text strong { display: block; font-family: var(--head); color: var(--navy); font-size: 1.02rem; line-height: 1.25; }
.co-text small { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.co .btn { margin-top: auto; align-self: flex-start; }
.btn-wa { background: #0F7A3A; color: #fff; }
.btn-wa:hover { background: #0B5E2C; color: #fff; }
.btn-disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.co-compact { grid-template-columns: 1fr; gap: 8px; }
.co-compact .co { display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 10px 12px; gap: 6px 12px; }
.co-compact .co-icon { width: 36px; height: 36px; font-size: 1.05rem; grid-row: span 2; align-self: start; }
.co-compact .co-text strong { font-size: .92rem; }
.co-compact .btn { margin: 0; justify-self: start; white-space: nowrap; }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { width: 58px; height: 58px; border-radius: 50%; border: 2px solid #fff; background: var(--sun); color: var(--navy); box-shadow: 0 6px 18px rgba(14,48,110,.3); cursor: pointer; display: grid; place-items: center; }
.chat-fab:hover { background: var(--sun-light); }
.chat-fab svg { width: 28px; height: 28px; }
.chat.open .chat-fab { background: var(--navy); color: var(--sun); }
.chat-panel { width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 16px 40px rgba(14,48,110,.25); border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; background: var(--navy); color: #fff; border-radius: 18px 18px 0 0; }
.chat-avatar { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.chat-avatar img { width: 34px; }
.chat-title { margin: 0 0 3px; font: 700 1.02rem var(--head); color: #fff; }
.chat-head .tag-soon { background: var(--sun); color: var(--navy); }
.chat-x { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.chat-x:hover { background: rgba(255,255,255,.26); }
.chat-body { padding: 14px 16px 16px; }
.chat-body > p { margin: 0 0 12px; font-size: .93rem; }
@media (max-width: 900px) { .co-list:not(.co-compact) { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .chat { right: 12px; bottom: 12px; } .chat-fab { width: 52px; height: 52px; }
  .contact-block { padding: 18px 16px; }
}

/* ---------- v4.3: privacy notice ---------- */
.foot-priv { color: #fff; font-weight: 600; }
.foot-priv:hover { color: var(--sun-light); }
.draft-flag { display: inline-block; background: var(--sun-50); color: var(--sun-ink); border: 1px dashed var(--sun-ink); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: .85rem; margin: 0 0 12px; }
.priv-head { max-width: 900px; }
.priv-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.priv-toc { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.priv-toc-h { font: 700 .8rem var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--leaf); margin: 0 0 8px; }
.priv-toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.priv-toc a { text-decoration: none; font-size: .9rem; display: block; padding: 4px 6px; border-radius: 6px; }
.priv-toc a:hover { background: var(--navy-50); }
.priv-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 32px 24px; max-width: 860px; min-width: 0; }
.priv-doc h2 { font-size: 1.25rem; margin: 26px 0 10px; padding-top: 6px; scroll-margin-top: 140px; }
.priv-doc h2:focus { outline: none; }
.priv-doc li { margin: 5px 0; }
.priv-doc em { color: var(--muted); }
.tbl { overflow-x: auto; margin: 12px 0; }
.tbl table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.tbl th { background: var(--navy-50); color: var(--navy); font-family: var(--head); }
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.priv-short { background: var(--navy-50); border-radius: 12px; padding: 14px 16px; font-size: .88rem; line-height: 1.5; }
.priv-short p { margin: 0 0 8px; }
.priv-short .ps-h { font-family: var(--head); color: var(--navy); font-size: .95rem; }
.cb-priv, .chat-priv { margin: 12px 0 0; font-size: .85rem; }
.chat-priv { text-align: center; }
@media (max-width: 900px) {
  .priv-layout { grid-template-columns: 1fr; }
  .priv-toc { position: static; }
  .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .priv-doc { padding: 4px 16px 18px; }
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
  .tbl td { border: 0; border-top: 1px solid var(--line); }
  .tbl td:first-child { border-top: 0; background: var(--navy-50); }
  .tbl td::before { content: attr(data-label); display: block; font: 700 .72rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--leaf); margin-bottom: 2px; }
}
