* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    height: 100%;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Навигация === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    transition: color 0.4s ease;
}

header.scrolled .logo-text {
    color: #0066cc;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.9);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

header.scrolled nav a {
    color: #333;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #0066cc;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

header.scrolled .menu-toggle {
    color: #333;
}

/* === Герой секция === */
/* .hero {
    background: url("../images/bg.jpg") center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;*/
}
.hero {
     position: relative;
     min-height: 100vh;
     display: flex;
     align-items: center;
     padding: 200px 0 60px;
     position: relative;
    /* чтобы видео не выходило за границы */
 }

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover; /* аналог background-size: cover */
    z-index: -1; /* убирает видео под контент */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 191, 197, 0);
}


.hero h1 {
    font-size: 3.5rem;
font-weight: 600;
    line-height: 3rem;
    margin-bottom: 20px;
    color: #000;
    text-shadow: 1px 1px 1px white;
}

.hero h2 {
    font-size: 2.7rem;
    font-weight: 400;    
    line-height: 2.5rem;
    margin-bottom: 20px;
    color: #000;
    text-shadow: 1px 1px 1px white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #289795;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

/* === Блок с эффектом шторок === */
.reveal {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.reveal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/hero-bg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* === БЕЛЫЕ шторки — фиксированы === */
.curtain {
    position: fixed !important;
    background: white;
    z-index: 10 !important;
    transition: none !important;
    will-change: transform;
}

#curtain-left  { top: 0; bottom: 0; left: 0; width: 50%; transform-origin: left; }
#curtain-right { top: 0; bottom: 0; right: 0; width: 50%; transform-origin: right; }
#curtain-top   { left: 0; right: 0; top: 0; height: 50%; transform-origin: top; }
#curtain-bottom{ left: 0; right: 0; bottom: 0; height: 50%; transform-origin: bottom; }

/* === Контент на .reveal === */
.reveal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.reveal-content h2 {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.reveal-content p {
    font-size: 1.8rem;
    margin-top: 0.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.reveal-content.visible {
    opacity: 1;
}

/* === Секции === */
section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #289795;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
}

/* === О компании === */
.about {
    background: transparent;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text p {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 18px;
}

.about-image {
    max-width: 450px;
    flex: 1;
        border-radius: 50%;    
}

.about-image img {
    width: 450px;
    height: auto;
    display: block;
        border-radius: 50%;
    transition: transform 1s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}
@media (max-width: 450px) {
    .about-image img {
        width: 380px !important;
    }
}
/* === Продукты === */
.products {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.products .btn{
    margin: 0 auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
}

section.visible .product-card {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top:20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 12px;
    color: #1a365d;
}

.product-content p {
    color: #4a5568;
    margin-bottom: 20px;
}

/* === Технологии === */
.technology {
    background-color: #fff;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
#brands .tech-features img {
    width: 267px;
}
.tech-feature {
    padding: 30px;
}

.tech-feature i {
    font-size: 48px;
    color: #0066cc;
    margin-bottom: 20px;
}

.tech-feature h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #4E4E4E;
}

/* === Контакты === */
.contact {
    background: url("../images/gradient.jpg") center/cover no-repeat;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* === Футер === */
footer {
    background: #093d40;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    text-align: center;
}

.footer-column {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.footer-column.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2d3748;
    color: #cbd5e0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.4s;
}

.copyright.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (min-width: 769px) {
    .hero-content {
        margin: 250px auto;
        max-width: 600px;
        position: relative;
        z-index: 2;
    }
}
/* === Адаптивность === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
    .hero-content {
        margin: 150px auto;
        max-width: 320px;
        position: relative;
        z-index: 2;
    }
    .about-content {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    .line-text {
        max-width: 320px;
    }
    .footer-column {
        text-align:center;
    }
}