/*
Theme Name: Игрушка с историей
Theme URI: https://igrushka1.ru
Author: Антон
Description: Тема для музея-магазина
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

:root {
    --bg-dark: #080808;
    --text-light: #e0e0e0;
    --text-dim: #999;
    --accent-gold: #c9a96e;
    --accent-red: #b4453c;
    --font-main: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 1.8rem;
    line-height: 1.5;
    overflow-x: hidden;
    transition: background 1.5s ease;
}
body.scrolled { background: #1a120a; }

.parallax-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0;
    background-image: url('https://игрушка-с-историей.рф/images/panorama.jpg');
    background-size: auto 100%; background-repeat: repeat-x;
    background-position: 100% center; will-change: background-position;
    animation: bgFadeIn 2s ease-out 0.5s forwards;
}
@keyframes bgFadeIn {
    0% { opacity: 0; }
    100% { opacity: 0.25; }
}

.hero { position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; background: #000; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%); z-index: 1; }

.logo {
    position: fixed;
    z-index: 100;
    width: 120px;
    height: 120px;
    background: transparent;
    animation: logoEntrance 3s linear forwards, logoGlow 6s ease-in-out 3s infinite;
}
@keyframes logoEntrance {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(2.5);
    }
    100% {
        top: 1rem;
        left: 0.5rem;
        transform: translate(0, 0) scale(1);
    }
}
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(200,160,100,0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 30px rgba(255,200,100,0.8)); transform: scale(1.22); }
}
.logo img { width: 100%; height: 100%; object-fit: contain; }

.contacts-strip { position: absolute; bottom: 6rem; left: 2rem; z-index: 10; display: flex; flex-direction: column; gap: 0.8rem; }
.contacts-strip a { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-size: 1.3rem; letter-spacing: 0.05em; opacity: 0.75; transition: opacity 0.3s; }
.contacts-strip a:hover { opacity: 1; }
.contacts-strip a svg { width: 22px; height: 22px; }

.sound-toggle-wrapper { position: fixed; bottom: 25%; right: 2rem; z-index: 150; display: flex; align-items: center; gap: 0.6rem; }
.sound-hint { color: #fff; font-size: 1rem; opacity: 0.7; letter-spacing: 0.05em; white-space: nowrap; }
.sound-toggle { position: relative; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; width: 56px; height: 56px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; outline: none; animation: breathe 3s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(201,169,110,0.5); }
@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201,169,110,0.5); } 50% { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(201,169,110,0.25); } }
.sound-toggle:hover { background: rgba(0,0,0,0.85); border-color: rgba(255,255,255,0.6); animation: none; }
.sound-icon { width: 28px; height: 28px; }

.section { padding: 6rem 2rem; max-width: 900px; margin: 0 auto; opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.section.visible { opacity: 1; transform: translateY(0); }
.section-dark { background: transparent; max-width: 100%; padding: 6rem 2rem; }
.section-inner { max-width: 900px; margin: 0 auto; opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.section-inner.visible { opacity: 1; transform: translateY(0); }
.section h2, .section-dark h2 { font-size: 3rem; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 1.5rem; color: #fff; text-align: center; text-shadow: 0 0 10px rgba(0,0,0,0.9); }
.section p { font-size: 1.6rem; color: var(--text-dim); text-align: center; max-width: 700px; margin: 0 auto 2rem; text-shadow: 0 0 8px rgba(0,0,0,0.8); }

.about-numbers { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin: 2rem 0; }
.about-number { text-align: center; }
.about-number .number { font-size: 3.5rem; color: var(--accent-gold); }
.about-number .label { font-size: 1.1rem; color: var(--text-dim); }
.about-geo { text-align: center; font-size: 1.2rem; color: var(--text-dim); margin-bottom: 2rem; }
.about-image-placeholder { width: 100%; height: 300px; background: #1a1a1a; border: 1px dashed #333; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #555; margin-top: 2rem; overflow: hidden; }
.about-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.video-block { width: 100%; max-width: 700px; margin: 2rem auto; border-radius: 8px; overflow: hidden; }
.video-block video { width: 100%; display: block; object-fit: cover; }

.uv-compare { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.uv-card { flex: 1; min-width: 250px; max-width: 400px; text-align: center; }
.uv-placeholder { width: 100%; height: 250px; background: #1a1a1a; border: 1px dashed #333; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #555; margin-bottom: 0.5rem; overflow: hidden; }
.uv-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.uv-label { font-size: 0.9rem; color: var(--text-dim); }

.map-block { width: 100%; max-width: 700px; margin: 2rem auto; text-align: center; }
.map-block img { width: 100%; border-radius: 8px; object-fit: cover; }
.map-caption { font-size: 1rem; color: var(--text-dim); margin-top: 0.8rem; font-style: italic; }

.album-block { width: 100%; max-width: 800px; margin: 2rem auto; text-align: center; }
.album-intro { font-size: 1.5rem; color: var(--text-dim); margin-bottom: 2rem; font-style: italic; text-shadow: 0 0 8px rgba(0,0,0,0.8); }
.album-player { background: transparent; border: 1px solid #222; border-radius: 12px; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; justify-content: center; }
.album-tracklist { text-align: center; }
.album-cover { width: 180px; height: 180px; background: #1a1a1a; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #555; flex-shrink: 0; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.album-tracklist h3 { font-size: 1.8rem; color: #fff; margin-bottom: 0.5rem; text-shadow: 0 0 10px rgba(0,0,0,0.9); }
.album-subtitle { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 1.5rem; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.track { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid #1a1a1a; cursor: pointer; }
.track:hover { background: rgba(255,255,255,0.03); }
.track.active { color: var(--accent-gold); }
.track-num { width: 28px; color: var(--text-dim); font-size: 0.9rem; text-align: right; flex-shrink: 0; }
.track-info { flex: 1; }
.track-title { font-size: 1.2rem; color: #fff; text-shadow: 0 0 8px rgba(0,0,0,0.9); }
.track.active .track-title { color: var(--accent-gold); }
.track-style { font-size: 0.85rem; color: var(--text-dim); }
.album-controls { width: 100%; display: flex; align-items: center; gap: 1.5rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-play { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--accent-gold); background: transparent; color: var(--accent-gold); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-play:hover { background: rgba(201,169,110,0.1); }
.btn-play svg { width: 22px; height: 22px; fill: currentColor; }
.now-playing { font-size: 1.1rem; color: var(--text-dim); text-align: center; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.volume-control { display: flex; align-items: center; gap: 0.5rem; }
.volume-control input[type="range"] { -webkit-appearance: none; width: 80px; height: 3px; background: #333; border-radius: 2px; cursor: pointer; }
.volume-control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-gold); cursor: pointer; }

.welcome-video-preview { position: relative; width: 100%; max-width: 700px; margin: 2rem auto; cursor: pointer; border-radius: 8px; overflow: hidden; }
.welcome-video-preview:hover { transform: scale(1.02); }
.welcome-video-preview img { width: 100%; display: block; }
.play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); }
.play-icon svg { width: 80px; height: 80px; fill: #fff; opacity: 0.85; filter: drop-shadow(0 0 20px rgba(0,0,0,0.5)); }
.welcome-video-preview:hover .play-icon svg { opacity: 1; transform: scale(1.1); }

.memory-cards { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.memory-card { flex: 1; min-width: 250px; max-width: 350px; background: rgba(10,10,10,0.7); backdrop-filter: blur(4px); border-radius: 8px; overflow: hidden; }
.memory-card:hover { box-shadow: 0 0 30px rgba(201,169,110,0.1); }
.card-img { width: 100%; height: 280px; background: #111; display: flex; align-items: center; justify-content: center; color: #555; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 1.5rem; text-align: center; }
.card-name { font-size: 1.5rem; color: #fff; margin-bottom: 0.3rem; text-shadow: 0 0 8px rgba(0,0,0,0.9); }
.card-year { font-size: 1rem; color: var(--accent-gold); margin-bottom: 0.8rem; }
.card-story { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 1rem; font-style: italic; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.card-btn { display: inline-block; padding: 0.6rem 1.5rem; border: 1px solid var(--text-dim); color: var(--text-dim); text-decoration: none; font-size: 1rem; letter-spacing: 0.05em; border-radius: 4px; }
.card-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.live-stream-block { width: 100%; max-width: 800px; margin: 2rem auto; background: rgba(10,10,10,0.7); backdrop-filter: blur(4px); border: 1px solid #222; border-radius: 12px; text-align: center; padding: 3rem 2rem; }
.live-status { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.live-dot { width: 12px; height: 12px; background: #666; border-radius: 50%; }
.live-label { font-size: 1.1rem; color: var(--text-dim); }
.live-message { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; text-shadow: 0 0 8px rgba(0,0,0,0.9); }
.live-schedule { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 2rem; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.btn-live { display: inline-block; padding: 0.9rem 2rem; background: transparent; border: 1px solid var(--accent-red); color: var(--accent-red); font-family: var(--font-main); font-size: 1.3rem; letter-spacing: 0.08em; text-decoration: none; border-radius: 4px; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.btn-live:hover { background: rgba(180,69,60,0.1); box-shadow: 0 0 20px rgba(180,69,60,0.15); }

.cta-block { text-align: center; padding: 2rem 0; }
.cta-block h2 { font-size: 3rem; margin-bottom: 1rem; text-shadow: 0 0 10px rgba(0,0,0,0.9); }
.address-block { font-size: 1.3rem; color: var(--text-dim); margin-top: 1.5rem; line-height: 1.8; text-shadow: 0 0 8px rgba(0,0,0,0.8); }
.address-block a { color: var(--accent-gold); text-decoration: none; }

.btn { display: inline-block; padding: 1rem 2.5rem; background: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); font-family: var(--font-main); font-size: 1.3rem; letter-spacing: 0.08em; text-decoration: none; border-radius: 4px; cursor: pointer; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.btn:hover { background: rgba(201,169,110,0.1); box-shadow: 0 0 20px rgba(201,169,110,0.15); }
.btn-center { display: flex; justify-content: center; margin-top: 1rem; gap: 1rem; flex-wrap: wrap; }
.btn-stand { display: inline-block; margin-top: 2rem; padding: 1.2rem 3rem; background: rgba(10,10,10,0.7); backdrop-filter: blur(4px); border: 2px solid var(--accent-gold); color: var(--accent-gold); font-family: var(--font-main); font-size: 1.6rem; letter-spacing: 0.08em; text-decoration: none; border-radius: 6px; cursor: pointer; box-shadow: 0 0 15px rgba(201,169,110,0.3); animation: standBreathe 3s ease-in-out infinite; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
@keyframes standBreathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(201,169,110,0.4); } 50% { transform: scale(1.12); box-shadow: 0 0 35px rgba(201,169,110,0.7); } }
.btn-stand:hover { background: rgba(201,169,110,0.2); box-shadow: 0 0 35px rgba(201,169,110,0.8); transform: scale(1.12); animation: none; }

/* Кнопка "Сделать выбор" с красным свечением */
.btn-shop {
    border-color: var(--accent-red) !important;
    color: var(--accent-red) !important;
    animation: standBreatheRed 3s ease-in-out infinite !important;
}
@keyframes standBreatheRed {
    0%, 100% { box-shadow: 0 0 15px rgba(180,69,60,0.4); }
    50% { box-shadow: 0 0 35px rgba(180,69,60,0.7); }
}
.btn-shop:hover {
    background: rgba(180,69,60,0.2) !important;
    box-shadow: 0 0 35px rgba(180,69,60,0.8) !important;
    transform: scale(1.12);
    animation: none;
}

/* Аккордеон для блока "7 причин" */
.accordion {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}
.accordion.open { border-bottom: 2px solid var(--accent-gold); }
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.8rem;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--accent-gold);
    background: rgba(10,10,10,0.7);
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}
.accordion-header:hover { background: rgba(201,169,110,0.1); }
.accordion-arrow { transition: transform 0.3s; font-size: 1.2rem; }
.accordion.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.8rem;
    line-height: 1.2;
}
.accordion-body h3 { font-size: 1.7rem; margin-bottom: 0.2rem; }
.accordion-body p { font-size: 1.4rem; margin-bottom: 0.8rem; text-align: left; }
.accordion-body div { margin-bottom: 0.8rem; }
.accordion.open .accordion-body {
    max-height: 5000px;
    padding: 1rem 1.8rem;
    border-top: 1px solid #333;
}

/* Стили для магазина WooCommerce */
body.woocommerce-shop,
body.woocommerce-page,
.woocommerce,
.woocommerce-shop,
.woocommerce-page { background-color: #080808 !important; }
.woocommerce ul.products li.product a,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce .woocommerce-loop-product__title,
.woocommerce a,
.woocommerce a:visited,
.woocommerce a:hover,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { color: #c9a96e !important; text-decoration: none !important; }
.woocommerce ul.products li.product,
.woocommerce div.product,
.woocommerce-page { background: transparent !important; }
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
    background: transparent !important;
    border: 1px solid #c9a96e !important;
    color: #c9a96e !important;
    font-family: var(--font-main) !important;
}
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover { background: rgba(201,169,110,0.1) !important; }
.woocommerce .page-title,
.woocommerce-products-header__title,
.woocommerce-shop .site-title,
.woocommerce-shop .site-title a,
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-shop header,
.woocommerce-shop .entry-header,
.woocommerce-shop h1,
.woocommerce-shop .woocommerce-products-header,
.site-info,
.site-footer,
.powered-by,
.footer-site-info,
.site-footer p,
.wp-block-template-part footer p,
footer p { display: none !important; }

@media (max-width: 768px) {
    body { font-size: 2.4rem; }
    .logo {
        animation: logoEntrance 3s linear forwards, logoGlow 6s ease-in-out 3s infinite;
        width: 100px; height: 100px;
        top: 0.5rem; left: 0.5rem;
    }
    .contacts-strip { bottom: 4rem; left: 1rem; gap: 0.5rem; }
    .contacts-strip a { font-size: 1rem; }
    .section { padding: 4rem 1.2rem; }
    .section-dark { padding: 4rem 1.2rem; }
    .section p { font-size: 2rem; }
    .section h2, .section-dark h2 { font-size: 3rem; }
    .about-numbers { gap: 1.5rem; }
    .about-number .number { font-size: 2.5rem; }
    .memory-cards { flex-direction: column; align-items: center; }
    .cta-block h2 { font-size: 2.2rem; }
    .sound-toggle-wrapper { bottom: 1.5rem; right: 1.5rem; }
    .sound-toggle { width: 48px; height: 48px; }
    .album-player { flex-direction: column; text-align: center; }
    .album-tracklist { text-align: center; }
    .track { justify-content: center; }
}