/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(28, 58, 103, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(103, 28, 58, 0.1) 0%, transparent 20%);
    min-height: 100vh;
}

a {
    color: #9d7c5c;
}

p {
    font-size: 20px;
    color: #fff!important;
}

.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    margin-bottom: 30px;
}

header ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 25px;
}

header ul a {
    display: block;
    text-decoration: none;
    font-size: 22px;
}

.d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: #9d7c5c;
    text-shadow: 0 0 10px rgba(157, 124, 92, 0.5);
    letter-spacing: 3px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #9d7c5c;
    font-size: 1.5rem;
}

.video-note {
    font-size: 1rem;
    margin-top: 10px;
    color: #888;
}

/* Поиск */
.search-container {
    display: flex;
    justify-content: flex-end;
}

.search-box {
    display: flex;
    width: 300px;
}

#search-input {
    flex: 1;
    padding: 12px 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-right: none;
    color: #e0e0e0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    border-radius: 5px 0 0 5px;
}

#search-button {
    background-color: #333;
    color: #9d7c5c;
    border: 1px solid #333;
    border-left: none;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: #444;
}

/* Таблица категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 250px;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(157, 124, 92, 0.3);
    border-color: #9d7c5c;
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    padding: 15px;
    text-align: center;
    background-color: rgba(26, 26, 26, 0.9);
    color: #9d7c5c;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.category-image {
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

/* Призыв к действию */
.call-to-action {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.call-to-action h2 {
    font-family: 'Cinzel', serif;
    color: #9d7c5c;
    margin-bottom: 15px;
    font-size: 2rem;
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #ccc;
}

.submit-button {
    display: inline-block;
    background-color: #333;
    color: #9d7c5c;
    padding: 12px 30px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    border-radius: 5px;
    border: 1px solid #9d7c5c;
    transition: background-color 0.3s, color 0.3s;
}

.submit-button:hover {
    background-color: #9d7c5c;
    color: #111;
}

/* Футер */
footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

.contact-email {
    margin-top: 10px;
}

.contact-email a {
    color: #9d7c5c;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Страница отправки рассказа */
.submit-page {
    max-width: 800px;
    margin: 0 auto;
}

.page-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #9d7c5c;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #e0e0e0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
}

.consent {
    display: flex;
    align-items: center;
}

.consent input {
    width: auto;
    margin-right: 10px;
}

.consent label {
    margin-bottom: 0;
}

.submission-info {
    margin-top: 40px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 5px;
    border-left: 4px solid #9d7c5c;
}

.submission-info h3 {
    color: #9d7c5c;
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
}

/* Страница категории */
.category-page {
    margin: 0 auto;
}

.category-page h2 {
    font-family: 'Cinzel', serif;
    color: #9d7c5c;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.category-page > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

.stories-list {
    background-color: #1a1a1a;
    border-radius: 5px;
    padding: 25px;
    border: 1px solid #333;
}

.stories-list h3 {
    color: #9d7c5c;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.stories-list ul {
    list-style-type: none;
}

.stories-list li {
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.stories-list li:last-child {
    border-bottom: none;
}

.stories-list a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.stories-list a:hover {
    color: #9d7c5c;
}

.story-author {
    color: #888;
    font-size: 1rem;
    margin-left: 10px;
}

/* Страница рассказа */
.story-page {
    max-width: 800px;
    margin: 0 auto;
}

.story-page h2 {
    font-family: 'Cinzel', serif;
    color: #9d7c5c;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.story-meta {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-style: italic;
}

.story-image {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.story-content p {
    margin-bottom: 20px;
}

.navigation-links {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-button {
    background-color: #333;
    color: #9d7c5c;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #333;
    font-family: 'Cinzel', serif;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #444;
    border-color: #9d7c5c;
}

/* Ссылка "Назад" */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-link {
    color: #9d7c5c;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.back-link i {
    margin-right: 8px;
}

.back-link:hover {
    color: #c9a87a;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .site-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .site-title {
        font-size: 2.2rem;
    }
    
    .video-container {
        height: 300px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-button {
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
}