@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --bg: #F5F5F5;
  --primary: #4A6D7C;
  --secondary: #A6C1B9;
  --tertiary: #6E5C62;
  --text-dark: #1E2A30;
  --text-mid: #3D4F57;
  --text-light: #6B7F88;
  --border: #D6E3DF;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --nav-height: 70px;
  --max-width: 1280px;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-dark);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.nav-brand, .nav-link, .btn, label, .meta-label {
  font-family: 'Raleway', sans-serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-mid);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

ul, ol {
  padding-left: 1.5rem;
  color: var(--text-mid);
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--sm {
  padding: 64px 0;
}

.section--lg {
  padding: 120px 0;
}

.section--accent {
  background-color: var(--primary);
  color: var(--white);
}

.section--accent h1,
.section--accent h2,
.section--accent h3 {
  color: var(--white);
}

.section--accent p {
  color: rgba(255, 255, 255, 0.85);
}

.section--secondary {
  background-color: #EAF0ED;
}

.section--dark {
  background-color: #1E2A30;
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--secondary);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.82);
}

.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 1rem;
}

.section--dark .section-label {
  color: var(--secondary);
}

.section--accent .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.lead--light {
  color: rgba(255, 255, 255, 0.85);
}

.divider {
  width: 48px;
  height: 3px;
  background-color: var(--secondary);
  margin: 1.5rem 0;
}

.divider--center {
  margin: 1.5rem auto;
}

.divider--white {
  background-color: rgba(255, 255, 255, 0.4);
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

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

.btn--primary:hover {
  background-color: #3a5a69;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 109, 124, 0.32);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(245, 245, 245, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(30, 42, 48, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.page-body {
  padding-top: var(--nav-height);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #1a2830;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 42, 48, 0.92) 0%, rgba(30, 42, 48, 0.3) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  color: #FFFFFF;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.hero-content .hero-sub {
  font-family: 'Lora', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

.editorial-intro {
  max-width: 820px;
  margin: 0 auto;
}

.editorial-intro h2 {
  margin-bottom: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.grid-2--60-40 {
  grid-template-columns: 60fr 40fr;
}

.grid-2--40-60 {
  grid-template-columns: 40fr 60fr;
}

.grid-2--aligned {
  align-items: center;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(74, 109, 124, 0.12);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #EAF0ED;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.misconception-block {
  background-color: var(--card-bg);
  border-left: 4px solid var(--secondary);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.misconception-block h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.misconception-block p {
  font-size: 0.96rem;
  margin-bottom: 0;
}

.image-frame {
  overflow: hidden;
  border-radius: var(--radius);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-frame:hover img {
  transform: scale(1.02);
}

.image-frame--tall {
  height: 480px;
}

.image-frame--medium {
  height: 380px;
}

.image-frame--short {
  height: 280px;
}

.image-frame--square {
  aspect-ratio: 1;
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline-strip::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--secondary);
  z-index: 0;
}

.timeline-item {
  position: relative;
  padding: 0 20px;
  padding-top: 56px;
}

.timeline-dot {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--bg);
  z-index: 1;
}

.timeline-era {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.glossary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.glossary-entry {
  padding: 20px 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.glossary-term {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.4rem;
}

.glossary-def {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 0;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card-bg);
}

.stat-item {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.faq-item p {
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #EAF0ED;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
}

.contact-info-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0;
}

.contact-info-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.3rem;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Lora', serif;
  font-size: 0.96rem;
  color: var(--text-dark);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 109, 124, 0.12);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  min-height: 148px;
  resize: vertical;
}

.wide-cta {
  text-align: center;
  padding: 80px 24px;
}

.wide-cta h2 {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.wide-cta p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.page-hero {
  background-color: var(--primary);
  padding: 80px 0 64px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  justify-content: center;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
}

.thank-you-block {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 96px 24px;
}

.thank-you-block h1 {
  margin-bottom: 1.25rem;
}

.thank-you-block p {
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.site-footer {
  background-color: #1E2A30;
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--secondary);
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}

.footer-editorial-note {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--secondary);
  background-color: rgba(166, 193, 185, 0.12);
  padding: 8px 14px;
  border-radius: var(--radius);
  display: inline-block;
}

.footer-col-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  line-height: 2;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--secondary);
}

.footer-contact-item {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--secondary);
}

.footer-hours {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.5rem;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links li a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links li a:hover {
  color: var(--secondary);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: #1E2A30;
  border-top: 2px solid var(--primary);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  flex: 1;
  min-width: 260px;
}

.cookie-banner-text a {
  color: var(--secondary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn--cookie-accept {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  font-size: 0.82rem;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn--cookie-accept:hover {
  background-color: #3a5a69;
}

.btn--cookie-decline {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 20px;
  font-size: 0.82rem;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn--cookie-decline:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.tag {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: rgba(74, 109, 124, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
}

.pull-quote {
  border-left: 4px solid var(--secondary);
  padding: 16px 28px;
  margin: 2rem 0;
  background-color: rgba(166, 193, 185, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.8;
}

.info-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.matrix-cell {
  background-color: var(--card-bg);
  padding: 24px 28px;
}

.matrix-cell-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.4rem;
}

.matrix-cell p {
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.65;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-top: 1.5rem;
}

.comparison-table th {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--primary);
  padding: 14px 20px;
  text-align: left;
}

.comparison-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  line-height: 1.6;
}

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

.comparison-table tr:nth-child(even) td {
  background-color: rgba(166, 193, 185, 0.06);
}

.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
}

.page-404-inner h1 {
  font-size: 7rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0;
  font-family: 'Raleway', sans-serif;
}

.page-404-inner h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: none;
}

.page-404-inner p {
  max-width: 440px;
  margin: 0 auto 2rem;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .timeline-strip {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .timeline-strip::before {
    display: none;
  }

  .timeline-item {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .timeline-dot {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .section {
    padding: 64px 0;
  }

  .section--lg {
    padding: 80px 0;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: rgba(245, 245, 245, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(30, 42, 48, 0.1);
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .nav-menu li a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-2--60-40,
  .grid-2--40-60 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
  }

  .timeline-strip {
    grid-template-columns: 1fr;
  }

  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .info-matrix {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-404-inner h1 {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.82rem;
  }
}
