@font-face {
    font-family: "Etna";
    src: url("/fonts/etna-free-font.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --main: #ffb3a7;
    --black: #000;
    --yellow: #fcd251;
    --purple: #732f90;
    --fuchsia: #ef5da8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", "Arial", sans-serif;
    background: white;
    color: white;
    overflow-x: hidden;
    max-width: 1920px;
    margin: 0 auto;
}

a {
    color: var(--purple);
}

.highlighted {
    color: var(--fuchsia);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.section-header {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sub-header {
    text-align: center;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: 0.02em;
    margin-bottom: 50px;
}

.format__descr {
    text-align: center;
    font-size: 25px;
    line-height: 130%;
    letter-spacing: 0.02em;
    color: #000;
    font-weight: 300;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 179, 167, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    height: 80px;
    max-width: 1920px;
    box-shadow: rgb(209, 129, 129) 0px 1px 5px;
}

ul {
    margin-left: 30px;
}

h2 {
    word-wrap: break-word;
}

.answers__name {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--fuchsia);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo a:hover {
    color: #ffd700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--main) 0%, #e46f5d 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    padding-left: 40px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 1080px;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    position: relative;
    background-image: url(/images/bg_main.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-container {
    margin-top: 2rem;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

.hero h2 {
    margin-bottom: 5px;
    margin-top: 5px;
    color: var(--main);
    font-size: 0.975rem;
    text-shadow: 3px 4px 5px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, var(--fuchsia), #c972ee);
    color: white;
    padding: 18px 40px;
    font-size: 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(235, 108, 214, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(235, 108, 214, 0.4);
}

.cta-button-afisha {
    text-transform: none;
    padding: 15px 23px;
    display: inline;
}

.whole-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.whole-family-card {
    margin: auto;
    text-align: left;
}

.custom-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 16px;
    line-height: 131%;
    letter-spacing: 0.02em;
}

.custom-list li::before {
    content: "";
    position: absolute;
    background-image: url(/images/education-vector.svg);
    width: 24px;
    height: 25px;
    left: 0;
}

.custom-list-yellow li::before {
    background-image: url(/images/education-vector-yellow.svg);
}

.whole-family-oval {
    background-image: url(/images/education-oval.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    width: 281px;
    height: 146px;
    padding-top: 52px;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.02em;
    text-align: center;
    color: white;
}

/* Floating elements */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 30px;
    height: 30px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 50px;
    height: 50px;
    top: 40%;
    right: 40%;
    animation-delay: 1s;
}

/* Show Details Section */
.common-section {
    padding: 80px 0;
    color: #000;
    position: relative;
}

.common-section p,
.common-section li {
    margin-bottom: 1rem;
}

.plot-section .container::before {
    content: url(/images/seahorse.png);
    position: absolute;
    top: -99px;
    left: 7%;
}

.plot-section .container::after {
    content: url(/images/bubbles.png);
    position: absolute;
    right: 15%;
    bottom: 4px;
}

.show-more {
    display: none;
    margin: 20px auto;
    justify-content: center;
}

#showMoreBtn {
    text-decoration: underline;
    color: #412ee7;
}

.list-reset {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fairy-tale__cards {
    display: grid;
    grid-template-columns: repeat(4, 277px);
    position: relative;
    justify-content: center;
    gap: 20px;
}

.fairy-tale__item {
    text-align: center;
    transition: transform 0.3s ease;
}

.fairy-tale__item:hover {
    transform: translateY(-10px);
}

.fairy-tale__number {
    margin-bottom: 10px;
    padding-top: 25px;
    padding-bottom: 25px;
    text-align: center;
    background-image: url(/images/seashell.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 85px 85px;
    font-size: 40px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: white;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fairy-tale__subtitle {
    margin-bottom: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 25px;
    letter-spacing: 0.02em;
    color: var(--black);
}

.fairy-tale__descr {
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0.01em;
    color: var(--black);
    font-weight: 300;
}

.about-theater p,
ul {
    margin-bottom: 10px;
}

/* Plot section */
.plot-section {
    padding-top: 100px;
    background-color: var(--main);
    margin-bottom: 300px;
    margin-top: 200px;
}

.plot-section::before {
    content: "";
    position: absolute;
    background-image: url(/images/wave-top.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 300px;
    top: -260px;
}

.plot-section::after {
    content: "";
    position: absolute;
    background-image: url(/images/wave-bottom.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    width: 100%;
    background-size: cover;
    height: 300px;
    bottom: -298px;
}

.author-words {
    margin-top: 20%;
}

/* Ticket Section */
.tickets {
    padding: 80px 0;
    color: #333;
}

.tickets-header {
    text-align: center;
    font-size: 2.2rem;
    margin-top: 1rem;
    color: var(--purple);
}

.ticket-grid {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.ticket-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 580px;
}

.ticket-card:hover {
    transform: translateY(-5px);
}

.ticket-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.ticket-card ul {
    margin-left: 0;
}

.ticket-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--fuchsia);
    margin-bottom: 15px;
}

.ticket-type {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.ticket-type-address {
    text-decoration: none;
}

.ticket-features {
    list-style: none;
    margin-bottom: 30px;
}

.ticket-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.buy-button {
    background: linear-gradient(45deg, var(--fuchsia), #c972ee);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: auto;
    text-decoration: none;
    display: inline-block;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 88, 219, 0.4);
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ffd700;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* First acquaintance Section */
.first-acquaintance-section {
    background-color: var(--main);
    flex-direction: column;
    align-items: center;
    display: flex;
    position: relative;
    padding-top: 50px;
    background-size: cover;
    margin-top: 200px;
}

.first-acquaintance-section::before {
    content: "";
    position: absolute;
    background-image: url(/images/wave-top.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 300px;
    top: -260px;
    transform: scale(-1, 1);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgb(102, 126, 234, 1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(160, 134, 130, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    color: #fff;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer.active {
    max-height: 100%;
    padding: 25px;
}

.faq-answer p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--yellow);
}

.footer-section p,
.footer-section a {
    color: #fff;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #ffd700;
}

.shorts-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: auto;
}

.shorts-container iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.more-seashell-active {
    display: grid !important;
}

/* Language switch */
.lang-switch {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border: 2px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.lang-switch:hover {
    background: white;
    color: var(--main);
}

/* Responsive */
@media (max-width: 1600px) {
    .hero {
        height: 770px;
    }
}

@media (max-width: 1200px) {
    .hero {
        height: 730px;
    }
    .fairy-tale__cards {
        grid-template-columns: repeat(2, 400px);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .hero {
        height: 600px;
    }
    .cta-button-afisha {
        text-transform: none;
        padding: 15px 11px;
    }
    .logo {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .hero {
        height: 550px;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .ticket-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .show-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    .cta-button {
        padding: 15px 30px;
        font-size: 1.5rem;
    }
    .buy-button {
        font-size: 1.5rem;
    }
    .whole-family-grid {
        grid-template-columns: 1fr;
    }
    .whole-family-oval {
        margin-bottom: 15px;
    }
    .fairy-tale__cards {
        grid-template-columns: repeat(2, 277px);
        gap: 30px;
    }
    .show-more {
        display: flex;
    }
    .more-seashell-list {
        display: none;
    }
    .answers__name {
        font-size: 1em;
    }
    .author-words {
        margin-top: 0;
    }
    .lang-switch {
        display: none;
    }
}

@media (max-width: 768px) {
    .common-section,
    .gallery {
        padding: 40px 0;
    }
    .show-details {
        padding-bottom: 4rem;
    }
    .hero {
        height: 80vh;
    }
    .plot-section,
    .first-acquaintance-section {
        padding-top: 0px;
        margin-top: 90px;
        margin-bottom: 150px;
        padding-bottom: 20px;
    }
    .plot-section::before,
    .first-acquaintance-section::before {
        height: 150px;
        top: -149px;
    }
    .plot-section::after {
        height: 275px;
        bottom: -270px;
    }
    .fairy-tale__cards {
        grid-template-columns: repeat(1, 410px);
        gap: 5px;
    }
    .hero h2 {
        margin-bottom: 0px;
        margin-top: 0px;
    }
    .hero-container {
        margin-top: 0.5rem;
    }
    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 5px;
    }
    .hero h2 {
        font-size: 0.85rem;
    }
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    .ticket-price {
        font-size: 2rem;
    }
}

@media (max-width: 560px) {
    .section-header {
        font-size: 1.5rem;
    }
    .format__descr {
        font-size: 16px;
    }
    .sub-header {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .tickets-header {
        font-size: 1.4rem;
    }
    .fairy-tale__subtitle {
        font-size: 20px;
    }
    .bubble:nth-child(4) {
        top: 33%;
        right: 39%;
    }
    .fairy-tale__cards {
        grid-template-columns: repeat(1, 300px);
    }
}

@media (max-width: 480px) {
    .hero-container {
        margin-top: 0.5rem;
    }
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }
    .container {
        padding: 0 15px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .ticket-price {
        font-size: 1.5rem;
    }
    .ticket-price-second-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .fairy-tale__cards {
        grid-template-columns: repeat(1, 277px);
    }
}
