/* =========================================================================
   SmartTVConnectGuide - main stylesheet
   Editorial navy/charcoal + white + cool-blue theme. No external resources.
   ========================================================================= */

:root {
  --navy: #0f1e33;
  --navy-800: #14263f;
  --navy-700: #1c3350;
  --ink: #1a2436;
  --text: #223047;
  --muted: #5a6b82;
  --accent: #2f6bed;
  --accent-600: #2456c9;
  --accent-100: #e8f0fe;
  --line: #e4e9f1;
  --line-strong: #d3dbe6;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eef2f8;
  --white: #ffffff;
  --focus: #2f6bed;

  --serif: Georgia, "Times New Roman", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 30, 51, .05), 0 6px 20px rgba(15, 30, 51, .06);
  --shadow-hover: 0 4px 10px rgba(15, 30, 51, .08), 0 16px 40px rgba(15, 30, 51, .12);
  --gap: clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1.1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* Accessibility helpers ------------------------------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.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;
}

/* Logo ------------------------------------------------------------------ */
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__mark { flex: 0 0 auto; }
.logo__word { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.logo__word-a { color: var(--navy); }
.logo__word-b { color: var(--accent); }

/* Header & navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }

.primary-nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; align-items: center; }
.primary-nav a {
  display: block; padding: .55rem .6rem; color: var(--ink); font-size: .93rem; font-weight: 500;
  border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease;
}
.primary-nav a:hover { background: var(--surface-2); color: var(--navy); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-100); }

/* Header search */
.nav-search { display: flex; align-items: center; margin-left: .4rem; }
.nav-search__form { position: relative; display: flex; align-items: center; }
.nav-search__icon { position: absolute; left: .6rem; display: inline-flex; color: var(--muted); pointer-events: none; }
.nav-search input {
  width: 160px; padding: .5rem .7rem .5rem 2.1rem; border: 1.5px solid var(--line-strong);
  border-radius: 999px; font: inherit; font-size: .9rem; color: var(--text); background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease, width .2s ease;
}
.nav-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,237,.15); background: #fff; }

/* Search page */
.search-page-form { position: relative; display: flex; gap: .6rem; margin-top: 1.4rem; max-width: 620px; }
.search-page-form__icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; }
.search-page-form input {
  flex: 1; padding: .85rem 1rem .85rem 2.6rem; border: 1.5px solid var(--line-strong);
  border-radius: 999px; font: inherit; background: #fff; color: var(--text);
}
.search-page-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,237,.15); }
.search-suggest { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.4rem; }
.search-suggest span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.search-suggest a { font-size: .88rem; padding: .35rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--navy); text-decoration: none; }
.search-suggest a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-100); }
.search-count { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.search-result { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.search-result:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.search-result__title { font-size: 1.2rem; margin: 0 0 .3rem; }
.search-result__title a { color: var(--navy); text-decoration: none; }
.search-result__title a:hover { color: var(--accent); }
.search-result__summary { color: var(--muted); margin: 0 0 .6rem; }
.search-result__link { font-size: .88rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: #fff;
  border-radius: 10px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle__bar { display: block; width: 20px; height: 2px; background: var(--navy); margin: 2.5px auto; transition: transform .2s ease, opacity .2s ease; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--surface); }
.btn--on-dark { background: #fff; color: var(--navy); }
.btn--on-dark:hover { background: #eef2f8; color: var(--navy); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn .icon { flex: 0 0 auto; }

/* Section scaffolding --------------------------------------------------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #cdd8e8; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: .7rem; }
.section--navy .section__eyebrow { color: #7fa8f5; }
.section__lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .section__lead { color: #b6c4d8; }
.center { text-align: center; margin-inline: auto; }

/* Ad-friendly spacer (no ads placed; reserved breathing room only) ------ */
.ad-space { min-height: 1px; }

/* Hero ------------------------------------------------------------------ */
.hero { background: var(--navy); color: #dce5f2; overflow: hidden; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #7fa8f5; font-weight: 700; margin-bottom: 1.1rem; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__sub { font-size: 1.18rem; color: #b8c6db; max-width: 34ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__note { margin-top: 1.6rem; font-size: .9rem; color: #8ea0bd; max-width: 44ch; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.4); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__badge {
  position: absolute; bottom: -18px; left: -18px; background: #fff; color: var(--navy);
  border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow-hover); display: flex; gap: .6rem; align-items: center; max-width: 240px;
}
.hero__badge .icon { color: var(--accent); }
.hero__badge strong { display: block; font-size: .95rem; }
.hero__badge span { font-size: .8rem; color: var(--muted); }

/* Category grid --------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.cat-card {
  display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cat-card:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card__icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-100); color: var(--accent); margin-bottom: .3rem; }
.cat-card__title { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.cat-card__desc { font-size: .92rem; color: var(--muted); flex: 1; }
.cat-card__more { font-size: .85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.icon--inline { vertical-align: middle; }

/* Guide cards ----------------------------------------------------------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease; }
.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.guide-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.guide-card:hover .guide-card__media img { transform: scale(1.04); }
.guide-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.guide-card__cat { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.guide-card__title { font-size: 1.2rem; margin: 0; }
.guide-card__title a { color: var(--navy); text-decoration: none; }
.guide-card__title a:hover { color: var(--accent); }
.guide-card__excerpt { color: var(--muted); font-size: .95rem; margin: 0; }

/* Feature rows ---------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature + .feature { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.feature--rev .feature__media { order: 2; }
.feature__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.feature__body p { color: var(--muted); }
.feature ul.ticks { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .6rem; }
.feature ul.ticks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text); }
.feature ul.ticks .icon { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }

/* Info tiles ------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section--surface .tile { background: #fff; }
.tile__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 11px; background: var(--accent-100); color: var(--accent); margin-bottom: .8rem; }
.tile h3 { font-size: 1.15rem; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Tips list ------------------------------------------------------------- */
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.tip { display: flex; gap: .9rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; }
.tip .icon { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.tip h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.tip p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Newsletter / CTA banner ---------------------------------------------- */
.cta-banner { background: linear-gradient(180deg, var(--navy-800), var(--navy)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #b8c6db; max-width: 52ch; margin-inline: auto; }

/* Article / content typography ----------------------------------------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero__eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 62ch; margin-bottom: 0; }

.prose { max-width: 760px; }
.prose.wide { max-width: 900px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose .lead { font-size: 1.18rem; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.sidebar { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.sidebar__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.sidebar__card h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.sidebar__card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.sidebar__card a { color: var(--text); font-size: .95rem; display: inline-flex; gap: .4rem; align-items: center; }
.sidebar__card a:hover { color: var(--accent); }

/* Definition & step blocks --------------------------------------------- */
.callout { background: var(--accent-100); border: 1px solid #cfe0fd; border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.callout h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--accent-600); }
.callout p { margin: 0; color: var(--navy-700); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 3rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; font-family: var(--sans);
}

/* Definition list cards */
.defs { display: grid; gap: .8rem; margin: 1.4rem 0; }
.def { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: #fff; }
.def dt { font-weight: 700; color: var(--navy); font-family: var(--serif); }
.def dd { margin: .3rem 0 0; color: var(--muted); }

/* FAQ (details/summary) ------------------------------------------------- */
.faq { display: grid; gap: .8rem; margin: 1.4rem 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__body { padding: 1rem 1.2rem; color: var(--muted); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* Breadcrumbs ----------------------------------------------------------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* Contact form ---------------------------------------------------------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .4rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font: inherit; color: var(--text); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,237,.15); }
.field textarea { resize: vertical; min-height: 150px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.field--error input, .field--error textarea { border-color: #d64550; }
.field__error { color: #c0323d; font-size: .85rem; margin-top: .35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: .96rem; }
.alert--success { background: #e7f6ed; border: 1px solid #b6e2c6; color: #1c6b3f; }
.alert--error { background: #fdeaec; border: 1px solid #f3c4c8; color: #a02631; }

.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-info { display: grid; gap: 1.2rem; }
.contact-info__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.contact-info__card .icon { color: var(--accent); }
.contact-info__card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: .5rem; }
.contact-info address { font-style: normal; color: var(--text); line-height: 1.7; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #a9bad2; padding-top: clamp(2.5rem, 6vw, 4rem); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .logo__word-a { color: #fff; }
.site-footer .logo__word-b { color: #7fa8f5; }
.site-footer__tagline { margin: 1rem 0 .8rem; color: #b6c4d8; max-width: 40ch; }
.site-footer__note { font-size: .82rem; color: #7f92ad; max-width: 44ch; }
.site-footer__heading { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #8ea0bd; margin: 0 0 .9rem; font-weight: 700; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer__col a { color: #cdd8e8; }
.site-footer__col a:hover { color: #fff; }
.site-footer__contact address { font-style: normal; line-height: 1.8; color: #cdd8e8; }
.site-footer__contact a { color: #7fa8f5; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; font-size: .82rem; color: #7f92ad; }
.site-footer__bottom p { margin: 0; }
.site-footer__disclosure { max-width: 60ch; }

/* Utility --------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .hero__badge { left: 0; }
  .feature, .feature--rev .feature__media { grid-template-columns: 1fr; order: 0; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem clamp(1rem, 4vw, 2rem) 1rem; }
  .primary-nav a { padding: .85rem .6rem; border-radius: 8px; font-size: 1.02rem; }
  .primary-nav li + li a { border-top: 1px solid var(--line); border-radius: 0; }
  .nav-search { display: block; margin: .8rem 0 .2rem; }
  .nav-search input { width: 100%; padding: .7rem .9rem .7rem 2.3rem; }
  .nav-search__icon { left: .8rem; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  h1 { font-size: 1.9rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
  .cat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .guide-card:hover .guide-card__media img { transform: none; }
}
