:root {
  --bg: #07080c;
  --bg-raised: #11131a;
  --text: #f5f7fb;
  --muted: #a8aebc;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #4cc3ff;
  --violet: #7a6cff;
  --violet-deep: #5b4dff;
  --header: 112px;
  --pad: 20px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #7a6cff #11131a;
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track {
  background: #07080c;
}

html::-webkit-scrollbar-thumb {
  border: 2px solid #07080c;
  border-radius: 999px;
  background: linear-gradient(180deg, #4cc3ff, #7a6cff);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  min-height: var(--header);
  padding: 10px var(--pad);
  background: rgba(7, 8, 12, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.switch {
  display: flex;
  order: 3;
  gap: 8px;
  width: 100%;
}

.switch a {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.switch a[aria-current="page"] {
  border-color: rgba(122, 108, 255, 0.75);
  background: rgba(122, 108, 255, 0.2);
  color: #fff;
}

.logo {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 10px var(--blue);
  vertical-align: 1px;
}

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

.lang {
  display: flex;
  gap: 6px;
}

.lang button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  border-color: rgba(122, 108, 255, 0.75);
  background: rgba(122, 108, 255, 0.28);
  color: #fff;
}

.header__phone {
  padding: 8px 14px;
  border: 1px solid rgba(76, 195, 255, 0.45);
  border-radius: 999px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header));
  padding: 48px var(--pad) 40px;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.18) 0%, rgba(7, 8, 12, 0.2) 38%, rgba(7, 8, 12, 0.88) 78%, var(--bg) 100%),
    url("assets/hero.png") center 42% / cover no-repeat;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero__lead {
  margin-top: 14px;
  max-width: 28em;
  color: #d5d9e4;
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn:focus-visible,
.header__phone:focus-visible,
.instagram:focus-visible,
.footer a:focus-visible,
.logo:focus-visible,
.switch a:focus-visible,
.lang button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn--primary {
  width: 100%;
  margin-top: 28px;
  background: linear-gradient(180deg, #6d62ff 0%, var(--violet-deep) 100%);
  box-shadow: 0 10px 28px rgba(91, 77, 255, 0.38);
  color: #fff;
  font-size: 17px;
}

.section {
  padding: 64px var(--pad) 8px;
}

.section--tight {
  padding-top: 56px;
  padding-bottom: 28px;
}

.section__head {
  max-width: 1120px;
  margin: 0 auto 22px;
}

h2 {
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cards,
.perks,
.footer {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
}

.price {
  margin-top: 8px;
  color: var(--text) !important;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.btn--choice {
  width: 100%;
  margin-top: auto;
  background: rgba(122, 108, 255, 0.14);
  border: 1px solid rgba(122, 108, 255, 0.45);
  color: #fff;
}

.perks {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.perks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.perk__icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(76, 195, 255, 0.1);
  color: var(--blue);
}

.perks p {
  padding-top: 8px;
}

.footer {
  display: grid;
  gap: 22px;
  margin-top: 36px;
  padding: 28px var(--pad) 36px;
  border-top: 1px solid var(--line);
}

.footer__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.footer__list a,
.footer__list strong {
  font-size: 16px;
  font-weight: 600;
}

.footer__list a {
  color: var(--blue);
  text-decoration: none;
}

.instagram {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 720px) {
  :root {
    --pad: 32px;
    --header: 64px;
  }

  .header {
    flex-wrap: nowrap;
    padding-top: 0;
    padding-bottom: 0;
  }

  .switch {
    order: 0;
    width: auto;
  }

  .switch a {
    flex: none;
    padding: 0 14px;
  }

  .btn--primary {
    width: auto;
  }

  .cards,
  .perks {
    grid-template-columns: 1fr 1fr;
  }

  .perks li:last-child {
    grid-column: 1 / -1;
  }

  .footer {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }

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

@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .perks li:last-child {
    grid-column: auto;
  }

  .hero {
    padding-bottom: 72px;
  }
}

.contacts {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(122, 108, 255, 0.45);
  border-radius: 20px;
  background: #12141c;
  color: var(--text);
  color-scheme: dark;
}

.contacts::backdrop {
  background: rgba(5, 6, 10, 0.72);
}

.contacts__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.contacts h2 {
  margin-top: 6px;
  font-size: 28px;
}

.contacts__close {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contacts__list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contacts__list span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.contacts__list a,
.contacts__list strong {
  font-size: 16px;
  font-weight: 700;
}

.contacts__list a {
  color: var(--blue);
  text-decoration: none;
}

.contacts .btn--primary {
  width: 100%;
  margin-top: 20px;
}

.contacts__close:focus-visible,
.contacts a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (hover: hover) {
  .btn--primary:hover {
    filter: brightness(1.08);
  }

  .btn--choice:hover {
    background: rgba(122, 108, 255, 0.28);
  }

  .header__phone:hover,
  .instagram:hover,
  .footer__list a:hover {
    color: #fff;
  }
}
