:root {
  --bg: #07070b;
  --text: #f4f5f8;
  --muted: #a9aab6;
  --line: rgba(196, 168, 255, 0.28);
  --violet: #c4a8ff;
  --header: 112px;
  --pad: 20px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c4a8ff #121018;
}

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

html::-webkit-scrollbar-track {
  background: #07070b;
}

html::-webkit-scrollbar-thumb {
  background: #c4a8ff;
}

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;
}

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

h1,
h2,
.logo,
.row__num,
.facts span {
  font-family: Unbounded, Manrope, sans-serif;
}

.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, 7, 11, 0.9);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

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

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

.switch a + a {
  border-left: 0;
}

.switch a[aria-current="page"] {
  background: #c4a8ff;
  color: #140e22;
}

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

.lang {
  display: flex;
}

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

.lang button + button {
  border-left: 0;
}

.lang button[aria-pressed="true"] {
  background: #c4a8ff;
  border-color: #c4a8ff;
  color: #140e22;
}

.header__phone {
  padding: 8px 12px;
  border: 1px solid var(--violet);
  color: var(--violet);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header));
  padding: 28px var(--pad);
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.35), rgba(7, 7, 11, 0.55)),
    url("assets/hero.png") center 30% / cover no-repeat;
}

.hero__panel {
  width: min(680px, 100%);
  padding: 28px 20px 24px;
  text-align: center;
  background: rgba(7, 7, 11, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.eyebrow {
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-top: 14px;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__lead {
  margin-top: 12px;
  color: #dddde6;
}

.btn,
.pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 700;
  text-decoration: none;
}

.btn {
  width: 100%;
  margin-top: 22px;
  background: #c4a8ff;
  color: #140e22;
}

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

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

.section__head,
.rows,
.facts,
.footer {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

h2 {
  margin-top: 8px;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 500;
}

.rows {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.row__num {
  color: var(--violet);
  font-size: 13px;
}

.row h3 {
  font-size: 18px;
}

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

.price {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.pick {
  grid-column: 1 / -1;
  border: 1px solid var(--violet);
  color: var(--text);
}

.facts {
  display: grid;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}

.facts li {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.facts li + li {
  border-top: 1px solid var(--line);
}

.facts span {
  color: var(--violet);
  font-size: 13px;
}

.footer {
  display: grid;
  gap: 18px;
  margin-top: 48px;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

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

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

.footer__list a {
  color: var(--violet);
  font-weight: 700;
  text-decoration: none;
}

.instagram {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  font-weight: 700;
  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;
    min-width: 118px;
    padding: 0 16px;
  }

  .btn {
    width: auto;
    min-width: 280px;
  }

  .row {
    grid-template-columns: 42px 1fr auto auto;
  }

  .pick {
    grid-column: auto;
    min-width: 120px;
  }

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

  .facts li + li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

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

.contacts {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  background: #101014;
  color: var(--text);
  color-scheme: dark;
}

.contacts::backdrop {
  background: rgba(5, 5, 8, 0.76);
}

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

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

.contacts__close {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  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-weight: 700;
}

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

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

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

@media (hover: hover) {
  .btn:hover,
  .switch a[aria-current="page"]:hover {
    filter: brightness(1.08);
  }

  .pick:hover,
  .header__phone:hover {
    background: rgba(196, 168, 255, 0.14);
  }
}
