/* ==========================================================================
Амир Магомедов - Современный адаптивный сайт
Грэпплинг & БЖЖ
========================================================================== */

/* CSS Variables - Цветовая схема */
:root {
/* Основные цвета */
--primary: #ff4d4d;
--primary-dark: #cc0000;
--primary-light: #ff7a7a;
--secondary: #1a1a2e;
--accent: #ffd700;

/* Нейтральные */
--dark: #0f0f1a;
--dark-lighter: #16213e;
--light: #ffffff;
--gray-100: #f8f9fa;
--gray-200: #e9ecef;
--gray-300: #dee2e6;
--gray-400: #ced4da;
--gray-500: #adb5bd;
--gray-600: #6c757d;
--gray-700: #495057;
--gray-800: #343a40;
--gray-900: #212529;

/* Градиенты */
--gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
--gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
--gradient-hero: linear-gradient(180deg, rgba(15, 15, 26, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);

/* Тени */
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
--shadow-glow: 0 0 30px rgba(255, 77, 77, 0.3);

/* Анимации */
--transition-fast: 0.2s ease;
--transition-normal: 0.3s ease;
--transition-slow: 0.5s ease;

/* Размеры */
--container-max: 1200px;
--navbar-height: 70px;
--border-radius: 12px;
--border-radius-lg: 20px;
}

/* Reset & Base */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
font-size: 16px;
}

body {
font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--dark);
color: var(--light);
line-height: 1.6;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
background-color: var(--primary);
color: var(--light);
}

/* Scrollbar */
::-webkit-scrollbar {
width: 10px;
}

::-webkit-scrollbar-track {
background: var(--dark);
}

::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
background: var(--primary-light);
}

/* Container */
.container {
max-width: var(--container-max);
margin: 0 auto;
padding: 0 20px;
}

/* ==========================================================================
Preloader
========================================================================== */
.preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--dark);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
opacity: 0;
visibility: hidden;
}

.preloader-inner {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}

.preloader-icon {
width: 60px;
height: 60px;
border: 4px solid var(--gray-700);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}

.preloader span {
font-family: 'Russo One', sans-serif;
font-size: 14px;
letter-spacing: 4px;
color: var(--primary);
}

@keyframes spin {
to { transform: rotate(360deg); }
}

/* ==========================================================================
Navbar
========================================================================== */
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: var(--navbar-height);
background: transparent;
z-index: 1000;
transition: all var(--transition-normal);
}

.navbar.scrolled {
background: rgba(15, 15, 26, 0.95);
backdrop-filter: blur(10px);
box-shadow: var(--shadow-md);
}

.nav-container {
max-width: var(--container-max);
margin: 0 auto;
padding: 0 20px;
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}

.nav-logo img {
height: 50px;
width: auto;
transition: transform var(--transition-normal);
}

.nav-logo:hover img {
transform: scale(1.05);
}

.nav-menu {
display: flex;
gap: 30px;
list-style: none;
}

.nav-link {
color: var(--light);
text-decoration: none;
font-weight: 600;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
position: relative;
padding: 5px 0;
transition: color var(--transition-fast);
}

.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--primary);
transition: width var(--transition-normal);
}

.nav-link:hover {
color: var(--primary);
}

.nav-link:hover::after {
width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 5px;
z-index: 1001;
}

.nav-toggle span {
width: 25px;
height: 3px;
background: var(--light);
border-radius: 2px;
transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================================================
Hero Section
========================================================================== */
.hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

.hero-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--gradient-dark);
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--gradient-hero);
}

.hero-particles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
content: '';
position: absolute;
width: 300px;
height: 300px;
border-radius: 50%;
filter: blur(80px);
opacity: 0.3;
animation: float 20s ease-in-out infinite;
}

.hero-particles::before {
background: var(--primary);
top: 20%;
left: 10%;
}

.hero-particles::after {
background: var(--accent);
bottom: 20%;
right: 10%;
animation-delay: -10s;
}

@keyframes float {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(30px, -30px) scale(1.1); }
66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
position: relative;
z-index: 10;
text-align: center;
padding: 20px;
max-width: 800px;
}

/* Hero Photo */
.hero-photo-wrapper {
position: relative;
width: 200px;
height: 200px;
margin: 0 auto 30px;
}

.hero-photo-ring {
position: absolute;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
border: 3px solid var(--primary);
border-radius: 50%;
animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
0% { transform: scale(1); opacity: 1; }
100% { transform: scale(1.2); opacity: 0; }
}

.hero-photo {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
border: 4px solid var(--primary);
box-shadow: var(--shadow-glow);
}

/* Club Logo Badge on Avatar */
.hero-club-logo {
position: absolute;
bottom: 5px;
right: 5px;
width: 70px;
height: 70px;
border-radius: 50%;
background: var(--dark);
border: 3px solid var(--primary);
box-shadow: var(--shadow-glow);
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
animation: pulse-logo 2s ease-in-out infinite;
}

.hero-club-logo img {
width: 85%;
height: 85%;
object-fit: contain;
}

@keyframes pulse-logo {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}

/* Hero Title */
.hero-title {
font-family: 'Russo One', sans-serif;
font-size: clamp(2.5rem, 8vw, 5rem);
line-height: 1.1;
margin-bottom: 20px;
}

.hero-title-line {
display: block;
}

.hero-title-accent {
color: var(--primary);
text-shadow: 0 0 30px rgba(255, 77, 77, 0.5);
}

.hero-subtitle {
font-size: clamp(1rem, 3vw, 1.25rem);
color: var(--gray-400);
margin-bottom: 30px;
letter-spacing: 2px;
}

/* Hero CTA */
.hero-cta {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 40px;
}

/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 14px 30px;
font-family: 'Montserrat', sans-serif;
font-size: 14px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
text-decoration: none;
border-radius: var(--border-radius);
cursor: pointer;
transition: all var(--transition-normal);
border: none;
}

.btn-primary {
background: var(--gradient-primary);
color: var(--light);
box-shadow: var(--shadow-md);
}

.btn-primary:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-glow);
}

.btn-outline {
background: transparent;
color: var(--light);
border: 2px solid var(--light);
}

.btn-outline:hover {
background: var(--light);
color: var(--dark);
}

.btn-youtube {
background: #ff0000;
color: var(--light);
}

.btn-youtube:hover {
background: #cc0000;
transform: translateY(-3px);
}

.btn-instagram {
background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
color: var(--light);
}

.btn-instagram:hover {
transform: translateY(-3px);
box-shadow: 0 5px 20px rgba(220, 39, 67, 0.4);
}

/* Hero Social */
.hero-social {
display: flex;
gap: 15px;
justify-content: center;
}

.social-link {
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: var(--light);
transition: all var(--transition-normal);
}

.social-link svg {
width: 24px;
height: 24px;
}

.social-link:hover {
background: var(--primary);
transform: translateY(-5px) scale(1.1);
box-shadow: var(--shadow-glow);
}

/* Scroll Indicator */
.scroll-indicator {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
animation: bounce 2s infinite;
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
40% { transform: translateX(-50%) translateY(-10px); }
60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
width: 26px;
height: 40px;
border: 2px solid var(--gray-500);
border-radius: 13px;
position: relative;
}

.wheel {
width: 4px;
height: 8px;
background: var(--primary);
border-radius: 2px;
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
0% { opacity: 1; transform: translateX(-50%) translateY(0); }
100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator span {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--gray-500);
}

/* ==========================================================================
Section Styles
========================================================================== */
section {
padding: 100px 0;
}

.section-header {
text-align: center;
margin-bottom: 60px;
}

.section-tag {
display: inline-block;
padding: 8px 20px;
background: rgba(255, 77, 77, 0.1);
color: var(--primary);
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
border-radius: 30px;
margin-bottom: 15px;
}

.section-title {
font-family: 'Russo One', sans-serif;
font-size: clamp(2rem, 5vw, 3rem);
color: var(--light);
}

/* ==========================================================================
About Section
========================================================================== */
.about {
background: var(--dark-lighter);
}

.about-grid {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 60px;
align-items: center;
}

.about-image {
position: relative;
}

.about-image-wrapper {
background: var(--gradient-dark);
border-radius: 50%;
padding: 8px;
box-shadow: var(--shadow-lg);
aspect-ratio: 1;
overflow: hidden;
}

.about-image-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
border: 3px solid var(--primary);
}

.about-badge {
position: absolute;
bottom: -20px;
right: -20px;
background: var(--gradient-primary);
padding: 15px 25px;
border-radius: var(--border-radius);
display: flex;
align-items: center;
gap: 10px;
box-shadow: var(--shadow-glow);
}

.badge-icon {
font-size: 24px;
}

.badge-text {
font-weight: 700;
font-size: 14px;
white-space: nowrap;
}

.about-subtitle {
font-family: 'Russo One', sans-serif;
font-size: clamp(1.5rem, 3vw, 2rem);
margin-bottom: 20px;
color: var(--primary);
}

.about-text {
color: var(--gray-400);
margin-bottom: 20px;
font-size: 16px;
}

.about-text strong {
color: var(--light);
}

/* Stats */
.about-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 40px;
}

.stat-item {
text-align: center;
padding: 25px 15px;
background: rgba(255, 77, 77, 0.05);
border-radius: var(--border-radius);
border: 1px solid rgba(255, 77, 77, 0.1);
transition: all var(--transition-normal);
}

.stat-item:hover {
background: rgba(255, 77, 77, 0.1);
transform: translateY(-5px);
}

.stat-number {
font-family: 'Russo One', sans-serif;
font-size: clamp(2rem, 4vw, 3rem);
color: var(--primary);
display: inline;
}

.stat-suffix {
font-family: 'Russo One', sans-serif;
font-size: clamp(1.5rem, 3vw, 2rem);
color: var(--primary);
}

.stat-label {
display: block;
font-size: 12px;
color: var(--gray-500);
text-transform: uppercase;
letter-spacing: 1px;
margin-top: 10px;
}

/* ==========================================================================
Achievements Section
========================================================================== */
.achievements {
background: var(--dark);
position: relative;
}

.achievements-timeline {
position: relative;
max-width: 800px;
margin: 0 auto;
}

.achievements-timeline::before {
content: '';
position: absolute;
left: 30px;
top: 0;
bottom: 0;
width: 3px;
background: linear-gradient(to bottom, var(--primary), var(--accent));
border-radius: 2px;
}

.timeline-item {
position: relative;
padding-left: 80px;
margin-bottom: 40px;
opacity: 0;
transform: translateX(-20px);
animation: fadeInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInLeft {
to {
opacity: 1;
transform: translateX(0);
}
}

.timeline-icon {
position: absolute;
left: 10px;
top: 0;
width: 44px;
height: 44px;
background: var(--gradient-primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-glow);
}

.timeline-icon svg {
width: 20px;
height: 20px;
fill: var(--light);
}

.timeline-content {
background: var(--dark-lighter);
padding: 25px 30px;
border-radius: var(--border-radius);
box-shadow: var(--shadow-md);
transition: transform var(--transition-normal);
}

.timeline-content:hover {
transform: translateX(10px);
}

.timeline-content h3 {
font-family: 'Russo One', sans-serif;
font-size: 1.25rem;
margin-bottom: 10px;
color: var(--primary);
}

.timeline-content p {
color: var(--gray-400);
font-size: 15px;
}

/* ==========================================================================
Gallery Section
========================================================================== */
.gallery {
background: var(--dark-lighter);
text-align: center;
}

.gallery-cta,
.gallery-social {
margin-bottom: 30px;
}

.gallery-cta p,
.gallery-social p {
color: var(--gray-400);
margin-bottom: 20px;
font-size: 18px;
}

/* ==========================================================================
Support Section
========================================================================== */
.support {
background: var(--dark);
}

.support-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}

.support-text h3 {
font-family: 'Russo One', sans-serif;
font-size: clamp(1.5rem, 3vw, 2rem);
margin-bottom: 20px;
color: var(--accent);
}

.support-text p {
color: var(--gray-400);
margin-bottom: 15px;
font-size: 16px;
}

.support-qr {
text-align: center;
}

.support-qr img {
max-width: 280px;
width: 100%;
border-radius: var(--border-radius);
box-shadow: var(--shadow-lg);
margin-bottom: 15px;
}

.support-qr p {
color: var(--gray-500);
font-size: 14px;
}

/* ==========================================================================
Contact Section
========================================================================== */
.contact {
background: var(--dark-lighter);
}

.contact-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.contact-card {
background: var(--dark);
padding: 30px 20px;
border-radius: var(--border-radius);
text-align: center;
text-decoration: none;
color: var(--light);
transition: all var(--transition-normal);
border: 1px solid transparent;
}

.contact-card:hover {
transform: translateY(-10px);
border-color: var(--primary);
box-shadow: var(--shadow-glow);
}

.contact-icon {
width: 70px;
height: 70px;
margin: 0 auto 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform var(--transition-normal);
}

.contact-card:hover .contact-icon {
transform: scale(1.1);
}

.contact-icon svg {
width: 32px;
height: 32px;
fill: var(--light);
}

.contact-icon.whatsapp { background: #25d366; }
.contact-icon.telegram { background: #0088cc; }
.contact-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-icon.facebook { background: #1877f2; }

.contact-card h3 {
font-size: 1.1rem;
margin-bottom: 5px;
}

.contact-card p {
font-size: 13px;
color: var(--gray-500);
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
background: var(--dark);
padding: 40px 0;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}

.footer-logo img {
height: 50px;
width: auto;
opacity: 0.8;
}

.footer-social {
display: flex;
gap: 15px;
}

.footer-social a {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
display: flex;
align-items: center;
justify-content: center;
color: var(--gray-500);
transition: all var(--transition-normal);
}

.footer-social a svg {
width: 18px;
height: 18px;
}

.footer-social a:hover {
background: var(--primary);
color: var(--light);
transform: translateY(-3px);
}

.footer-copyright {
font-size: 13px;
color: var(--gray-600);
}

/* ==========================================================================
Back to Top Button
========================================================================== */
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background: var(--gradient-primary);
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transform: translateY(20px);
transition: all var(--transition-normal);
z-index: 999;
box-shadow: var(--shadow-md);
}

.back-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.back-to-top:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-glow);
}

.back-to-top svg {
width: 24px;
height: 24px;
fill: var(--light);
}

/* ==========================================================================
Responsive Design
========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
.about-grid {
grid-template-columns: 1fr;
gap: 40px;
}

.about-image {
max-width: 400px;
margin: 0 auto;
}

.about-badge {
right: 0;
}

.support-content {
grid-template-columns: 1fr;
gap: 40px;
}

.support-qr {
order: -1;
}

.contact-grid {
grid-template-columns: repeat(2, 1fr);
}
}

/* Mobile Large */
@media (max-width: 768px) {
:root {
--navbar-height: 60px;
}

section {
padding: 70px 0;
}

/* Mobile Navigation */
.nav-toggle {
display: flex;
}

.nav-menu {
position: fixed;
top: 0;
right: -100%;
width: 100%;
height: 100vh;
background: var(--dark);
flex-direction: column;
align-items: center;
justify-content: center;
gap: 30px;
transition: right var(--transition-normal);
}

.nav-menu.active {
right: 0;
}

.nav-link {
font-size: 18px;
}

/* Hero adjustments */
.hero-photo-wrapper {
width: 160px;
height: 160px;
}

.hero-club-logo {
width: 55px;
height: 55px;
bottom: 0;
right: 0;
}

.hero-cta {
flex-direction: column;
align-items: center;
}

.btn {
width: 100%;
max-width: 280px;
justify-content: center;
}

/* Stats */
.about-stats {
grid-template-columns: 1fr;
gap: 15px;
}

/* Timeline */
.achievements-timeline::before {
left: 20px;
}

.timeline-item {
padding-left: 60px;
}

.timeline-icon {
left: 0;
width: 40px;
height: 40px;
}

.timeline-content {
padding: 20px;
}

/* Contact */
.contact-grid {
grid-template-columns: 1fr;
max-width: 400px;
margin: 0 auto;
}

.scroll-indicator {
display: none;
}
}

/* Mobile Small */
@media (max-width: 480px) {
.container {
padding: 0 15px;
}

section {
padding: 50px 0;
}

.section-header {
margin-bottom: 40px;
}

.hero-photo-wrapper {
width: 140px;
height: 140px;
}

.hero-club-logo {
width: 50px;
height: 50px;
bottom: -5px;
right: -5px;
}

.hero-social {
gap: 10px;
}

.social-link {
width: 44px;
height: 44px;
}

.about-badge {
position: relative;
bottom: auto;
right: auto;
margin-top: 20px;
justify-content: center;
}

.timeline-content h3 {
font-size: 1.1rem;
}

.back-to-top {
width: 44px;
height: 44px;
bottom: 20px;
right: 20px;
}
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
.hero {
min-height: auto;
padding: 100px 0 50px;
}

.hero-photo-wrapper {
width: 100px;
height: 100px;
margin-bottom: 20px;
}

.hero-club-logo {
width: 40px;
height: 40px;
}

.scroll-indicator {
display: none;
}
}

/* High DPI / Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.hero-photo,
.about-image-wrapper img {
image-rendering: -webkit-optimize-contrast;
}
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}

html {
scroll-behavior: auto;
}
}

/* Print Styles */
@media print {
.navbar,
.preloader,
.back-to-top,
.scroll-indicator,
.hero-particles {
display: none !important;
}

body {
background: white;
color: black;
}

section {
page-break-inside: avoid;
}
}
