:root {
  --flag-red: #e30a17;
  --flag-red-dark: #b80812;
  --flag-white: #ffffff;
  --navy: #070b14;
  --navy-2: #101828;
  --ink: #161b26;
  --muted: #5c6574;
  --line: #e6e0dc;
  --paper: #fbf8f6;
  --paper-2: #f3eee9;
  --cyan: #1ab4e5;
  --shadow: 0 18px 50px rgba(7, 11, 20, 0.08);
  --radius: 18px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--flag-white);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1,
h2,
h3,
.btn,
.kicker,
.nav-list,
.card-link,
.stat-label {
  font-family: Outfit, "Segoe UI", sans-serif;
}

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

a {
  color: var(--flag-red);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--flag-red);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.flag-bar {
  height: 6px;
  background:
    linear-gradient(90deg, var(--flag-red) 0 72%, var(--flag-white) 72% 78%, var(--flag-red) 78%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark,
.hero-mark,
.footer-brand img {
  background: transparent;
}

.brand-mark {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  color: #fff;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  color: #d7dde6;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #e8eef6;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 12px;
}

.nav-toggle-bar {
  top: 21px;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

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

.btn-red:hover {
  background: var(--flag-red-dark);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--flag-red);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(26, 180, 229, 0.16), transparent 28%),
    linear-gradient(160deg, #070b14 0%, #141d30 58%, #2a0a10 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: var(--flag-red);
}

.hero-home {
  padding: 4.5rem 0 5.5rem;
}

.hero-page {
  padding: 3.6rem 0 4.2rem;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--flag-red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.cta-band h2 {
  margin: 0 0 1rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 14ch;
}

.lead {
  max-width: 38rem;
  font-size: 1.2rem;
  color: #d5dde8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-panel {
  display: grid;
  place-items: center;
}

.hero-mark {
  display: block;
  width: min(100%, 380px);
  height: auto;
  object-fit: contain;
  background: transparent;
}

.section {
  padding: 5.2rem 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-head h2,
.info-block h2,
.panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.split.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.prose p,
.prose-wide p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose-wide {
  max-width: 46rem;
}

.card-grid,
.feature-grid,
.value-grid,
.trio {
  display: grid;
  gap: 1.25rem;
}

.card-grid,
.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trio {
  grid-template-columns: repeat(3, 1fr);
}

.value-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.info-block,
.panel,
.stat-card,
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card,
.info-block,
.panel,
.stat-card {
  padding: 1.6rem 1.5rem 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  border-top: 4px solid var(--flag-red);
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(227, 10, 23, 0.12);
  color: inherit;
}

.service-card h3,
.info-block h2,
.panel h3 {
  margin: 0 0 0.4rem;
}

.service-card p,
.info-block p,
.panel p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.icon-wrap {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--flag-red);
}

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

.card-link,
.text-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--flag-red);
  text-decoration: none;
}

.text-link::after,
.card-link::after {
  content: " →";
}

.text-link.light {
  color: #ffd4d6;
}

.stat-card,
.panel {
  background: var(--paper);
}

.panel-dark {
  background: var(--navy-2);
  color: #fff;
  border-color: transparent;
}

.panel-dark p,
.panel-dark li {
  color: #c9d3e0;
}

.stat-label {
  margin: 0 0 0.6rem;
  color: var(--flag-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.stat-text {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
  font-family: Outfit, sans-serif;
}

.check-list,
.plain-list,
.footer-links {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--flag-red);
}

.plain-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--flag-red);
}

.value-card {
  padding: 1.3rem 1.1rem;
}

.value-card strong,
.value-card span {
  display: block;
}

.value-card span {
  color: var(--muted);
  margin-top: 0.35rem;
}

.cta-band {
  background: var(--flag-red);
  color: #fff;
  padding: 4rem 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-band p {
  margin: 0;
  color: #ffe6e8;
  max-width: 36rem;
}

.site-footer {
  background: var(--navy);
  color: #d5dbe4;
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand img {
  width: auto;
  height: 88px;
  display: block;
  margin-bottom: 1rem;
  object-fit: contain;
  background: transparent;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  margin: 0.4rem 0 1rem;
}

.footer-links a {
  color: #c6ced9;
  text-decoration: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.92rem;
}

.footer-bar a {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--flag-red);
  border-color: transparent;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}

.notice-ok {
  background: #e8f8ee;
  color: #146c36;
}

.notice-error {
  background: #fdecec;
  color: #9f1239;
}

@media (max-width: 980px) {
  .hero-home-grid,
  .split,
  .split.reverse,
  .card-grid,
  .feature-grid,
  .trio,
  .value-grid,
  .footer-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: calc(86px + 6px) 0 auto 0;
    background: var(--navy);
    padding: 1rem 1.25rem 1.4rem;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-cta {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-mark {
    width: min(100%, 240px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-mark {
    height: 44px;
  }

  .section {
    padding: 3.4rem 0;
  }
}
