/* ===== CSS VARIABLES - GREEN THEME ===== */
:root {
    /* Основные зелёные тона */
    --primary-green: #2D5A4A;
    --secondary-green: #3A6B5A;
    --accent-green: #5CB89B;
    --light-green: #7FB8A8;
    --pale-green: #E8F5F0;
    --dark-green: #1A3D33;
    
    /* Текст */
    --text-primary: #2C3E3A;
    --text-secondary: #4A5B55;
    --text-light: #FFFFFF;
    --text-muted: #7A8B85;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-green) 0%, var(--light-green) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    
    /* Тени и границы */
    --shadow-sm: 0 2px 8px rgba(45, 90, 74, 0.1);
    --shadow-md: 0 4px 20px rgba(45, 90, 74, 0.15);
    --shadow-lg: 0 8px 40px rgba(45, 90, 74, 0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Анимации */
    --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: #FAFCFB;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.4rem;
    color: var(--primary-green);
}

.highlight {
    color: var(--accent-green);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--pale-green);
    z-index: -1;
    border-radius: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--secondary-green);
}

.btn-secondary:hover {
    background: var(--secondary-green);
    color: var(--text-light);
}

.btn-outline {
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.btn-outline:hover {
    background: var(--accent-green);
    color: var(--text-light);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text em {
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.9;
    font-style: normal;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.header-phone:hover {
    color: var(--accent-green);
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 80px;
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(127, 184, 168, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content .subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--light-green);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-social {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-light);
    transition: var(--transition);
}

.social-btn.whatsapp { background: #25D366; }
.social-btn.telegram { background: #0088cc; }
.social-btn.vk { background: #0077FF; }

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-wrapper:hover .profile-photo {
    transform: scale(1.03);
}

.image-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-md);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--pale-green);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.about-card h3 {
    margin-bottom: 0.8rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--gradient-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    color: var(--text-light);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background: linear-gradient(180deg, #FAFCFB 0%, var(--pale-green) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pale-green);
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) saturate(1.3) brightness(1.05);
    transform: scale(1.35);
    z-index: 0;
    opacity: 0.85;
    transition: var(--transition);
}

.product-card:hover .product-image::before {
    transform: scale(1.45);
    filter: blur(30px) saturate(1.4) brightness(1.0);
    opacity: 0.95;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.product-image img {
    position: relative;
    z-index: 2;
    max-height: 180px;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.2));
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-green);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: var(--text-light);
}

.product-info h3 {
    margin-bottom: 0.8rem;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-features {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.product-features i {
    color: var(--accent-green);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ===== VIDEOS SECTION ===== */
.videos {
    background: var(--pale-green);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    display: block;
    background: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-green);
    box-shadow: 0 8px 30px rgba(92, 184, 155, 0.5);
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--dark-green);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 61, 51, 0.3);
    opacity: 0.7;
    transition: var(--transition);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.play-button i {
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-left: 4px;
}

.video-card-info {
    padding: 1.5rem;
}

.video-card-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.video-card:hover .video-card-info h3 {
    color: var(--accent-green);
}

.video-card-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== OPPORTUNITY SECTION ===== */
.opportunity {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.opportunity-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.opportunity-content h2 {
    margin-bottom: 1.5rem;
}

.opportunity-list {
    margin: 2rem 0;
}

.opportunity-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.opportunity-list i {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.opportunity-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--pale-green);
}

.contact-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--primary-green);
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
}

.contact-item a:hover {
    color: var(--accent-green);
}

.contact-cta {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-green);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo span {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.footer-logo em {
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.9;
    font-style: normal;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-green);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom .disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 61, 51, 0.95);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-green);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-container,
    .opportunity-wrapper,
    .contact-info-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--gradient-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .burger-btn {
        display: block;
    }
    
    .header-phone {
        display: none;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease forwards;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }

/* ===== CLICKABLE PRODUCT CARDS ===== */
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card:hover .product-info h3 {
    color: var(--accent-green);
}

/* Добавляем визуальный индикатор что карточка кликабельна */
.product-card::after {
    content: '\f08e'; /* Иконка внешней ссылки из Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(92, 184, 155, 0.9);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Цвет фона для MAX (подберите под ваш бренд) */
.social-btn.max {
    background-color: #000000;
}

/* Или используйте цвет как у VK */
.social-btn.vk {
    background-color: #0088cc;
}

.social-btn.whatsapp {
    background-color: #25D366;
}

.social-btn.telegram {
    background-color: #0088cc;
}