* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.accordion-container {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: #333;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-input {
    display: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .accordion-header:hover {
        color: #667eea;
		text-shadow: 0 0 1px rgba(102, 126, 234, 0.3);
    }
}

.accordion-title {
    font-size: 1.2rem;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-input:checked ~ .accordion-content {
    max-height: 500px;
}

.accordion-input:checked ~ .accordion-header .accordion-icon {
    transform: rotate(180deg);
}

.accordion-input:checked ~ .accordion-header .accordion-title {
    color: #667eea;
}

.accordion-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 10px 0;
    display: block;
}

.accordion-content p {
    margin-bottom: 16px;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 768px) {
    .accordion-container {
        padding: 16px;
    }
    .accordion-title {
        font-size: 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .accordion-title {
        font-size: 0.9rem;
    }
    .accordion-content p {
        font-size: 0.85rem;
    }
}

/* Превью при наведении */
.preview {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
}

.preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin: 5px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Показываем превью при наведении на заголовок */
.accordion-header:hover + .preview {
    max-height: 100px;
}

/* Также показываем превью при наведении на сам превью */
.preview:hover {
    max-height: 100px;
}

/* Для устройств без hover — отключаем превью */
@media (hover: none) {
    .preview {
        display: none;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-4px);
    color: #764ba2;
}