:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #fbfdff;
  --border: #dbe4f0;
  --text: #19243a;
  --muted: #58657c;
  --blue: #2b579a;
  --navy: #213d6f;
  --red: #bf363c;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(25, 45, 80, 0.08);
  --radius: 8px;
  --font-ui: "Segoe UI Variable", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --hero-top-shift: 38px;
  --hero-lower-shift: 12px;
  --footer-shift: 0px;
  --footer-width: 780px;
  --footer-bottom-gap: 88px;
}

* {
  box-sizing: border-box;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: var(--footer-bottom-gap);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 220px, #f3f6fb 100%);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 5;
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 100%);
  pointer-events: none;
}

.landing {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 6px 32px 0;
  min-height: calc(100vh - var(--footer-bottom-gap));
}

.hero {
  width: min(100%, 880px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - var(--footer-bottom-gap) - 6px);
}

.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: 3rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}

.hero__flow {
  margin: 0;
  color: var(--navy);
  font-size: 1.48rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  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: var(--radius);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-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: 1.18rem;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(33, 61, 111, 0.18);
}

.button--static {
  cursor: default;
  pointer-events: none;
  font-size: 1.08rem;
}

.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), var(--footer-width));
  margin: 0 auto;
  padding: 8px 18px 9px;
  display: block;
  flex: 0 0 auto;
  border: 1px solid rgba(234, 214, 211, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 248, 247, 0.94);
  color: #7a4949;
  transform: translateY(var(--footer-shift));
}

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

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

.seo-content {
  position: relative;
  width: 100%;
  padding: 50px 24px 24px;
}

.seo-content__inner {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.seo-content h2,
.seo-content h3,
.seo-content p {
  margin: 0;
}

.seo-content h2 {
  color: var(--navy);
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: justify;
  text-align-last: center;
}

.seo-content__inner > p {
  margin-top: 12px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

.seo-content__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.seo-content article {
  min-width: 0;
  padding-top: 14px;
  border-top: 2px solid rgba(191, 54, 60, 0.52);
}

.seo-content h3 {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
}

.seo-content article p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: justify;
}

.site-footer__notice p,
.site-footer__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-legal-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  padding: 9px 0 13px;
  border-top: 1px solid rgba(216, 226, 240, 0.58);
  background: rgba(248, 250, 253, 0.92);
  backdrop-filter: blur(8px);
  color: var(--muted);
}

.site-legal-footer__inner {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  display: grid;
  gap: 5px;
}

.site-footer__meta {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 3px 28px;
  margin-top: 0;
  color: var(--navy);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.45;
}

.site-footer__meta > :first-child {
  text-align: left;
}

.site-footer__meta > :last-child {
  justify-self: end;
  text-align: right;
}

.site-footer__legal {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(max-content, 1fr));
  align-items: baseline;
  margin-top: 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.site-footer__legal a {
  position: relative;
  display: block;
  padding: 0 12px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.site-footer__legal a:first-child {
  padding-left: 0;
  text-align: left;
}

.site-footer__legal a:last-child {
  padding-right: 0;
  text-align: right;
}

.site-footer__legal a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(33, 61, 111, 0.48);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  text-decoration: underline;
}

.site-footer__copyright {
  max-width: 320px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

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

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

  .seo-content {
    padding-inline: 17px;
  }
}

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

  .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__logo {
    width: min(132px, 22vw);
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero__flow {
    font-size: 1.26rem;
  }

  .hero__center {
    gap: 14px;
  }

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

  .hero__meta {
    font-size: 0.88rem;
  }

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

  .site-legal-footer {
    padding: 8px 0 11px;
  }

  .site-footer__meta {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  :root {
    --footer-bottom-gap: 128px;
  }

  .landing {
    padding: 18px 18px 0;
  }

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

  h1 {
    font-size: 2rem;
  }

  .hero__flow {
    font-size: 1.12rem;
  }

  .hero__center {
    gap: 26px;
  }

  .hero__lower {
    gap: 22px;
  }

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

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

  .seo-content {
    padding: 38px 14px 20px;
  }

  .seo-content__inner {
    padding: 24px 18px;
  }

  .seo-content__grid {
    grid-template-columns: 1fr;
  }

  .site-legal-footer {
    padding: 10px 0 12px;
  }

  .site-legal-footer__inner {
    width: min(calc(100% - 28px), var(--footer-width));
    gap: 6px;
  }

  .site-footer__copyright {
    max-width: none;
    text-align: left;
  }

  .site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 0;
  }

  .site-footer__meta > span {
    flex: 1 1 100%;
  }

  .site-footer__meta > :last-child {
    justify-self: auto;
    text-align: left;
  }

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

  .site-footer__legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 0;
  }

  .site-footer__legal a,
  .site-footer__legal a:first-child,
  .site-footer__legal a:last-child {
    flex: 0 1 auto;
    padding: 0 9px;
    text-align: center;
  }

  .site-footer__legal a:not(:last-child)::after {
    position: static;
    display: inline-block;
    margin-left: 9px;
    transform: none;
  }
}
