body {
  margin: 0;
  font-family: system-ui, Roboto, 'Segoe UI', Arial, sans-serif;
  line-height: 1.2;
  color: #333;
  background-color: #f7f3ee;
  background-image: url('../images/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.container {
  max-width: 1200px;
  margin: 60px auto 0;
}
.header {
  background-color: #0e1c44;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* === Header: clubs strip (в составе хедера) === */
.header__clubs {
  display: block;
  background: #0780ba;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header__clubs-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
}
.header__clubs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__clubs-item {
  line-height: 0;
}
.header__clubs-link {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.header__clubs-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.18s ease;
}
.header__clubs-link:hover .header__clubs-logo,
.header__clubs-link:focus .header__clubs-logo {
  transform: scale(1.6);
  outline: none;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
}
.header__logo-link {
  display: inline-block;
}
.header__logo {
  height: 40px;
  width: auto;
}
.header__nav {
  display: flex;
}
.header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.header__menu-item {
  margin-left: 12px;
}
.header__menu-link {
  color: #f6f0e9;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  display: block;
  border-radius: 8px;
}
.header__menu-link:hover,
.header__menu-link:focus {
  color: #cfe6ff;
  outline: none;
}
.header__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 1100;
}
.header__burger:focus {
  outline: none;
}
.header__burger-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 4px;
  background: #fff;
  border-radius: 3px;
  transition:
    transform 0.25s ease,
    top 0.25s ease,
    opacity 0.2s ease;
}
.header__burger-bar:nth-child(1) {
  top: 14px;
}
.header__burger-bar:nth-child(2) {
  top: 21px;
}
.header__burger-bar:nth-child(3) {
  top: 28px;
}
.header.is-open .header__burger-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.header.is-open .header__burger-bar:nth-child(2) {
  opacity: 0;
}
.header.is-open .header__burger-bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}
.header__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  display: none;
}

.page-stub {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.page-stub h1 {
  margin-top: 0;
  font-size: 28px;
}
.page-stub .muted {
  color: #777;
  font-size: 14px;
}
@media (max-width: 768px) {
  .header__burger {
    display: inline-block;
  }
  .header__nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: #f8f8f8;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 80px 20px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
  .header.is-open .header__nav {
    transform: translateY(0);
  }
  .header__menu {
    flex-direction: column;
    gap: 6px;
  }
  .header__menu-item {
    margin-left: 0;
  }
  .header__menu-link {
    padding: 14px 12px;
    font-size: 18px;
    color: #333;
  }
  .header.is-open .header__backdrop {
    display: block;
  }
}

/* === Header: auth === */
.header__auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header__login-link {
  width: 36px;
  height: 36px;
}

.header__login-link img {
  width: 100%;
  height: 100%;
}

/* Кружок-аватар/инициалы справа в хедере */
.user-menu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  background: #eef2f7;
  transition:
    filter 0.15s ease,
    transform 0.05s ease;
  overflow: hidden; /* чтобы IMG обрезался по кругу */
}

.user-menu__btn:hover {
  filter: brightness(0.95);
}

.user-menu__btn:active {
  transform: translateY(1px);
}

.user-menu__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2b6cb0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.user-menu__avatar-img {
  display: block;
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}

/* legal-page */
.legal-page {
  background: #fff;
  padding: 24px;
  margin-top: 20px;
}
.legal-page h1 {
  margin-top: 0;
}
.legal-page h2 {
  margin-top: 24px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}
.footer__links a {
  margin: 0 10px;
  color: #eee;
  font-size: 14px;
  text-decoration: none;
}
.footer__links a:hover {
  text-decoration: underline;
}

/* cookie-banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  display: none; /* по умолчанию скрыт, покажем через JS */
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  z-index: 2000;
}

.cookie-banner button {
  background: #4c8bf5;
  border: none;
  padding: 6px 12px;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-banner button:hover {
  background: #3a74d8;
}
