:root {
  --red: #ef3124;
  --red-hover: #d9291d;
  --ink: #0b0b0b;
  --ink-soft: #171717;
  --paper: #fff;
  --paper-soft: #f2f3f4;
  --text: #101010;
  --muted: #696969;
  --line: #dedede;
  --radius-xl: 48px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --header-height: 70px;
  --hero-grid-height: 500px;
  --hero-content-offset: 76px;
  --hero-visual-width: 480px;
  --font-web:
    system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif,
    "Helvetica Neue", Helvetica;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-web);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  background: transparent;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    backdrop-filter 0.2s;
}

.top.is-scrolled {
  background: rgba(11, 11, 11, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.top-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 28px;
}

.brands {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 15px;
}

.alfa-mark {
  display: block;
  flex: 0 0 auto;
}

.alfa-mark svg {
  display: block;
  height: 32px;
}

.alfa-logo {
  width: 126px;
  height: auto;
}

.brand-separator {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
}

.soglasen-logo {
  width: 105px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.nav a {
  transition: color 0.18s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.18s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav-action {
  display: none;
}

.top-cta {
  margin-left: auto;
  font-size: 14px;
  line-height: 20px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 15px;
  padding: 13px 24px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-web);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition:
    transform 0.18s,
    background 0.18s;
}

.button:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(239, 49, 36, 0.55);
  outline-offset: 3px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: calc(76px + var(--header-height)) 0 126px;
}

.hero::after {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 49, 36, 0.18), transparent 66%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 576px) minmax(320px, 1fr);
  min-height: var(--hero-grid-height);
  align-items: start;
  gap: 24px;
}

.hero-content {
  padding-top: var(--hero-content-offset);
}

.eyebrow {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 20px;
  text-transform: uppercase;
}

h1,
h2,
h3,
.card-title,
.metric-value {
  font-family: var(--font-web);
}

h1 {
  max-width: 576px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 52px;
}

.hero-title span {
  display: block;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 24px;
}

.hero-form {
  display: flex;
  max-width: 576px;
  gap: 10px;
}

.hero-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  outline: 0;
  background: var(--ink-soft);
  color: #fff;
  padding: 15px 18px;
  font-size: 17px;
  line-height: 24px;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.hero-form input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.hero-form input:focus {
  border-color: rgba(239, 49, 36, 0.78);
  background: #1d1d1d;
}

.form-note {
  min-height: 21px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
  line-height: 20px;
}

.form-note:empty {
  display: none;
}

.form-note.error {
  color: #ff857b;
}

.form-note.success {
  color: #fff;
}

.hero-visual {
  position: relative;
  min-height: var(--hero-grid-height);
}

.hero-visual img {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(var(--hero-visual-width), 41vw);
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.35));
  user-select: none;
}

.sheet {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--paper);
  padding: 56px 0 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section {
  padding: 50px 0;
}

.section-first {
  padding-top: 0;
}

.section-first.reveal {
  opacity: 1;
  transform: none;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 20px;
  text-transform: uppercase;
}

h2 {
  max-width: 1140px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 48px;
}

.section-title {
  max-width: 22ch;
}

.section-lead {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.metrics,
.cards,
.steps {
  display: grid;
  gap: 14px;
}

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

.metric,
.card,
.step-card {
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
}

.metric {
  padding: 28px 26px;
}

.metric-value {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 44px;
}

.card-title,
.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.metric p,
.card p,
.step-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.dark-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: #fff;
  padding: 58px;
}

.dark-panel h2 {
  max-width: 640px;
  font-size: 30px;
  line-height: 36px;
}

.dark-panel p {
  max-width: 750px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 24px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  min-height: 182px;
  padding: 26px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card-index {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-web);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 14px;
  margin-top: 34px;
}

.score-card {
  display: flex;
  min-height: 364px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: var(--red);
  color: #fff;
  padding: 30px;
}

.score-card .score {
  font-family: var(--font-web);
  font-size: clamp(72px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 96px;
}

.score-card p {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.78);
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: start;
  border-radius: 22px;
  background: var(--paper-soft);
  padding: 22px;
}

.result-item .mark {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 49, 36, 0.28);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--font-web);
  font-weight: 700;
}

.result-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-web);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.result-item p {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
}

.step {
  position: relative;
}

.step-number {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 17px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-web);
  font-weight: 700;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 1px;
  background: var(--line);
  content: "";
}

.step-card {
  height: calc(100% - 65px);
  padding: 25px;
  text-align: center;
}

.step-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-web);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  border-radius: var(--radius-xl);
  background: var(--red);
  color: #fff;
  padding: 48px 54px;
}

.final-cta h2 {
  max-width: 576px;
  font-size: 30px;
  line-height: 36px;
}

.final-cta p {
  max-width: 590px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.final-cta .button {
  background: #fff;
  color: var(--ink);
}

.final-cta .button:hover {
  background: #f1f1f1;
}

.faq {
  margin-top: 26px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.faq summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-web);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

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

.faq summary::after {
  flex: 0 0 auto;
  color: var(--red);
  content: "+";
  font-size: 28px;
  font-weight: 400;
  transition: transform 0.18s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  max-width: 750px;
  padding-top: 13px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.footer {
  margin-top: 70px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 54px 0 42px;
  font-size: 14px;
  line-height: 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.footer-logo {
  width: 128px;
  filter: grayscale(1) brightness(0) invert(1);
}

.footer-spacer {
  flex: 1;
}

.footer a:hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s,
    transform 0.55s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 980px) {
  .top-inner {
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .top .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 10px;
    background: #171717;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  }

  .top .nav.open {
    display: flex;
  }

  .top .nav a {
    border-radius: 10px;
    padding: 12px 14px;
  }

  .top .nav a:hover,
  .top .nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
  }

  h1 {
    font-size: 44px;
    line-height: 48px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .top-inner {
    min-height: 64px;
  }

  .alfa-logo {
    width: 104px;
  }

  .soglasen-logo {
    width: 88px;
  }

  .top-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .mobile-nav-action {
    display: flex;
    width: 100%;
    margin-top: 6px;
    justify-content: center;
    background: var(--red);
    color: #fff;
    font-family: var(--font-web);
    font-weight: 500;
    line-height: 20px;
  }

  h1 {
    font-size: 36px;
    line-height: 40px;
  }

  h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 24px;
    margin: 20px 0 28px;
  }

  .hero-form {
    flex-direction: column;
  }

  .hero-form .button {
    width: 100%;
  }

  .sheet {
    border-radius: 32px 32px 0 0;
    padding-top: 44px;
  }

  .section {
    padding: 38px 0;
  }

  .section-first {
    padding-top: 0;
  }

  .metrics,
  .cards,
  .cards.two,
  .steps,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .dark-panel,
  .final-cta {
    border-radius: 32px;
    padding: 34px 24px;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta .button {
    width: 100%;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .footer {
    border-radius: 32px 32px 0 0;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: calc(36px + var(--header-height)) 0 104px;
  }

  .hero-grid {
    display: flex;
    min-height: 704px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .page-audit .hero-grid {
    min-height: 630px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    min-height: 320px;
  }

  .hero-visual img {
    top: 50%;
    right: 50%;
    width: min(380px, 88vw);
    max-width: 100%;
    transform: translate(50%, -50%);
  }
}

@media (max-width: 860px) and (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: auto;
    scroll-padding-top: calc(var(--header-height) + 16px);
    scroll-padding-bottom: 24px;
  }

  input,
  textarea,
  select,
  button {
    touch-action: manipulation;
  }

  input,
  textarea,
  select,
  [contenteditable="true"] {
    scroll-margin-top: calc(var(--header-height) + 16px);
    scroll-margin-bottom: 24px;
  }
}

@media (max-width: 420px) {
  .brands {
    gap: 10px;
  }

  .brand-separator {
    height: 22px;
  }

  .alfa-logo {
    width: 92px;
  }

  .soglasen-logo {
    width: 76px;
  }

  .hero-visual {
    min-height: 280px;
  }

  h1 {
    font-size: 32px;
    line-height: 36px;
  }
}

@media (max-width: 340px) {
  h1 {
    font-size: 30px;
    line-height: 34px;
  }
}
