/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative; /* ВАЖНО: чтобы absolute-слои жили внутри hero */
    min-height: 100vh;
    background:
        linear-gradient(rgba(10,10,10,0.65), rgba(26,26,26,0.65)),
        url("../egorov.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* нормальный, экранированный SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cdefs%3E%3Cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 10h40 M10 0v40' stroke='%23333' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    opacity: 0.10;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #cccccc;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item { text-align: center; padding: 1rem; }

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-align: center;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #ff6b35;
}

.btn-outline {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

/* About Section */
.about {
    padding: 8rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-main-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.about-biography {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-biography h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ff6b35;
    text-align: center;
}

.bio-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.bio-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.bio-item i {
    color: #ff6b35;
    font-size: 1.2rem;
    min-width: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.stat-icon {
    font-size: 2rem;
    color: #ff6b35;
    min-width: 40px;
}

.stat-data { display: flex; flex-direction: column; }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.about-description {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.about-description p:last-child { margin-bottom: 0; }

.about-buttons { text-align: center; }

.about-buttons .btn-outline:hover {
    background: #ff6b35;
    color: white;
}

/* Achievements Section */
.achievements {
    padding: 6rem 0;
    background: #0a0a0a;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.achievement-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.achievement-icon {
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.rankings {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.ranking-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 15px;
    min-width: 200px;
}

.ranking-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ranking-text {
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fights Section */
.fights {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.fights-content { text-align: center; }

.fight-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.video-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info { margin-bottom: 3rem; }

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.contact-item i {
    color: #ff6b35;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content { text-align: center; }

.footer-text {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #0a0a0a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active { left: 0; }

    .hamburger { display: flex; }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .hero-stats { gap: 1.5rem; }
    .stat-number { font-size: 2rem; }
    .section-title { font-size: 2rem; }

    .achievements-grid { grid-template-columns: 1fr; }
    .rankings { flex-direction: column; gap: 2rem; }
    .video-links { grid-template-columns: 1fr; }
    .social-links { flex-direction: column; align-items: center; }

    /* важно: на мобилке about-сетка в колонку */
    .about-main-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-biography,
    .about-description {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

    /* НИКАКИХ margin:-4px для *  */
}
:root{
  --nav-h: 78px; /* будет перезаписываться JS-ом */
}

/* navbar возвращаем нормальный вид */
.navbar{
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);

  padding: 1rem 0;        /* ВЕРНУЛИ воздух */
  height: auto;           /* НЕ ЗАЖИМАЕМ */
}

.nav-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* чтобы пункты меню не выглядели слитно */
.nav-menu{
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

/* якоря: чтобы при переходе не пряталось под шапкой */
section[id]{
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* hero: отступ под шапку и правильная высота */
.hero{
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  padding-top: var(--nav-h);
  overflow: hidden;
  z-index: 0;
}

/* на всякий — секции выше по слою */
.about, .achievements, .merch, .fights, .contact, .footer{
  position: relative;
  z-index: 1;
}

@supports not (height: 100svh) {
  .hero {
    min-height: calc(100vh - var(--nav-h));
  }
}
.merch-out {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 18px;
    width: 100%;

    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-radius: 50px;

    color: #ff4d4d;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    cursor: not-allowed;
}
.contact-item a{
  color: inherit;
  text-decoration: none;
}
.contact-item a:hover{
  text-decoration: underline;
}