/* Brinovia — informačný portál o bývaní a nehnuteľnostiach */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F8FA;
  --primary: #174A7E;
  --primary-hover: #123A64;
  --text: #17212B;
  --text-muted: #5F6B76;
  --border: #E2E7EC;
  --accent: #D8A83E;
  --danger: #C83D3D;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23, 33, 43, 0.04), 0 8px 24px rgba(23, 33, 43, 0.06);
  --shadow-sm: 0 1px 3px rgba(23, 33, 43, 0.06);
  --max: 1120px;
  --prose: 760px;
  --header-h: 72px;
  --font: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px rgba(23, 74, 126, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.prose-width {
  max-width: var(--prose);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 550;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .header-actions .btn {
    display: none;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 0.75rem 0 1rem;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 550;
  border-radius: var(--radius-sm);
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--primary);
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: clamp(280px, 46vw, 520px);
}

.hero-media img {
  width: 100%;
  height: clamp(280px, 46vw, 520px);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(23, 33, 43, 0.78) 0%, rgba(23, 33, 43, 0.45) 48%, rgba(23, 33, 43, 0.25) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 2rem 0 2.5rem;
}

.hero-content .container {
  color: #fff;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  font-weight: 700;
}

.hero .lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-primary {
  background: var(--accent);
  color: #17212B;
}

.hero .btn-primary:hover {
  background: #c49730;
  color: #17212B;
}

.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-header {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Cards / grids */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  border-color: #c5d0db;
  box-shadow: var(--shadow);
  color: inherit;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eaf1f8;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

/* Article cards */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-soft);
}

.article-card-body {
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.tag {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eaf1f8;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.article-card h3 a {
  text-decoration: none;
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--primary);
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Callout / checklist */
.callout {
  border-left: 4px solid var(--primary);
  background: #eef4fa;
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.callout-accent {
  border-left-color: var(--accent);
  background: #fbf6e9;
}

.callout-warn {
  border-left-color: var(--danger);
  background: #fdf2f2;
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.1rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: #fff;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .split-reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .split-reverse > :first-child {
    order: 2;
  }
}

.rounded-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.rounded-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-a {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

/* Page hero (inner) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span[aria-hidden="true"] {
  color: #9aa5b0;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.page-hero .lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.1rem;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Article layout */
.article-layout {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }
}

.article-body {
  max-width: var(--prose);
}

.article-body h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.45rem;
  line-height: 1.3;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.article-body h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.15rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.article-body p,
.article-body li {
  color: var(--text);
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.article-body li + li {
  margin-top: 0.35rem;
}

.article-hero-img {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-hero-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.toc a {
  text-decoration: none;
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--primary);
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin: 2rem 0;
}

.author-box .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eaf1f8;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.author-box h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.author-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.sources {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.sources h2 {
  margin-top: 0 !important;
}

.sources ul {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

.related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

.req {
  color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--primary);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  display: none;
}

.form-row.has-error input,
.form-row.has-error textarea {
  border-color: var(--danger);
}

.form-row.has-error .field-error {
  display: block;
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.checkbox-row input {
  margin-top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.form-status.success {
  display: block;
  background: #e8f6ee;
  color: #1b5e3b;
  border: 1px solid #b7e0c7;
}

.form-status.error {
  display: block;
  background: #fdf2f2;
  color: #8a2424;
  border: 1px solid #f0c4c4;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-card dt {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.contact-card dd {
  margin: 0.15rem 0 0;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 3.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Legal pages */
.legal-content {
  padding: 2.5rem 0 3.5rem;
}

.legal-content .prose-width {
  margin: 0 auto;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.3rem;
}

.legal-content h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.08rem;
}

/* Footer */
.site-footer {
  background: #13233a;
  color: #d5dde6;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: #d5dde6;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a8b4c2;
  max-width: 32ch;
}

.footer-col h2 {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-disclaimer {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: #9aa8b8;
  display: grid;
  gap: 0.75rem;
}

.footer-disclaimer p {
  margin: 0;
  max-width: 90ch;
}

.footer-bottom {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: #8b9aab;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #174A7E;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 880px) {
  .cookie-inner {
    grid-template-columns: 1fr auto;
  }
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cookie-banner .btn-primary:hover {
  background: #eef3f8;
  color: var(--primary);
}

.cookie-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(23, 33, 43, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-panel {
  width: min(100%, 480px);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cookie-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cookie-panel .cookie-actions {
  margin-top: 1rem;
}

/* 404 */
.page-404 {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.page-404 h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cta-band {
  background: linear-gradient(135deg, #174A7E 0%, #1f5f99 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-band .btn-primary:hover {
  background: #eef3f8;
  color: var(--primary);
}

.principles {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle {
  padding: 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.principle h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.principle p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
