/* International Institute v2 — design system */

/* ---------- fonts (self-hosted via @fontsource) ---------- */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/fraunces/files/fraunces-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/fraunces/files/fraunces-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/public-sans/files/public-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/public-sans/files/public-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/public-sans/files/public-sans-latin-700-normal.woff2') format('woff2');
}

/* ---------- themes ---------- */
:root, html[data-theme="crimson"] {
  --brand: #8E2233; --brand-dark: #6E1523; --accent: #D9A441; --on-brand: #ffffff;
  --bg: #FAF6EF; --bg-alt: #F1EADD; --surface: #ffffff;
  --text: #26211c; --muted: #6f675e; --border: #E3DACB;
  --header-bg: #fffdf9; --hero-overlay: rgba(46, 10, 18, .55);
  --shadow: 0 10px 30px rgba(70, 40, 20, .10);
}
html[data-theme="midnight"] {
  --brand: #C64B5E; --brand-dark: #A83448; --accent: #D9A441; --on-brand: #ffffff;
  --bg: #12151C; --bg-alt: #171b24; --surface: #1c212c;
  --text: #ece7de; --muted: #9aa0ac; --border: #2c3240;
  --header-bg: #171b24; --hero-overlay: rgba(6, 8, 14, .62);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
html[data-theme="ivy"] {
  --brand: #1E5C43; --brand-dark: #14432F; --accent: #B48A2F; --on-brand: #ffffff;
  --bg: #F4F3EC; --bg-alt: #E9E8DC; --surface: #ffffff;
  --text: #1f2a22; --muted: #5f6b62; --border: #D9D8C6;
  --header-bg: #fdfdf8; --hero-overlay: rgba(10, 34, 24, .55);
  --shadow: 0 10px 30px rgba(30, 60, 40, .12);
}
html[data-theme="azure"] {
  --brand: #22577E; --brand-dark: #173F5D; --accent: #E8804C; --on-brand: #ffffff;
  --bg: #F5F8FB; --bg-alt: #E8EFF6; --surface: #ffffff;
  --text: #182430; --muted: #5c6b7a; --border: #D5E0EA;
  --header-bg: #fdfeff; --hero-overlay: rgba(9, 26, 40, .55);
  --shadow: 0 10px 30px rgba(20, 50, 80, .12);
}
html[data-theme="terracotta"] {
  --brand: #B24E2C; --brand-dark: #8C3A1E; --accent: #2F6F6B; --on-brand: #ffffff;
  --bg: #FBF3EA; --bg-alt: #F3E6D7; --surface: #fffdfa;
  --text: #33241c; --muted: #7a6a5e; --border: #E8D8C6;
  --header-bg: #fffaf4; --hero-overlay: rgba(50, 20, 8, .55);
  --shadow: 0 10px 30px rgba(120, 60, 30, .12);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.mt { margin-top: 1.2rem; }
.mt-lg { margin-top: 3rem; }
.center-text { text-align: center; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 2.5rem); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--on-brand); padding: .5rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .65rem 1.4rem; border-radius: 999px; border: 2px solid var(--brand);
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .18s ease; line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-solid { background: var(--brand); color: var(--on-brand); }
.btn-solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--on-brand); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- promo + topbar ---------- */
.promo-bar {
  background: var(--accent); color: #241a05; text-align: center; font-size: .88rem; font-weight: 600;
  padding: .45rem 2.4rem; position: relative;
}
.promo-bar a { color: inherit; }
.promo-close {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: inherit; line-height: 1;
}
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.85); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 2rem; gap: 1rem; }
.topbar-est { letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; white-space: nowrap; }
.topbar-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.topbar-links a { color: rgba(255,255,255,.85); white-space: nowrap; }
.topbar-links a:hover { color: #fff; }
.lang-switch { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- header ---------- */
.site-header {
  background: var(--header-bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 1.6rem; min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand-badge { border-radius: 8px; }
.brand-name {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.02rem; line-height: 1.06;
  color: var(--text); display: block;
}
.brand-sub { display: block; font-size: .58rem; letter-spacing: .28em; color: var(--brand); font-weight: 700; margin-top: .18rem; }
.main-nav { display: flex; gap: .2rem; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 1.5rem .7rem; color: var(--text); font-weight: 600; font-size: .92rem;
  border-bottom: 3px solid transparent;
}
.nav-item > a:hover, .nav-item > a.active { color: var(--brand); text-decoration: none; border-bottom-color: var(--brand); }
.drop {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  padding: .5rem 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease;
}
.nav-item:hover .drop, .nav-item:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: block; padding: .5rem 1.1rem; color: var(--text); font-size: .9rem; }
.drop a:hover { background: var(--bg-alt); color: var(--brand); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-search { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); padding: .15rem .3rem .15rem .8rem; }
.header-search input { border: 0; background: none; outline: none; width: 110px; font: inherit; font-size: .85rem; color: var(--text); }
.header-search button { border: 0; background: var(--brand); color: var(--on-brand); border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 24px; height: 2.6px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 620px); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, var(--hero-overlay) 30%, transparent 90%), linear-gradient(0deg, var(--hero-overlay), transparent 55%); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; margin-left: 0; padding: 4rem 0; }
.hero .container.hero-content { margin-inline: auto; width: min(1180px, 100% - 2.5rem); }
.hero-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 700; color: #fff; opacity: .85; }
.hero-content h1 { color: #fff; max-width: 13em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-sub { font-size: 1.1rem; max-width: 34em; opacity: .95; }
.hero-dots { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dot.active { background: #fff; }

/* ---------- sections ---------- */
.section { padding: 3.4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { position: relative; padding-bottom: .45rem; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--accent); border-radius: 2px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.see-all { font-weight: 700; font-size: .92rem; white-space: nowrap; }

/* ---------- quick grid ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
.quick-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  text-align: center; font-weight: 700; color: var(--text); transition: all .18s ease; display: block;
}
.quick-card img { height: 110px; width: 100%; object-fit: cover; }
.quick-card span { display: block; padding: .8rem .6rem; font-size: .92rem; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--brand); }

/* ---------- cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: all .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.chip {
  position: absolute; left: .7rem; top: .7rem; background: var(--brand); color: var(--on-brand);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--brand); text-decoration: none; }
.card-body p { margin: 0; font-size: .9rem; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.meta-item { font-size: .72rem; font-weight: 600; background: var(--bg-alt); border-radius: 999px; padding: .18rem .6rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: .7rem; display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; color: var(--brand); font-size: 1.02rem; }
.link-arrow { font-size: .85rem; font-weight: 700; color: var(--brand); }

/* events */
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.card-event { border-radius: 12px; }
.card-event:hover { transform: none; }
.event-inner { display: flex; gap: 1rem; padding: 1rem; color: var(--text); }
.event-inner:hover { text-decoration: none; }
.event-date {
  min-width: 62px; height: 62px; background: var(--brand); color: var(--on-brand); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.event-day { font-size: 1.5rem; font-weight: 700; font-family: 'Fraunces', serif; }
.event-month { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .15rem; }
.event-info h3 { margin-bottom: .15rem; }
.event-info p { margin: 0; font-size: .88rem; color: var(--muted); }
.event-when { font-weight: 600; color: var(--brand) !important; font-size: .8rem !important; }
.agenda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.date-badge {
  position: absolute; left: .7rem; top: .7rem; background: var(--surface); color: var(--text);
  border-radius: 10px; padding: .35rem .6rem; text-align: center; line-height: 1.05; font-size: .68rem;
  text-transform: uppercase; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.date-badge strong { display: block; font-size: 1.15rem; font-family: 'Fraunces', serif; color: var(--brand); }
.past-list { padding-left: 1.1rem; }
.past-list li { margin-bottom: .4rem; }

/* news rows */
.news-list { display: flex; flex-direction: column; gap: 1.1rem; }
.news-row { display: flex; gap: 1rem; align-items: flex-start; }
.news-thumb { flex: 0 0 108px; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--bg-alt); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row h3 { margin-bottom: .1rem; font-size: 1rem; }
.news-row h3 a { color: var(--text); }
.news-row p { margin: 0; font-size: .87rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; }

/* 1892 strip */
.strip-1892 { background: var(--brand); color: var(--on-brand); padding: 2.6rem 0; }
.strip-inner { display: flex; align-items: center; gap: 2.2rem; flex-wrap: wrap; }
.strip-year { font-family: 'Fraunces', serif; font-size: 3.6rem; font-weight: 700; line-height: 1; opacity: .9; }
.strip-inner p { flex: 1; min-width: 260px; margin: 0; font-size: 1.05rem; }
.strip-1892 .btn-outline { border-color: var(--on-brand); color: var(--on-brand); }
.strip-1892 .btn-outline:hover { background: var(--on-brand); color: var(--brand); }

/* ---------- page heroes ---------- */
.page-hero { background: var(--bg-alt); padding: 3rem 0; }
.page-hero p { max-width: 46em; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.detail-hero { position: relative; background-size: cover; background-position: center; min-height: 320px; display: flex; align-items: flex-end; }
.detail-hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, var(--hero-overlay) 10%, rgba(0,0,0,.12) 75%); }
.detail-hero-content { position: relative; color: #fff; padding: 2.4rem 0; }
.detail-hero-content h1 { color: #fff; }
.detail-hero-content .hero-sub { margin: 0; }
.crumbs { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .5rem; }
.crumbs a { color: inherit; opacity: .85; }

/* ---------- detail layout ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.detail-aside { position: sticky; top: 6rem; }
.fact-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow); }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.fact span { color: var(--muted); }
.fact strong { text-align: right; }
.fact-price strong { color: var(--brand); font-size: 1.15rem; }
.fact-box .btn { margin-top: 1rem; }
.aside-title { font-size: 1rem; margin-bottom: .6rem; }
.aside-link { display: block; padding: .45rem 0; border-bottom: 1px dashed var(--border); font-weight: 600; font-size: .92rem; }
.aside-link:last-child { border-bottom: 0; }

/* rich text */
.rich { font-size: 1.02rem; }
.rich h2 { margin-top: 1.6em; }
.rich ul { padding-left: 1.2rem; }
.rich li { margin-bottom: .45rem; }
.rich img { border-radius: 12px; }
.lead { font-size: 1.15rem; font-weight: 600; }
.post-title { max-width: 18em; }
.post-image { border-radius: 14px; margin: 1.4rem 0; width: 100%; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: .9rem; max-width: 640px; }
.form-wide { max-width: 900px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px; padding: .65rem .9rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { resize: vertical; }
.form .btn { align-self: flex-start; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; font-weight: 600; }
.alert-ok { background: #e5f4e7; border: 1px solid #9fd3a8; color: #1d5e2a; }
html[data-theme="midnight"] .alert-ok { background: #17301d; border-color: #2c5c38; color: #9fd3a8; }

/* filters */
.filters {
  display: flex; gap: 1rem; flex-wrap: wrap; background: var(--surface); padding: 1.1rem;
  border: 1px solid var(--border); border-radius: 14px; margin-bottom: 2rem; align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: .3rem; min-width: 160px; flex: 1; }
.filter-group label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.empty-msg { font-size: 1.05rem; background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; padding: 2rem; text-align: center; }

/* newsletter + footer */
.newsletter-band { background: var(--accent); padding: 2.4rem 0; color: #241a05; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter-inner h2 { margin-bottom: .2rem; }
.newsletter-inner p { margin: 0; }
.newsletter-form { display: flex; gap: .6rem; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter-form input { border-color: rgba(0,0,0,.25); background: #fff; color: #241a05; }
.newsletter-form .btn { white-space: nowrap; }
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.8); padding: 3rem 0 1.2rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.4rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .45rem; font-size: .92rem; }
.footer-about p { font-size: .9rem; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: var(--accent); }
.brand-footer { margin-bottom: 1rem; }
.social { display: flex; gap: .6rem; margin-top: .8rem; }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.social a:hover { background: var(--accent); color: #241a05; }
.theme-form select { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.theme-form option { color: #222; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.4rem; padding-top: 1.1rem; font-size: .8rem; }

/* map + misc */
.map-wrap { margin-top: 2rem; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.4rem; }
.pagination a {
  min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 700;
}
.pagination a.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.result-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.result-list li { padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.big-search { display: flex; gap: .7rem; max-width: 560px; margin-top: 1rem; }
.err-code { font-family: 'Fraunces', serif; font-size: 6rem; font-weight: 700; color: var(--brand); opacity: .25; margin: 0; line-height: 1; }
.spaces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.feat-list { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.feat-list li { font-size: .74rem; font-weight: 600; background: var(--bg-alt); border-radius: 999px; padding: .22rem .65rem; color: var(--muted); }

/* level test */
.level-test ol { padding-left: 0; counter-reset: q; list-style: none; }
.lt-q { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.lt-q p { font-weight: 600; margin-bottom: .7rem; }
.lt-q p::before { counter-increment: q; content: counter(q) '. '; color: var(--brand); font-weight: 700; }
.lt-opts { display: grid; gap: .4rem; }
.lt-opts label { display: flex; gap: .6rem; align-items: baseline; padding: .35rem .6rem; border-radius: 8px; cursor: pointer; }
.lt-opts label:hover { background: var(--bg-alt); }
.lt-opts input { width: auto; }
.lt-result { background: var(--surface); border: 2px solid var(--brand); border-radius: 16px; padding: 2rem; margin-top: 2rem; }
.lt-result h2 span { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--surface);
    flex-direction: column; gap: 0; padding: 5rem 1.4rem 2rem; margin: 0;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 150;
    box-shadow: -20px 0 50px rgba(0,0,0,.2);
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .nav-item > a { padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 .4rem .8rem; display: none;
  }
  .nav-item.open .drop { display: block; }
  .nav-toggle { display: flex; z-index: 160; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
  .header-search input { width: 90px; }
  .two-col { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .topbar-inner { justify-content: center; }
  .topbar-est { display: none; }
  .header-search { display: none; }
  .hero { min-height: 70vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .strip-inner { flex-direction: column; text-align: center; }
  .section { padding: 2.4rem 0; }
  .newsletter-form { flex-direction: column; }
}
