:root {
  --ink: #1f2229;
  --muted: #626773;
  --line: #e7e4ee;
  --accent: #714bf1;
  --accent-hover: #8f71f4;
  --soft: #f7f3ff;
  --container: 1180px;
}

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

html {
  min-width: 320px;
}

body {
  min-height: 100svh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.42;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

.page {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow-x: clip;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.site-header {
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__logo {
  width: 144px;
  height: auto;
}

.brand__caption {
  max-width: 136px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-weight: 800;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.header__login {
  min-height: 46px;
  padding: 0 24px;
  font-size: 14px;
}

.one-screen {
  min-height: 0;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100%;
  align-items: center;
  background: var(--soft) url("../img/hero-bg.jpg") 50% 50% / cover no-repeat;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.92) 39%, rgba(255, 255, 255, 0.56) 64%, rgba(255, 255, 255, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.hero__inner {
  position: relative;
  display: grid;
  min-height: 100%;
  align-items: center;
  padding: clamp(24px, 3vw, 42px) 0;
}

.hero__content {
  width: min(100%, 650px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.04;
}

.hero__lead {
  max-width: 570px;
  margin-bottom: 24px;
  color: #414651;
  font-size: clamp(18px, 1.65vw, 24px);
}

.hero__checks {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-weight: 700;
}

.check-item__mark {
  display: inline-flex;
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin-top: 1px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
}

.check-item__mark::after {
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.hero__note {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.hero__entry {
  display: grid;
  width: min(100%, 610px);
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(113, 75, 241, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(31, 34, 41, 0.08);
  backdrop-filter: blur(12px);
}

.entry-copy {
  display: grid;
  gap: 4px;
}

.entry-copy strong {
  font-size: 17px;
  font-weight: 800;
}

.entry-copy span {
  color: var(--muted);
  font-size: 14px;
}

.entry-actions {
  display: flex;
  gap: 12px;
}

.footer {
  position: relative;
  overflow: hidden;
  background: #1f2229 url("../img/footer-bg.jpg") 50% 50% / cover no-repeat;
  color: #fff;
}

.footer__shade {
  position: absolute;
  inset: 0;
  background: rgba(31, 34, 41, 0.82);
}

.footer__inner {
  position: relative;
  display: grid;
  min-height: 108px;
  grid-template-columns: auto 1fr;
  gap: 8px 28px;
  align-items: center;
  padding: 18px 0;
}

.footer__brand {
  display: grid;
  gap: 8px;
}

.footer__brand img {
  width: 130px;
}

.footer__brand span,
.footer__contacts span,
.footer__links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin: 0;
  font-style: normal;
}

.footer__contacts a {
  font-weight: 800;
}

.footer__links {
  grid-column: 1 / -1;
  display: flex;
  max-width: 720px;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 16px;
}

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
}

.cookie {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  width: min(520px, calc(100% - 48px));
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(31, 34, 41, 0.96);
  color: #fff;
  box-shadow: 0 20px 60px rgba(31, 34, 41, 0.24);
}

.cookie.is-hidden {
  display: none;
}

.cookie__text {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.cookie__text a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie__button {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 980px) {
  .page {
    grid-template-rows: auto auto auto;
  }

  .hero {
    min-height: auto;
    background-position: 62% 50%;
  }

  .hero__shade {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.92) 62%, rgba(255, 255, 255, 0.48) 100%);
  }

  .hero__entry {
    grid-template-columns: 1fr;
  }

  .entry-actions {
    flex-wrap: wrap;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .header__inner {
    min-height: 70px;
  }

  .brand__logo {
    width: 118px;
  }

  .brand__caption,
  .header__phone {
    display: none;
  }

  .hero {
    background-position: 66% 50%;
  }

  .hero__inner {
    padding: 28px 0 28px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .hero__lead {
    max-width: 330px;
    margin-bottom: 16px;
    font-size: 16px;
  }

  .hero__checks {
    gap: 8px;
    margin-bottom: 14px;
  }

  .check-item {
    gap: 10px;
    font-size: 14px;
  }

  .check-item__mark {
    width: 22px;
    min-width: 22px;
    height: 22px;
  }

  .hero__note {
    margin-bottom: 14px;
    font-size: 16px;
  }

  .hero__entry {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .entry-copy {
    display: none;
  }

  .entry-actions {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  .btn,
  .header__login {
    width: 100%;
    min-height: 50px;
  }

  .header__login {
    width: auto;
    min-height: 42px;
    padding: 0 20px;
  }

  .footer__contacts {
    display: grid;
    gap: 6px;
  }

  .cookie {
    right: 14px;
    bottom: 14px;
    display: flex;
    width: calc(100% - 28px);
    gap: 10px;
    padding: 12px;
  }

  .cookie__text {
    font-size: 12px;
  }

  .cookie__button {
    width: auto;
    min-height: 38px;
    padding: 0 16px;
    white-space: nowrap;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .header__inner {
    min-height: 72px;
  }

  h1 {
    font-size: 52px;
  }

  .hero__lead {
    margin-bottom: 22px;
    font-size: 20px;
  }

  .hero__checks {
    margin-bottom: 22px;
  }

  .footer__inner {
    min-height: 92px;
  }
}
