/* ===========================
   Global Styles & Variables
   =========================== */

:root {
    --header-height: 110px; /* auto-updated by JS */
    --primary-color: #0a1e3d;
    --secondary-color: #2d5a3f;
    --accent-color: #4caf50;
    --accent-red: #d32f2f;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --bg-dark: #0d1b2a;
    --bg-darker: #050c16;
    --gradient-dark: linear-gradient(135deg, #0a1e3d 0%, #0d1b2a 100%);
    --gradient-accent: linear-gradient(135deg, #2d5a3f 0%, #4caf50 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===========================
   Typography
   =========================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

/* ===========================
   Header & Navigation
   =========================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 30, 61, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

.logo img {
    height: 60px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay{display:none;}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    width: 100%;
    padding-top: 90px; /* keeps text below fixed header */
}


.hero-box{
    display: inline-block;
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 34px;
    border-radius: 18px;
    background: rgba(10, 30, 61, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* ===========================
   Video Section
   =========================== */

.video-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* ===========================
   About Section
   =========================== */

.about-section {
    padding: 5rem 0;
    background: var(--gradient-dark);
    color: var(--text-light);
}

.about-section .section-title {
    color: var(--text-light);
}

.about-section .section-title::after {
    background: var(--accent-color);
}

.about-grid {
    display: block;
    margin-top: 2rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   Toys Section
   =========================== */

.toys-section {
    padding: 5rem 0;
    background: url('../images/bg-i-01.jpg') center center / cover no-repeat;
    position: relative;
}

.toys-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* тёмная подложка */
}

.toys-section .section-title,
.toys-section .section-subtitle {
    color: #ffffff;
}

.toys-section .container {
    position: relative;
    z-index: 2;
}

.toys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.toy-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.toy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.toy-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
}

.toy-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: var(--transition);
}

.toy-card:hover .toy-image img {
    transform: scale(1.1);
}

.toy-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.toy-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.toy-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.toy-content .btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* ===========================
   Benefits Section
   =========================== */

.benefits-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===========================
   Where to Buy Section
   =========================== */

.where-to-buy-section {
    padding: 5rem 0;
    background: #ffffff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.partner-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.partner-card img {
    max-width: 90%;
    max-height: 120%;
    object-fit: contain;
}

.partner-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 5px solid #ffc107;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: var(--shadow);
}

.warning-box i {
    font-size: 2.5rem;
    color: #ff9800;
    flex-shrink: 0;
}

.warning-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.warning-content p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-list i {
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-brands {
    font-weight: 600;
    color: var(--accent-color);
}

/* ===========================
   Scroll to Top Button
   =========================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(10, 30, 61, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toys-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .partner-card {
        height: 120px;
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .warning-box {
        flex-direction: column;
        text-align: center;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}



/* ===== FIX: buttons text invisible (white on white) ===== */
.btn{
  /* ensure readable text if some theme overrides link color */
  color: inherit;
}

.btn-primary{
  color: var(--text-light) !important;
}

.btn-secondary{
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.btn-secondary:hover{
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

/* In cards, make sure button never blends with white background */
.toy-content .btn.btn-secondary{
  box-shadow: var(--shadow) !important;
}



/* ===== HERO: position text plaque lower & readable, no banner darkening ===== */
@media (min-width: 1024px) {
  .hero-content{
    transform: translateY(60px); /* desktop: a bit lower */
  }
}

@media (max-width: 768px) {
  .hero-content{
    transform: translateY(20px);
    padding-top: 80px;
  }
  .hero-box{
    padding: 18px 18px;
    border-radius: 16px;
    background: rgba(10, 30, 61, 0.58);
  }
}


/* чтобы якоря не прятались под фиксированным header */
section { scroll-margin-top: var(--header-height); }

/* ===== TOYS PARTNERS TITLE ===== */
.toys-partners-title {
    margin-top: 4rem;
    text-align: center;
}

.toys-partners-title h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0a1e3d;
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.9);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
