@font-face {
  font-family: "New York Line";
  src: url("../fonts/New York Line.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mansalva";
  src: url("../fonts/Mansalva.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-default: #222222;
  --color-primary: rgb(15, 40, 122);
  --color-secondary: rgb(173, 38, 133);
  --color-text: #f4f7fb;
  --color-muted: rgba(244, 247, 251, 0.82);
  --font-logo: "New York Line", Georgia, serif;
  --font-display: "Mansalva", Georgia, serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-primary);
}

a {
  color: inherit;
}

.landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
}

.landing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landing__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/cta-bg.jpg") center / cover no-repeat;
  filter: grayscale(1);
}

.landing__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(8, 22, 72, 0.88) 0%, rgba(15, 40, 122, 0.78) 45%, rgba(173, 38, 133, 0.55) 100%);
  pointer-events: none;
}

.landing__content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  text-align: center;
}

.landing__logo {
  width: min(220px, 55vw);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.landing__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-logo);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  letter-spacing: 0.12em;
  font-weight: 400;
  line-height: 1;
}

.landing__brand span {
  color: var(--color-primary);
}

.landing__headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 9vw, 3.7rem);
  font-weight: 400;
  line-height: 1.05;
}

.landing__headline-line {
  display: block;
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding-bottom: 0.34em;
}

.landing__headline-line::after {
  content: "";
  position: absolute;
  left: -2%;
  right: 1%;
  bottom: -0.02em;
  height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M3 16 C 28 7, 52 22, 86 13 S 140 5, 176 17 S 228 25, 276 12 S 330 6, 397 16' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-1.1deg);
}

.landing__headline-line:last-child::after {
  left: 2%;
  right: -3%;
  bottom: 0;
  transform: rotate(0.8deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M2 11 C 36 21, 70 6, 118 15 S 176 24, 230 10 S 292 4, 338 16 S 372 22, 398 9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.landing__text {
  margin: 0 auto 1.75rem;
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.landing__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.landing__cta:hover,
.landing__cta:focus-visible {
  background: #c43498;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
  outline: none;
}

.landing__note {
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.landing__note strong {
  color: #fff;
  font-weight: 600;
}

.landing__contacts {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.landing__contacts a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.landing__contacts a:hover,
.landing__contacts a:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .landing__cta {
    transition: none;
  }

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