:root {
  --bg: #f4f7fb;
  --text: #17263f;
  --muted: #5f6f87;
  --blue: #2b579a;
  --navy: #213d6f;
  --red: #bf363c;
  --white: #ffffff;
  --font-ui: "Segoe UI Variable", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --hero-top-shift: 38px;
  --hero-lower-shift: 12px;
  --footer-shift: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(90deg, rgba(43, 87, 154, 0.44) 0%, rgba(106, 78, 166, 0.34) 45%, rgba(191, 54, 60, 0.44) 100%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(43, 87, 154, 0.36), transparent 37%),
    radial-gradient(circle at 85% 25%, rgba(191, 54, 60, 0.34), transparent 34%),
    radial-gradient(circle at 50% 80%, rgba(33, 61, 111, 0.2), transparent 40%);
  pointer-events: none;
}

.landing {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: 6px 32px 0;
  min-height: 0;
}

.hero {
  width: min(100%, 880px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 122px);
  min-height: calc(100dvh - 122px);
}

.hero__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  transform: translateY(var(--hero-top-shift));
}

.hero__logo {
  width: min(156px, 24vw);
  height: auto;
  filter: none;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}

.hero__flow {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.18rem, 2.1vw, 1.75rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__center {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__lower {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(var(--hero-lower-shift));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button--primary {
  min-width: min(92vw, 360px);
  min-height: 60px;
  padding: 0 26px;
  background: var(--navy);
  color: var(--white);
  font-size: clamp(1.08rem, 2.5vw, 1.35rem);
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(33, 61, 111, 0.22);
}

.button--static {
  cursor: default;
  pointer-events: none;
  font-size: clamp(0.98rem, 2.15vw, 1.18rem);
}

.button--static:hover,
.button--static:focus-visible {
  transform: none;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 48px;
}

.hero__meta p {
  margin: 0;
}

.site-footer {
  width: min(calc(100% - 48px), 980px);
  margin: 0 auto 1px;
  padding: 8px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(234, 214, 211, 0.95);
  background: rgba(251, 245, 244, 0.9);
  color: #7a4949;
  transform: translateY(var(--footer-shift));
}

.site-footer__body {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-support {
  margin: 0 auto 8px;
  width: min(calc(100% - 48px), 980px);
  text-align: center;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--blue);
}

.site-footer__notice {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer__notice p,
.site-footer__copyright {
  margin: 0;
}

.site-footer__copyright {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .landing {
    padding-inline: 24px;
  }

  .site-footer {
    width: min(calc(100% - 34px), 980px);
  }
}

@media (max-height: 900px) {
  :root {
    --hero-top-shift: 28px;
    --hero-lower-shift: 10px;
    --footer-shift: 0px;
  }

  .hero {
    min-height: calc(100vh - 118px);
    min-height: calc(100dvh - 118px);
  }

  .hero__center {
    gap: 18px;
  }

  .hero__lower {
    gap: 14px;
  }
}

@media (max-height: 780px) {
  :root {
    --hero-top-shift: 18px;
    --hero-lower-shift: 6px;
    --footer-shift: 0px;
  }

  .landing {
    padding-top: 14px;
  }

  .hero {
    min-height: calc(100vh - 110px);
    min-height: calc(100dvh - 110px);
  }

  .hero__logo {
    width: min(132px, 22vw);
  }

  h1 {
    font-size: clamp(1.72rem, 3.2vw, 2.8rem);
  }

  .hero__flow {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
  }

  .hero__center {
    gap: 14px;
  }

  .button--primary {
    min-height: 52px;
  }

  .hero__meta {
    font-size: 0.88rem;
  }

  .site-footer {
    padding: 7px 14px;
  }

  .site-footer__notice {
    font-size: 0.76rem;
    line-height: 1.45;
  }
}

@media (max-height: 860px), (max-width: 720px) {
  body {
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .landing {
    padding: 18px 18px 0;
  }

  .hero {
    min-height: calc(100vh - 196px);
  }

  .hero__logo {
    width: min(150px, 35vw);
  }

  h1 {
    font-size: clamp(1.7rem, 7vw, 2.45rem);
  }

  .hero__flow {
    font-size: clamp(1.02rem, 4.6vw, 1.32rem);
  }

  .hero__center {
    gap: 40px;
  }

  .hero__lower {
    gap: 34px;
  }

  .button--primary {
    min-width: 100%;
  }

  .site-footer {
    width: min(calc(100% - 28px), 980px);
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
  }

  .site-footer__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-support {
    width: min(calc(100% - 28px), 980px);
    margin-bottom: 6px;
  }
}
