/* =========================================
   Variables & Theme
   ========================================= */
:root {
    --bg-color: #1a1a1a;
    --card-bg: rgba(42, 42, 42, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --accent: #FFD000;
    --accent-hover: #FEE32;
    --font-family: 'Jost', sans-serif;
    --border-radius: 16px;
    --transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 80px;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Custom Text Selection */
::selection { background: var(--accent); color: #000; }

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s ease; 
}

a:hover { color: var(--accent); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   Typography
   ========================================= */
h1, h2, h3 { 
    color: var(--text-primary); 
    font-weight: 700; 
    margin-bottom: 1rem; 
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.8rem, 6vw, 4.5rem); 
    line-height: 1.1; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h1 span { color: var(--accent); } я

h2 { 
    font-size: clamp(2rem, 4vw, 3rem); 
    text-align: center; 
    margin-bottom: 3.5rem; 
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.5);
}

p { margin-bottom: 1.2rem; color: var(--text-secondary); }

/* =========================================
   Layout & Components
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.btn:hover {
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 208, 0, 0.4);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    letter-spacing: 2px;
}

.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.lang-switcher { 
    display: flex; 
    gap: 0.5rem; 
    margin-left: 1rem; 
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.lang-btn { 
    background: none; 
    border: none; 
    color: var(--text-secondary); 
    cursor: pointer; 
    padding: 4px; 
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    transition: color 0.3s ease;
}

.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 2rem; cursor: pointer; }

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: calc(var(--header-height) * -1);
}

.hero video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2; opacity: 0.5;
}

.hero::after {
    content: ''; 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, var(--bg-color) 100%);
    z-index: -1;
}

.hero-content { max-width: 900px; z-index: 1; padding-top: var(--header-height); }
.hero-content p { font-size: 1.25rem; margin-bottom: 2.5rem; color: #E0E0E0; max-width: 700px; margin-inline: auto; }

/* =========================================
   About Section
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }

.about-img { 
    width: 100%; 
    border-radius: var(--border-radius); 
    object-fit: cover; 
    aspect-ratio: 4/3; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.about-img:hover { transform: translateY(-10px); }

/* =========================================
   Products Section
   ========================================= */
.products-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2.5rem;
}

.card {
    background: var(--card-bg); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius); 
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 208, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255, 208, 0, 0.1);
}

.card .img-wrapper {
    overflow: hidden; 
    height: 260px;
}

.card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover img {
    transform: scale(1.08);
}

.card-content { padding: 2.5rem 2rem; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }

/* =========================================
   Contact Section
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; }

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 3.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.input-group { position: relative; }

.contact-form input, 
.contact-form textarea {
    width: 100%; 
    padding: 16px 20px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.4); 
    color: var(--text-primary); 
    font-family: inherit;
    font-size: 1.05rem;
    transition: var(--transition);
}

.contact-form input:focus, 
.contact-form textarea:focus { 
    outline: none; 
    border-color: var(--accent); 
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.1);
}

.contact-info { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-info-item h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.contact-info-item p { color: var(--text-primary); font-size: 1.3rem; font-weight: 700; }

.map { 
    width: 100%; 
    height: 100%; 
    min-height: 280px;
    border-radius: var(--border-radius); 
    border: 0; 
    flex-grow: 1;
    filter: grayscale(100%) invert(90%) contrast(80%); 
    transition: var(--transition);
}

.map:hover { filter: grayscale(0%) invert(0%) contrast(100%); }

/* =========================================
   Footer
   ========================================= */
footer { 
    background: #111; 
    padding: 3rem 2rem; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}
footer p { margin: 0; font-size: 0.95rem; color: #555; }

/* =========================================
   Стили для телефона с флагами 
   ========================================= */
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #252525;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: var(--font-family);
    scrollbar-width: thin;
}

/* Цвет при наведении на страну */
.iti__country.iti__highlight {
    background-color: rgba(255, 208, 0, 0.2); 
    color: var(--accent);
}

.iti__dial-code {
    color: #888;
}

.iti__selected-flag {
    background: transparent !important;
    padding: 0 16px;
}

/* =========================================
   Responsive Design
   ========================================= */

.iti { display: block; width: 100%; }
@media (max-width: 992px) {
    .about-grid, .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
    .about-grid div:first-child { order: 2; }
    .about-grid div:last-child { order: 1; }
    .about-img { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
    html { font-size: 100%; }
    body { overflow-x: hidden; width: 100%; }
    .container { padding: 4rem 1rem; }
    :root { --header-height: 70px; }
    header { 
        height: var(--header-height); 
        padding: 0 1rem; 
        background: rgba(20, 20, 20, 0.98); 
    }
    .logo { font-size: 1.5rem; }
    .menu-toggle { display: block; }

    .nav-links {
        display: none; 
        flex-direction: column; 
        position: absolute;
        top: var(--header-height); 
        left: 0; 
        width: 100%; 
        background: rgba(20, 20, 20, 0.98);
        padding: 2rem 1rem; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        text-align: center;
        gap: 1.5rem;
    }
    .nav-links.active { display: flex; }
    .lang-switcher { 
        justify-content: center; 
        margin: 0; 
        padding-top: 1.5rem;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    .hero {
        min-height: 100vh; 
        height: auto;
        padding: 120px 1rem 4rem 1rem; 
        margin-top: 0;
    }
    .hero::after {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), var(--bg-color)); 
    }
    h1 { 
        font-size: clamp(2rem, 8vw, 2.5rem); 
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    .hero-text-block p { 
        font-size: 1rem; 
        margin-bottom: 1rem;
    }
    .hero-text-block p:last-child { margin-bottom: 2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 2rem; }

    .products-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    .card .img-wrapper { height: 200px; }
    .card-content { padding: 1.5rem; }
    .card-content h3 { min-height: auto; margin-bottom: 0.5rem; }

    /* 8. Контакты и Форма */
    .contact-wrapper { gap: 1.5rem; }
    .contact-info-cards {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .contact-form { padding: 1.5rem; gap: 1.2rem; }
    .contact-form input, .contact-form textarea {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .btn { 
        width: 100%; 
        padding: 14px 20px; 
    }
}

@media (max-width: 768px) {

    .container { 
        padding: 4rem 1.5rem; 
    }
    header { 
        padding: 0 1.5rem; 
        background: rgba(20, 20, 20, 0.98); 
    }
    .menu-toggle { 
        display: block; 
    }
    .nav-links {
        display: none; 
        flex-direction: column; 
        position: absolute;
        top: var(--header-height); 
        left: 0; 
        width: 100%; 
        background: rgba(20, 20, 20, 0.98);
        padding: 2rem; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        text-align: center;
        gap: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-links.active { 
        display: flex; 
    }
    .lang-switcher { 
        justify-content: center; 
        margin: 1rem 0 0 0; 
        padding: 1.5rem 0 0 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    h1 { 
        font-size: clamp(2rem, 8vw, 2.5rem); 
        margin-bottom: 1rem;
    }
    .hero-content p { 
        font-size: 1rem; 
    }
    .hero-text-block p:last-child { 
        margin-bottom: 1.5rem; 
    }

    h2 { 
        font-size: 2rem; 
        margin-bottom: 2rem; 
    }
    .products-grid { 
        grid-template-columns: 1fr; 
    }
    .card .img-wrapper { 
        height: 220px; 
    }

    /* Контакты */
    .contact-info-cards {
        flex-direction: column; 
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .contact-form {
        padding: 2rem 1.5rem; 
    }
}

@media (max-width: 480px) {
    h1 { 
        font-size: 1.8rem; 
    }
    .btn { 
        width: 100%; 
        text-align: center; 
    }
}
