/* Subscription carousel layout and surfaces. */
.tariffs {
  --plan-text: #f8f8f8;
  --plan-muted: #c8c8c8;
  --plan-accent: #909090;
  --plan-highlight: #dddddd;
  overflow: clip;
}
.tariff-carousel {
  position: relative;
  isolation: isolate;
  grid-template-columns: auto minmax(0, 350px) auto;
}
.tariff-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.tariff-carousel .tariff-list { position: relative; z-index: 1; width: 100%; }
.tariff-carousel .tariff-list > .tariff-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  min-height: 390px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgb(221 221 221 / 25%);
  border-top-color: rgb(255 255 255 / 38%);
  border-radius: 28px;
  color: var(--plan-text);
  background: linear-gradient(135deg, rgb(32 32 32 / 76%), rgb(13 13 13 / 76%) 46%, rgb(57 57 57 / 65%));
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%), 0 22px 42px rgb(0 0 0 / 30%);
}
.tariff-carousel .tariff-list > .tariff-card[hidden] { display: none; }
.tariff-carousel .tariff-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: linear-gradient(125deg, rgb(255 255 255 / 7%), transparent 24%, transparent 69%, rgb(255 255 255 / 4%));
  filter: none;
  opacity: 1;
  pointer-events: none;
}
.tariff-carousel .tariff-card::after { content: none; }
.tariff-card-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; }
.tariff-card svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--plan-highlight); }
.tariff-card-brand svg { width: 21px; height: 21px; }
.tariff-carousel .tariff-card h3 { margin: 29px 0 6px; color: var(--plan-text); font-size: clamp(32px, 6vw, 43px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.tariff-card h3 span { font-size: .65em; font-weight: 400; letter-spacing: -.015em; }
.tariff-carousel .tariff-card .tariff-tagline { margin: 0; color: var(--plan-muted); font-size: 14px; line-height: 1.5; }
.tariff-carousel .tariff-card .tariff-price { display: flex; align-items: baseline; gap: 8px; margin: 27px 0 0; color: var(--plan-text); font-size: 54px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.tariff-price .tariff-currency { color: var(--plan-muted); font-size: 27px; font-weight: 400; }
.tariff-features { display: grid; gap: 13px; margin: 28px 0 25px; }
.tariff-carousel .tariff-card .tariff-features p { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--plan-muted); font-size: 13px; line-height: 1.5; }
.tariff-features svg { width: 16px; height: 16px; }
.tariffs .tariff-carousel .tariff-card .tariff-buy:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  margin: auto 0 0;
  padding: 12px 18px;
  border: 1px solid rgb(221 221 221 / 40%);
  border-top-color: rgb(255 255 255 / 42%);
  border-radius: 15px;
  background: linear-gradient(130deg, rgb(144 144 144 / 73%), rgb(144 144 144 / 25%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 5px 20px rgb(0 0 0 / 13%);
  color: var(--plan-text);
  font: 700 14px/1.3 Arial, sans-serif;
  text-align: left;
  letter-spacing: normal;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tariffs .tariff-carousel .tariff-card .tariff-buy:hover { border-color: var(--plan-highlight); box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 6px 25px rgb(144 144 144 / 28%); }
.tariffs .tariff-carousel .tariff-card .tariff-buy:focus-visible { outline: 2px solid var(--plan-highlight); outline-offset: 4px; }
.tariff-feedback { min-height: 30px; padding-top: 9px; }
.tariff-carousel .tariff-card .payment-status { margin: 0; color: var(--plan-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.tariff-carousel .tariff-arrow { z-index: 1; }
@media (max-width: 560px) {
  .tariff-carousel { grid-template-columns: repeat(2, minmax(44px, 1fr)); gap: 18px 12px; }
  .tariff-carousel .tariff-list { grid-column: 1 / -1; grid-row: 1; max-width: 350px; justify-self: center; }
  .tariff-carousel .tariff-arrow { grid-row: 2; width: 44px; }
  .tariff-carousel .tariff-arrow[data-step="-1"] { grid-column: 1; justify-self: end; }
  .tariff-carousel .tariff-arrow[data-step="1"] { grid-column: 2; justify-self: start; }
  .tariff-carousel .tariff-list > .tariff-card { min-height: 380px; padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tariffs .tariff-carousel .tariff-card .tariff-buy:not([hidden]) { transition: none; }
}
