/* ============================================================
   BEACH TENNIS CLUB — style.css
   ============================================================ */

/* Variables */
:root {
  --primary:      #0A6B5C;
  --primary-dark: #085449;
  --text-dark:    #0A3D35;
  --text-muted:   #4A8A80;
  --bg:           #EAF6F6;
  --card-bg:      #FFFFFF;
  --border:       #d4e8e4;
  --danger:       #c0392b;
  --success:      #27ae60;
  --radius-pill:  20px;
  --radius-card:  14px;
  --shadow:       0 2px 16px rgba(10,107,92,.10);
  --font:         'Inter', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: 760px; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--text-dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-dark); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: #e0f5f0; }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover { background: #fce8e6; }
.btn-lg  { padding: .8rem 2rem;   font-size: 1.05rem; }
.btn-sm  { padding: .45rem 1rem; font-size: .875rem; }
.btn-xs  { padding: .3rem .7rem;  font-size: .8rem;  }
.btn--full { width: 100%; justify-content: center; }

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(10,107,92,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  flex-shrink: 0;
}
/* Название сайта видно всегда; на телефоне — чуть мельче, на совсем узком экране обрезается «…» */
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) {
  .logo { font-size: .95rem; flex-shrink: 1; min-width: 0; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.nav-list {
  display: none;
  list-style: none;
  gap: .15rem;
}
@media (min-width: 900px) {
  .nav-list { display: flex; }
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .75rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-list > li > a:hover,
.nav-list > li:hover > a { background: var(--bg); color: var(--primary); }
.chevron { flex-shrink: 0; transition: transform .2s; }
.nav-list > li:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .4rem 0;
  padding-top: .6rem;   /* визуальный отступ без разрыва hover-зоны */
  list-style: none;
  box-shadow: var(--shadow);
  z-index: 200;
}
/* невидимый мост между ссылкой и dropdown — закрывает зазор */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: .6rem;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .875rem;
  color: var(--text-dark);
  transition: background .12s, color .12s;
}
.dropdown li a:hover { background: var(--bg); color: var(--primary); }

/* Language button */
.lang-btn {
  display: inline-flex;
  align-items: center;
  padding: .35rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color .15s, color .15s, background .15s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--bg); }

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  padding: 4px;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Mobile nav overlay */
@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
  }
  .main-nav.open { display: flex; }
  .nav-list { display: flex; flex-direction: column; }
  .nav-list > li > a { padding: .7rem .75rem; font-size: .95rem; }
  .dropdown {
    position: static;
    display: block;
    border: none;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
    padding: 0;
    margin: 0 0 .25rem 1rem;
  }
  .has-dropdown .dropdown { display: none; }
  .has-dropdown.mobile-open .dropdown { display: block; }
  .nav-actions { margin-top: .5rem; padding: .5rem 0; }
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--teal { background: #f0fafa; }
.section--hero-sm {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #0e8a75 100%);
  color: #fff;
}
.section--hero-photo {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.50) 0%, rgba(0,30,20,0.72) 100%),
    url('beach-hero.jpeg') center/cover no-repeat;
}
.section--hero-sm .page-title { color: #fff; }
.section--hero-sm .breadcrumb { color: rgba(255,255,255,.75); font-size: .9rem; display: inline-block; margin-bottom: .75rem; }
.section--hero-sm .breadcrumb:hover { color: #fff; }
.section--hero-sm .page-meta { color: rgba(255,255,255,.8); margin-top: .5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .9rem; }
.section--cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8a75 100%);
  color: #fff;
}
.section--cta h2, .section--cta p { color: #fff; }
.cta-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta-block p { opacity: .88; max-width: 560px; }
.cta-block .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  flex-shrink: 0;
}
.cta-block .btn-primary:hover { background: var(--bg); }

.section-title {
  margin-bottom: 1.75rem;
  color: var(--text-dark);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}
.section-head .section-title { margin-bottom: 0; }

.page-title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-title-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.75rem; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Hero ─────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,80,0,.4); }
  50%       { opacity: .85; box-shadow: 0 0 0 6px rgba(255,80,0,0); }
}

.hero {
  position: relative;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, rgba(0,30,20,0.78) 100%),
    url('beach-hero.jpeg') center/cover no-repeat;
  color: #fff;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
}
.hero::before { display: none; }
.hero-inner { position: relative; max-width: 660px; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: .75rem;
  animation: fadeInUp .6s ease both;
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 480px;
  animation: fadeInUp .6s ease .15s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp .6s ease .3s both;
}
.hero-actions .btn-primary {
  background: #FFD700; color: #111; border-color: #FFD700; font-weight: 700;
}
.hero-actions .btn-primary:hover { background: #e6c800; border-color: #e6c800; }
.hero-actions .btn-secondary { border-color: rgba(255,255,255,.7); color: #fff; }
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Countdown */
.hero-countdown {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.75rem;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: .6rem 1.1rem;
  font-size: .92rem;
  animation: fadeInUp .6s ease .45s both;
}
.hero-countdown .cd-label { color: rgba(255,255,255,.75); }
.hero-countdown .cd-value {
  color: #FFD700;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* Stats strip inside hero */
.hero-stats {
  display: flex;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp .6s ease .55s both;
}
.hero-stat {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.hero-stat strong { color: #fff; font-size: .95rem; }

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
}
.hero-wave svg { width: 100%; height: 100%; }

/* ── Ticker bar ───────────────────────────────────────────── */
.ticker-bar {
  background: #0a2e1e;
  padding: .85rem 0;
}
.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.ticker-item {
  padding: .3rem 2rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  text-align: center;
  white-space: nowrap;
}
.ticker-item + .ticker-item {
  border-left: 1px solid rgba(255,255,255,.15);
}
.ticker-num { color: #FFD700; font-weight: 700; }
@media (max-width: 600px) {
  .ticker-inner { flex-direction: column; gap: .25rem; }
  .ticker-item + .ticker-item { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .ticker-item { padding: .4rem 1rem; width: 100%; }
}

/* ── Cards ────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(10,107,92,.14); }
.card--highlight { border-color: var(--primary); border-width: 2px; }
.card--upcoming .card-tag { background: var(--bg); color: var(--primary); }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.video-embed {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.card-body { padding: 1.25rem 1.5rem; }
.card-tag {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--primary);
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.card-title {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: var(--text-dark);
}
.card-title a:hover { color: var(--primary); }
.card-meta {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.card-date { font-size: .825rem; color: var(--text-muted); margin-bottom: .4rem; }
.card-excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-actions {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.link-more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap .15s;
}
.link-more:hover { text-decoration: underline; }

/* ── News list ────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 1.5rem; }
.news-item { display: flex; flex-direction: row; gap: 0; }
.news-img-wrap { flex-shrink: 0; width: 260px; }
.news-img-wrap .card-img { height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .news-item { flex-direction: column; }
  .news-img-wrap { width: 100%; }
  .news-img-wrap .card-img { height: 200px; }
}

/* ── Post ─────────────────────────────────────────────────── */
.post-cover { margin-bottom: 2rem; border-radius: var(--radius-card); overflow: hidden; }
.post-cover img { width: 100%; max-height: 500px; object-fit: cover; }
.post-content {
  font-size: 1.02rem;
  line-height: 1.8;
}
.post-content h2, .post-content h3 { margin: 1.5em 0 .6em; color: var(--text-dark); }
.post-content p { margin-bottom: 1em; }
.post-content ul, .post-content ol { margin: .5em 0 1em 1.5em; }
.post-content li { margin-bottom: .3em; }
.post-content img { border-radius: 10px; margin: 1em 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.post-content table th, .post-content table td { padding: .6rem .9rem; border: 1px solid var(--border); }
.post-content table th { background: var(--bg); font-weight: 600; }
.post-content a { color: var(--primary); text-decoration: underline; }

/* ── Results table ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.results-table th {
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.1rem;
  text-align: left;
  font-size: .88rem;
  font-weight: 600;
}
.results-table td {
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: var(--bg); }
.place-1 td:first-child { color: #c0860a; font-weight: 700; }
.place-2 td:first-child { color: #7a7a7a; font-weight: 700; }
.place-3 td:first-child { color: #a0522d; font-weight: 700; }

/* ── Results grid (court winners with no ranking hierarchy) ── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.result-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
  text-align: center;
}
.result-card__trophy { font-size: 1.6rem; margin-bottom: .3rem; }
.result-card__name { font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.result-card__points { font-size: .85rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .result-card { padding: .9rem .6rem; }
  .result-card__name { font-size: .9rem; }
  .result-card__points { font-size: .8rem; }
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: .4rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  transition: all .15s;
}
.pagination__gap {
  display: inline-flex;
  align-items: center;
  padding: 0 .2rem;
  color: var(--text-muted);
}
.pagination__page:hover, .pagination__page.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text-dark); }
.form-group small { font-size: .8rem; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .6rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,107,92,.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form .form-row { margin-bottom: 0; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: 10px;
  font-size: .93rem;
  margin-bottom: 1.25rem;
}
.alert--success { background: #e8f8ef; color: #1b6e3c; border: 1px solid #a8ddb8; }
.alert--error   { background: #fce8e6; color: var(--danger); border: 1px solid #f3b8b3; }

/* ── Misc ─────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 1rem;
}
.card--linked {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--linked:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card--linked .card-title a {
  color: inherit;
  text-decoration: none;
}
.card--linked .card-title a:hover {
  color: var(--primary);
}
/* ── Tournament info strip ────────────────────────────────── */
.t-info-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}
.t-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.t-info-card {
  flex: 1 1 140px;
  background: #f4fbfa;
  border: 1px solid #c8e8e3;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 130px;
}
.t-info-card--fee {
  background: #fff8e1;
  border-color: #f0d080;
}
.t-info-icon { font-size: 1.5rem; line-height: 1; }
.t-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.t-info-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.t-info-sep {
  color: var(--text-muted);
  margin: 0 0.3rem;
  font-weight: 400;
}
.t-info-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .t-info-grid { gap: 0.75rem; }
  .t-info-card { flex: 1 1 calc(50% - 0.75rem); }
}

/* ── Tournament documents ─────────────────────────────────── */
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.doc-item {}
.doc-link { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.1rem;
            background: #fff; border: 1px solid var(--border); border-radius: 8px;
            color: var(--text); text-decoration: none; font-size: 0.95rem;
            transition: border-color 0.15s, box-shadow 0.15s; }
.doc-link:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(10,107,92,.12); color: var(--primary); }
.doc-icon { font-size: 1.1rem; }
.empty-state-block {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-state-block p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand .logo { color: #fff; margin-bottom: .5rem; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* ── Tournament cards — horizontal home layout ────────────── */
.card--tournament-h {
  display: flex;
  align-items: stretch;
  padding: 0;
}
.card--tournament-h .card-stripe {
  width: 5px;
  background: var(--primary);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  flex-shrink: 0;
}
.card--tournament-h.card--ongoing .card-stripe { background: #e6a817; }
.card--tournament-h .card-body {
  flex: 1;
  padding: 1.1rem 1.25rem;
  border-top: none;
}
.card--tournament-h .card-title { margin-bottom: .4rem; }
.card--tournament-h .card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.25rem 1rem .5rem;
  min-width: 130px;
  text-align: center;
  flex-shrink: 0;
}
.card-side-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.badge--soon {
  background: #fff3e0; color: #d4600a;
  display: inline-block; padding: .2rem .65rem;
  border-radius: 6px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  animation: pulse 1.5s ease-in-out infinite;
}
.badge--register-open {
  background: #e8f8f0; color: #1a7a50;
  display: inline-block; padding: .2rem .65rem;
  border-radius: 6px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
@media (max-width: 540px) {
  .card--tournament-h { flex-direction: column; }
  .card--tournament-h .card-stripe { width: 100%; height: 4px; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .card--tournament-h .card-side { flex-direction: row; padding: 0 1.25rem 1rem; min-width: unset; justify-content: flex-start; }
}

/* ── News card — gradient placeholder ────────────────────── */
.card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #0A6B5C 0%, #2ecc8a 60%, #12b596 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  user-select: none;
}

/* ── Scroll-reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tournament tab nav ───────────────────────────────────── */
.t-tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
}
.t-tabs-nav__link {
  padding: .65rem 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.t-tabs-nav__link:hover { color: var(--primary); }
.t-tabs-nav__link--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg);
}
.t-tabs-nav__link--live-now { color: #b07700; }
.t-tabs-nav__link--live-now.t-tabs-nav__link--active { border-bottom-color: #b07700; }

/* ============================================================
   ADMIN STYLES
   ============================================================ */

.admin-body {
  background: #f4f7f9;
  min-height: 100vh;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #0e9e84 100%);
}
.login-wrap { width: 100%; max-width: 420px; padding: 1.5rem; }
.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.login-logo { text-align: center; margin-bottom: 1.75rem; }
.login-logo svg { margin: 0 auto .75rem; }
.login-logo h1 { font-size: 1.5rem; color: var(--text-dark); }
.login-logo p { font-size: .875rem; color: var(--text-muted); }
.login-card .form-group { margin-bottom: 1rem; }

/* Admin layout */
.admin-wrap { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--text-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
/* Admin mobile nav toggle */
.admin-topbar {
  display: none;
  align-items: center;
  gap: .75rem;
  height: 56px;
  padding: 0 1rem;
  background: var(--text-dark);
  flex-shrink: 0;
}
.admin-topbar-title { color: #fff; font-weight: 700; font-size: 1rem; }
.admin-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  padding: 4px;
  flex-shrink: 0;
}
.admin-nav-toggle span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.admin-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-nav-toggle.open span:nth-child(2) { opacity: 0; }
.admin-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.admin-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 768px) {
  .admin-wrap { display: block; }
  .admin-topbar { display: flex; position: sticky; top: 0; z-index: 220; }
  .admin-overlay { top: 56px; }
  .admin-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 82%;
    max-width: 280px;
    height: calc(100vh - 56px);
    transform: translateX(-100%);
    transition: transform .25s;
    z-index: 230;
  }
  .admin-sidebar.open { transform: translateX(0); }
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.admin-user-info {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: .5rem;
}
.admin-user-info strong { font-size: .9rem; color: #fff; display: block; }
.admin-user-info small { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; }
.admin-nav { flex: 1; padding: .25rem 0; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: background .15s, color .15s;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.admin-nav-icon { font-size: .95rem; flex-shrink: 0; }
.admin-sidebar-footer {
  padding: .75rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2rem;
  overflow-y: auto;
}
@media (max-width: 600px) { .admin-main { padding: 1rem; } }

/* Flash */
.flash {
  padding: .8rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: .93rem;
}
.flash--success { background: #e8f8ef; color: #1b6e3c; border: 1px solid #a8ddb8; }
.flash--error   { background: #fce8e6; color: var(--danger); border: 1px solid #f3b8b3; }

/* Admin page */
.admin-page { max-width: 1100px; }
.admin-title { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-dark); }
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.admin-page-head .admin-title { margin-bottom: 0; }
.admin-panel-title { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-dark); }

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card--alert { border-color: #f5c518; background: #fffdf0; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: .3rem; }
.stat-label { font-size: .85rem; color: var(--text-muted); }

/* Panels */
.admin-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .admin-panels { grid-template-columns: 1fr; } }
.admin-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.admin-panel-head h2 { font-size: 1rem; margin: 0; }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.admin-table th {
  text-align: left;
  padding: .6rem .9rem;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--text-dark);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-table td {
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f9fcfc; }
.empty-cell { text-align: center; color: var(--text-muted); padding: 2rem; }
.table-actions { display: flex; gap: .5rem; white-space: nowrap; }
.row--unread td { font-weight: 600; background: #fffdf0; }
.message-cell { max-width: 300px; }
.message-preview { font-size: .85rem; }

/* Admin table → cards on mobile */
@media (max-width: 700px) {
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    margin-bottom: .75rem;
    padding: .25rem 1rem;
  }
  .admin-table td {
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: normal;
  }
  .admin-table td:last-child { border-bottom: none; }
  .admin-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-muted);
  }
  .admin-table td.table-actions {
    display: flex;
    padding-top: .65rem;
  }
}

/* Badges */
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
}
.badge--published, .badge--upcoming { background: #e8f8ef; color: #1b6e3c; }
.badge--ongoing { background: #fff8e1; color: #b07700; }
.badge--draft { background: #fef9e7; color: #856404; }
.badge--completed { background: var(--bg); color: var(--text-muted); }
.badge--superadmin { background: #e8eaf6; color: #3949ab; }
.badge--editor { background: var(--bg); color: var(--primary); }
.badge--series { background: #e8f4ff; color: #1565c0; text-decoration: none; margin-left: .35rem; font-size: .75em; vertical-align: middle; }
.badge--series:hover { background: #bbdefb; }
.badge--scheduled { background: #fff3e0; color: #e65100; font-size: .8em; }

/* Weekday picker */
.weekday-picker { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .35rem; }
.weekday-btn { cursor: pointer; user-select: none; display: inline-flex; }
.weekday-cb { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.weekday-btn span { display: inline-block; padding: .3rem .65rem; border-radius: 6px; border: 2px solid #cce0ff; background: #f5f9ff; color: #555; font-size: .85rem; font-weight: 500; transition: all .15s; line-height: 1.4; }
.weekday-btn:hover span { border-color: #90c4f9; background: #e3f2fd; }
.weekday-btn--active span { border-color: #1565c0; background: #1565c0; color: #fff; }

/* Auto-series panel */
.series-panel { border: 2px dashed #cce0ff; border-radius: 8px; padding: 1.25rem; }
.series-panel__header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.series-toggle-label { display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; font-size: 1rem; }
.series-panel__fields { margin-top: 1rem; }
.series-preview { margin-top: .5rem; font-weight: 600; color: #1b6e3c; }

/* Series scope block */
.series-scope { background: #f0f7ff; border-left: 4px solid #1565c0; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }

/* Admin form */
.admin-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.form-section h3 { font-size: .95rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.form-actions { display: flex; gap: 1rem; align-items: center; }
.inline-form { display: inline-flex; }

/* Gallery admin */
.gallery-grid--sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.gallery-item-wrap {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-item-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-delete-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: none;
  font-size: .75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.gallery-delete-btn:hover { background: var(--danger); }
.gallery-rotate-btn {
  position: absolute;
  top: 4px; left: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: none;
  font-size: .9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.gallery-rotate-btn:hover { background: var(--primary); }
.gallery-item-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  padding: .4rem .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-item-meta small { color: rgba(255,255,255,.8); font-size: .72rem; }
.gallery-delete-form { position: absolute; top: 4px; right: 4px; }

/* Current image preview */
.current-image { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.current-image img { width: 80px; height: 54px; object-fit: cover; border-radius: 6px; }
.current-image small { color: var(--text-muted); font-size: .82rem; }

/* Results edit */
.results-edit-table input[type=text] { min-width: 180px; }
.place-select { width: 70px; }

/* Upload form */
.upload-form .form-row { align-items: flex-end; }
.upload-progress { margin-top: .85rem; }
.upload-progress-bar { height: 8px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.upload-progress-fill { height: 100%; width: 0%; background: var(--primary); border-radius: 5px; transition: width .15s linear; }
.upload-progress-fill.is-indeterminate { width: 100% !important; animation: upload-pulse 1.1s ease-in-out infinite; }
@keyframes upload-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.upload-progress-text { margin-top: .4rem; font-size: .85rem; color: var(--text-muted); }
.upload-progress-text.is-error { color: var(--danger); }

/* ── Мировые новости и трансляции (страница «Новости») ───────────────────── */
.wn-streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 1.5rem; }
.wn-stream:hover { transform: none; }
.wn-stream .video-embed { border-radius: 0; }
.wn-stream__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.wn-stream__head .card-date { margin-bottom: 0; }
.wn-badge { display: inline-block; padding: .2rem .7rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 600; line-height: 1.4; }
.wn-badge--live { background: var(--danger); color: #fff; }
.wn-badge--upcoming { background: var(--bg); color: var(--primary); }
.wn-badge--ended { background: var(--bg); color: var(--text-muted); }
.wn-matches { list-style: none; display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; }
.wn-matches li { display: flex; gap: .6rem; align-items: baseline; }
.wn-matches__mark { flex-shrink: 0; min-width: 2.6rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.wn-matches a { color: var(--text-dark); overflow-wrap: anywhere; }
.wn-matches a:hover { color: var(--primary); }

.wn-news { list-style: none; padding: .5rem 1.5rem; }
.wn-news:hover { transform: none; }
.wn-news__item { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.wn-news__item:last-child { border-bottom: 0; }
.wn-news__flag { flex-shrink: 0; font-size: 1.15rem; line-height: 1.5; }
.wn-news__title { display: block; font-weight: 600; color: var(--text-dark); line-height: 1.4; margin-bottom: .2rem; overflow-wrap: anywhere; }
.wn-news__title:hover { color: var(--primary); }
@media (max-width: 600px) {
  .wn-news { padding: .25rem 1rem; }
}
