:root {
  --bg: #eef1f3;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --line: rgba(30, 39, 46, 0.12);
  --line-strong: rgba(30, 39, 46, 0.18);
  --text: #101417;
  --muted: #58636d;
  --blue-grey: #7e8a98;
  --blue-deep: #475765;
  --blue-soft: #aab7c3;
  --charcoal: #181c20;
  --red: #a61d24;
  --red-deep: #7f1118;
  --red-soft: rgba(166, 29, 36, 0.08);
  --glow-red: rgba(166, 29, 36, 0.12);
  --shadow: 0 24px 80px rgba(16, 20, 23, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 138, 152, 0.24), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(166, 29, 36, 0.16), transparent 16%),
    radial-gradient(circle at 24% 82%, rgba(166, 29, 36, 0.08), transparent 20%),
    linear-gradient(180deg, #f7f9fa 0%, #e7ebee 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  pointer-events: none;
}

.page-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 24px auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(247, 249, 250, 0.82), rgba(247, 249, 250, 0.72)),
    radial-gradient(circle at top right, rgba(166, 29, 36, 0.05), transparent 24%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-header,
.hero,
.intro,
.categories,
.process,
.contact,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 8px 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(172px, 20vw, 250px);
  height: auto;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a,
.info-card a {
  color: inherit;
  text-decoration: none;
}

.site-nav a.button-primary {
  color: #ffffff;
}

.site-nav .button {
  min-height: 50px;
  padding: 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  padding: 16px 8px 72px;
}

.hero-copy,
.hero-panel,
.intro,
.categories,
.partners,
.process,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
  box-shadow: 0 18px 40px rgba(16, 20, 23, 0.04);
}

.hero-copy {
  padding: 44px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(166, 29, 36, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.74));
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 24px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 138, 152, 0.18), transparent 66%);
  pointer-events: none;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 44px;
  bottom: 40px;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), rgba(166, 29, 36, 0));
}

.eyebrow,
.panel-kicker,
.card-index,
.process-item span {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 12px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(166, 29, 36, 0.14);
  color: var(--red);
  background: rgba(166, 29, 36, 0.05);
  font-size: 0.88rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 8vw, 7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.hero-text,
.intro p,
.info-card p,
.process-item p,
.contact p,
.panel-list {
  color: var(--muted);
  line-height: 1.82;
  font-size: 1rem;
}

.hero-text {
  max-width: 58ch;
  margin: 20px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #d4363e 55%, var(--red-deep));
  box-shadow: 0 16px 32px rgba(166, 29, 36, 0.24);
}

.button-secondary {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(16, 20, 23, 0.06);
}

.hero-panel {
  scroll-margin-top: 96px;
  padding: 30px;
  background:
    radial-gradient(circle at 20% 18%, rgba(166, 29, 36, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(20, 24, 28, 0.96), rgba(39, 46, 53, 0.92));
  color: #f6f8f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel-kicker {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.7);
}

.panel-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.panel-list li::marker {
  color: rgba(255, 255, 255, 0.52);
}

.panel-list li + li {
  margin-top: 18px;
}

.intro,
.categories,
.partners,
.process,
.contact {
  margin-top: 24px;
  padding: 34px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 15ch;
}

.card-grid,
.process-grid,
.partner-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 250, 0.8));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.info-card-clickable {
  cursor: pointer;
}

.info-card::before,
.partner-card::before,
.process-item::before,
.contact-box::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(166, 29, 36, 0.82), rgba(126, 138, 152, 0));
  opacity: 0;
  transition: opacity 180ms ease;
}

.info-card:hover,
.info-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(166, 29, 36, 0.18);
  box-shadow: 0 24px 44px rgba(16, 20, 23, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 250, 0.84));
}

.info-card:hover .card-icon,
.info-card:focus-within .card-icon {
  transform: translateY(-2px) scale(1.03);
}

.info-card:hover::before,
.info-card:focus-within::before,
.partner-card:hover::before,
.partner-card:focus-within::before,
.process-item:hover::before,
.contact-box:hover::before {
  opacity: 1;
}

.accent-red {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 250, 0.84)),
    linear-gradient(135deg, var(--red-soft), transparent 55%);
}

.card-index {
  margin: 0 0 18px;
  color: var(--blue-grey);
  font-size: 0.95rem;
}

.card-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(233, 237, 240, 0.74));
  border: 1px solid rgba(71, 87, 101, 0.08);
  transition: transform 180ms ease;
}

.info-card h3 {
  margin-bottom: 14px;
}

.info-card p {
  margin: 0 0 20px;
}

.info-card a {
  font-weight: 700;
  color: var(--blue-deep);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 6px;
}

.card-hint {
  margin: -4px 0 16px;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.info-card-digital .card-links {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 220ms ease, opacity 180ms ease;
}

.info-card-digital.is-open .card-links {
  max-height: 120px;
  opacity: 1;
  pointer-events: auto;
}

.info-card-digital.is-open .card-hint {
  color: var(--red);
}

.card-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(71, 87, 101, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card-links a:hover,
.card-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(166, 29, 36, 0.18);
  box-shadow: 0 14px 24px rgba(16, 20, 23, 0.08);
}

.card-links a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.card-links img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.card-links span {
  display: inline-block;
}

.partners-intro {
  max-width: 74ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.partner-grid {
  grid-template-columns: 1.7fr 0.95fr;
  margin-top: 28px;
}

.partner-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 250, 0.8));
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.partner-card-clickable {
  cursor: pointer;
}

.partner-card:hover,
.partner-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(166, 29, 36, 0.18);
  box-shadow: 0 24px 44px rgba(16, 20, 23, 0.1);
}

.partner-card-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(166, 29, 36, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 249, 250, 0.82));
}

.partner-visual {
  display: grid;
  place-items: center;
  width: min(100%, 620px);
  min-height: 430px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(166, 29, 36, 0.08), rgba(71, 87, 101, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 237, 240, 0.92));
  border: 1px dashed rgba(71, 87, 101, 0.28);
}

.partner-visual-link {
  overflow: hidden;
  justify-self: start;
  padding: 0;
  border-style: solid;
  text-decoration: none;
}

.partner-visual-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% center;
  background: #dfe5ea;
}

.partner-content {
  display: grid;
  gap: 10px;
  max-width: 62ch;
}

.partner-content p,
.partner-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.partner-card h3 {
  margin-bottom: 2px;
}

.partner-card a {
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

.partner-content a,
.info-card > a,
.partner-card > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.partner-content a::after,
.info-card > a::after,
.partner-card > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.process-item {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 249, 250, 0.74));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.process-item:hover {
  transform: translateY(-3px);
  border-color: rgba(166, 29, 36, 0.16);
  box-shadow: 0 20px 34px rgba(16, 20, 23, 0.08);
}

.process-item span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
}

.process-item h3 {
  margin-bottom: 12px;
}

.contact-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(166, 29, 36, 0.05), transparent 36%),
    rgba(255, 255, 255, 0.82);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-box:hover {
  transform: translateY(-3px);
  border-color: rgba(166, 29, 36, 0.18);
  box-shadow: 0 22px 36px rgba(16, 20, 23, 0.08);
}

.contact-box p {
  margin: 0;
  max-width: 54ch;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 8px 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--red);
}

.site-footer p {
  margin: 0;
}

.legal-shell {
  max-width: 920px;
}

.legal-header {
  padding-bottom: 20px;
}

.legal-page {
  padding: 8px;
}

.legal-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
}

.legal-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 7vw, 5rem);
  line-height: 0.95;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.legal-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.legal-back:hover,
.legal-back:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(166, 29, 36, 0.18);
  box-shadow: 0 14px 24px rgba(16, 20, 23, 0.08);
}

.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.legal-card p,
.legal-card a {
  color: var(--muted);
  line-height: 1.8;
}

.legal-card a {
  color: var(--blue-deep);
}

.footer-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 960px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content));
    margin: 10px auto;
    padding: 14px;
    border-radius: 28px;
  }

  .hero,
  .card-grid,
  .partner-grid,
  .process-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 32px;
  }

  .site-header,
  .site-footer,
  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    justify-items: start;
  }

  .hero-copy,
  .hero-panel,
  .intro,
  .categories,
  .partners,
  .process,
  .contact {
    padding: 26px;
  }

  .partner-card-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    max-width: 9ch;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav .button,
  .button {
    width: 100%;
  }

  .info-card-digital.is-open .card-links {
    max-height: 160px;
  }

  .partner-visual {
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .partner-visual-link {
    border-radius: 0;
    box-shadow: none;
  }

  .partner-visual-link img {
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: center top;
    background: transparent;
    border-radius: 18px;
  }
}
