/* =========================================
   rugby2027.ru — PREMIUM CORE / v1.1
   ========================================= */

:root{
  --bg-deep:#050812;
  --bg-main:#0b1633;

  --text-main:#e6ecff;
  --text-sub:rgba(223,232,255,.58);

  --surface:rgba(18,26,58,.55);
  --surface-strong:rgba(22,32,72,.75);

  --line:rgba(255,255,255,.10);
  --line-soft:rgba(255,255,255,.06);

  --accent:rgba(140,170,255,.55);

  --page-max:1120px;
  --page-pad:18px;

  --radius:22px;
  --radius-lg:26px;

  --gap:20px;

  --shadow-soft:0 18px 46px rgba(0,0,0,.45);
  --shadow-hover:0 26px 70px rgba(0,0,0,.65);
}

/* ===== RESET / BASE ===== */

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

html,body{ height:100%; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text-main);
  background-color:var(--bg-deep);
  color-scheme:dark;
  overflow-x:clip;

  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(120,150,255,.22),
      rgba(40,70,160,.14) 35%,
      rgba(12,22,55,.75) 70%,
      #050812 100%
    ),
    linear-gradient(180deg,
      #0b1633 0%,
      #070e1f 45%,
      #050812 100%
    );
}

/* ===== LAYOUT ===== */

.page{
  padding:32px 0 90px;
}

.container{
  max-width:var(--page-max);
  margin:0 auto;
  padding:0 var(--page-pad);
}

/* ===== HERO ===== */

.hero{
  text-align:center;
  padding:36px 0 40px; /* было 44px — чуть плотнее, без потери торжественности */
}

.logo{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-bottom:22px;
}

.logo svg{
  width:92px;
  opacity:.95;
}

.logo-caption{
  font-size:.72rem;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--text-sub);
}

.h1{
  margin:0 0 22px;
  font-size:clamp(1.25rem,3.2vw,1.75rem);
  font-weight:600;
}

.timer{
  display:grid;
  gap:8px; /* было 10px — мягче */
  justify-items:center;
}

.timer-line{
  font-size:clamp(2.1rem,5.6vw,3.05rem); /* чуть спокойнее */
  font-weight:650; /* было 700 */
  letter-spacing:.02em;
  color:rgba(230,236,255,.88); /* приглушение без потери акцента */
}

.subtitle{
  font-size:.78rem;
  color:var(--text-sub);
}

/* ===== SECTION HEADER ===== */

.section-label{
  margin:22px 0 8px; /* было 34px — группы ближе */
  font-size:.68rem;
  letter-spacing:.38em;
  text-transform:uppercase;
  color:rgba(223,232,255,.45);
}

/* ===== GROUPS ===== */

.groups-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--gap);
  margin-top:14px; /* было 18px */
}

.group-card{
  position:relative;
  padding:22px 22px 24px;
  border-radius:var(--radius-lg);
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.04),
      rgba(255,255,255,0)
    ),
    var(--surface);
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow-soft);
  transition:
    transform .45s ease,
    box-shadow .45s ease,
    border-color .45s ease,
    background .45s ease;
}

/* ===== CARD HOVER ===== */

.group-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    radial-gradient(120% 80% at 50% -20%,
      rgba(140,170,255,.18),
      transparent 60%);
  opacity:0;
  transition:opacity .45s ease;
  pointer-events:none;
}

.group-card:hover{
  transform:translateY(-6px);
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,0)
    ),
    var(--surface-strong);
  border-color:rgba(140,170,255,.35);
  box-shadow:var(--shadow-hover);
}

.group-card:hover::before{
  opacity:1;
}

.group-title{
  margin-bottom:12px;
  font-size:.72rem;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:rgba(210,225,255,.9);
}

.group-divider{
  height:1px;
  margin:10px 0 16px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(180,200,255,.65),
      transparent);
}

.group-team{
  font-size:1rem;
  line-height:1.6;
  color:var(--text-main);
}

/* ===== RESPONSIVE ===== */

@media (max-width:960px){
  .groups-grid{ grid-template-columns:repeat(2,1fr); }
}

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

/* ===== UPCOMING GLASS CARDS ===== */

.upcoming-streams{
  margin-top:28px;
  padding:22px;
  border-radius:24px;
  background:rgba(18,26,58,.45);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
}

.upcoming-title{
  margin-bottom:18px;
  font-size:.7rem;
  letter-spacing:.38em;
  text-transform:uppercase;
  color:rgba(223,232,255,.55);
  text-align:center;
}

/* ===== CARD ===== */

.upcoming-item{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:14px 16px;
  margin-bottom:12px;

  border-radius:16px;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,0)
    ),
    rgba(18,26,58,.55);

  border:1px solid rgba(255,255,255,.10);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;

  cursor:default;
}

.upcoming-item:last-child{
  margin-bottom:0;
}

/* ===== HOVER / TAP ===== */

.upcoming-item:hover{
  transform:translateY(-4px);
  border-color:rgba(140,170,255,.35);
  box-shadow:
    0 22px 60px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(140,170,255,.12);
}

/* ===== TEXT ===== */

.upcoming-time{
  font-size:.9rem;
  opacity:.7;
  white-space:nowrap;
}

.upcoming-match{
  font-size:1rem;
  font-weight:500;
  text-align:right;
   }
