/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', serif;
    color: #e0d2c4;
    background-color: #2a1f1a;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
    text-align: center;
}

/* Canvas Background */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 20px;
    background: rgba(90, 70, 60, 0.9);
    color: #ffffff;
    border: 1px solid #b35436;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: #b35436;
    color: #fff;
    transform: translateY(-2px);
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 160px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Content Areas */
.content {
    display: none;
}

.content.active {
    display: block;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 30px;
    background: rgba(64, 44, 34, 0.8);
    border: 1px solid #b35436;
    border-radius: 8px;
    position: relative;
    backdrop-filter: blur(5px);
}

.title {
    font-family: 'EB Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4b483;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: 1px;
}

.logline {
    font-style: normal;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    color: #8fb3b3;
}

.genre {
    font-weight: 600;
    color: #8fb3b3;
    font-size: 1.2rem;
    font-family: 'EB Garamond', serif;
}

/* Text Sections */
.synopsis,
.themes {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(78, 60, 45, 0.7);
    border: 1px solid #b35436;
    border-radius: 8px;
    line-height: 1.7;
    backdrop-filter: blur(3px);
    text-align: center;
}

.synopsis p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
    color:  #8fb3b3; /* ДОБАВИТЬ - голубой цвет для лучшей читаемости */
    font-weight: 400;
}

.synopsis strong {
    color: #d4b483;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 15px;
}

.themes h2 {
    font-family: 'EB Garamond', serif;
    color: #d4b483;
    margin-bottom: 25px;
    font-size: 2rem;
    border-bottom: 2px solid #b35436;
    padding-bottom: 10px;
    text-align: center;
}

.themes ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

.themes li {
    margin-bottom: 25px;
    padding-left: 0;
    position: relative;
    font-size: 1.1rem;
    text-align: center;
    color: #8fb3b3; /* ДОБАВИТЬ - светлый цвет */
    font-weight: 400;
}

.themes li strong {
    color: #d4b483;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 8px;
}

/* Button Ziggurat - ОДИНАКОВАЯ ШИРИНА */
.button-ziggurat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 50px 0;
}

.cta-button {
    display: block;
    padding: 18px 35px;
    background: 
        radial-gradient(circle at center, rgba(212, 180, 131, 0.3) 0%, rgba(90, 70, 60, 0.95) 70%),
        rgba(90, 70, 60, 0.95); /* Фон на случай если градиент не поддерживается */
    color: #8fb3b3; /* голубой текст */
    text-decoration: none;
    text-align: center;
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    font-size: 1.3rem; /* Крупный текст */
    letter-spacing: 0.5px;
    border: 2px solid #b35436;
    border-radius: 12px; /* ДОБАВЛЕНО: скругленные углы */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    width: 558px;
    max-width: 90vw;
   /* Фактура кирпича поверх градиента */
    background-image: 
    /* Градиент */
        radial-gradient(circle at center, rgba(212, 180, 131, 0.2) 0%, rgba(90, 70, 60, 0.95) 70%),
   /* Фактура кирпича */
    background-image: 
        linear-gradient(45deg, rgba(120, 90, 70, 0.3) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(120, 90, 70, 0.3) 25%, transparent 25%),
        linear-gradient(45deg, transparent 62%, rgba(120, 90, 70, 0.3) 75%),
        linear-gradient(-45deg, transparent 62%, rgba(120, 90, 70, 0.3) 75%);
    background-size: 10px 6px; /* Мелкий узор */
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}


.cta-button:hover {
    background: 
        radial-gradient(circle at center, rgba(212, 180, 131, 0.4) 0%, #b35436 70%),
        #b35436;
    background-image: 
        radial-gradient(circle at center, rgba(212, 180, 131, 0.4) 0%, #b35436 70%),
        linear-gradient(45deg, rgba(160, 120, 90, 0.4) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(160, 120, 90, 0.4) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(160, 120, 90, 0.4) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(160, 120, 90, 0.4) 75%);
    background-size: auto, 8px 8px;
    background-position: center, 0 0, 0 4px, 4px -4px, -4px 0px;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(179, 84, 54, 0.4);
    color: #8fb3b3;
}

/* Для мобильных уменьшаем интенсивность текстуры */
@media (max-width: 768px) {
    .cta-button {
        border-radius: 10px; /* Чуть меньше скругление на мобильных */
        background-size: 12px 12px; /* Крупнее узор для лучшей читаемости */
        background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
    }
}

@media (max-width: 480px) {
    .cta-button {
        border-radius: 8px;
        background-size: 14px 14px; /* Еще крупнее на маленьких экранах */
        background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
    }
}

.script-button-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.script-note {
    font-size: 1.1rem;
    color: #8fb3b3;
    max-width: 558px;
    margin-bottom: 10px;
    font-style: normal;
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    padding: 15px;
    background: rgba(64, 44, 34, 0.6);
    border-radius: 4px;
    border: 1px solid #8fb3b3;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #d4b483;
    padding: 8px 8px;
    text-align: center;
    border-top: 3px solid #b35436;
}

.contacts {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.contacts.active {
    display: block;
}

.contacts h3 {
    font-family: 'EB Garamond', serif;
    color: #2a1f1a;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.contacts p {
    color: #5a463c;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2a6b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', serif;
}

.contact-link:hover {
    color: #1e4e4e;
    transform: translateY(-2px);
}

.contact-icon {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 60px 15px 180px;
    }
    
    .title {
        font-size: 2.8rem;
    }
    
    .logline {
        font-size: 1.1rem;
    }
    
    .genre {
        font-size: 1rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .cta-button {
        width: 90vw;
        max-width: 90vw;
        font-size: 1.1rem;
        padding: 16px 25px;
    }
    
    .script-note {
        font-size: 1rem;
        max-width: 90vw;
        padding: 12px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .synopsis,
    .themes {
        padding: 20px 15px;
    }
    
    .themes h2 {
        font-size: 1.6rem;
    }
    
    .themes li {
        font-size: 1rem;
    }
    
    .themes li strong {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 14px 20px;
    }
    
    .script-note {
        font-size: 0.95rem;
        padding: 10px;
    }
    
    .synopsis p {
        font-size: 1rem;
    }
    
    .themes li {
        font-size: 0.95rem;
    }
}

/* Additional Polish */
.synopsis em {
    color: #8fb3b3;
    font-style: normal;
    font-weight: 500;
}

.script-button-wrapper .cta-button {
    margin-top: 10px;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.cta-button:focus,
.lang-btn:focus,
.contact-link:focus {
    outline: 2px solid #8fb3b3;
    outline-offset: 2px;
}
