/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #333;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    margin: 0;
    position: relative;
}

/* Header styles */
header {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
}

.logo {
    height: 4vh;
    margin-left: 0.5vw;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 0.5vw;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0.3vw 0.8vw;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 0.3vw;
    backdrop-filter: blur(10px);
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.2vw;
    font-weight: 600;
    font-size: 1.2vw;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00cc00;
}

/* Banner styles */
.banner {
    height: 70vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    position: relative;
    text-align: center;
    width: 100%;
    padding: 0.3vh 0.3vw 0 0.3vw;
    gap: 0.2vw;
    z-index: 1;
}

.banner .image-section {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-color: #444;
    transition: filter 0.3s ease;
    filter: grayscale(100%) contrast(70%);
    border-radius: 0.8vw;
    position: relative;
}

.banner .image-section:hover {
    filter: none;
}

.banner .image1 { background-image: url('images/police.webp'); }
.banner .image2 { background-image: url('images/military.webp'); }
.banner .image3 { background-image: url('images/mafia.webp'); }
.banner .image4 { background-image: url('images/hand.webp'); }
.banner .image5 { background-image: url('images/doctor.webp'); }
.banner .image6 { background-image: url('images/criminal.webp'); }

.banner-button {
    font-size: 2.5vw;
    text-transform: uppercase;
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    white-space: normal;
    text-align: center;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    outline: none;
}

.banner-button:focus {
    outline: none;
}

.banner-button:active {
    outline: none;
}

.arrow {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: 900;
    animation: bounce 1.5s infinite;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Main content */
main {
    padding: 2rem 0;
    width: 100%;
    margin: 0;
    margin-top: 60px;
}

section {
    margin-bottom: 4rem;
    position: relative;
    min-height: 40vh;
    width: 100%;
}

/* About section */
#about {
    position: relative;
    text-align: center;
    width: 100%;
    min-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8rem;
    margin-bottom: 5rem;
}

#about::after {
    content: '';
    position: absolute;
    top: -35vh;
    left: 0.3vw;
    right: 0.3vw;
    height: calc(100% + 35vh);
    background-image: url('images/fon.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: grayscale(90%) contrast(70%);
    border-radius: 0.8vw;
    z-index: -1;
    mask-image: linear-gradient(to bottom, 
        black 0%, 
        black 85%, 
        transparent 85%, 
        transparent 87%, 
        black 87%, 
        black 89%, 
        transparent 89%, 
        transparent 91%, 
        black 91%, 
        black 93%, 
        transparent 93%, 
        transparent 95%, 
        black 95%, 
        black 97%, 
        transparent 97%, 
        transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        black 0%, 
        black 85%, 
        transparent 85%, 
        transparent 87%, 
        black 87%, 
        black 89%, 
        transparent 89%, 
        transparent 91%, 
        black 91%, 
        black 93%, 
        transparent 93%, 
        transparent 95%, 
        black 95%, 
        black 97%, 
        transparent 97%, 
        transparent 100%);
}

#about p {
    max-width: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 1.2vw;
    line-height: 1.6;
}

#about .background-image {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease;
    z-index: 1;
}

#about .background-image.left {
    left: 0;
    background-image: url('images/gang.webp');
    background-position: left 0.5vw top 0;
}

#about .background-image.right {
    right: 0;
    background-image: url('images/cop.webp');
    background-position: right 0.5vw top 0;
}

/* Application text styles */
.application-text {
    position: absolute;
    left: 50%;
    bottom: 2.4vh;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.75);
    border-radius: 2rem;
    box-shadow: 0 2px 16px rgba(255,255,255,0.18);
    padding: 0.7rem 2.5rem;
    animation: fadeInUp 1.2s cubic-bezier(.39,.575,.56,1.000) both, pulseGlowWhite 2.5s infinite alternate;
    cursor: help;
}

.application-text::before {
    content: "Нажмите на «Путь криминала» или «Путь закона» для отправки заявки";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.application-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 0.5rem solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    margin-bottom: -0.5rem;
}

.application-text:hover::before,
.application-text:hover::after {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateX(-50%) translateY(30px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes pulseGlowWhite {
    from { box-shadow: 0 2px 16px rgba(255,255,255,0.18); }
    to   { box-shadow: 0 2px 32px rgba(255,255,255,0.38); }
}

.application-label {
    color: #fff;
    font-size: 1vw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1;
}

.path-button {
    position: absolute;
    bottom: 2.4vh;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5vw;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    font-size: 1.2vw;
    font-weight: 600;
}

.path-button:hover {
    background-color: rgba(0, 204, 0, 0.9);
    transform: translateX(-50%) scale(1.05);
}

/* Video section */
.video-section {
    padding: 4rem 0;
    background: transparent;
    position: relative;
    overflow: visible;
    margin-bottom: 5rem;
}

.video-section .container {
    background: transparent;
    padding: 0;
    margin: 0;
}

.video-section .row {
    background: transparent;
    margin: 0;
    padding: 0;
}

.video-section .col-md-8 {
    background: transparent;
    padding: 0;
    margin: 0;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.creator-section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 6rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.creator-image-container {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: #000;
}

.creator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.creator-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.creator-nav.prev {
    left: 10px;
}

.creator-nav.next {
    right: 10px;
}

.pixel-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1px;
    background: #000;
}

.pixel {
    background: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pixel:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.videos-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: 500px;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.video-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 12px solid rgba(255, 255, 255, 0.9);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.video-item:hover .video-icon::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    flex: 1;
    text-align: left;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.video-description {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

.video-row {
    display: flex;
    width: 100%;
    min-height: 350px;
}

#videoLeft {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 350px;
    box-sizing: border-box;
}

#videoRight {
    width: 67%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#imageContainer {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    position: relative;
    height: 350px;
    width: 350px;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    background: transparent;
    margin: 0 auto;
}

#imageText {
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
    color: #e0e0e0;
    font-weight: 500;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.arrow-left, .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.arrow-left:hover, .arrow-right:hover {
    color: #00cc00;
    background-color: rgba(0, 204, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
}

#imageContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--creator-image, url('images/thewashington.png'));
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s ease, background-image 0.5s ease;
    z-index: 1;
}

#imageContainer:hover::before {
    filter: grayscale(0%) contrast(1.1);
}

#imageContainer .pixel {
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: pixelAppear 0.5s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}

#imageContainer .pixel:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.2) rotate(3deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    z-index: 4;
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes pixelAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#imageContainer img {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 1;
}

.social-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
}

#socialIcons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#socialIcons a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
    height: auto;
}

#socialIcons a:hover {
    color: #00cc00;
    background-color: rgba(0, 204, 0, 0.1);
    transform: translateY(-3px);
    border-color: rgba(0, 204, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 204, 0, 0.2);
}

#socialIcons .channel-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ccc;
    transition: color 0.3s ease;
}

#socialIcons a:hover .channel-name {
    color: #00cc00;
}

#videoContainer {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: auto;
    overflow: visible;
    background: transparent;
    align-self: flex-start;
    margin: 0;
    padding: 0;
}

#videoContainer .video-item {
    margin: 0;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
    box-shadow: none;
    aspect-ratio: 16 / 9;
    height: auto;
    padding: 0;
}

#videoContainer .video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

#videoContainer a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    aspect-ratio: 16 / 9;
    background: transparent;
    padding: 0;
    margin: 0;
}

#videoContainer img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: none;
    border-radius: 0.5rem;
    display: block;
    background: transparent;
    padding: 0;
    margin: 0;
}

#videoContainer p {
    font-size: 0.9rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: absolute;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    width: 100%;
    padding: 0.8rem 0.5rem 0.5rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* FAQ section */
#faq {
    padding: 80px 0;
    background: #333;
    position: relative;
    overflow: hidden;
}

#faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.02) 0.8px, transparent 0.8px),
        radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.025) 0.9px, transparent 0.9px),
        radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.015) 0.6px, transparent 0.6px),
        linear-gradient(23deg, transparent 49.5%, rgba(255, 255, 255, 0.015) 50%, transparent 50.5%),
        linear-gradient(67deg, transparent 49.8%, rgba(255, 255, 255, 0.012) 50%, transparent 50.2%),
        linear-gradient(112deg, transparent 49.9%, rgba(255, 255, 255, 0.02) 50%, transparent 50.1%);
    background-size: 180px 120px, 220px 180px, 150px 200px, 300px 250px, 400px 300px, 350px 280px, 280px 320px;
    pointer-events: none;
    z-index: 1;
}

#faq .container {
    position: relative;
    z-index: 2;
}

#faq h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

#faq > .container > p {
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: #111;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: #1a1a1a;
}

.faq-question:focus {
    outline: none;
    background: #1a1a1a;
}

.faq-question.active {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #888;
    transition: all 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #0f0f0f;
}

.faq-answer.active {
    max-height: 200px;
    padding: 20px 25px;
}

.faq-answer p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    #faq {
        padding: 60px 20px;
    }
    
    #faq h2 {
        font-size: 2rem;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 15px 20px;
    }
    
    .faq-icon {
        font-size: 1.3rem;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 1rem;
    text-align: center;
    width: 100%;
    border-top: 1px solid #333;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    padding: 2rem;
    border-radius: 1vw;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    border: 2px solid #555;
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    text-align: left;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-btn {
    font-size: 2rem;
    color: #fff;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

/* Form styles */
.application-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background-color: #444;
    border: 1px solid #666;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00cc00;
    box-shadow: 0 0 0 2px rgba(0, 204, 0, 0.2);
}

.form-group input[type="range"] {
    width: 80%;
    height: 6px;
    background: #666;
    border-radius: 3px;
    outline: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00cc00;
    border-radius: 50%;
    cursor: pointer;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    display: none;
    margin-top: 0.25rem;
}

.submit-btn {
    background-color: #006600;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    background-color: #008800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.submit-btn:disabled {
    background-color: #ff0000;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success modal */
#successContent {
    text-align: center;
    padding: 2rem;
    position: relative;
}

#successContent h2 {
    color: #00cc00;
    margin-bottom: 1rem;
    font-size: 2rem;
}

#successContent p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

#successContent .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #fff;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#successContent .close-btn:hover {
    color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

/* Force center for success modal title */
#successContent h2 {
    text-align: center !important;
    display: block !important;
    justify-content: unset !important;
    align-items: unset !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .logo {
        margin-left: 1vw;
    }
    
    nav {
        margin-right: 1vw;
    }
    
    nav ul {
        padding: 0.3vw 1vw;
        border-radius: 0.3vw;
    }
    
    nav a {
        font-size: 1.2vw;
        margin: 0 0.5vw;
    }
    
    .banner {
        padding: 0.3vh 0.3vw 0 0.3vw;
        gap: 0.3vw;
    }
    
    .banner .image-section {
        border-radius: 0.8vw;
    }
    
    .banner-button {
        font-size: 2.5vw;
        bottom: 6vh;
    }
    
    .arrow {
        bottom: 1.5vh;
        font-size: 2.5rem;
    }
    
    .path-button {
        font-size: 1vw;
        bottom: 1.5vh;
        padding: 0.3rem 0.8rem;
    }
    
    .application-text {
        padding: 1.5rem 2rem;
    }
    
    .application-text h2 {
        font-size: 2vw;
    }
    
    h2 {
        font-size: 2vw;
        margin-bottom: 1.5rem;
    }
    
    p {
        font-size: 1vw;
        margin-bottom: 1.5rem;
    }
    
    section {
        margin-bottom: 3rem;
    }
    
    #about {
        margin-bottom: 3rem;
    }
    
    .video-section {
        padding: 3rem 0;
        margin-bottom: 3rem;
    }
    
    .creator-section {
        margin: 4rem 0;
        padding: 2rem;
    }
    
    .social-section {
        margin: 3rem 0;
        padding: 2rem 0;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    #imageText {
        font-size: 1rem;
        max-width: 200px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 50vh;
        flex-direction: column;
        gap: 0.5vh;
    }
    
    .banner .image-section {
        height: 16.66%;
    }
    
    .banner-button {
        font-size: 3vw;
        bottom: 4vh;
    }
    
    .arrow {
        bottom: 1vh;
        font-size: 2.5rem;
    }
    
    #about p {
        max-width: 90%;
        font-size: 1rem;
    }
    
    .path-button {
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
    }
    
    .application-text {
        padding: 1rem 1.5rem;
    }
    
    .application-text h2 {
        font-size: 1.5rem;
    }
    
    section {
        margin-bottom: 2rem;
    }
    
    #about {
        margin-bottom: 2rem;
    }
    
    .video-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .creator-section {
        margin: 3rem 0;
        padding: 1.5rem;
    }
    
    .social-section {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    #videoContainer {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
    }
}

/* Progress bar styles */
.progress-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #444;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff8800, #ffcc00, #00cc00);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

/* Progress colors based on completion */
.progress-fill[data-progress="0"] { background: #ff4444; }
.progress-fill[data-progress="1"] { background: #ff8800; }
.progress-fill[data-progress="2"] { background: #ffcc00; }
.progress-fill[data-progress="3"] { background: #88cc00; }
.progress-fill[data-progress="4"] { background: #00cc00; }

/* Character counter styles */
.char-counter {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    margin-top: 0.25rem;
    font-style: italic;
}

.char-counter.warning {
    color: #ff8800;
}

.char-counter.danger {
    color: #ff4444;
    font-weight: bold;
}

/* Form validation visual feedback */
.form-group input:not(:placeholder-shown):valid,
.form-group textarea:not(:placeholder-shown):valid {
    border-color: #00cc00;
    box-shadow: 0 0 0 2px rgba(0, 204, 0, 0.2);
}

.form-group input:not(:placeholder-shown):invalid,
.form-group textarea:not(:placeholder-shown):invalid {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

/* Default state - gray borders */
.form-group input,
.form-group textarea,
.form-group select {
    border-color: #666;
    box-shadow: none;
}

/* Why Join Section */
#why-join {
    background: #333;
    padding: 4rem 0;
    margin: 4rem 0;
}

#why-join .container {
    padding: 0 0.3vw;
}

#why-join h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #00cc00;
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.reason-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reason-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 204, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 204, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.reason-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.reason-card h3 {
    color: #00cc00;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.reason-card p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.join-cta {
    text-align: center;
    margin-top: 3rem;
}

.join-cta p {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn.criminal {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.cta-btn.criminal:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.cta-btn.law {
    background: linear-gradient(135deg, #4444ff, #0000cc);
    color: white;
}

.cta-btn.law:hover {
    background: linear-gradient(135deg, #0000cc, #000099);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(68, 68, 255, 0.4);
}

.social-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
}

#why-join {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
}

#why-join h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.reason-card {
    padding: 1rem;
}

.reason-icon {
    font-size: 2rem;
}

.reason-card h3 {
    font-size: 1.2rem;
}

.reason-card p {
    font-size: 0.9rem;
}

.join-cta p {
    font-size: 1.1rem;
}

.cta-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
}

#faq {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Family Achievements Section */
#family-achievements {
    background: #333;
    padding: 1rem 0;
    margin: 1rem 0;
}

#family-achievements .container {
    padding: 0 0.3vw;
}

#family-achievements h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #00cc00;
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
}

#family-achievements > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.8rem;
    color: #ccc;
}

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

.timeline-line {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, #00cc00, #008800);
    border-radius: 2px;
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-start,
.timeline-end {
    background: #00cc00;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
    position: relative;
}

.timeline-event {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #00cc00;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.timeline-event:hover {
    background: rgba(0, 204, 0, 0.6);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 204, 0, 0.5);
}

.timeline-event.active {
    background: #00cc00;
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.7);
    border-color: #fff;
}

.timeline-event::after {
    content: attr(title);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-event:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 25px;
}

.achievements-slider {
    position: relative;
    margin: 3rem 0;
}

.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 204, 0, 0.2);
    border: 2px solid #00cc00;
    color: #00cc00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-nav:hover {
    background: rgba(0, 204, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.4);
}

.timeline-nav.prev {
    left: -25px;
}

.timeline-nav.next {
    right: -25px;
}

.achievements-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    padding: 0 1rem;
}

.achievement-card {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0.6;
    transform: scale(0.9);
}

.achievement-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(0, 204, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 204, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.achievement-date {
    background: linear-gradient(135deg, #00cc00, #008800);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-card h3 {
    color: #00cc00;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.achievement-card p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

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

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00cc00;
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.5);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(0, 204, 0, 0.6);
    transform: scale(1.1);
}

.achievements-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 204, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 204, 0, 0.15);
    border-color: rgba(0, 204, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 204, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00cc00;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    font-weight: 500;
}

/* Адаптивность для статистики */
@media (max-width: 768px) {
    .achievements-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .achievements-stats {
        grid-template-columns: 1fr;
    }
}

/* Active Players Section */
#active-players {
    background: #333;
    padding: 1rem 0;
    margin: 1rem 0;
}

#active-players .container {
    position: relative;
    z-index: 2;
}

#active-players h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #00cc00;
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
}

#active-players p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #ccc;
    font-weight: 500;
}

.players-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0 32px;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 450px;
}

.players-grid {
    display: flex;
    gap: 2rem;
    width: 100%;
    transition: transform 0.3s ease;
    position: relative;
    overflow: visible;
    margin: 0;
}

.players-grid::after {
    content: '';
    flex: 0 0 32px;
    height: 1px;
    display: block;
    pointer-events: none;
}

.players-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 204, 0, 0.2);
    border: 2px solid #00cc00;
    color: #00cc00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.players-nav:hover {
    background: rgba(0, 204, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.4);
}

.players-nav.prev {
    left: 10px;
}

.players-nav.next {
    right: 10px;
}

.players-nav:disabled,
.players-nav[style*="opacity: 0.5"] {
    cursor: not-allowed;
    opacity: 0.5 !important;
}

.players-nav:disabled:hover,
.players-nav[style*="opacity: 0.5"]:hover {
    background: rgba(0, 204, 0, 0.3);
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}

.player-card {
    width: 350px;
    flex: 0 0 350px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    height: 450px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
    min-height: 450px;
    min-width: 350px;
}

.player-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.player-card:hover .player-overlay {
    opacity: 1;
}

/* Player Info Styles */
.player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1rem;
    color: #fff;
    z-index: 1;
}

.player-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #00cc00;
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
}

.player-position {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.player-date {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.3rem;
}

.player-days {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.details-btn {
    background: rgba(0, 204, 0, 0.8);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.details-btn:hover {
    background: rgba(0, 204, 0, 1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 204, 0, 0.4);
}

/* Player Modal Styles */
.player-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

.player-modal-content {
    position: relative;
    background: rgba(20, 20, 20, 0.92);
    border-radius: 22px;
    max-width: 1000px;
    width: 90vw;
    max-height: 90vh;
    padding: 2.8rem 2.8rem 2.2rem 2.8rem;
    color: #fff;
    overflow-y: auto;
    font-size: 1.1rem;
    box-sizing: border-box;
    border: 2px solid #00ff44;
    box-shadow: 0 0 24px 2px #00ff44, 0 0 0 6px rgba(0,255,68,0.08);
    animation: modalFadeIn 0.4s;
}

.player-modal-inner {
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    height: 100%;
    box-sizing: border-box;
}

.player-modal-content::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg, #222) center center / cover no-repeat;
    filter: blur(3px) brightness(0.6);
    border-radius: 18px;
    z-index: 0;
    pointer-events: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97);}
    to   { opacity: 1; transform: scale(1);}
}

.player-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    background: #ff4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow: 0 0 10px #ff4444;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
}
.player-modal-close:hover {
    background: #ff2222;
    transform: scale(1.08);
}

.player-modal-info h3 {
    color: #00ff44;
    font-size: 2rem;
    margin-bottom: 0.7rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: none;
}

.player-modal-info .player-position {
    color: #baffc9;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.player-modal-info .join-date {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

#modalPlayerDescription {
    margin-top: 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
}

#modalPlayerDescription .question {
    color: #00ff44;
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.2em;
    font-size: 1.08em;
    text-shadow: none;
}

#modalPlayerDescription .answer {
    color: #fff;
    font-weight: 400;
    margin-bottom: 0.7em;
    font-size: 1em;
    text-shadow: 0 0 2px #000;
}

/* Responsive adjustments for player cards */
@media (max-width: 768px) {
    .player-card {
        min-width: 280px;
        max-width: 280px;
        flex: 0 0 280px;
        height: 380px;
    }
    
    .player-name {
        font-size: 1rem;
    }
    
    .player-position {
        font-size: 0.9rem;
    }
    
    .player-date, .player-days {
        font-size: 0.8rem;
    }
    
    .player-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .player-card {
        min-width: 250px;
        max-width: 250px;
        flex: 0 0 250px;
        height: 350px;
    }
    
    .player-info {
        padding: 0.8rem;
    }
    
    .player-name {
        font-size: 0.9rem;
    }
    
    .player-position {
        font-size: 0.8rem;
    }
    
    .player-date, .player-days {
        font-size: 0.7rem;
    }
}

/* Новый классический стиль для модального окна карточки игрока */
.player-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}

.player-modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 700px;
  width: 90vw;
  padding: 32px 24px 24px 24px;
  position: relative;
  animation: modalFadeIn 0.2s;
}

@keyframes modalFadeIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.player-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #eee;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.player-modal-close:hover {
  background: #e57373;
  color: #fff;
}

.player-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.player-modal-info h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #222;
  font-size: 2rem;
  font-weight: 700;
}
.player-modal-info .player-position {
  color: #388e3c;
  font-weight: 600;
  margin-bottom: 4px;
}
.player-modal-info .join-date {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
#modalPlayerDescription {
  margin-top: 16px;
  color: #222;
  line-height: 1.6;
}

/* Новый стиль для модального окна карточки игрока с фоновым изображением и overlay */
.player-modal-content {
  background: var(--modal-bg, #fff) center center/cover no-repeat;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 90vw;
  max-height: 90vh;
  width: 90vw;
  height: 90vh;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  animation: modalFadeIn 0.2s;
}

.player-modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* overlay затемнение */
  z-index: 1;
}

.player-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #eee;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 3;
  opacity: 0.95;
}
.player-modal-close:hover {
  background: #e57373;
  color: #fff;
}

.player-modal-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 48px 32px 48px;
  overflow-y: auto;
}

.player-modal-info h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.player-modal-info .player-position {
  color: #a5ffb0;
  font-weight: 600;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.player-modal-info .join-date {
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
#modalPlayerDescription {
  margin-top: 16px;
  color: #fff;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 700px) {
  .player-modal-content {
    padding: 0;
    border-radius: 8px;
  }
  .player-modal-inner {
    padding: 24px 8px 16px 8px;
  }
}

/* Стили для даты вступления и дней в семье: белый цвет, жирный шрифт, тень */
.player-date,
.player-days {
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Стиль для должности: белый цвет, жирный шрифт, тень */
.player-position {
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Более компактный стиль для текстового логотипа WASHINGTON */
.logo-text {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35), 0 1px 0 #222;
  text-transform: uppercase;
  display: inline-block;
  margin-left: 10px;
  line-height: 1.1;
}