﻿:root {
  --bg: #eef3f9;
  --bg-soft: #f8fbff;
  --surface: #ffffff;
  --text: #142334;
  --muted: #516174;
  --brand: #2d9cdb;
  --brand-strong: #1e88e5;
  --brand-soft: #e8f3fe;
  --accent: #4aa3df;
  --border: #d5dfec;
  --shadow: 0 18px 38px rgba(16, 32, 52, 0.08);
  --radius: 16px;
  --font-body: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-heading: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  line-height: 1.6;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 720px at 88% -15%, rgba(45, 156, 219, 0.2), transparent 60%),
    radial-gradient(1000px 560px at -12% 25%, rgba(30, 136, 229, 0.12), transparent 58%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

body:not(.includes-ready) {
  visibility: hidden;
}

body.includes-ready {
  visibility: visible;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

[data-include] {
  display: block;
}

[data-include*="/header.html"] {
  min-height: 94px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(12px);
  min-height: 94px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand img {
  display: block;
  width: 176px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 6px 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}

.main-nav a.active {
  border-bottom-color: var(--brand);
  color: var(--brand-strong);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
}

.lang-switch a.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.hero {
  position: relative;
  padding: 88px 0 46px;
}

.hero::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 18px;
  width: min(240px, 36vw);
  height: min(240px, 36vw);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(45, 156, 219, 0.24), rgba(45, 156, 219, 0.04));
  z-index: -1;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 840px;
  font-family: var(--font-heading);
  font-size: clamp(35px, 5.4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  animation: rise 0.7s ease-out both;
}

.hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  animation: rise 0.7s 0.08s ease-out both;
}

.section { padding: 30px 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: rise 0.7s ease both;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(16, 32, 52, 0.12);
  border-color: #c1d7ef;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.15;
}

h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
}

.cta-link {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 16px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.cta-link:hover {
  background: linear-gradient(145deg, #3caee8, #1b74d4);
  text-decoration: none;
}

ul.clean {
  margin: 0;
  padding-left: 18px;
}

.site-footer {
  margin-top: 46px;
  border-top: 1px solid var(--border);
  padding: 24px 0 30px;
  background: linear-gradient(180deg, rgba(238, 243, 249, 0.35), rgba(238, 243, 249, 0.75));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.page-intro {
  padding: 50px 0 22px;
}

.page-intro h1 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.15;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fact-item {
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(160deg, #fff, #f3f8fd);
}

.fact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact-item span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.benefit {
  padding: 14px 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid #c6ddf5;
}

.benefit h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-family: var(--font-heading);
}

.benefit p {
  margin: 0;
}

.error-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.error-card {
  width: min(760px, 92%);
  text-align: left;
}

.error-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 54px);
}

.error-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.error-links a {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) {
  [data-include*="/header.html"] { min-height: 186px; }
  .grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-grid { grid-template-columns: 1fr; }
  .brand img { width: 150px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-header { min-height: 186px; }
  .hero { padding-top: 70px; }
}
