/* =========================================================
   ПЕРЕМЕННЫЕ
   ========================================================= */

:root {
  --page: #f3f8f5;
  --surface: #ffffff;
  --surface-soft: #e8f5ee;
  --surface-accent: #d9f2e4;

  --text: #17372a;
  --muted: #6d8177;
  --line: #d5e6dc;

  --primary: #a9e8c7;
  --primary-dark: #185c40;

  --yellow: #ffe4a3;

  --warning: #fff6dc;
  --warning-line: #d99c29;

  --promo-start: #174d38;
  --promo-end: #287556;

  --max: 1160px;
  --radius: 24px;
  --topbar-height: 72px;

  --shadow: 0 18px 50px rgba(24, 78, 53, 0.1);
}

html[data-theme="dark"] {
  --page: #20272b;
  --surface: #2b3438;
  --surface-soft: #354147;
  --surface-accent: #3e4d50;

  --text: #f2f7f4;
  --muted: #b8c6c0;
  --line: #4d5d61;

  --primary: #a8e8c5;
  --primary-dark: #13251d;

  --yellow: #f6d887;

  --warning: #463f2c;
  --warning-line: #edc568;

  --promo-start: #123b2b;
  --promo-end: #1d6044;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.27);
}


/* =========================================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ========================================================= */

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration: underline;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
code,
td,
th {
  overflow-wrap: anywhere;
}

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

main,
section,
header,
footer,
.container {
  width: 100%;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 36px), var(--max));
  margin-right: auto;
  margin-left: auto;
}


/* =========================================================
   ШАПКА
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  min-height: var(--topbar-height);

  border-bottom: 1px solid var(--line);
  background: rgba(243, 248, 245, 0.95);
  box-shadow: 0 5px 24px rgba(24, 78, 53, 0.07);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .topbar {
  background: rgba(32, 39, 43, 0.95);
}

.topbar-inner {
  position: relative;

  display: flex;
  align-items: center;
  gap: 18px;

  min-height: var(--topbar-height);
}


/* Бренд */

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-width: 0;

  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.4px;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 39px;
  height: 39px;
  min-width: 39px;
  max-width: 39px;
  flex: 0 0 39px;
  object-fit: contain;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.brand-main {
  color: var(--text);
}

.brand-domain {
  color: var(--primary-dark);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: -0.7px;
}


/* Ссылка MAX в шапке */

.entry_max {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;

  min-height: 40px;
  padding: 7px 13px 7px 8px;

  border: 1px solid #006fe6;
  border-radius: 999px;

  background: #007AFF;
  color: #ffffff !important;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 5px 16px rgba(0, 122, 255, 0.24);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.entry_max:hover {
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 9px 23px rgba(0, 122, 255, 0.35);
}

.entry_max svg {
  display: block;
  width: 25px;
  height: 21px;
  flex: 0 0 25px;
}

.entry_max svg path {
  fill: #ffffff;
}


/* Навигация */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}


/* Кнопки шапки */

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  margin-left: 0;
}

.theme-button,
.menu-button {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--surface);
  color: var(--text);
}

.theme-button {
  font-size: 20px;
  line-height: 1;
}

.theme-button:hover,
.menu-button:hover {
  background: var(--surface-soft);
}

.menu-button {
  display: none;
  position: relative;
  gap: 4px;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;

  border-radius: 2px;
  background: currentColor;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-button.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* =========================================================
   ОСНОВНОЙ КОНТЕНТ
   ========================================================= */

main {
  min-height: 70vh;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 22px;

  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;

  margin-top: 28px;
  padding: clamp(34px, 6vw, 72px);

  border: 1px solid var(--line);
  border-radius: 34px;

  background:
    radial-gradient(
      circle at 88% 15%,
      rgba(169, 232, 199, 0.95),
      transparent 28%
    ),
    radial-gradient(
      circle at 12% 100%,
      rgba(217, 242, 228, 0.95),
      transparent 34%
    ),
    var(--surface);

  box-shadow: var(--shadow);
}

.hero::after {
  content: "";

  position: absolute;
  right: 8%;
  bottom: -130px;

  width: 280px;
  height: 280px;

  border: 30px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;

  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;

  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.promo .eyebrow {
  color: #bdf3d3;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(36px, 6vw, 68px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 43px);
}

h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

.lead {
  max-width: 790px;
  color: var(--muted);
  font-size: 19px;
}

.section {
  width: 100%;
  padding-top: 52px;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}


/* =========================================================
   СЕТКИ И КАРТОЧКИ
   ========================================================= */

.grid {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

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

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

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

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.card {
  min-width: 0;
  height: 100%;
  padding: 25px;

  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-soft {
  background: var(--surface-soft);
  box-shadow: none;
}

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

.card-icon {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;
  margin-bottom: 17px;

  border-radius: 17px;
  background: var(--surface-accent);
  color: var(--primary-dark);

  font-size: 25px;
  font-weight: 900;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.service {
  max-width: 100%;
  padding: 9px 13px;

  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);

  font-weight: 700;
  overflow-wrap: anywhere;
}


/* =========================================================
   КНОПКИ
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  max-width: 100%;
  padding: 11px 19px;

  border: 1px solid transparent;
  border-radius: 14px;

  background: var(--primary);
  color: var(--primary-dark);

  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.97);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}


/* =========================================================
   ШАГИ
   ========================================================= */

.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  min-width: 0;
  padding: 28px 28px 28px 112px;
}

.step-number {
  position: absolute;
  top: 28px;
  left: 28px;

  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;
  min-width: 58px;

  border-radius: 17px;
  background: var(--primary);
  color: var(--primary-dark);

  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.step h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}


/* =========================================================
   ПРОМОБЛОК И ПРОМОКОД
   ========================================================= */

.promo {
  position: relative;
  overflow: hidden;

  width: 100%;
  padding: clamp(27px, 5vw, 50px);

  border-radius: 30px;
  background: linear-gradient(
    135deg,
    var(--promo-start),
    var(--promo-end)
  );
  color: #ffffff;
  box-shadow: var(--shadow);
}

.promo::before {
  content: "";

  position: absolute;
  top: -100px;
  right: -80px;

  width: 280px;
  height: 280px;

  border: 28px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.promo h2,
.promo p,
.promo .code-box,
.promo > a {
  position: relative;
  z-index: 1;
}

.promo h2 {
  max-width: 750px;
}

.promo p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  width: 100%;
  max-width: 580px;
  margin: 25px 0;
  padding: 9px;

  border: 1px dashed rgba(255, 255, 255, 0.65);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.11);
}

.promo-code {
  display: block;
  min-width: 0;
  padding: 8px 12px;

  color: #ffffff;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.copy-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.promo .button {
  background: #ffffff;
  color: #174d38;
}


/* =========================================================
   ТАБЛИЦА
   ========================================================= */

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.offers-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.offers-table th,
.offers-table td {
  padding: 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.offers-table th {
  background: var(--surface-soft);
  font-size: 14px;
}

.offers-table tr:last-child td {
  border-bottom: 0;
}

.discount {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 10px;

  border-radius: 999px;
  background: var(--yellow);
  color: #765900;

  font-weight: 900;
  white-space: nowrap;
}

.table-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  max-width: 100%;
  padding: 9px 13px;

  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-dark);

  font-size: 14px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.table-button:hover {
  text-decoration: none;
}


/* =========================================================
   УВЕДОМЛЕНИЯ, СПИСКИ, MAX-БЛОК
   ========================================================= */

.notice {
  margin-top: 22px;
  padding: 20px 22px;

  border-left: 5px solid var(--warning-line);
  border-radius: 15px;
  background: var(--warning);

  overflow-wrap: anywhere;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

.check-list {
  display: grid;
  gap: 10px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";

  position: absolute;
  top: 0;
  left: 0;

  color: var(--primary-dark);
  font-weight: 900;
}

.level-number {
  display: block;
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-size: 36px;
  font-weight: 900;
}

.max-card {
  min-width: 0;
  padding: 30px;

  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.max-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 11px;

  border-radius: 999px;
  background: #222222;
  color: #ffffff;

  font-size: 13px;
  font-weight: 900;
}

.max-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0;
}

.max-item {
  min-width: 0;
  padding: 15px;
  border-radius: 15px;
  background: var(--surface-soft);
  font-weight: 700;
}


/* =========================================================
   БЛОК КАНАЛА MAX
   ========================================================= */

.bfh-max-section {
  width: 100%;
  padding: 48px 20px;
}

.bfh-wrap {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.bfh-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: 42px;

  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.bfh-card::before,
.bfh-card::after {
  content: "";

  position: absolute;
  z-index: -1;

  width: 280px;
  height: 280px;

  border-radius: 50%;
  pointer-events: none;
}

.bfh-card::before {
  top: -120px;
  right: -120px;
  background: radial-gradient(
    circle,
    rgba(169, 232, 199, 0.6),
    transparent 70%
  );
}

.bfh-card::after {
  bottom: -120px;
  left: -120px;
  background: radial-gradient(
    circle,
    rgba(217, 242, 228, 0.7),
    transparent 70%
  );
}

.bfh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 18px;
  padding: 8px 16px;

  border-radius: 999px;
  background: #007AFF;
  color: #ffffff;

  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.25);
}

.bfh-card h1,
.bfh-card h2 {
  max-width: 850px;
  margin-bottom: 18px;

  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.1;
}

.bfh-card p {
  max-width: 820px;
  margin-bottom: 20px;

  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.bfh-card p a {
  color: var(--primary-dark);
  font-weight: 700;
}

.bfh-max-image-link {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 20px 0 26px;
  overflow: hidden;
  border-radius: 18px;
}

.responsive-img {
  display: block;
  width: 100%;
  height: auto;
}

.bfh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.bfh-item {
  min-width: 0;
  padding: 20px;

  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);

  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.bfh-item span {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
}

.bfh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 56px;
  max-width: 100%;
  padding: 15px 28px;

  border-radius: 18px;
  background: #007AFF;
  color: #ffffff !important;

  font-size: 18px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.28);
}

.bfh-btn:hover {
  color: #ffffff !important;
  text-decoration: none;
  filter: brightness(1.07);
  box-shadow: 0 16px 36px rgba(0, 122, 255, 0.35);
}

.bfh-link {
  max-width: 100%;
  margin-top: 18px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}


/* =========================================================
   ПЛАВАЮЩАЯ КНОПКА MAX
   ========================================================= */

/* Плавающая кнопка MAX */

.max-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;

  background: linear-gradient(
    90deg,
    rgba(65, 133, 246, 1) 0%,
    rgba(73, 48, 224, 1) 48%,
    rgba(150, 75, 218, 1) 98%
  ) !important;

  color: #ffffff !important;
  text-decoration: none;

  box-shadow:
    0 8px 22px rgba(73, 48, 224, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.16);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.max-float:hover {
  background: linear-gradient(
    90deg,
    rgba(65, 133, 246, 1) 0%,
    rgba(73, 48, 224, 1) 48%,
    rgba(150, 75, 218, 1) 98%
  ) !important;

  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.08);

  box-shadow:
    0 13px 30px rgba(73, 48, 224, 0.45),
    0 5px 12px rgba(0, 0, 0, 0.2);
}

.max-float:active {
  transform: translateY(-1px) scale(0.98);
}

.max-float:focus-visible {
  outline: 3px solid rgba(150, 75, 218, 0.55);
  outline-offset: 4px;
}

/* Белая иконка MAX */

.max-float svg {
  display: block;
  width: 31px;
  height: 25px;
  max-width: none;

  fill: #ffffff !important;
  pointer-events: none;
}

.max-float svg path {
  fill: #ffffff !important;
}

.max-float img {
  display: block;
  width: 31px;
  height: 25px;
  object-fit: contain;
  pointer-events: none;
}

/* Пульсация */

.max-float::after {
  content: "";

  position: absolute;
  inset: -5px;

  border: 1px solid rgba(150, 75, 218, 0.5);
  border-radius: 50%;

  opacity: 0;
  pointer-events: none;

  animation: max-float-pulse 2.8s ease-out infinite;
}

@keyframes max-float-pulse {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  25% {
    opacity: 0.65;
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

/* Мобильная версия */

@media (max-width: 780px) {
  .max-float {
    right: 15px;
    bottom: 15px;
    width: 52px;
    height: 52px;
  }

  .max-float svg,
  .max-float img {
    width: 29px;
    height: 24px;
  }
}

@media (max-width: 420px) {
  .max-float {
    right: 12px;
    bottom: 12px;
    width: 49px;
    height: 49px;
  }

  .max-float svg,
  .max-float img {
    width: 27px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .max-float,
  .max-float::after {
    animation: none;
    transition: none;
  }
}

.entry_max {
  background: linear-gradient(
    90deg,
    rgba(65, 133, 246, 1) 0%,
    rgba(73, 48, 224, 1) 48%,
    rgba(150, 75, 218, 1) 98%
  ) !important;

  color: #ffffff !important;
}

.entry_max svg,
.entry_max svg path {
  fill: #ffffff !important;
}
/* =========================================================
   ПОДВАЛ
   ========================================================= */

.footer {
  width: 100%;
  margin-top: 65px;
  padding: 38px 0 25px;

  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}


/* =========================================================
   ПЛАНШЕТЫ
   ========================================================= */

@media (max-width: 1000px) {
  .topbar-inner {
    gap: 11px;
  }

  .entry_max {
    padding-right: 9px;
    padding-left: 7px;
    font-size: 11px;
  }

  .entry_max svg {
    width: 23px;
    height: 19px;
    flex-basis: 23px;
  }

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


/* =========================================================
   МОБИЛЬНОЕ МЕНЮ
   ========================================================= */

@media (max-width: 780px) {
  :root {
    --topbar-height: 64px;
  }

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

  .topbar-inner {
    min-height: var(--topbar-height);
  }

  .menu-button {
    display: grid !important;
    position: relative;
    z-index: 1002;
  }

  .topbar .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 13px;
    left: 13px;
    z-index: 1001;

    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    margin: 0;
    padding: 10px 16px;

    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .topbar .nav.is-open {
    display: flex !important;
  }

  .topbar .nav a {
    display: block;
    width: 100%;
    padding: 12px 0;

    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 15px;
    white-space: normal;
  }

  .topbar .nav a:last-child {
    border-bottom: 0;
  }

  .entry_max {
    min-height: 37px;
    padding: 6px 9px 6px 7px;
    font-size: 0;
  }

  .entry_max svg {
    width: 24px;
    height: 20px;
    flex-basis: 24px;
  }

  .header-actions {
    margin-left: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .bfh-grid,
  .max-list {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 18px;
    padding: 34px 24px;
    border-radius: 23px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .lead {
    font-size: 17px;
  }

  .actions {
    display: grid;
    width: 100%;
  }

  .actions .button,
  .bfh-btn {
    width: 100%;
  }

  .step {
    min-height: 210px;
    padding: 108px 22px 24px;
  }

  .step-number {
    top: 24px;
    left: 22px;
  }

  .bfh-max-section {
    padding: 28px 14px;
  }

  .bfh-card {
    padding: 27px 20px;
    border-radius: 22px;
  }

  .bfh-card h1,
  .bfh-card h2 {
    font-size: 32px;
  }

  .bfh-card p {
    font-size: 16px;
  }

  .promo {
    padding: 27px 20px;
    border-radius: 23px;
  }

  .code-box {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .copy-button {
    width: 100%;
  }

  .promo-code {
    width: 100%;
    text-align: center;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .offers-table,
  .offers-table tbody,
  .offers-table tr,
  .offers-table td {
    display: block;
    width: 100%;
  }

  .offers-table thead {
    display: none;
  }

  .offers-table tr {
    margin-bottom: 18px;
    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .offers-table td {
    display: grid;
    grid-template-columns: minmax(90px, 34%) minmax(0, 1fr);
    gap: 12px;

    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .offers-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .offers-table td:last-child {
    border-bottom: 0;
  }

  .offers-table td:last-child .table-button {
    width: 100%;
  }

  .footer-inner {
    display: grid;
  }

  .max-float {
    right: 15px;
    bottom: 15px;
    width: 52px;
    height: 52px;
  }

  .max-float svg,
  .max-float img {
    width: 29px;
    height: 24px;
  }
}


/* =========================================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ========================================================= */

@media (max-width: 560px) {
  .brand {
    gap: 7px;
    font-size: 21px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    flex-basis: 36px;
  }

  .header-actions {
    gap: 5px;
  }

  .theme-button,
  .menu-button {
    width: 38px;
    height: 38px;
  }

  .card {
    padding: 21px;
  }

  .max-card {
    padding: 23px 20px;
  }

  .step {
    min-height: 0;
    padding: 102px 20px 22px;
  }

  .step-number {
    top: 20px;
    left: 20px;
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 15px;
    font-size: 18px;
  }

  .step h3 {
    font-size: 19px;
  }

  .step p {
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  :root {
    --topbar-height: 60px;
  }

  .container {
    width: calc(100% - 20px);
  }

  .brand {
    font-size: 19px;
  }

  .brand-logo {
    width: 33px;
    height: 33px;
    min-width: 33px;
    max-width: 33px;
    flex-basis: 33px;
  }

  .theme-button,
  .menu-button {
    width: 36px;
    height: 36px;
  }

  .topbar-inner {
    gap: 6px;
  }

  .topbar .nav {
    right: 10px;
    left: 10px;
  }

  .promo-code {
    font-size: 17px;
    letter-spacing: 0.4px;
  }

  .offers-table td {
    grid-template-columns: minmax(78px, 31%) minmax(0, 1fr);
    gap: 8px;
    font-size: 14px;
  }

  .max-float {
    right: 12px;
    bottom: 12px;
    width: 49px;
    height: 49px;
  }

  .max-float svg,
  .max-float img {
    width: 27px;
    height: 22px;
  }
}


/* =========================================================
   СКРЫТИЕ СТАРЫХ ВАРИАНТОВ MAX
   ========================================================= */

.max-menu-link,
.max-mobile-link {
  display: none !important;
}


/* =========================================================
   ОТКЛЮЧЕНИЕ АНИМАЦИЙ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   ФИНАЛЬНАЯ ФИКСАЦИЯ ШАПКИ
   ========================================================= */

:root {
  --topbar-height: 72px;
}

body {
  padding-top: var(--topbar-height);
}

.topbar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 10000 !important;

  display: block;
  width: 100%;
  min-height: var(--topbar-height);

  border-bottom: 1px solid var(--line);
  background: rgba(243, 248, 245, 0.96);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .topbar {
  background: rgba(32, 39, 43, 0.96);
}

.topbar-inner {
  min-height: var(--topbar-height);
}

@media (max-width: 780px) {
  :root {
    --topbar-height: 64px;
  }

  body {
    padding-top: var(--topbar-height);
  }

  .topbar {
    min-height: var(--topbar-height);
  }

  .topbar-inner {
    min-height: var(--topbar-height);
  }
}

@media (max-width: 420px) {
  :root {
    --topbar-height: 60px;
  }

  body {
    padding-top: var(--topbar-height);
  }

  .topbar {
    min-height: var(--topbar-height);
  }

  .topbar-inner {
    min-height: var(--topbar-height);
  }
}