body.page {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Manrope", sans-serif;
    background: #FFECD8;
    color: #434040;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

svg.icon_svg_white {
  fill: white;
}

svg.icon_svg_blue {
  fill: #2956A6;
}

svg.icon_svg_black {
  fill: #000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* HEADER */

.header {
    position: relative;
    z-index: 10;
    padding-top: 24px;
}

.header__row {
    display: flex;
    position: relative;
    align-items: center;
    gap: 40px;
}

.header__logo img {
    height: 64px;
}

.header__nav {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.header__nav .header__lang-wrap {
    flex-shrink: 0;
    margin-left: auto;
}

.header__nav-link {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    border: 1px solid transparent;
}

.header__nav-link--primary {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.12);
}

.header__nav-link--active {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.2);
}

/* HERO */

.hero {
    position: relative;
    padding: 60px 0 120px;
    color: #ffffff;
    overflow: hidden;
    margin-top: 40px;
}

.hero-content {
    position: relative;
    padding: 0px 0 120px;
    color: #ffffff;
    overflow: hidden;
    margin-top: 40px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(136.87deg,#3A75DD 24.29%,#05CEE8 56.79%,#2956A6 93.63%);
    border-radius: 0 0 260px 0;
    box-shadow: 0 4px 134px rgba(0,0,0,0.45);
    z-index: -1;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 0.9fr;
    column-gap: 40px;
    align-items: center;
}

.hero__col--left {
    align-self: flex-start;
    padding-top: 30px;
    position: relative;
}

.hero__iq {
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 900;
    font-size: 350px;
    line-height: 0.7;
    letter-spacing: -0.03em;
}
.hero_slogan {
  position: relative;
  top: 90px;
  border-left: 2px solid #d9d9d9;
  padding-left: 10px;
}
.hero__subtitle {
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 900;
    font-size: 32px;
    text-transform: uppercase;
}

.hero__tagline {
  font-family: "Onest", system-ui, sans-serif;
    margin-top: 12px;
    font-size: 22px;
}

.hero__subtitle-content {
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 900;
    font-size: 94px;
    text-transform: uppercase;
}

.hero__tagline-content {
  font-family: "Onest", system-ui, sans-serif;
    margin-top: 12px;
    font-size: 36px;
}

/* Подзаголовок на внутренних страницах (регистрация и т.п.) */
.page--city-inner .hero__tagline-content {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 500;
    max-width: 52rem;
}

/* Страница регистрации: заголовок и подзаголовок hero в 2 раза меньше */
.page--game-register .hero__subtitle-content {
    font-size: 55px;
}

.page--game-register .hero__tagline-content {
    font-size: 20px;
}

/* .hero__social, .hero__social-text, .hero__social-icon — moved to common.css */

.hero__col--center {
    display: flex;
    justify-content: center;
}

.hero__image {
    position: relative;
}

.brain_img {
  position: absolute;
  top: 40px;
  left: 140px;
  z-index: 10;
  width: 100%;
}

.hero__col--right {
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    z-index: 20;
}

.hero__lead {
    font-size: 18px;
    max-width: 280px;
}

.hero__callout {
    padding: 32px;
    position: relative;
    z-index: 20;
    border-radius: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
}

.hero__callout-title {
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 900;
    font-size: 40px;
    text-transform: uppercase;
    text-decoration: underline;
}

.hero__callout-subtitle {
    margin-top: 10px;
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 900;
    font-size: 22px;
    text-transform: uppercase;
    text-decoration: underline;
}

.hero__decor {
    position: absolute;
    pointer-events: none;
    /* чтобы картинка не перекрывала клики по кнопкам */
}

.hero__decor img {
    display: block;
    max-width: 100%;
}

/* координаты примерные – подгони под макет */
.hero__decor--hourglass {
    width: 180px;
    top: -10px;
    left: -100px;
}

.hero__decor--puzzle {
  top: 180px;
  left: 80px;
  position: absolute;
  z-index: 11;
  width: 120px;
}

.bottom-decor-puzzle {
  position: absolute;
  left: -120px;
  top: 140px;
}

.bottom-decor-hourglass {
  position: absolute;
  left: 680px;
  top: 301px;
}

.bottom-decor-clock {
  position: absolute;
  right: -110px;
  top: -5px;
}

.bottom-decor-people {
  position: absolute;
  left: 130px;
  bottom: 75px;
  z-index: 10;
}

.bottom-decor-cup {
  position: absolute;
  right: -105px;
  bottom: 170px;
  z-index: 10;
}

.z20 {
  z-index: 20;
}



.hero__decor--book {
  top: 20px;
  left: 170px;
  position: absolute;
  z-index: 11;
}

.hero__decor--monitor {
  top: 224px;
  left: -60px;
  position: absolute;
  z-index: 11;
}

.hero__decor--colon {
  top: 253px;
  /* left: 360px; */
  position: absolute;
  transform: translateX(300px);
  z-index: 10;
}

.hero__decor--clock {
  top: -100px;
  /* left: 360px; */
  position: absolute;
  transform: translateX(320px);
  z-index: 10;
}

.hero__decor--column {
    bottom: 40px;
    right: 4%;
    width: 160px;
    transform: rotate(12deg);
}

/* SECTIONS */

.section {
    padding: 80px 0;
}

.section--games {
    padding-top: 70px;
}

.section--light {
    background: #FFECD8;
}

.section--blue {
    position: relative;
    padding: 120px 0 80px;
    color: #ffffff;
}

.section-blue__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(136.87deg,#3A75DD 45%,#05CEE8 70.79%,#2956A6 99.63%);
    border-radius: 0 360px 0 0;
    z-index: -1;
}

.section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}

/* Заголовок слева; кнопки справа — второй ребёнок .section__head (как старые .games-tabs) */
.section__head-left {
    flex: 1;
    min-width: 0;
}

.section__head-left .section__title {
    margin-bottom: 0;
}

.stats-back-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(41, 86, 166, 0.25);
    background: rgba(255, 255, 255, 0.55);
    color: #2956A6;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.stats-back-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(41, 86, 166, 0.45);
}

.section__head > .section-head-auth {
    flex-shrink: 0;
}

.section__sup {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    color: #2369B0;
}

.section__title {
    margin: 6px 0 0;
    font-family: "Onest", system-ui, sans-serif;
    font-size: 40px;
    font-weight: 700;
}

.section__title--center {
    text-align: center;
    margin-bottom: 40px;
}

.section__title--white {
    color: #ffffff;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 26px;
    border-radius: 40px;
    border: 1px solid transparent;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: #2956a6;
    color: #fff;
    border-color: #2956a6;
}

.btn-secondary {
    background-color: #5c6370;
    color: #fff;
    border-color: #5c6370;
}

.btn-primary:hover,
.btn-secondary:hover {
    filter: brightness(1.06);
}

.btn--glass {
    background: rgba(0,0,0,0.05);
    border-color: #D8D8D8;
    backdrop-filter: blur(10.5px);
    color: #ffffff;
}

.btn--outline {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn--small {
    padding: 14px 20px;
    font-size: 13px;
    background-color: #2956A6;
    color: #fff;
    position: absolute;
    bottom: 35px;
}



/* GAMES */

.games-tabs {
    display: flex;
    gap: 12px;
}

.games-tabs__btn {
    padding: 18px 26px;
    border-radius: 40px;
    border: 1px solid #D8D8D8;
    background: rgba(0,0,0,0.05);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

button.games-tabs__btn,
a.games-tabs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

a.games-tabs__btn:hover {
    color: inherit;
}

.games-tabs__btn:focus-visible {
    outline: 2px solid #2956A6;
    outline-offset: 2px;
}

.games-tabs__btn--active {
    background: #ffffff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 32px;
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 1.5rem;
}

.game-card {
    padding: 24px 28px;
    border-radius: 24px;
    border: 1px solid rgba(41, 86, 166, 0.15);
    background: #fff;
}

.game-card__date {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(67, 64, 64, 0.92);
}

.game-card__date-icon {
    margin-right: 6px;
}

.game-card .game-card__date + h3 {
    margin-top: 0;
}

.game {
    padding: 36px 40px;
    border-radius: 36px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}



.game--primary {
    background: linear-gradient(116.86deg,#3A75DD 29.36%,#05CEE8 87.33%,#2956A6 153.03%);
    color: #ffffff;
}

.game--secondary {
  color: #2956A6;
}

.game__top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
}

.game__date-icon {
    font-size: 20px;
}

.game__title {
    margin: 0;
    font-family: "Onest", system-ui, sans-serif;
    font-size: 30px;
    font-weight: 500;
}

.game__middle {
    margin: 24px 0;
}

.game__image {
    width: 236px;
    height: 236px;
    border-radius: 14px;
    object-fit: cover;
}

.game__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.game__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.game__row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game__icon {
    font-size: 18px;
}

/* ===== game: IMPORTANT block ===== */
.game__important{
  margin-top: 34px;
}

.game__important-title{
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  color: #2b5fb8;
}

.game__important-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game__important-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 14px;

  padding: 16px 18px;
  min-height: 92px;

  font-size: 14px;
  font-weight: 300;
  line-height: 1.25;
  color: rgba(0,0,0,.78);
}

.game__title--xl{
  margin: 18px 0 26px;

  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;

  color: #2b5fb8; /* твой фирменный синий */
}

@media (max-width: 900px){
  .game__important-title{ font-size: 34px; }
  .game__important-card{ font-size: 18px; }
}

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

/* ===== ARCHIVE ===== */
.page--game-archive .hero__subtitle-content {
    font-size: 55px;
}
.page--game-archive .hero__tagline-content {
    font-size: 20px;
}

.page--game-stats .hero__subtitle-content {
    font-size: 55px;
}
.page--game-stats .hero__tagline-content {
    font-size: 20px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(67, 64, 64, 0.18);
}

.archive-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 36px 48px;
    background: #fff;
    border-radius: 36px;
    color: #434040;
}

/* Шрифты карточек: используем те же game__date/game__info/game__row, что на главной — размеры один-в-один. */
.archive-card .game__date {
    color: #434040;
}

.archive-card .game__info {
    color: #434040;
}

.archive-card__title {
    margin: 0;
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.2;
    color: #2956A6;
}

.archive-card__cta {
    display: flex;
}

.archive-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 26px;
    border-radius: 40px;
    border: 1px solid #D8D8D8;
    background: rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(10.5px);
    backdrop-filter: blur(10.5px);
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #434040;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.archive-card__btn:hover {
    background: rgba(41, 86, 166, 0.08);
    color: #2956A6;
}

.archive-empty {
    margin: 32px 0;
    font-size: 18px;
    color: rgba(67, 64, 64, 0.78);
}

.archive-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(67, 64, 64, 0.18);
}

.archive-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 295px;
    padding: 18px 26px;
    border-radius: 40px;
    border: 1px solid #D8D8D8;
    background: rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(10.5px);
    backdrop-filter: blur(10.5px);
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.archive-more__btn:hover:not(:disabled) {
    background: rgba(41, 86, 166, 0.08);
    color: #2956A6;
}

.archive-more__btn:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 1100px) {
    .archive-card { padding: 28px 32px; }
    .archive-card__title { font-size: 26px; }
}

@media (max-width: 760px) {
    .archive-grid { grid-template-columns: 1fr; gap: 18px; }
    .archive-card { padding: 24px 24px; gap: 20px; }
    .archive-card__title { font-size: 22px; }
    .archive-more__btn { min-width: 0; width: 100%; }
}

/* FEATURES */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 70px;
}
.alpha {
  opacity: 0;
}
.hblue {
  color: #2956A6 !important;
  font-size: 60px !important;
  font-weight: bold !important;
}
.feature {
  --r:40px;
  --blur: 22px;
  --tint: rgba(255,255,255,.22);
  --strokeTop: rgba(255,255,255,.75);
  --strokeBot: rgba(255,255,255,.18);

  position: relative;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.14));
  overflow: hidden;

  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.35);
  backdrop-filter: blur(var(--blur)) saturate(1.35);

  box-shadow:
    0 24px 60px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.10);

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

  width: 370px;
  height: 295px;
}
.feature::before{
  content:"";
  position:absolute;
  inset:-40% -30% auto -30%;
  height: 90%;
  background:
    radial-gradient(60% 70% at 50% 35%,
      rgba(255,255,255,.75) 0%,
      rgba(255,255,255,.20) 45%,
      rgba(255,255,255,0) 70%),
    radial-gradient(80% 90% at 20% 20%,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,0) 65%);
  transform: rotate(-6deg);
  opacity: .9;
  pointer-events:none;
}

.feature::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(180deg, var(--strokeTop), rgba(255,255,255,.28) 45%, var(--strokeBot));

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events:none;
}

.feature__title {
    margin: 0 0 12px;
    font-family: "Onest", system-ui, sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #000;
}

.feature__text {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.4;
}

.feature__text_big {
    /*margin: 0 0 16px;*/
    font-weight: 500;
    font-size: 20px;
}

/* iOS-like liquid glass */
.glass{
  --r:40px;
  --blur: 22px;
  --tint: rgba(255,255,255,.22);
  --strokeTop: rgba(255,255,255,.75);
  --strokeBot: rgba(255,255,255,.18);

  position: relative;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.14));
  overflow: hidden;

  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.35);
  backdrop-filter: blur(var(--blur)) saturate(1.35);

  box-shadow:
    0 24px 60px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.10);

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

/* “жидкий” блик сверху + мягкая виньетка */
.glass::before{
  content:"";
  position:absolute;
  inset:-40% -30% auto -30%;
  height: 90%;
  background:
    radial-gradient(60% 70% at 50% 35%,
      rgba(255,255,255,.75) 0%,
      rgba(255,255,255,.20) 45%,
      rgba(255,255,255,0) 70%),
    radial-gradient(80% 90% at 20% 20%,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,0) 65%);
  transform: rotate(-6deg);
  opacity: .9;
  pointer-events:none;
}

/* градиентный “стеклянный” бордер */
.glass::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(180deg, var(--strokeTop), rgba(255,255,255,.28) 45%, var(--strokeBot));

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events:none;
}

/* ABOUT + REVIEWS */

.section-blue__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.section-blue__about {
    max-width: 580px;
}

.section-blue__text {
    margin: 22px 0 30px;
    font-size: 18px;
    line-height: 1.4;
}

.section-blue__logo img {
    max-width: 360px;
}

.section-blue__bottom {
    margin-top: 80px;
}

.reviews-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 40px;
}

.review {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review__avatar {
    width: 132px;
    height: 132px;
    border-radius: 40px;
    object-fit: cover;
}

.review__name {
    margin: 0;
    font-family: "Onest", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.review__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 15px;
}

.review__text {
    font-size: 16px;
    line-height: 1.3;
}

.what_is_quiz {
  font-size: 40px;
  color: #2369B0;
  padding-bottom: 25px;
}

/* FOOTER */

.footer {
  margin-top: 75px;
    padding: 40px 0 30px;
}

.footer__row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr;
    align-items: center;
    color: #000;
    gap: 24px;
}

.footer__cta {
    justify-self: flex-start;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
}

.footer__link {
    text-decoration: underline;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer__social-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.footer__copy {
    justify-self: flex-end;
    font-size: 16px;
}


div#regform {
		    display: none;
		    width: 350px;
		    background: #fff;
		    border-radius: 5px;
		    position: fixed;
			top: 100px;
			left: 100px;
		    padding: 20px;
		    z-index: 100;
		    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
		}
		div#regform:after {
		  top: 100%;
		  left: 50%;
		  border: solid transparent;
		  content: " ";
		  height: 0;
		  width: 0;
		  position: absolute;
		  pointer-events: none;
		  border-color: rgba(255,255,255,0);
		  border-top-color: #fff;
		  border-width: 7px;
		  margin-left: -7px;
		}
		div#regform:before {
		  display: none;
		  position: absolute;
		  top: 0;
		  left: 0;
		  right: 0;
		  bottom: 0;
		  background: #fff;
		  opacity: 0.9;
		  content: 'Ждите...';
		  text-align: center;
		  line-height: 220px;
		}
		div#regform fieldset {
		    margin: 0;
		    padding: 0;
				border: 0;
				display:block;
		}
		div#regform div#rfregister{
			width: 100%;
			height: 100%;
			text-align: center;
			opacity: 0.8;
			z-index: 1000;
			display: none;
		}
		div#regform fieldset input:focus {
		    border-color: #226ecd;
		}
		div#regform fieldset input {
		    font-size: 16px;
		    border: 1px solid #a4c3e8;
		    padding: 10px;
		    margin: 0 0 10px 0;
		    border-radius: 5px;
		    width: 280px;
		}

		div#regform fieldset input.error {
		    border: 1px solid #f00;
		}



		div#regform fieldset button:not(:disabled):hover {
		    background: #1e61b5;
		}

		div#regform fieldset button {
		    border: 0;
		    padding: 0;
		    margin: 0;
		    outline: none;
		    background: none;
		    border-radius: 5px;
		    background: #226ecd;
		    color: #fff;
		    font-size: 16px;
		    padding: 10px;
		    width: 100%;
		}

		div#regform button {
		    cursor: pointer;
		}
		div#regform button:disabled {
		    cursor: default;
				background: #ccc;
		}

div.hall{
	margin: 0 auto;
	width: 800px;
	height: 440px;
}


/* ===== Заголовок таблицы результатов ===== */
:root {
            /* Цветовая палитра на основе изображения */
            --primary-blue: #1c54ac;
            --tab-border: #3b82f6;
            --text-dark: #333333;
            --text-light: #666666;
            
            --bg-header-beige: #ebdccb;
            --bg-cell-gray: #ecf1f4;
            --bg-cell-blue: #aeddf5;
            --bg-cell-yellow: #fef0ba;
            
            --radius: 12px;
        }


        /* Заголовок страницы */
        h1 {
            color: var(--primary-blue);
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 30px;
        }

        /* Табы (вкладки) */
        .tabs {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            border-bottom: 1px solid #ddd;
        }

        .tab {
            flex: 1;
            text-align: center;
            padding-bottom: 15px;
            font-size: 20px;
            font-weight: 600;
            cursor: pointer;
            color: var(--text-dark);
            position: relative;
        }

        .tab.active {
            color: var(--primary-blue);
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px; /* Перекрытие линии border-bottom родителя */
            left: 0;
            width: 100%;
            height: 4px;
            background-color: var(--tab-border);
        }

        .game-stats-placeholder {
            margin: 1.25rem 0 2rem;
            font-size: 1.05rem;
            line-height: 1.5;
            color: var(--text-dark);
        }

        .game-stats-card {
            margin-top: 50px;
        }

        .game-stats-block,
        .season-stats-block {
            background: #e9edf2;
            border: 1px solid rgba(41, 86, 166, 0.14);
            border-radius: 26px;
            padding: 22px 18px 18px;
        }

        .season-stats-title {
            margin: 50px 0 18px;
            color: var(--primary-blue);
            font-size: 32px;
            font-weight: 700;
        }

        .stats-table-shell {
            width: 100%;
            margin: 0 auto;
            padding: 0;
        }

        /* Стилизация таблицы */
        .stats-table {
            width: 100%;
            border-collapse: separate; /* Важно для отступов между ячейками */
            border-spacing: 8px 12px; /* Горизонтальный и вертикальный отступы */
        }

        /* Общие стили для ячеек */
        .stats-table th, 
        .stats-table td {
            padding: 12px 10px;
            text-align: center;
            border-radius: var(--radius);
            font-size: 12px;
            font-weight: 400;
            vertical-align: middle;
        }

        /* Заголовки (th) */
        .stats-table th {
            background-color: var(--bg-header-beige);
            color: #5a4b3c;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 14px;
        }

        /* Первая колонка (Место) */
        .stats-table th:first-child,
        .stats-table td:first-child {
            width: 60px;
        }
        
        /* Вторая колонка (Команда) */
        .stats-table th:nth-child(2),
        .stats-table td:nth-child(2) {
            text-align: left;
            padding-left: 20px;
        }

        /* Обычные ячейки тела таблицы */
        .stats-table td {
            background-color: var(--bg-cell-gray);
            color: var(--text-dark);
            min-width: 70px;
        }

        /* Последняя колонка (Сумма) */
        .stats-table th:last-child {
            background-color: var(--bg-header-beige);
        }
        .stats-table td:last-child {
            background-color: var(--bg-cell-blue);
            font-weight: 700;
        }

        /* Сезонная таблица: компактнее, чтобы все игры помещались внутри карточки */
        .season-stats-block .stats-table {
            table-layout: fixed;
            border-spacing: 6px 10px;
        }

        .season-stats-block .stats-table th,
        .season-stats-block .stats-table td {
            min-width: 0;
            padding: 10px 6px;
        }

        .season-stats-block .stats-table th:first-child,
        .season-stats-block .stats-table td:first-child {
            width: 56px;
        }

        .season-stats-block .stats-table th:nth-child(2),
        .season-stats-block .stats-table td:nth-child(2) {
            width: 136px;
            padding-left: 14px;
        }

        .season-stats-block .stats-table th:last-child,
        .season-stats-block .stats-table td:last-child {
            width: 88px;
        }

        .season-col-place {
            text-align: center !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .season-place-icon {
            width: 22px;
            height: 22px;
            display: inline-block;
            fill: #5a4b3c;
        }

        /* Ячейки с победой/медалью (желтые) */
        .cell-highlight {
            background-color: var(--bg-cell-yellow) !important;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 100%; /* Для корректной работы flex внутри td */
        }
        
        /* Фикс для flex внутри td: td не всегда корректно ведет себя как flex-контейнер напрямую, 
           но в современных браузерах работает. Альтернатива - обертка div внутри. 
           Здесь применим класс к td, но выравнивание сделаем через line-height или вложенный элемент.
        */
        
        .medal-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        /* Иконка медали (SVG) */
        .medal-icon {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: #333;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* Адаптив (необязательно, но полезно) */
        @media (max-width: 768px) {
            .stats-table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
        }


/* RESPONSIVE */

@media (max-width: 1100px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }

    .hero__col--right {
        grid-column: 1 / -1;
        max-width: 380px;
        margin: 0 auto;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .section-blue__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .footer__row {
        grid-template-columns: 1fr 1fr;
        row-gap: 16px;
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .section__head {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .section__head-left {
        flex: none;
    }

    .section__head > .section-head-auth {
        align-self: flex-end;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__col--center {
        order: -1;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer__row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer__copy {
        justify-self: flex-start;
    }
}


/* Registration player count select */
.game-player-count-wrap {
  position: relative;
  max-width: 260px;
  margin-top: 8px;
}

.game-player-count-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(41, 86, 166, 0.28);
  border-radius: 14px;
  background: #ffffff;
  color: #2956A6;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 42px 12px 14px;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(41, 86, 166, 0.1);
}

.game-player-count-select:focus {
  outline: none;
  border-color: #2956A6;
  box-shadow: 0 0 0 3px rgba(41, 86, 166, 0.16);
}

.game-player-count-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #2956A6;
  border-bottom: 2px solid #2956A6;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}


/* ===================== PROFILE PAGE ======================== */

/* ── Hero (user identity block) ───────────────────────────── */

.pf-hero {
    padding: 40px 0 60px;
}

.pf-hero__identity {
    padding: 0 4px;
    color: #fff;
}

.pf-hero__name {
    font-family: Onest, system-ui, sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    line-height: 1.05;
}

.pf-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.88;
}

.pf-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ── Content layout ────────────────────────────────────────── */

.pf-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 80px;
    padding-top: 48px;
}

/* ── Card ──────────────────────────────────────────────────── */

.pf-card {
    background: #fff;
    border-radius: 36px;
    padding: 36px 40px;
}

.pf-card__title {
    font-family: Onest, system-ui, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #2956A6;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.pf-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin: 28px 0;
}

.pf-sub-title {
    font-family: Onest, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #434040;
    margin: 0 0 14px;
}

/* ── Forms ─────────────────────────────────────────────────── */

.pf-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
}

.pf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-field label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6b6b;
    font-family: Onest, sans-serif;
}

.pf-field input[type="text"],
.pf-field input[type="email"] {
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pf-field input:focus {
    outline: none;
    border-color: #2956A6;
    box-shadow: 0 0 0 4px rgba(41, 86, 166, 0.12);
}

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(136.87deg, #3A75DD 24.29%, #05CEE8 56.79%, #2956A6 93.63%);
    color: #fff;
    font-family: Onest, system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(41, 86, 166, 0.28);
    transition: transform 0.12s, box-shadow 0.12s;
    width: fit-content;
}

.pf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(41, 86, 166, 0.38);
}

/* ── Members table ─────────────────────────────────────────── */

.pf-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.pf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.pf-table th {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6b6b;
    font-family: Onest, sans-serif;
    padding: 6px 16px;
    text-align: left;
}

.pf-table th.center,
.pf-table td.center {
    text-align: center;
}

.pf-table td {
    padding: 14px 16px;
    background: #f7f5f2;
    font-size: 15px;
    vertical-align: middle;
    white-space: nowrap;
}

.pf-table tr:hover td {
    background: #f0ece6;
    transition: background 0.12s;
}

.pf-table td:first-child { border-radius: 16px 0 0 16px; }
.pf-table td:last-child  { border-radius: 0 16px 16px 0; }

/* ── Badges & pills ────────────────────────────────────────── */

.pf-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 6px;
}

.pf-badge-pill--captain { background: rgba(41, 86, 166, 0.1);  color: #2956A6; }
.pf-badge-pill--can-reg { background: rgba(5, 206, 232, 0.12); color: #0e7a8a; }

.pf-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2956A6;
    cursor: pointer;
}

.pf-remove-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(220, 60, 60, 0.1);
    color: #8f1d1d;
    transition: background 0.15s;
    white-space: nowrap;
}

.pf-remove-btn:hover { background: rgba(220, 60, 60, 0.2); }

/* ── Invite status ─────────────────────────────────────────── */

.pf-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pf-status--ok      { background: rgba(46, 160, 67, 0.12); color: #1b5e20; }
.pf-status--pending { background: rgba(255, 165, 0, 0.12); color: #8a5a00; }

.pf-invite-link {
    font-size: 13px;
    color: #2956A6;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
    white-space: normal;
}

/* ── Member list (non-captain view) ───────────────────────── */

.pf-team-name {
    font-family: Onest, system-ui, sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #2956A6;
    margin: 0 0 4px;
}

.pf-member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-member-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 14px 18px;
    background: #f7f5f2;
    border-radius: 16px;
    font-size: 15px;
}

.pf-member-email { color: #6b6b6b; font-size: 13px; }

.pf-member-you {
    margin-left: auto;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(41, 86, 166, 0.1);
    color: #2956A6;
}

.pf-member-can {
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(5, 206, 232, 0.12);
    color: #0e7a8a;
}

.pf-empty {
    color: #6b6b6b;
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .pf-hero        { padding: 24px 0 40px; }
    .pf-hero__meta  { gap: 10px 18px; }
    .pf-card        { padding: 24px 20px; }
    .pf-card__title { font-size: 20px; }
    .pf-table       { display: block; overflow-x: auto; }
    .pf-content     { padding-top: 32px; }
}
