/* Atari Fastbuy redesign. This file is intentionally scoped to /fastbuy. */

html[data-theme="light"] body.fastbuy-body,
body.fastbuy-body {
  --fastbuy-red: #d80d1b;
  --fastbuy-red-dark: #a20712;
  --fastbuy-ink: #111216;
  --fastbuy-soft-ink: #4c5360;
  --fastbuy-paper: #fffdfb;
  --fastbuy-paper-soft: #faf5f3;
  --fastbuy-line: rgba(32, 35, 43, 0.12);
  min-height: 100dvh;
  background: var(--fastbuy-paper);
  color: var(--fastbuy-ink);
}

.fastbuy-body #spaceGrid {
  display: none;
}

html[data-theme="dark"] body.fastbuy-body {
  --fastbuy-ink: #f8f6f5;
  --fastbuy-soft-ink: #c5bec0;
  --fastbuy-paper: #090809;
  --fastbuy-paper-soft: #110d0e;
  --fastbuy-line: rgba(255, 255, 255, 0.12);
  background: var(--fastbuy-paper);
}

.fastbuy-page {
  width: var(--site-fluid-content-width);
  max-width: none;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: visible;
}

.fastbuy-page > * {
  min-width: 0;
  max-width: 100%;
}

.fastbuy-showcase,
.fastbuy-tariffs-section,
.fastbuy-telegram-section {
  width: 100%;
}

/* Header */
.fastbuy-page .cabinet-header {
  min-height: 88px;
  margin: 0;
  gap: 24px;
}

.fastbuy-page .brand {
  color: var(--fastbuy-ink);
  gap: 14px;
  flex: 0 0 auto;
}

.fastbuy-page .brand img {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
}

.fastbuy-page .brand span {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fastbuy-page .header-menu {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(32px, 4.5vw, 70px);
  margin-inline: auto;
}

.fastbuy-page .cabinet-header .header-menu .ghost-btn {
  position: relative;
  min-height: auto;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fastbuy-ink);
  font-size: 17px;
  font-weight: 600;
  transform: none;
}

.fastbuy-page .cabinet-header .header-menu .ghost-btn::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--fastbuy-red);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.fastbuy-page .cabinet-header .header-menu .ghost-btn:hover,
.fastbuy-page .cabinet-header .header-menu .ghost-btn:focus-visible,
.fastbuy-page .cabinet-header .header-menu .ghost-btn.is-active {
  color: var(--fastbuy-red);
}

.fastbuy-page .cabinet-header .header-menu .ghost-btn:hover::after,
.fastbuy-page .cabinet-header .header-menu .ghost-btn:focus-visible::after,
.fastbuy-page .cabinet-header .header-menu .ghost-btn.is-active::after {
  transform: scaleX(1);
}

.fastbuy-page .site-header-controls {
  gap: 12px;
}

.fastbuy-page .lang-switch-select {
  min-width: 88px;
  height: 46px;
  padding: 0 38px 0 18px;
  border-color: var(--fastbuy-line);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.72);
  background-position: calc(100% - 19px) 20px, calc(100% - 13px) 20px;
  background-size: 6px 6px, 6px 6px;
  color: var(--fastbuy-ink);
  font-size: 15px;
  box-shadow: none;
}

html[data-theme="dark"] .fastbuy-page .lang-switch-select {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--fastbuy-ink);
  border-color: var(--fastbuy-line);
}

.fastbuy-page .theme-switch {
  width: 58px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--fastbuy-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--fastbuy-ink);
  box-shadow: none;
}

html[data-theme="dark"] .fastbuy-page .theme-switch {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--fastbuy-line);
}

.fastbuy-page .theme-switch-track {
  display: grid;
  place-items: center;
}

.fastbuy-page .theme-switch-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  height: auto;
  opacity: 0;
  color: currentColor;
  transition: opacity 160ms ease, transform 180ms ease;
}

.fastbuy-page .theme-switch-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.fastbuy-page .theme-switch[data-theme-state="dark"] .theme-switch-icon-sun,
.fastbuy-page .theme-switch[data-theme-state="light"] .theme-switch-icon-moon {
  opacity: 1;
  color: currentColor;
}

.fastbuy-page .theme-switch-thumb {
  display: none;
}

.fastbuy-page .mobile-theme-switch {
  display: none;
}

/* Hero */
.fastbuy-showcase {
  min-height: clamp(410px, 42dvh, 540px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  padding: 30px 0 140px;
  align-items: start;
  background: var(--fastbuy-paper);
  color: var(--fastbuy-ink);
  box-shadow: none;
}

.fastbuy-showcase::before,
.fastbuy-showcase::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.fastbuy-showcase::before {
  inset: 0;
  background:
    linear-gradient(90deg, var(--fastbuy-paper) 0%, rgba(255, 253, 251, 0.94) 25%, transparent 58%),
    linear-gradient(180deg, transparent 65%, var(--fastbuy-paper) 100%);
}

.fastbuy-showcase::after {
  display: none;
}

html[data-theme="dark"] .fastbuy-showcase {
  background: var(--fastbuy-paper);
  color: var(--fastbuy-ink);
}

html[data-theme="dark"] .fastbuy-showcase::before {
  background:
    linear-gradient(90deg, #090809 0%, rgba(9, 8, 9, 0.94) 28%, transparent 60%),
    linear-gradient(180deg, transparent 68%, #090809 100%);
}

.fastbuy-showcase-art {
  position: absolute;
  z-index: 0;
  top: -160px;
  right: -36px;
  width: min(940px, 72%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 58% 52%, #000 48%, rgba(0, 0, 0, 0.92) 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 72% at 58% 52%, #000 48%, rgba(0, 0, 0, 0.92) 60%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.fastbuy-showcase-art img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.76;
  filter: saturate(0.95) brightness(1.18) contrast(0.92);
}

html[data-theme="dark"] .fastbuy-showcase-art img {
  opacity: 0.62;
  filter: saturate(1.12) brightness(0.72) contrast(1.12);
}

.fastbuy-showcase-content {
  z-index: 2;
  width: min(620px, 46%);
  max-width: none;
  gap: 10px;
}

.fastbuy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #9b9faa;
  font-size: 14px;
  font-weight: 600;
}

.fastbuy-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.fastbuy-breadcrumbs a:hover,
.fastbuy-breadcrumbs a:focus-visible {
  color: var(--fastbuy-red);
}

.fastbuy-showcase-content .hero-title {
  display: grid;
  margin: 0;
  color: var(--fastbuy-ink);
  font-size: clamp(58px, 5.2vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: none;
  text-shadow: none;
}

.fastbuy-hero-brand strong {
  color: var(--fastbuy-red);
  font-weight: 900;
}

.fastbuy-showcase-content .page-subtitle {
  max-width: 540px;
  margin: 4px 0 0;
  color: var(--fastbuy-soft-ink);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.42;
}

.fastbuy-hero-actions {
  margin-top: 8px;
}

.fastbuy-hero-actions .btn {
  min-height: 56px;
  border-radius: 13px;
  padding: 12px 24px;
  font-size: 16px;
}

/* Tariff cards */
.fastbuy-tariffs-section {
  z-index: 4;
  margin-top: -130px;
  overflow: visible;
}

.fastbuy-section-title {
  margin: 0 0 10px 4px;
  color: var(--fastbuy-ink);
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.2;
}

.fastbuy-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  margin: 0;
}

.fastbuy-card {
  position: relative;
  grid-column: span 2;
  min-height: clamp(360px, 34dvh, 470px);
  overflow: hidden;
  gap: 14px;
  border: 1px solid var(--fastbuy-line);
  border-radius: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  color: #121318;
  box-shadow: 0 16px 42px rgba(64, 26, 28, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fastbuy-cards > .fastbuy-card:only-child,
.fastbuy-cards > .fastbuy-card:nth-child(3n + 1):last-child {
  grid-column: 3 / span 2;
}

.fastbuy-cards > .fastbuy-card:first-child:nth-last-child(2),
.fastbuy-cards > .fastbuy-card:nth-child(3n + 1):nth-last-child(2) {
  grid-column: 2 / span 2;
}

html[data-theme="dark"] .fastbuy-card {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(20, 16, 17, 0.96);
  color: #f8f6f5;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.fastbuy-card.fastbuy-card-opti,
html[data-theme="light"] .fastbuy-card.fastbuy-card-opti,
html[data-theme="dark"] .fastbuy-card.fastbuy-card-opti {
  border-color: rgba(232, 31, 42, 0.9);
  background:
    linear-gradient(140deg, rgba(18, 10, 11, 0.98) 0%, rgba(42, 12, 14, 0.94) 54%, rgba(132, 10, 18, 0.88) 100%),
    #170a0c;
  color: #fff;
  box-shadow: 0 18px 46px rgba(216, 13, 27, 0.22);
}

.fastbuy-card-opti::before {
  content: "";
  position: absolute;
  right: -45px;
  bottom: 38px;
  width: 78%;
  aspect-ratio: 3 / 2;
  background: url("/static/tori.avif") center / contain no-repeat;
  opacity: 0.22;
  filter: saturate(0) brightness(0.62) contrast(1.3);
  pointer-events: none;
}

.fastbuy-card > * {
  position: relative;
  z-index: 1;
}

.fastbuy-card > .plan-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  border: 0;
  padding: 4px 12px;
  background: linear-gradient(180deg, #ff2834, #d80d1b);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  transform: translateX(-50%);
}

.fastbuy-card-opti .plan-top {
  padding-top: 4px;
}

.fastbuy-plan-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fastbuy-plan-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  background: rgba(216, 13, 27, 0.09);
  color: var(--fastbuy-red);
}

.fastbuy-card-opti .fastbuy-plan-icon {
  background: rgba(216, 13, 27, 0.24);
  color: #fff;
}

.fastbuy-plan-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fastbuy-plan-heading-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.fastbuy-card .plan-name {
  color: inherit;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
}

.fastbuy-card .plan-scenario {
  margin: 0;
  color: #4e5563;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 650;
}

.fastbuy-card.fastbuy-card-opti .plan-scenario,
html[data-theme="dark"] .fastbuy-card .plan-scenario {
  color: rgba(255, 255, 255, 0.72);
}

.fastbuy-card .plan-scenario-list {
  margin-top: 14px;
  gap: 7px;
}

.fastbuy-card .plan-scenario-list li {
  color: inherit;
  font-size: 16px;
  font-weight: 650;
}

.fastbuy-card .plan-scenario-list li::before {
  color: var(--fastbuy-red);
}

.fastbuy-card-opti .plan-scenario-list li::before {
  color: #fff;
}

.fastbuy-card .plan-users {
  margin: 2px 0 0;
  color: #6b707a;
  font-size: 14px;
  line-height: 1.3;
}

html[data-theme="dark"] .fastbuy-card .plan-users,
.fastbuy-card.fastbuy-card-opti .plan-users,
html[data-theme="light"] .fastbuy-card.fastbuy-card-opti .plan-users {
  color: rgba(255, 255, 255, 0.64);
}

.fastbuy-card .plan-limit {
  width: fit-content;
  margin: 4px 0 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f3f3f4;
  color: #1a1b20;
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
}

html[data-theme="dark"] .fastbuy-card .plan-limit {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.fastbuy-card.fastbuy-card-opti .plan-limit,
html[data-theme="light"] .fastbuy-card.fastbuy-card-opti .plan-limit {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.fastbuy-card .plan-price-stack {
  margin-top: auto;
  border-top: 1px solid rgba(18, 19, 24, 0.1);
  padding-top: 12px;
}

html[data-theme="dark"] .fastbuy-card .plan-price-stack,
.fastbuy-card.fastbuy-card-opti .plan-price-stack,
html[data-theme="light"] .fastbuy-card.fastbuy-card-opti .plan-price-stack {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.fastbuy-plan-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fastbuy-card .plan-price {
  color: inherit;
  font-size: clamp(36px, 2.7vw, 42px);
  line-height: 1;
  white-space: nowrap;
}

.fastbuy-card .plan-duration {
  margin: 0;
  color: #59606d;
  font-size: 14px;
  white-space: nowrap;
}

html[data-theme="dark"] .fastbuy-card .plan-duration,
.fastbuy-card.fastbuy-card-opti .plan-duration,
html[data-theme="light"] .fastbuy-card.fastbuy-card-opti .plan-duration {
  color: rgba(255, 255, 255, 0.72);
}

.fastbuy-card .plan-old-price {
  min-height: 17px;
  color: #8b8f97;
}

.fastbuy-card .plan-old-price.is-hidden {
  display: block;
  visibility: hidden;
}

.fastbuy-card .plan-price-stack > .muted {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
}

.fastbuy-card .tariff-actions {
  margin-top: 0;
}

.fastbuy-card .tariff-actions .btn {
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #e20e1c, #c60915);
  box-shadow: none;
  color: #fff;
  font-size: 16px;
}

.fastbuy-card-opti .tariff-actions .btn {
  background: linear-gradient(180deg, #ff2934, #e00d1a);
  box-shadow: 0 10px 24px rgba(216, 13, 27, 0.3);
}

/* Telegram and footer */
.fastbuy-telegram-section {
  margin: 22px 0 0;
  min-height: 82px;
  border: 1px solid rgba(216, 13, 27, 0.18);
  border-radius: 16px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(216, 13, 27, 0.07), rgba(216, 13, 27, 0.025));
  box-shadow: none;
}

html[data-theme="dark"] .fastbuy-telegram-section {
  border-color: rgba(216, 13, 27, 0.32);
  background: linear-gradient(90deg, rgba(216, 13, 27, 0.15), rgba(255, 255, 255, 0.025));
  color: var(--fastbuy-ink);
}

.fastbuy-telegram-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  color: var(--fastbuy-ink);
  text-decoration: none;
}

.fastbuy-telegram-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e31320, #bd0712);
  color: #fff;
}

.fastbuy-telegram-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.fastbuy-telegram-copy {
  display: grid;
  gap: 2px;
}

.fastbuy-telegram-copy strong {
  font-size: 17px;
  line-height: 1.2;
}

.fastbuy-telegram-copy small {
  color: var(--fastbuy-soft-ink);
  font-size: 12px;
}

.fastbuy-telegram-channel {
  min-width: 140px;
  min-height: 42px;
  border-color: rgba(216, 13, 27, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--fastbuy-red);
  font-size: 13px;
}

html[data-theme="dark"] .fastbuy-telegram-channel {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.fastbuy-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: 14px 16px 8px;
  color: var(--fastbuy-soft-ink);
}

.fastbuy-footer small {
  font-size: 12px;
}

/* Checkout and trial dialogs */
.fastbuy-checkout-backdrop,
.fastbuy-trial-modal-backdrop {
  background: rgba(9, 7, 8, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.fastbuy-checkout-card,
.fastbuy-trial-modal-card {
  border: 1px solid var(--fastbuy-line);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.98);
  color: #14151a;
  box-shadow: 0 24px 70px rgba(29, 11, 13, 0.25);
}

html[data-theme="dark"] .fastbuy-checkout-card,
html[data-theme="dark"] .fastbuy-trial-modal-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(17, 13, 14, 0.98);
  color: #fff;
}

.fastbuy-checkout-close,
.fastbuy-trial-close {
  border-color: var(--fastbuy-line);
  background: rgba(255, 255, 255, 0.72);
  color: #14151a;
}

html[data-theme="dark"] .fastbuy-checkout-close,
html[data-theme="dark"] .fastbuy-trial-close {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.fastbuy-checkout-card > .plan-badge {
  margin: 0;
  border: 0;
  background: rgba(216, 13, 27, 0.1);
  color: var(--fastbuy-red);
  letter-spacing: 0;
  text-transform: none;
}

.fastbuy-trial-modal-card > h2 {
  margin: 0 44px 10px 0;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.08;
}

.fastbuy-checkout-details div {
  border-color: var(--fastbuy-line);
}

.fastbuy-checkout-period-select {
  border-color: var(--fastbuy-line);
  background: rgba(20, 21, 26, 0.03);
  color: inherit;
}

html[data-theme="dark"] .fastbuy-checkout-period-select {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.fastbuy-checkout-note {
  background: rgba(216, 13, 27, 0.07);
}

.fastbuy-trial-list,
.fastbuy-trial-modal-card .muted,
.fastbuy-checkout-plan span {
  color: #5c626d;
}

html[data-theme="dark"] .fastbuy-trial-list,
html[data-theme="dark"] .fastbuy-trial-modal-card .muted,
html[data-theme="dark"] .fastbuy-checkout-plan span {
  color: rgba(255, 255, 255, 0.7);
}

/* Interaction */
.fastbuy-page a:focus-visible,
.fastbuy-page button:focus-visible,
.fastbuy-page select:focus-visible {
  outline: 3px solid rgba(216, 13, 27, 0.28);
  outline-offset: 3px;
}

.fastbuy-page .btn,
.fastbuy-page .ghost-btn,
.fastbuy-card,
.fastbuy-page .theme-switch,
.fastbuy-page .lang-switch-select {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.fastbuy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(64, 26, 28, 0.14);
}

.fastbuy-card-opti:hover {
  box-shadow: 0 24px 58px rgba(216, 13, 27, 0.27);
}

@media (max-width: 1180px) {
  .fastbuy-page { width: var(--site-fluid-content-width); }
}

@media (max-width: 1040px) {
  .fastbuy-page .header-menu {
    gap: 24px;
  }

  .fastbuy-showcase-art {
    right: -100px;
    width: 76%;
  }

  .fastbuy-showcase-content {
    width: 54%;
  }

  .fastbuy-tariffs-section {
    overflow: visible;
  }

  .fastbuy-cards {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    padding: 4px 12px 16px;
  }

  .fastbuy-card {
    flex: 0 0 min(370px, 72vw);
    width: min(370px, 72vw);
    min-width: min(370px, 72vw);
    max-width: min(370px, 72vw);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .fastbuy-card .plan-users {
    display: none;
  }

  .fastbuy-dots {
    display: flex;
    margin-top: 0;
  }

  .fastbuy-telegram-section {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1041px) and (max-height: 780px) {
  .fastbuy-showcase {
    min-height: 350px;
    padding-top: 16px;
    padding-bottom: 112px;
  }

  .fastbuy-showcase-art {
    top: -190px;
  }

  .fastbuy-breadcrumbs {
    margin-bottom: 4px;
  }

  .fastbuy-showcase-content {
    gap: 6px;
  }

  .fastbuy-showcase-content .hero-title {
    font-size: clamp(50px, 4.8vw, 68px);
  }

  .fastbuy-showcase-content .page-subtitle {
    font-size: 17px;
  }

  .fastbuy-hero-actions {
    margin-top: 3px;
  }

  .fastbuy-hero-actions .btn {
    min-height: 48px;
    padding-block: 9px;
  }

  .fastbuy-tariffs-section {
    margin-top: -112px;
  }

  .fastbuy-card {
    min-height: 330px;
    gap: 9px;
    padding: 20px;
  }

  .fastbuy-plan-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .fastbuy-card .plan-scenario-list {
    margin-top: 8px;
    gap: 5px;
  }

  .fastbuy-card .plan-users {
    display: none;
  }

  .fastbuy-card .plan-limit {
    margin-top: 2px;
    padding-block: 5px;
  }

  .fastbuy-card .plan-price-stack {
    padding-top: 9px;
  }

  .fastbuy-card .plan-old-price {
    min-height: 14px;
    font-size: 12px;
  }

  .fastbuy-card .tariff-actions .btn {
    min-height: 46px;
  }

  .fastbuy-telegram-section {
    min-height: 66px;
    margin-top: 10px;
    padding: 7px 12px;
  }

  .fastbuy-telegram-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .fastbuy-telegram-icon svg {
    width: 23px;
    height: 23px;
  }

  .fastbuy-footer {
    padding-top: 6px;
  }
}

@media (max-width: 900px) {
  .fastbuy-page { width: var(--site-fluid-content-width); }

  .fastbuy-page .cabinet-header {
    min-height: 82px;
    gap: 14px;
  }

  .fastbuy-page .brand { margin-right: auto; }
  .fastbuy-page .site-header-controls { order: 2; }

  .fastbuy-page .site-header-controls > .theme-switch {
    display: none;
  }

}

@media (max-width: 760px) {
  .fastbuy-page,
  .cabinet-page.fastbuy-page {
    width: var(--site-fluid-content-width);
    max-width: none;
    padding-bottom: 14px;
  }

  .fastbuy-page .cabinet-header {
    min-height: 84px;
    gap: 10px;
  }

  .fastbuy-page .brand img {
    width: 42px;
    height: 42px;
  }

  .fastbuy-page .brand span {
    font-size: 25px;
  }

  .fastbuy-page .brand { gap: 11px; }

  .fastbuy-page .site-header-controls .desktop-locale-switch { display: inline-flex; }
  .fastbuy-page .lang-switch-select { min-width: 76px; height: 46px; padding-left: 15px; }

  .fastbuy-page .site-header-controls > .theme-switch {
    display: none;
  }

  .fastbuy-showcase {
    min-height: 470px;
    border-radius: 18px;
    padding: 20px 16px 146px;
  }

  .fastbuy-showcase::before {
    background:
      linear-gradient(180deg, var(--fastbuy-paper) 0%, rgba(255, 253, 251, 0.94) 45%, transparent 72%),
      linear-gradient(180deg, transparent 65%, var(--fastbuy-paper) 100%);
  }

  html[data-theme="dark"] .fastbuy-showcase::before {
    background:
      linear-gradient(180deg, #090809 0%, rgba(9, 8, 9, 0.92) 45%, transparent 72%),
      linear-gradient(180deg, transparent 65%, #090809 100%);
  }

  .fastbuy-showcase-art {
    top: 150px;
    right: -96px;
    width: 128%;
  }

  .fastbuy-showcase-content {
    width: 100%;
  }

  .fastbuy-showcase-content .hero-title {
    font-size: clamp(42px, 14vw, 58px);
  }

  .fastbuy-showcase-content .page-subtitle {
    max-width: 94%;
    font-size: 15px;
  }

  .fastbuy-tariffs-section {
    margin-top: -118px;
  }

  .fastbuy-cards {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 10px;
    padding: 4px 10px 18px;
  }

  .fastbuy-card {
    flex: 0 0 calc(100% - 34px);
    width: calc(100% - 34px);
    min-width: calc(100% - 34px);
    max-width: calc(100% - 34px);
    min-height: 350px;
    scroll-snap-align: start;
  }

  .fastbuy-card:hover {
    transform: none;
  }

  .fastbuy-dots {
    margin-top: 0;
  }

  .fastbuy-dot {
    width: 10px;
    height: 10px;
    border-width: 1px;
  }

  .fastbuy-card .plan-scenario-list {
    margin-top: 9px;
  }

  .fastbuy-card .plan-users {
    display: none;
  }

  .fastbuy-telegram-section {
    grid-template-columns: 1fr;
    margin-top: 12px;
    padding: 14px;
  }

  .fastbuy-telegram-channel {
    width: 100%;
  }

  .fastbuy-checkout-card,
  .fastbuy-trial-modal-card {
    max-height: calc(100dvh - 24px);
    margin-top: 12px;
    overflow-y: auto;
  }
}

@media (max-width: 420px) {
  .fastbuy-page .site-header-controls {
    gap: 7px;
  }

  .fastbuy-page .lang-switch-select {
    min-width: 76px;
    padding-left: 15px;
  }

  .fastbuy-breadcrumbs {
    display: none;
  }

  .fastbuy-showcase {
    min-height: 452px;
  }

  .fastbuy-showcase-art {
    top: 172px;
  }

  .fastbuy-card {
    padding: 19px;
  }

  .fastbuy-plan-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

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