/* ============================================================
   Клуб 4:36 — bento-grid
   Стиль: bento-grid + Navy & Gold Editorial.
   Сетка: 4 колонки, фиксированные ряды 170 px, спаны 2×2 / 2×1 / 1×1.
   Все карточки выровнены по линиям; зазор 16 px; радиус 20 px.
   ============================================================ */

.club-page {
  --club-canvas: #F7F5F0;
  --club-card: #FFFFFF;
  --club-ink: #0F1B2D;
  --club-muted: #5A6575;
  --club-accent: #A87C3F;
  --club-accent-deep: #6F4E24;
  --club-radius: 20px;
  --club-gap: 16px;
  --club-pad: 24px;

  --tile-sand: #F1EADF;
  --tile-sage: #E9EFEA;
  --tile-slate: #E9EDF1;
  --tile-blush: #F3E7DD;
  --tile-cream: #F5F0E6;
  --tile-wood: #F2E6D6;
}

.club-page {
  background: var(--club-canvas);
}

.club-shell {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */
.club-hero {
  padding: clamp(7rem, 9vw, 8.5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.club-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.club-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.club-kicker--light {
  justify-content: flex-start;
  color: #D8B67C;
}

.club-kicker--light::before {
  background: #D8B67C;
}

.club-hero h1 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.club-hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.club-hero__lead {
  max-width: 720px;
  margin: 0 auto 0.75rem;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.club-hero__sub {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.club-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.club-hero__actions .btn-primary {
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.club-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.club-btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.club-btn-outline--light {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.club-btn-outline--light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.club-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.club-hero__meta span[aria-hidden="true"] {
  color: var(--accent);
}

/* ---------- Sections ---------- */
.club-section {
  padding-block: clamp(72px, 8vw, 92px);
}

.club-head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.club-head .club-kicker {
  justify-content: flex-start;
}

.club-head h2 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.club-head p:last-child {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, auto);
  grid-auto-flow: dense;
  gap: var(--club-gap);
}

.b2x2 { grid-column: span 2; grid-row: span 2; }
.b2x1 { grid-column: span 2; }
.b1x1 { grid-column: span 1; }
.b1x2 { grid-row: span 2; }

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--club-pad);
  border: 1px solid var(--line);
  border-radius: var(--club-radius);
  background: var(--club-card);
  box-shadow: 0 1px 0 rgba(15, 27, 45, 0.03);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .bento-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

.tile-sand { background: var(--tile-sand); }
.tile-sage { background: var(--tile-sage); }
.tile-slate { background: var(--tile-slate); }
.tile-blush { background: var(--tile-blush); }
.tile-cream { background: var(--tile-cream); }
.tile-wood { background: var(--tile-wood); }

.bento-card--navy {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.bento-card--navy h3,
.bento-card--navy .bento-num,
.bento-card--navy .bento-quote {
  color: #fff;
}

.bento-card--navy p {
  color: rgba(255, 255, 255, 0.74);
}

.bento-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-deep);
}

.bento-card--navy .bento-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #D8B67C;
}

.bento-num {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.bento-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.bento-card p + p {
  margin-top: 8px;
}

.bento-card a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}

.bento-list {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bento-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.bento-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.bento-card--navy .bento-list li {
  color: rgba(255, 255, 255, 0.72);
}

.bento-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bento-quote {
  margin: auto 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.bento-card--image {
  padding: 0;
}

.bento-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-image-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 20px;
  background: rgba(11, 21, 38, 0.82);
  color: #fff;
}

.bento-image-caption h3 {
  margin: 0 0 3px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.bento-image-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
}

/* ---------- Tariff cards ---------- */
.club-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--club-gap);
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--club-radius);
  background: var(--club-card);
  box-shadow: var(--shadow);
}

.plan-card--wood {
  background: var(--tile-wood);
}

.plan-card--metal {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.plan-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.plan-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-deep);
}

.plan-card--metal .plan-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #D8B67C;
}

.plan-name {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plan-card--metal .plan-name {
  color: #fff;
}

.plan-edition {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.plan-card--metal .plan-edition {
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.7);
}

.plan-tagline {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.plan-card--metal .plan-tagline {
  color: rgba(255, 255, 255, 0.64);
}

.plan-price {
  margin: 0 0 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.plan-card--metal .plan-price {
  color: #fff;
}

.plan-listprice {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.plan-card--metal .plan-listprice {
  color: rgba(255, 255, 255, 0.55);
}

.plan-listprice s {
  opacity: 0.8;
}

.plan-econ {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.plan-card--metal .plan-econ {
  color: #fff;
}

.plan-credit {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.plan-card--metal .plan-credit {
  color: rgba(255, 255, 255, 0.62);
}

.plan-benefit {
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--dark);
  font-size: 10.5px;
  font-weight: 700;
}

.plan-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-card--metal .plan-facts {
  border-color: rgba(255, 255, 255, 0.16);
}

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

.plan-facts dt {
  max-width: 55%;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-facts dd {
  max-width: 45%;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.plan-card--metal .plan-facts dt {
  color: rgba(255, 255, 255, 0.55);
}

.plan-card--metal .plan-facts dd {
  color: #fff;
}

.plan-features {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.plan-features li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-card--metal .plan-features li {
  color: rgba(255, 255, 255, 0.72);
}

.plan-card--metal .plan-features li::before {
  background: #D8B67C;
}

.plan-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.plan-call,
.plan-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}

.plan-call {
  flex: 1;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--dark);
}

.plan-call:hover {
  background: #BE9456;
  border-color: #BE9456;
}

.plan-wa {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.plan-wa:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.plan-card--metal .plan-wa {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.plan-card--metal .plan-wa:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.club-plan-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ---------- Comparison table ---------- */
.club-compare-card {
  margin-top: 18px;
  padding: 22px 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--club-radius);
  background: var(--club-card);
  box-shadow: 0 1px 0 rgba(15, 27, 45, 0.03);
}

.club-compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.club-compare-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.club-compare-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.club-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 12.5px;
}

.club-table th,
.club-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  vertical-align: middle;
}

.club-table thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.club-table thead th:first-child {
  text-align: left;
}

.club-table tbody th {
  width: 30%;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: left;
}

.club-table tbody tr:last-child th,
.club-table tbody tr:last-child td {
  border-bottom: 0;
}

.club-table .metal-col {
  background: var(--accent-soft);
  font-weight: 600;
}

.table-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- Final CTA ---------- */
.club-final {
  padding: 0 0 clamp(80px, 10vw, 120px);
}

.club-final__card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--club-radius);
  background: var(--dark);
  color: #fff;
}

.club-final__card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.club-final__card > div > p:not(.club-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.club-final__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.club-final__actions .btn-primary {
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.club-final__actions .club-btn-outline {
  min-height: 48px;
}

.club-final__wa {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-align: center;
  text-underline-offset: 3px;
}

.club-final__wa:hover {
  color: #fff;
}

.club-final__note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.5;
}

.club-legal {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .bento-card {
    min-height: 170px;
  }

  .b2x2,
  .b2x1 {
    grid-column: span 2;
    grid-row: auto;
  }

  .b1x1,
  .b1x2 {
    grid-column: span 1;
    grid-row: auto;
  }

  .b2x2 {
    min-height: 340px;
  }

  .club-plans {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .club-final__card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .club-final__note {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .b2x2,
  .b2x1,
  .b1x1,
  .b1x2 {
    grid-column: span 1;
    grid-row: auto;
  }

  .bento-card {
    min-height: 150px;
    padding: 20px;
  }

  .bento-card--image {
    min-height: 300px;
  }

  .club-head h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .club-hero {
    padding-top: 7rem;
  }

  .club-hero__actions .btn-primary,
  .club-hero__actions .club-btn-outline {
    flex: 1 1 100%;
  }

  .club-hero__meta {
    font-size: 10px;
  }

  .club-compare-card {
    padding: 18px 14px 12px;
  }

  .club-compare-head {
    display: block;
  }

  .club-compare-head p {
    margin-top: 4px;
  }

  .plan-card {
    padding: 22px 20px;
  }

  .club-final {
    padding-bottom: 72px;
  }

  .club-final__actions .btn-primary,
  .club-final__actions .club-btn-outline {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-card:hover {
    transform: none;
  }
}

/* Тёмные bento-карточки: заголовок должен быть светлым (позднее правило) */
.bento-card--navy h3 {
  color: #fff;
}

/* На узких экранах сравнение уже есть в карточках тарифов:
   не показываем обрезанную таблицу, чтобы не было горизонтального скролла. */
@media (max-width: 700px) {
  .club-compare-card {
    display: none;
  }
}
