/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #34c166;
    --primary-dark: #1f9e52;
    --primary-light: #6ddf93;
    --accent-color: #ff6b35;
    --bg-dark: #050b16;
    --surface-dark: #0f172a;
    --surface-light: #17223a;
    --surface-muted: #1f2a40;
    --text-dark: #f8fafc;
    --text-light: #cbd5f5;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(circle at top, rgba(76, 201, 240, 0.08), transparent 45%), var(--bg-dark);
    user-select: none;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(8, 13, 24, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 2000;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span {
    background: var(--white);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Главная секция */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 40%, #0f172a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.2), transparent 40%),
                radial-gradient(circle at 80% 30%, rgba(45, 212, 191, 0.25), transparent 45%),
                radial-gradient(circle at 60% 80%, rgba(74, 222, 128, 0.2), transparent 50%);
    mix-blend-mode: screen;
    animation: heroPulse 12s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    animation: fadeInUp 1s ease 0.4s both;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 45px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(20px); opacity: 0.3; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroPulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.2) translate(-2%, -2%);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.9;
    }
}

@keyframes heroGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* Секции */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* О нас */
.about {
    background: var(--surface-dark);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(15, 23, 42, 0.7);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(18px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Вегетарий */
.vegetarium {
    background: var(--surface-light);
}

.vegetarium-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.vegetarium-image {
    position: relative;
}

.image-placeholder {
    background: var(--surface-dark);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder span {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.vegetarium-text h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.vegetarium-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 500;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
}

.tech-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.tech-list strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tech-list p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Камеры */
.cameras {
    background: var(--surface-dark);
}

.cameras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.camera-card {
    background: var(--surface-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.camera-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.camera-title {
    padding: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
    margin: 0;
}

.camera-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #020617;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #0f172a 100%);
}

.video-placeholder video,
.video-placeholder iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
}

.play-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.camera-description {
    padding: 1rem 1.5rem;
    color: var(--text-light);
    margin: 0;
}

.camera-instructions {
    background: rgba(74, 222, 128, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.camera-instructions code {
    background: rgba(15, 23, 42, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Форма заказа */
.order {
    background: var(--surface-light);
}

.order-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-dark);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    background: var(--primary-color);
    color: #052e16;
    font-size: 1.1rem;
    padding: 1.25rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-success {
    max-width: 800px;
    margin: 2rem auto 0;
    background: var(--surface-dark);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #052e16;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--text-light);
}

/* Футер */
.footer {
    background: var(--surface-muted);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 12, 25, 0.78);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
        border-bottom: none;
        transform: translateY(-100%);
        opacity: 0;
        z-index: 1500;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .vegetarium-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-form {
        padding: 2rem 1.5rem;
    }

    .cameras-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Выделение активной секции в навигации */
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Декоративные ветки роз */
.rose-branch {
    position: fixed;
    top: 0;
    width: 150px;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.rose-branch-left {
    left: -30px;
}

.rose-branch-right {
    right: -30px;
}

.rose-branch svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(214, 51, 132, 0.3));
}

/* Скрываем ветки на мобильных устройствах */
@media (max-width: 1200px) {
    .rose-branch {
        display: none;
    }
}
