/* Product Pages Global Styles - Brand Update */
/* Import brand colors */
@import url('brand-colors.css');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
}

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

/* Navbar - dark theme согласно брендбуку */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 17, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: var(--border-subtle);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: 12px 20px;
}

.nav-brand {
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-brand span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Product Hero Section */
.product-hero {
    padding: 120px 0 80px;
    color: var(--text);
    text-align: center;
    /* Фон устанавливается индивидуально на каждой странице */
}

.product-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.95;
    margin-bottom: 2rem;
}

.product-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Content Sections - темная тема */
.content-section {
    padding: 80px 0;
    background: var(--bg);
}

.content-section:nth-child(even) {
    background: var(--bg-2);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text);
    font-weight: 700;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: var(--border-subtle);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.feature-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    /* Цвет устанавливается индивидуально */
}

.feature-box p {
    color: var(--text-soft);
    line-height: 1.7;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    padding: 0;
    text-align: center;
    border: var(--border-subtle);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(182, 142, 67, 0.3);
    border-color: var(--gold);
}

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

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

/* Curriculum List */
.curriculum-list {
    max-width: 800px;
    margin: 3rem auto;
}

.curriculum-item {
    background: var(--surface);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.curriculum-item h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.curriculum-item p {
    color: var(--text-soft);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    /* Фон устанавливается индивидуально */
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 0;
}

.cta-button {
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    margin-top: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    /* Цвета устанавливаются индивидуально, но по умолчанию CTA из брендбука */
    background: var(--cta);
    color: var(--white);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    background: var(--cta-hover);
}

.cta-button:active {
    background: var(--cta-active);
}

/* Footer - dark theme */
.footer {
    background: var(--bg-2);
    color: var(--text);
    padding: 60px 0 30px;
    border-top: var(--border-subtle);
}

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

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-brand h3 span {
    color: var(--gold);
}

.footer-brand p {
    color: var(--text-soft);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

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

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-soft);
    font-size: 14px;
}

/* Exclusive Badge */
.exclusive-badge {
    display: inline-block;
    background: rgba(182, 142, 67, 0.15);
    color: var(--gold-light);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 68px);
        background: rgba(18, 18, 17, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 32px 20px;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--line);
        box-shadow: -4px 0 20px rgba(10, 10, 10, 0.8);
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        width: 100%;
    }

    .product-stats {
        gap: 2rem;
    }

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

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

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

@media (max-width: 480px) {
    .product-hero {
        padding: 100px 0 60px;
    }

    .content-section {
        padding: 60px 0;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Focus states для доступности (WCAG 2.1) */
*:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Image Modal (Lightbox) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(18, 18, 17, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--line);
}

.image-modal-close:hover {
    background: var(--gold);
    color: var(--bg);
    transform: rotate(90deg);
}

.image-modal-caption {
    text-align: center;
    color: var(--text-soft);
    margin-top: 16px;
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 16px;
        right: 16px;
    }
}
