:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --accent-orange: #f59e0b;
   --accent-green: #22c55e;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --nav-bg: rgba(3, 10, 26, 0.8);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Навигация */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: 0.3s;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--accent-orange);
}
.profile-icon {
  background: #334155;
  border: #fff 2px solid;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
/* Регистрация */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #1e293b;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.3s;
}
.close-modal:hover {
    color: white;
}
.modal-content h2 {
    margin-bottom: 25px;
    color: #f59e0b; /* Оранжевый как логотип */
}
.input-group {
    margin-bottom: 15px;
}
.input-group input {
    width: 100%;
    padding: 12px 20px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}
.input-group input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--text-dim);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}
.btn-submit:hover {
  background: #1eff00;
  transform: translateY(-2px);
}
/* Hero */
.container {
  max-width: 1200px;
  margin: 100px auto 50px;
  padding: 0 20px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.game-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.game-img:hover {
  transform: scale(1.02);
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  text-align: center;
  display: inline-block;
}
/* Кнопки */
.btn-green {
  background: var(--accent-green);
  color: white;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}
.btn-orange {
  background: var(--accent-orange);
  color: white;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}
.btn-green:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  background-image: url(img/icon/googleplay.png);
  background-repeat: no-repeat;
  background-position-x: center;
}
.btn-orange:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  background-image: url(img/icon/PC.png);
  background-repeat: no-repeat;
  background-position-x: center;
}
/* Киберспорт */
/* Таблица Кланов */
.clans-section {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 24px;
}
.clans-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}
.clans-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clan-card {
  display: grid;
  grid-template-columns: 60px 50px 1fr 1fr;
  align-items: center;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.clan-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(5px);
}
.rank {
  font-weight: 800;
  color: var(--text-dim);
  font-size: 1.2rem;
}
.clan-icon {
  width: 35px;
  height: 35px;
  background: #475569;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
}
.clan-card {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.clan-name {
  width: 200px;
  font-weight: 700;
  margin-left: 10px;
}
.clan-leader {
  flex-grow: 1;
  text-align: right;
  padding-right: 50px;
  color: #94a3b8;
  font-size: 0.85rem;
}
/* Престиж */
.p-green { 
  color: #22c55e !important; 
}
.p-red {
  color: #ef4444 !important; 
}
.p-grey { 
  color: #94a3b8; 
}                         
.clan-prestige {
  width: 100px; /* Ширина престижа */
  text-align: right;
  color: #94a3b8;
  font-size: 0.9rem;
  font-family: monospace;
}
.last-updated {
  text-align: center;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 0.8rem;
}
/* Стили для количества побед */
.clan-wins-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-left: 20px; /* отступ от названия клана */
    font-weight: normal;
}
.clan-wins {
    font-size: 0.9rem;
    color: var(--accent-green); /* Или --text-dim */
    margin-left: 15px;
    white-space: nowrap;
}
/* Адаптивность */
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-content h1 { font-size: 1.8rem; }
  .clan-card { grid-template-columns: 40px 40px 1fr; }
  .clan-leader { display: none; }
}
.clan-avatar-container {
    width: 45px;
    height: 45px;
    min-width: 45px; /* Чтобы она не сжималась */
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    margin: 0 15px; /* Отступы по бокам */
}
.clan-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.clan-card {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.clan-name {
  flex-grow: 1; /* Название занимает свободное место */
  font-weight: 600;
}
.clan-leader {
  color: var(--text-dim);
  font-size: 0.85rem;
}



/* Футер */
footer {
  background: var(--nav-bg);
  padding-top: 20px;
  left: 0;
  right: 0;
  bottom: 0;
}
/* СОЦ СЕТИ */
.social {
  display: flex;
  justify-content: center;
  left: 0;
  right: 0;
  bottom: 0;
}
.tg:hover {
  transition: 1s;
  scale: 1.2;
  rotate: 360deg;
  opacity: 70%;
}
/* ТЕКСТ */
.f-main-text {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}
.f-text {
  color: white;
  font-family: Comfortaa;
  font-size: 16px;
  text-decoration: none;
}
.copyright {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.589);
  font-family: Comfortaa;
  font-size: 14px;
  padding-bottom: 20px;
}
    /* Стили для гамбургера */
    /* Общие стили для правой части навигации */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px; /* Расстояние профиля и полосками */
    z-index: 1100;
}
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1200;
}
.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 4px;
    transition: 0.3s ease-in-out;
}
/* Мобильные стили */
@media (max-width: 850px) {
    .menu-icon {
        display: flex;
    }
.nav-links {
        display: none; 
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .clan-card {
        padding: 15px;
        display: grid;
        grid-template-columns: 40px 50px 1fr;
        grid-template-areas: 
          "rank avatar name"
          "leader leader leader"
        "prestige prestige prestige";
    gap: 10px;
}
.rank { grid-area: rank; }
.clan-avatar-container {
  grid-area: avatar;
  margin: 0; 
}
.clan-name { 
        grid-area: name; 
        width: auto; 
        margin: 0; 
        align-self: center;
        font-size: 1.1rem;
    }

    .clan-leader { 
        grid-area: leader; 
        text-align: left; 
        padding: 0; 
        font-size: 0.8rem;
        opacity: 0.7;
    }
.clan-prestige { 
  grid-area: prestige; 
  text-align: left; 
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 5px;
}
/* Отступы для Hero */
.hero {
  margin-top: 100px;
  padding: 20px; }
}