/* ===== VARIABLES ===== */
:root {
    --primary-blue: #1e4a8d;
    --primary-blue-dark: #163a6e;
    --primary-orange: #f26a4b;
    --primary-orange-dark: #d85a3d;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --white: #ffffff;
    --gradient-blue: linear-gradient(135deg, #1e4a8d 0%, #2d5aa0 100%);
    --gradient-orange: linear-gradient(135deg, #f26a4b 0%, #ff8a6b 100%);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    .navbar-nav .nav-link { font-size: 1rem; padding: 0.5rem 0.8rem; letter-spacing: 0.8px; }
    .navbar-nav { gap: 0.8rem; }
    .navbar-nav .nav-link.active { padding: 0.5rem 1rem; }
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 60px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.5rem; /* increased by 50% */
    padding: 0.5rem 1.7rem; /* increased horizontal padding by ~70% */
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* add gap between items for browsers supporting flex gap */
.navbar-nav {
    gap: 1.7rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-orange);
}

/* Active nav link (pill style with background) */
.navbar-nav .nav-link.active {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    padding: 0.6rem 1.8rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Featured nav link (Tournament highlight) */
.navbar-nav .nav-link.nav-link-featured {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8a6b 100%);
    color: var(--white);
    border-radius: 8px;
    padding: 0.6rem 1.8rem;
    box-shadow: 0 3px 10px rgba(242, 106, 75, 0.25);
    border: none;
    position: relative;
}

.navbar-nav .nav-link.nav-link-featured:hover {
    color: var(--white);
    box-shadow: 0 4px 15px rgba(242, 106, 75, 0.4);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.nav-link-featured::after {
    display: none;
}

.navbar-nav .nav-link.nav-link-featured.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8a6b 100%);
}

.social-link {
    color: var(--primary-blue);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-orange);
}

/* ===== OVERSIZED LOGO (HEADER) ===== */
.navbar {
    overflow: visible; /* allow logo to overflow header */
}

.navbar .container {
    padding-left: 380px; /* increased space for larger logo and left shift */
}

@media (max-width: 992px) {
    .navbar .container { padding-left: 260px; }
    .navbar-nav .nav-link { font-size: 1.25rem; padding: 0.5rem 1.2rem; letter-spacing: 1px; }
    .navbar-nav { gap: 1.2rem; }
    .navbar-nav .nav-link.active { padding: 0.6rem 1.4rem; }
}

.navbar .oversized-logo {
    position: fixed; /* фиксированный логотип */
    left: 14vw; /* чуть смещено влево */
    top: 1.2rem; /* опущено вниз на 50% */
    transform: none;
    z-index: 1101;
    pointer-events: auto;
}

.nav-logo {
    height: 240px; /* увеличено на 50% */
    width: auto;
    transition: height 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.25));
}

.navbar.scrolled .nav-logo {
    height: 180px;
    transform: none;
}

@media (max-width: 992px) {
    .nav-logo { height: 210px; }
    .navbar .oversized-logo { left: 10vw; top: 1rem; }
    .navbar-nav .nav-link { font-size: 1.25rem; padding: 0.5rem 1.2rem; }
    .navbar-nav { gap: 1.2rem; }
}

/* ===== HERO / TOURNAMENT MAGAZINE STYLES ===== */
.hero {
    padding-top: 18rem; /* increased to accommodate much larger fixed logo */
}

.hero-tournament {
    background: linear-gradient(180deg, rgba(30,74,141,0.95) 0%, rgba(29,52,106,0.9) 100%);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(18,22,54,0.45);
}

.tournament-hero-title {
    color: var(--white);
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.4rem;
}

.tournament-hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.tournament-hero-title {
    font-family: 'Playfair Display', serif;
}

.tournament-badge {
    background: rgba(242,106,75,0.95);
    box-shadow: 0 8px 30px rgba(242,106,75,0.15);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hero-tournament::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 40%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.accent-tag {
    color: var(--primary-orange);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.format-card.small {
    padding: 1rem;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .tournament-hero-title { font-size: 2.4rem; }
    .hero { padding-top: 12rem; }
}


/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: var(--gradient-blue);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary-orange);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-logo {
    max-width: 350px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-logo { max-width: 250px; margin-top: 2rem; }
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--gradient-orange);
    border: none;
    color: var(--white);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(242, 106, 75, 0.4);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-orange);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* ===== ABOUT SECTION ===== */
.about-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

/* ===== TOURNAMENT SECTION ===== */
.tournament-banner {
    background: var(--gradient-blue);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    max-width: 88%; /* slightly narrower so fixed logo doesn't cover content */
    margin-left: 6rem; /* nudge right away from the logo */
}

@media (max-width: 992px) {
    .tournament-banner { max-width: 100%; margin-left: 0; }
}

.tournament-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: var(--primary-orange);
    transform: rotate(15deg);
    opacity: 0.1;
}

.tournament-content {
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.tournament-badge {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.tournament-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tournament-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.tournament-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tournament-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.tournament-info-item i {
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.tournament-info-item span {
    font-size: 1rem;
}

.tournament-info-item strong {
    display: block;
    font-size: 1.1rem;
}

/* ===== SCHEDULE ===== */
.schedule-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.schedule-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.schedule-date {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.schedule-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== FORMAT CARDS ===== */
.format-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.format-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.format-label {
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.format-desc {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ===== VENUE SECTION ===== */
.venue-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.venue-img {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.venue-content {
    padding: 2rem;
}

/* ===== PROJECT SECTION ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-blue);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline-date {
    background: var(--gradient-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ===== MEDIA SECTION ===== */
.media-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.media-icon {
    height: 120px;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-icon i {
    font-size: 3rem;
    color: var(--white);
}

.media-content {
    padding: 1.5rem;
}

.media-source {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.media-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.media-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.media-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.media-link:hover {
    color: var(--primary-orange);
}

/* ===== PRICING ===== */
.price-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border: 3px solid var(--primary-orange);
}

.price-card.featured::before {
    content: 'Рекомендуем';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.25rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-value span {
    font-size: 1.25rem;
    color: var(--text-light);
}

.price-label {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.price-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-features li i {
    color: var(--primary-orange);
}

/* ===== CONTACT SECTION ===== */
.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--white);
}

.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-orange);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1e4a8d 0%, #163a6e 100%);
    color: var(--white);
    padding: 1.5rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(242, 106, 75, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer .row {
    align-items: center;
}

/* Compact footer with large logo */
.footer-compact {
    padding: 1.25rem 0 0.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.footer-logo-large {
    height: 100px;
    width: auto;
}

.footer-logo {
    max-width: 80px;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 0.25rem;
}

.footer-social a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.footer-links h5 {
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-logo-large {
        height: 70px;
    }
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 0.75rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(242, 106, 75, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
}

/* ===== DECORATIVE DOTS ===== */
.dots-pattern {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--primary-orange) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HOTELS TABLE ===== */
.hotels-table {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.hotels-table table {
    width: 100%;
    margin: 0;
}

.hotels-table th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    font-weight: 600;
}

.hotels-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-light);
    vertical-align: middle;
}

.hotels-table tr:last-child td {
    border-bottom: none;
}

.hotels-table a {
    color: var(--primary-blue);
    text-decoration: none;
}

.hotels-table a:hover {
    color: var(--primary-orange);
}

/* ===== PARTNERS ===== */
.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.partner-logo {
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}
