:root {
  --ink: #f7f8fb;
  --muted: #b8ad91;
  --muted-soft: #7d8190;
  --paper: #050817;
  --panel: #0b0d16;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #ffbd16;
  --accent-soft: rgba(255, 189, 22, 0.13);
  --accent-line: rgba(255, 189, 22, 0.48);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

.cabinet-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  contain: strict;
}

.cabinet-background.is-ready {
  opacity: var(--cabinet-bg-opacity, 0.72);
}

.cabinet-background canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 23, 0.84);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(5, 8, 23, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 156px;
  height: 44px;
}

.brand__mark {
  width: 156px;
  height: 44px;
  object-fit: contain;
}

.nav {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--header {
  border-color: var(--accent-line);
  background: rgba(255, 189, 22, 0.14);
  color: #fff2c7;
}

.button--primary,
.btn-tariff {
  background: var(--accent);
  color: #0b0d16;
  box-shadow: 0 18px 38px rgba(255, 189, 22, 0.23);
}

.button--primary:hover,
.btn-tariff:hover {
  background: #ffc947;
  box-shadow: 0 20px 44px rgba(255, 189, 22, 0.32);
}

.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 80;
  display: flex;
  max-width: 760px;
  gap: 16px;
  align-items: center;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 8, 23, 0.94);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-consent button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #15110a;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.hero {
  display: grid;
  align-items: center;
  min-height: 72svh;
  padding: 142px 24px 88px;
}

.hero__inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 82px;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: #d8d2c4;
  font-size: 19px;
  line-height: 1.6;
}

.section {
  padding: 88px 24px;
  background: transparent;
}

.section--plain {
  background: transparent;
}

.section__inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-title {
  margin-bottom: 34px;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: 0;
}

.advantages-grid,
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.advantage-card,
.tariff-card {
  min-height: 244px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 13, 22, 0.92);
}

.advantage-card p,
.tariff-card p,
.site-footer p,
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.62;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0d16;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage-card h3,
.tariff-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: 0;
}

.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 278px;
}

.tariff-card-featured {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(255, 189, 22, 0.14), rgba(11, 13, 22, 0) 42%),
    rgba(11, 13, 22, 0.94);
  box-shadow: var(--shadow);
}

.tariff-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 16px;
}

.tariff-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.tariff-badge--discount {
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: #ffd978;
}

.tariff-badge--popular {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.tariff-header {
  display: grid;
  gap: 18px;
}

.tariff-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
}

.tariff-price .price {
  color: var(--ink);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.tariff-price .period {
  color: var(--muted);
  font-weight: 700;
}

.tariff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.tariff-meta li {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e8eaf0;
  font-size: 13px;
  font-weight: 700;
}

.btn-tariff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.tariffs-loading,
.tariffs-error {
  grid-column: 1 / -1;
  min-height: 120px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 13, 22, 0.92);
  color: var(--muted);
  font-weight: 700;
}

.servers-section {
  padding-top: 64px;
  text-align: center;
}

.servers-container {
  display: grid;
  justify-items: center;
}

.servers-note {
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 13, 22, 0.74);
}

.servers-note strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.servers-note span {
  color: var(--muted);
  line-height: 1.55;
}

.faq-hero {
  padding: 138px 24px 48px;
}

.faq-hero__inner,
.faq-section {
  width: min(920px, 100%);
  margin: 0 auto;
}

.faq-hero h1 {
  margin-bottom: 12px;
  font-size: 64px;
}

.faq-hero p {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

.faq-search {
  position: relative;
  display: block;
}

.faq-search input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(11, 13, 22, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.faq-search input::placeholder {
  color: var(--muted);
}

.faq-search input:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.faq-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
}

.faq-search__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-section {
  padding: 0 24px 82px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item,
.faq-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 13, 22, 0.94);
}

.faq-item.is-open {
  border-color: rgba(255, 189, 22, 0.34);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
}

.faq-question:hover {
  color: #fff2c7;
}

.faq-arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq-item.is-open .faq-arrow {
  transform: rotate(225deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 180ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  min-height: 0;
  padding: 0 20px;
  color: var(--muted);
  line-height: 1.62;
}

.faq-item.is-open .faq-answer__inner {
  padding-bottom: 20px;
}

.faq-answer__inner > :last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 4px;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.faq-answer li + li {
  margin-top: 8px;
}

.faq-image-row {
  display: flex;
  justify-content: center;
}

.faq-image-row img {
  max-width: 160px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.site-footer {
  padding: 54px 24px;
  background: transparent;
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 42px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.site-footer__brand img {
  width: 156px;
  height: auto;
}

.site-footer__brand p {
  max-width: 320px;
  margin: 14px 0 0;
  color: #c9d0c2;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer h4 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.site-footer a {
  color: #e8eddf;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #aab2a5;
  font-size: 14px;
}

.legal-hero {
  padding: 138px 24px 54px;
  background: var(--paper);
}

.legal-hero__inner,
.legal {
  width: min(920px, 100%);
  margin: 0 auto;
}

.legal-hero h1 {
  margin-bottom: 12px;
  font-size: 58px;
}

.legal-hero p {
  color: var(--muted);
  font-weight: 700;
}

.legal {
  padding: 34px 24px 78px;
}

.legal article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 13, 22, 0.94);
}

.legal h2 {
  margin-top: 34px;
  font-size: 26px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .site-header {
    inset: 12px 12px auto;
  }

  .nav--desktop {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 108px 18px 64px;
  }

  .advantages-grid,
  .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cookie-consent {
    display: block;
    padding: 14px;
  }

  .cookie-consent button {
    width: 100%;
    margin-top: 14px;
  }

  .site-header {
    min-height: 60px;
    padding-left: 14px;
  }

  .brand,
  .brand__mark {
    width: 134px;
    height: 38px;
  }

  .button--header {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }

  .button--header svg {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding-top: 94px;
  }

  h1 {
    font-size: 50px;
  }

  .section-title {
    font-size: 34px;
  }

  .hero__lead {
    font-size: 17px;
  }

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

  .section {
    padding: 64px 18px;
  }

  .advantages-grid,
  .tariffs-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card,
  .tariff-card {
    min-height: 0;
  }

  .tariff-price .price {
    font-size: 38px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .legal-hero {
    padding: 112px 18px 38px;
  }

  .faq-hero {
    padding: 112px 18px 38px;
  }

  .faq-hero h1 {
    font-size: 42px;
  }

  .faq-hero p {
    font-size: 16px;
  }

  .faq-section {
    padding: 0 18px 58px;
  }

  .faq-question {
    min-height: 58px;
    padding: 16px;
  }

  .faq-answer__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .legal-hero h1 {
    font-size: 40px;
  }

  .legal {
    padding: 24px 18px 58px;
  }

  .legal article {
    padding: 22px;
  }
}
