@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: rgb(136, 0, 255);
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-image: 
        linear-gradient(rgba(0, 50, 0, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 50, 0, 0.3) 1px, transparent 1px);
    background-size: 15px 15px; /* Уменьшил для мобильных */
}

/* Мобильные стили */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Базовый размер для мобильных */
        background-size: 12px 12px;
    }
    
    .dossier-container {
        max-width: 100%;
        padding: 10px;
        margin: 0;
        border-left: none;
        border-right: none;
    }
    
    .dossier-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 1.2rem !important;
        margin-bottom: 8px;
    }
    
    h2 {
        font-size: 1.0rem !important;
        margin: 20px 0 10px;
        padding-bottom: 8px;
    }
    
    h3 {
        font-size: 0.9rem !important;
        margin-top: 20px;
    }
    
    h4 {
        font-size: 0.8rem !important;
    }
    
    .back-link {
        font-size: 0.6rem !important;
        margin-bottom: 20px;
        padding: 8px 12px;
        border: 1px solid rgb(136, 0, 255);
    }
    
    .photo-section {
        margin-bottom: 80px;
        padding: 15px;
    }
    
    .member-photo {
        width: 250px;
        height: 330px;
        font-size: 0.8rem;
    }
    
    .car-photo {
        max-width: 100%;
        height: 200px;
        font-size: 0.7rem;
    }
    
    .dossier-content {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .dossier-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
        font-size: 0.9rem;
    }
    
    .dossier-section p {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important; /* Одна колонка на мобильных */
        gap: 10px;
    }
    
    .stat-item {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .quote {
        font-size: 0.9rem;
        padding: 15px;
        margin: 15px 0;
    }
    
    .accordion-header {
        font-size: 0.9rem !important;
        padding-right: 25px;
    }
    
    .accordion-header::after {
        right: 5px;
        font-size: 1.2rem;
    }
    
    ul {
        padding-left: 15px;
    }
    
    li {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    footer {
        margin-top: 30px;
        padding-top: 15px;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}

/* Стили для очень маленьких экранов */
@media (max-width: 480px) {
    .member-photo {
        width: 200px;
        height: 280px;
    }
    
    .car-photo {
        height: 150px;
    }
    
    h1 {
        font-size: 1.0rem !important;
    }
    
    h2 {
        font-size: 0.8rem !important;
    }
    
    .dossier-section p {
        font-size: 1.0rem !important;
    }
    
    .back-link {
        font-size: 0.5rem !important;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
    .dossier-container {
        max-width: 95%;
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Базовые стили (остаются без изменений) */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border-left: 1px dashed rgb(136, 0, 255);
    border-right: 1px dashed rgb(136, 0, 255);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 60% 0;
    border-bottom: 1px dashed rgb(136, 0, 255);
    margin-bottom: 30px;
    line-height: 0.8;
}

h1, h2, h3, h4 {
    font-family: 'Press Start 2P', cursive;
    color: rgb(0, 221, 255);
    text-shadow: 0 0 5px #f00;
}

h1 {
    font-size: 2.0rem;
    margin-bottom: 10px;
}

a {
    font-family: 'Press Start 2P', cursive;
    color: rgb(0, 221, 255);
    text-shadow: 0 0 5px #f00;
    font-size: 2.0rem;
    margin-bottom: 15px;
    text-decoration: none;
}

h2 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    border-bottom: 1px solid rgb(136, 0, 255);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.2rem;
    color: rgb(136, 0, 255);
    text-shadow: 0 0 5px rgb(136, 0, 255);
    margin-top: 25px;
}

h4 {
    font-size: 1.2rem;
    color: rgb(200, 0, 255);
    margin: 15px 0 10px;
}

p {
    font-size: 0.9rem;
    color: rgb(200, 0, 255);
    margin: 15px 0 10px;
}

.member-card {
    background: rgba(0, 30, 0, 0.7);
    border: 1px solid rgb(136, 0, 255);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.glitch {
    animation: glitch 0.9s linear infinite;
    margin-top: 50px;
}

@keyframes glitch {
    0% { text-shadow: 2px 0 rgb(136, 0, 255), -2px 0 #f00; }
    25% { text-shadow: -2px 0 rgb(136, 0, 255), 2px 0 #f00; }
    50% { text-shadow: 2px 0 #f00, -2px 0 rgb(136, 0, 255); }
    75% { text-shadow: -2px 0 #f00, 2px 0 rgb(47, 0, 255); }
    100% { text-shadow: 2px 0 rgb(136, 0, 255), -2px 0 #f00; }
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px dashed rgb(136, 0, 255);
}

.dossier-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border-left: 1px dashed rgb(136, 0, 255);
    border-right: 1px dashed rgb(136, 0, 255);
    min-height: 100vh;
}

.dossier-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px dashed rgb(136, 0, 255);
    margin-bottom: 30px;
}

.photo-section {
    background: rgba(0, 30, 0, 0.7);
    border: 2px solid rgb(136, 0, 255);
    padding: 20px;
    margin-bottom: 150px;
    text-align: center;
}

.member-photo {
    width: 300px;
    height: 400px;
    background: rgba(0, 10, 0, 0.9);
    border: 1px solid rgb(0, 221, 255);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(136, 0, 255);
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.car-photo {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: rgba(0, 10, 0, 0.9);
    border: 1px solid rgb(0, 221, 255);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(136, 0, 255);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.dossier-content {
    background: rgba(0, 20, 0, 0.5);
    padding: 30px;
    border: 1px solid rgb(136, 0, 255);
    margin-bottom: 40px;
}

.dossier-section {
    font-size: 1.0rem;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgb(136, 0, 255);
}

.dossier-section p {
    font-size: 1.5rem;
}

.dossier-section:last-child {
    border-bottom: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: rgba(0, 40, 0, 0.3);
    padding: 10px;
    border-left: 3px solid rgb(0, 200, 255);
}

.quote {
    font-size: 1.0rem;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: rgba(136, 0, 255, 0.1);
    border: 1px solid rgb(136, 0, 255);
    margin: 20px 0;
    position: relative;
    color: rgb(0, 221, 255);
}

.quote::before, .quote::after {
    content: '"';
    color: rgb(0, 221, 255);
    font-size: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: rgb(0, 221, 255);
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.back-link:hover {
    text-shadow: 0 0 10px #f00;
}

.classified {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #f00;
    padding: 15px;
    margin: 20px 0;
    position: relative;
}

.classified::before {
    content: "СЕКРЕТНО";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #000;
    color: #f00;
    padding: 0 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.achievement-item {
    background: rgba(0, 50, 0, 0.4);
    padding: 15px;
    border: 1px solid rgb(136, 0, 255);
    text-align: center;
}

/* Стили для аккордеона */
.accordion-header {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    user-select: none;
    transition: all 0.3s;
    margin: 0;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: rgb(0, 221, 255);
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.accordion-header:hover {
    color: rgb(0, 221, 255);
    text-shadow: 0 0 10px rgb(136, 0, 255);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 30, 0, 0.3);
}

.accordion-content.active {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.dossier-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgb(136, 0, 255);
}

.dossier-section:last-child {
    border-bottom: none;
}