/*
  Стили сайта.

  Значения те же, что в приложении (frontend/lib/app/theme.dart): сайт и
  приложение должны читаться как один продукт, а не как два разных.
*/
:root {
  --bg-top: #12102b;
  --bg-mid: #0c0b1c;
  --bg-bottom: #07060f;
  --surface: #14132a;
  --surface-high: #1c1a3a;
  --sponsored: #241f4a;
  --line: #2a2750;
  --brand-dark: #4830f0;
  --brand-light: #7058f8;
  --accent: #6a50f6;
  --success: #3fd98a;
  --warning: #d08a3e;
  --text: #edebfa;
  --muted: #9a94c6;
  --faint: #6b659a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 30%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Unbounded', sans-serif; font-weight: 800; letter-spacing: -0.5px; }
a { color: var(--brand-light); text-decoration: none; }
a:hover { color: #9d8cff; }

/* Цифры выстраиваются в столбик, как в приложении. */
.num { font-variant-numeric: tabular-nums; }
.grow { flex-grow: 1; }
.faint { color: var(--faint); font-size: 12.5px; }
.muted { color: var(--muted); }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* --- Шапка --- */
.top {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 22px 24px 0 24px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 800; color: #fff;
}
.wordmark { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 800; }
.top-nav { display: flex; gap: 24px; padding-left: 28px; }
.top-nav a { font-size: 14px; color: var(--muted); }
.top .button { margin-left: auto; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 14px;
  font-size: 14.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
}
.button.quiet {
  height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600;
  background: var(--surface-high); border: 1px solid var(--line); color: var(--text);
}
.button.light { background: var(--text); color: #12102b; }
.button.outline { background: transparent; border: 1px solid var(--line); color: var(--text); }

/* --- Лендинг --- */
.hero { display: flex; align-items: center; gap: 56px; padding-top: 72px; }
.hero h1 { margin: 0; font-size: 52px; line-height: 1.1; letter-spacing: -1.6px; max-width: 620px; }
.hero p { margin: 22px 0 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 540px; }
.stores { display: flex; gap: 12px; padding-top: 32px; flex-wrap: wrap; }
.store { height: 56px; padding: 0 24px; border-radius: 15px; display: inline-flex; align-items: center; gap: 11px; }
.store.primary { background: linear-gradient(135deg, var(--brand-dark), var(--brand-light)); box-shadow: 0 10px 30px rgba(72, 48, 240, 0.4); }
.store.secondary { background: var(--surface-high); border: 1px solid var(--line); }
.store small { display: block; font-size: 10.5px; opacity: 0.8; }
.store strong { display: block; font-size: 15px; }
.store.primary, .store.primary strong { color: #fff; }
.store.secondary strong { color: var(--text); }
.store.secondary small { color: var(--muted); }

.live { display: flex; align-items: center; gap: 18px; padding-top: 28px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: var(--success); display: inline-block; }
.live b { color: var(--text); font-weight: 600; }
.sep { width: 1px; height: 14px; background: var(--line); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 92px; }
.card { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.card h2 { margin: 16px 0 0 0; font-size: 18px; }
.card p { margin: 10px 0 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.icon-box { width: 42px; height: 42px; border-radius: 13px; background: var(--sponsored); display: flex; align-items: center; justify-content: center; }

.section { padding-top: 88px; }
.section h2 { margin: 0; font-size: 30px; letter-spacing: -0.8px; }
.section > p { margin: 12px 0 0 0; font-size: 15px; color: var(--muted); }
.section-head { display: flex; align-items: baseline; gap: 16px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 24px; }
.tile {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-radius: 13px;
  background: var(--surface-high); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: var(--text);
}
.tile .count { margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--muted); }

.club-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 24px; }
.club-card { border-radius: 16px; background: var(--surface-high); border: 1px solid var(--line); overflow: hidden; display: block; color: var(--text); }
.club-card .photo { height: 156px; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #2f2660 0%, #15132f 100%); }
.club-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.club-card .letter { font-family: 'Unbounded', sans-serif; font-size: 42px; font-weight: 800; color: rgba(237, 235, 250, 0.14); }
.club-card .body { padding: 16px 18px 18px 18px; }
.club-card .name { font-size: 16px; font-weight: 700; }
.club-card .where { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.club-card .price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.club-card .price .value { font-size: 19px; font-weight: 700; }
.club-card .price .unit { font-size: 11.5px; color: var(--muted); }

.badge { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 700; }
.badge.open { background: var(--success); color: #07200f; }
.badge.always { background: rgba(106, 80, 246, 0.92); color: #fff; }
.badge.closed { background: rgba(7, 6, 15, 0.6); color: var(--text); }

.download {
  margin-top: 92px; padding: 42px 46px; border-radius: 22px;
  background: linear-gradient(118deg, #241a46 0%, #33245f 60%, #1e1740 100%);
  border: 1px solid #3a2f70;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.download h2 { margin: 0; font-size: 28px; letter-spacing: -0.6px; }
.download p { margin: 12px 0 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 520px; }

/* --- Страница клуба --- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; font-size: 12.5px; color: var(--faint); }
.crumbs a { color: var(--muted); }

.club-title { margin: 20px 0 0 0; font-size: 36px; line-height: 1.15; letter-spacing: -1px; }
.club-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 14px; font-size: 14px; color: var(--muted); }
.status { padding: 5px 11px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.status.open { background: var(--success); color: #07200f; }
.status.always { background: var(--accent); color: #fff; }
.status.closed { background: var(--surface-high); color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 24px; }
.gallery img, .gallery .blank { height: 260px; width: 100%; border-radius: 16px; object-fit: cover; background: linear-gradient(140deg, #2f2660 0%, #15132f 100%); }

.columns { display: flex; gap: 32px; padding-top: 40px; align-items: flex-start; }
.main { flex-grow: 1; min-width: 0; }
.side { width: 340px; flex-shrink: 0; position: sticky; top: 24px; }

.main h2 { margin: 38px 0 0 0; font-size: 22px; }
.main h2:first-child { margin-top: 0; }
.main p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 700px; }

.zones { margin-top: 18px; border-radius: 16px; background: var(--surface-high); border: 1px solid var(--line); overflow: hidden; }
.zone { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--sponsored); }
.zone:last-child { border-bottom: none; }
.zone .name { font-size: 16px; font-weight: 700; }
.zone .seats { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.zone .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.spec { padding: 4px 10px; border-radius: 8px; background: var(--sponsored); font-size: 12px; font-weight: 600; }
.zone .cost { text-align: right; flex-shrink: 0; }
.zone .cost .value { font-size: 22px; font-weight: 700; }
.zone .cost .unit { margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.packages { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.package { padding: 18px 20px; border-radius: 14px; background: var(--surface-high); border: 1px solid var(--line); }
.package .row { display: flex; align-items: baseline; gap: 12px; }
.package .row .label { flex-grow: 1; font-size: 15px; font-weight: 700; }
.package .row .value { font-size: 17px; font-weight: 700; }
.package .when { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.hours { margin-top: 18px; border-radius: 14px; background: var(--surface-high); border: 1px solid var(--line); padding: 4px 20px; }
.hours .day { display: flex; align-items: center; height: 38px; border-bottom: 1px solid var(--sponsored); font-size: 13.5px; color: var(--muted); }
.hours .day:last-child { border-bottom: none; }
.hours .day .name { flex-grow: 1; }
.hours .day.today { color: var(--text); font-weight: 700; }
.hours .day.today .time { color: var(--success); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 13px; border-radius: 9px; background: var(--surface-high); font-size: 13px; }
.chip.outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.side .box { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.side .from { font-size: 12.5px; color: var(--muted); }
.side .amount { margin-top: 5px; display: flex; align-items: baseline; gap: 7px; }
.side .amount .value { font-size: 30px; font-weight: 700; letter-spacing: -0.8px; }
.side .amount .unit { font-size: 13px; color: var(--muted); }
.side .button { width: 100%; margin-top: 18px; }
.side .divider { height: 1px; background: var(--sponsored); margin: 20px 0; }
.side .address { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.side .promo { margin-top: 16px; border-radius: 18px; background: linear-gradient(120deg, #241a46, #2c2156); border: 1px solid #3a2f70; padding: 20px; }
.side .promo h3 { margin: 0; font-size: 14.5px; font-weight: 700; font-family: 'Onest', sans-serif; letter-spacing: 0; }
.side .promo p { margin: 8px 0 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.side .promo .stores { display: flex; gap: 8px; padding-top: 14px; }
.side .promo .stores a { flex-grow: 1; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

.neighbours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 18px; }
.neighbour { padding: 16px 18px; border-radius: 13px; background: var(--surface-high); border: 1px solid var(--line); display: block; color: var(--text); }
.neighbour .name { font-size: 14.5px; font-weight: 700; }
.neighbour .price { margin-top: 5px; font-size: 12px; color: var(--muted); }

/* --- Пусто и 404 --- */
.state { max-width: 520px; margin: 120px auto; text-align: center; padding: 0 24px; }
.state h1 { margin: 0; font-size: 28px; }
.state p { margin: 14px 0 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.state .button { margin-top: 26px; }

/* --- Подвал --- */
.footer {
  max-width: 1152px; margin: 80px auto 0 auto;
  padding: 28px 24px 36px 24px; border-top: 1px solid #1f1c3d;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer a { font-size: 12.5px; color: var(--muted); }

/* --- Телефон --- */
@media (max-width: 900px) {
  .top-nav { display: none; }
  .hero { flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 40px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.9px; }
  .hero p { font-size: 15px; }
  .hero .phone { display: none; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .cards, .club-grid, .packages, .gallery { grid-template-columns: minmax(0, 1fr); }
  .cards { padding-top: 44px; }
  .tiles, .neighbours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 44px; }
  .section h2 { font-size: 20px; }
  .columns { flex-direction: column; }
  .side { width: 100%; position: static; }
  .club-title { font-size: 25px; letter-spacing: -0.7px; }
  .download { margin-top: 44px; padding: 26px 22px; }
  .download h2 { font-size: 20px; }
  .gallery img, .gallery .blank { height: 200px; }
  .zone { flex-direction: column; gap: 10px; }
  .zone .cost { text-align: left; }
}
