/* Глобальные переменные и сброс */
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #adb5bd;
    --success: #2ec4b6;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: #e1e4fb;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

/* Шапка - стеклянный морфизм */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-text span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

.nav a:hover:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
    z-index: 1001;
}

/* Мобильное меню - современный дизайн */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
    z-index: -1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    text-align: center;
    padding: 0.5rem 1.5rem;
}

.mobile-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.mobile-nav a:hover {
    color: var(--accent);
}

.mobile-nav a:hover:after {
    width: 100%;
}

.mobile-actions {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-phone {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-phone i {
    color: var(--accent);
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* Герой-секция с градиентом и 3D элементами */
.hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    background: url('https://hiopt.ru/images/hero.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    color: white;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Каталог с анимированными карточками */
.catalog {
    background-color: white;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--success);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    padding: 1.5rem;
}

.product-image img {
    max-height: 180px;
    max-width: 100%;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
}

.product-brand {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.price-old {
    font-size: 1.1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn {
    background: var(--gradient);
    color: white;
}

.detail-btn {
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--dark);
}

.action-btn:hover {
    transform: translateY(-3px);
}

/* Преимущества с иконками и анимацией */
.advantages {
    background: linear-gradient(to bottom, #f0f4f8, #ffffff);
    position: relative;
    overflow: hidden;
}

.advantages:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.05;
    z-index: 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.advantage-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    border-radius: 20px;
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.advantage-card p {
    color: var(--gray);
}

/* Контроль качества с таймлайном */
.quality {
    background-color: white;
}

.quality-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.quality-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.quality-image img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.quality-image:hover img {
    transform: scale(1.05);
}

.quality-steps {
    flex: 1;
}

.step {
    display: flex;
    gap: 1.5rem;
    padding: 1.8rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    background: rgba(67, 97, 238, 0.03);
    border-left: 3px solid var(--primary);
}

.step:hover {
    background: rgba(67, 97, 238, 0.08);
    transform: translateX(10px);
}

.step-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* География поставок */
.map-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(to bottom, #3a0ca3, #4361ee);
    color: white;
    text-align: center;
}

.map-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?auto=format&fit=crop&w=1920') no-repeat center center/cover;
    opacity: 0.15;
}

.map-section .section-header h2 {
    background: linear-gradient(to right, #fff, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-container {
    max-width: 900px;
    margin: 3rem auto;
    position: relative;
    z-index: 2;
}

.map-svg {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.cities {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    font-size: 1.1rem;
}

.city {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* Прайс-лист с CTA */
.pricelist {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    text-align: center;
}

.pricelist-box {
    background: white;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.pricelist-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.pricelist-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.pricelist-box p {
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.feature i {
    color: var(--success);
    font-size: 1.2rem;
}

/* Футер */
.footer {
    background: var(--dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    color: white;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.footer-logo span {
    color: var(--accent);
}

.footer-col p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .quality-content {
        flex-direction: column;
        gap: 3rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav, .header-actions .phone-link {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .section-header h2 {
        font-size: 2.3rem;
    }
    .pricelist-box {
        padding: 2.5rem 1.5rem;
    }
    .features {
        flex-direction: column;
        gap: 1rem;
    }
    .mobile-phone {
        font-size: 1.3rem;
    }
    .mobile-nav a {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero {
        padding-top: 10rem;
        padding-bottom: 5rem;
    }
    section {
        padding: 4rem 0;
    }
}