optonos / index.html
ANTIMOLL's picture
Update index.html
a02b72a verified
raw
history blame
67.4 kB
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Visionary - Премиальная оптика нового поколения</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');
:root {
--primary: #4f46e5;
--primary-light: #6366f1;
--primary-dark: #4338ca;
--secondary: #f59e0b;
--dark: #1e293b;
--light: #f8fafc;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: #f8fafc;
color: #334155;
scroll-behavior: smooth;
}
h1, h2, h3, h4 {
font-family: 'Playfair Display', serif;
color: var(--dark);
}
.logo-text {
font-family: 'Playfair Display', serif;
font-weight: 700;
letter-spacing: 1px;
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero {
background: linear-gradient(105deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%),
url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
background-size: cover;
background-position: center;
min-height: 700px;
}
.product-card {
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
border: 1px solid #e2e8f0;
background: white;
position: relative;
overflow: hidden;
}
.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2);
border-color: var(--primary-light);
}
.product-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.4s ease;
}
.product-card:hover::before {
transform: scaleX(1);
}
.nav-link {
position: relative;
padding-bottom: 6px;
transition: all 0.3s ease;
}
.nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
transition: width 0.4s ease;
}
.nav-link:hover::after {
width: 100%;
}
.nav-link:hover {
color: var(--primary);
}
.gallery-item {
overflow: hidden;
border-radius: 12px;
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.gallery-item:hover {
transform: scale(1.05);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.article-card {
transition: all 0.4s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
background: white;
}
.article-card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1);
}
.testimonial-card {
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border: 1px solid #e2e8f0;
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}
.testimonial-card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.testimonial-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-light) 100%);
}
.btn-primary {
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}
.btn-primary::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: all 0.4s ease;
}
.btn-primary:hover::after {
left: 100%;
}
.btn-outline {
border: 2px solid var(--primary);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
}
.btn-outline:hover {
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
color: white;
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
border-color: transparent;
}
.feature-card {
transition: all 0.4s ease;
background: white;
border: 1px solid #e2e8f0;
position: relative;
}
.feature-card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
border-color: var(--primary-light);
}
.service-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}
.service-card:hover {
transform: translateY(-8px);
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, transparent 100%);
transform: translateX(-100%);
transition: transform 0.6s ease;
}
.service-card:hover::before {
transform: translateX(100%);
}
.floating-label {
position: absolute;
top: -10px;
left: 10px;
background: white;
padding: 0 5px;
font-size: 12px;
color: var(--primary);
z-index: 1;
}
.form-group {
position: relative;
margin-bottom: 1.5rem;
}
.form-control {
border: 1px solid #cbd5e1;
transition: all 0.3s ease;
background: white;
}
.form-control:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.animate-float {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
.animate-pulse-slow {
animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.badge-new {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
color: white;
}
.badge-sale {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
}
.stats-card {
background: white;
border: 1px solid #e2e8f0;
transition: all 0.4s ease;
}
.stats-card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
border-color: var(--primary-light);
}
.stats-card::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}
.menu-item {
transition: all 0.3s ease;
position: relative;
}
.menu-item::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: var(--primary);
transition: width 0.3s ease;
}
.menu-item:hover::after {
width: 100%;
}
.mobile-menu {
transform: translateX(100%);
transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mobile-menu.open {
transform: translateX(0);
}
.people-bg {
background: linear-gradient(105deg, rgba(79,70,229,0.9) 0%, rgba(99,102,241,0.8) 100%),
url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
background-size: cover;
background-position: center;
background-attachment: fixed;
}
.parallax {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.logo-icon {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.counter {
font-size: 3rem;
font-weight: 700;
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.progress-bar {
height: 6px;
background: #e2e8f0;
border-radius: 3px;
overflow: hidden;
}
.progress-value {
height: 100%;
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
border-radius: 3px;
transition: width 1.5s ease;
}
</style>
</head>
<body class="relative">
<!-- Preloader -->
<div id="preloader" class="fixed inset-0 bg-white z-50 flex items-center justify-center">
<div class="animate-pulse-slow">
<svg class="w-16 h-16 logo-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<circle cx="12" cy="12" r="4"></circle>
<line x1="21.17" y1="8" x2="12" y2="8"></line>
<line x1="3.95" y1="6.06" x2="8.54" y2="14"></line>
<line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>
</svg>
</div>
</div>
<!-- Header -->
<header class="bg-white shadow-sm sticky top-0 z-50">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<!-- Logo -->
<a href="#home" class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full flex items-center justify-center animate-float">
<svg class="w-8 h-8 logo-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<circle cx="12" cy="12" r="4"></circle>
<line x1="21.17" y1="8" x2="12" y2="8"></line>
<line x1="3.95" y1="6.06" x2="8.54" y2="14"></line>
<line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>
</svg>
</div>
<span class="logo-text text-2xl">Visionary</span>
</a>
<!-- Desktop Navigation -->
<nav class="hidden lg:flex space-x-8 items-center">
<a href="#home" class="nav-link text-gray-700 hover:text-primary font-medium flex items-center menu-item">
<i class="fas fa-home mr-2 text-sm"></i> Главная
</a>
<a href="#products" class="nav-link text-gray-700 hover:text-primary font-medium flex items-center menu-item">
<i class="fas fa-glasses mr-2 text-sm"></i> Очки
</a>
<a href="#lenses" class="nav-link text-gray-700 hover:text-primary font-medium flex items-center menu-item">
<i class="fas fa-eye mr-2 text-sm"></i> Линзы
</a>
<a href="#services" class="nav-link text-gray-700 hover:text-primary font-medium flex items-center menu-item">
<i class="fas fa-concierge-bell mr-2 text-sm"></i> Услуги
</a>
<a href="#about" class="nav-link text-gray-700 hover:text-primary font-medium flex items-center menu-item">
<i class="fas fa-info-circle mr-2 text-sm"></i> О нас
</a>
<a href="#testimonials" class="nav-link text-gray-700 hover:text-primary font-medium flex items-center menu-item">
<i class="fas fa-star mr-2 text-sm"></i> Отзывы
</a>
<a href="#contacts" class="nav-link text-gray-700 hover:text-primary font-medium flex items-center menu-item">
<i class="fas fa-map-marker-alt mr-2 text-sm"></i> Контакты
</a>
</nav>
<!-- Right side icons -->
<div class="hidden lg:flex items-center space-x-6">
<a href="#" class="text-gray-700 hover:text-primary relative transition-colors">
<i class="fas fa-search text-xl"></i>
</a>
<a href="#" class="text-gray-700 hover:text-primary relative transition-colors">
<i class="fas fa-heart text-xl"></i>
<span class="absolute -top-2 -right-2 bg-primary text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">3</span>
</a>
<a href="#" class="text-gray-700 hover:text-primary relative transition-colors">
<i class="fas fa-shopping-cart text-xl"></i>
<span class="absolute -top-2 -right-2 bg-primary text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">3</span>
</a>
<a href="#" class="text-gray-700 hover:text-primary transition-colors">
<i class="fas fa-user text-xl"></i>
</a>
</div>
<!-- Mobile menu button -->
<button id="mobile-menu-button" class="lg:hidden text-gray-700 focus:outline-none">
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
<!-- Mobile menu -->
<div id="mobile-menu" class="mobile-menu fixed inset-y-0 right-0 w-64 bg-white shadow-lg z-50 p-6 overflow-y-auto">
<div class="flex justify-between items-center mb-8">
<a href="#home" class="flex items-center space-x-2">
<svg class="w-8 h-8 logo-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<circle cx="12" cy="12" r="4"></circle>
<line x1="21.17" y1="8" x2="12" y2="8"></line>
<line x1="3.95" y1="6.06" x2="8.54" y2="14"></line>
<line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>
</svg>
<span class="logo-text text-xl">Visionary</span>
</a>
<button id="mobile-menu-close" class="text-gray-700">
<i class="fas fa-times text-xl"></i>
</button>
</div>
<div class="flex flex-col space-y-6">
<a href="#home" class="text-gray-700 hover:text-primary font-medium flex items-center py-2 border-b border-gray-100">
<i class="fas fa-home mr-3 text-sm"></i> Главная
</a>
<a href="#products" class="text-gray-700 hover:text-primary font-medium flex items-center py-2 border-b border-gray-100">
<i class="fas fa-glasses mr-3 text-sm"></i> Очки
</a>
<a href="#lenses" class="text-gray-700 hover:text-primary font-medium flex items-center py-2 border-b border-gray-100">
<i class="fas fa-eye mr-3 text-sm"></i> Линзы
</a>
<a href="#services" class="text-gray-700 hover:text-primary font-medium flex items-center py-2 border-b border-gray-100">
<i class="fas fa-concierge-bell mr-3 text-sm"></i> Услуги
</a>
<a href="#about" class="text-gray-700 hover:text-primary font-medium flex items-center py-2 border-b border-gray-100">
<i class="fas fa-info-circle mr-3 text-sm"></i> О нас
</a>
<a href="#testimonials" class="text-gray-700 hover:text-primary font-medium flex items-center py-2 border-b border-gray-100">
<i class="fas fa-star mr-3 text-sm"></i> Отзывы
</a>
<a href="#contacts" class="text-gray-700 hover:text-primary font-medium flex items-center py-2 border-b border-gray-100">
<i class="fas fa-map-marker-alt mr-3 text-sm"></i> Контакты
</a>
</div>
<div class="mt-8 pt-6 border-t border-gray-200 flex justify-around">
<a href="#" class="text-gray-700 hover:text-primary">
<i class="fas fa-search text-xl"></i>
</a>
<a href="#" class="text-gray-700 hover:text-primary relative">
<i class="fas fa-heart text-xl"></i>
<span class="absolute -top-2 -right-2 bg-primary text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">3</span>
</a>
<a href="#" class="text-gray-700 hover:text-primary relative">
<i class="fas fa-shopping-cart text-xl"></i>
<span class="absolute -top-2 -right-2 bg-primary text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">3</span>
</a>
<a href="#" class="text-gray-700 hover:text-primary">
<i class="fas fa-user text-xl"></i>
</a>
</div>
</div>
</header>
<!-- Hero Section -->
<section id="home" class="hero flex items-center justify-center relative overflow-hidden">
<div class="absolute inset-0 bg-gradient-to-t from-black/50 via-black/30 to-transparent"></div>
<div class="container mx-auto px-4 text-center relative z-10">
<h1 class="text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight text-white animate-fadeIn">
Яркий взгляд <br><span class="text-primary-light">с Visionary</span>
</h1>
<p class="text-xl md:text-2xl mb-8 max-w-2xl mx-auto text-gray-200 animate-fadeIn delay-100">
Инновационные очки и контактные линзы для вашего комфорта и стиля
</p>
<div class="flex flex-col sm:flex-row justify-center gap-4 animate-fadeIn delay-200">
<a href="#products" class="btn-primary text-white px-8 py-4 rounded-lg font-medium text-lg">
Выбрать очки
</a>
<a href="#lenses" class="btn-outline text-white px-8 py-4 rounded-lg font-medium text-lg">
Подобрать линзы
</a>
</div>
</div>
<!-- Animated glasses floating in the background -->
<div class="absolute top-1/4 left-1/4 w-16 h-16 opacity-20 animate-float delay-1">
<svg class="w-full h-full text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="6" cy="6" r="3"></circle>
<circle cx="18" cy="6" r="3"></circle>
<path d="M9 6h6"></path>
<path d="M9 6v10c0 2.8 2.2 5 5 5h0c2.8 0 5-2.2 5-5V6"></path>
</svg>
</div>
<div class="absolute top-1/3 right-1/4 w-20 h-20 opacity-30 animate-float delay-2">
<svg class="w-full h-full text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="2" width="20" height="12" rx="2"></rect>
<path d="M7 14h10"></path>
</svg>
</div>
<div class="absolute bottom-1/4 left-1/3 w-24 h-24 opacity-10 animate-float delay-3">
<svg class="w-full h-full text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<circle cx="12" cy="12" r="4"></circle>
<line x1="21.17" y1="8" x2="12" y2="8"></line>
<line x1="3.95" y1="6.06" x2="8.54" y2="14"></line>
<line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>
</svg>
</div>
</section>
<!-- Stats Section -->
<section class="py-12 bg-white">
<div class="container mx-auto px-4">
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
<div class="stats-card p-6 rounded-xl text-center relative">
<div class="text-4xl font-bold mb-2 counter" data-target="12500">0</div>
<h3 class="text-lg font-medium text-gray-700">Довольных клиентов</h3>
</div>
<div class="stats-card p-6 rounded-xl text-center relative">
<div class="text-4xl font-bold mb-2 counter" data-target="8500">0</div>
<h3 class="text-lg font-medium text-gray-700">Проданных очков</h3>
</div>
<div class="stats-card p-6 rounded-xl text-center relative">
<div class="text-4xl font-bold mb-2 counter" data-target="24">0</div>
<h3 class="text-lg font-medium text-gray-700">Бренда</h3>
</div>
<div class="stats-card p-6 rounded-xl text-center relative">
<div class="text-4xl font-bold mb-2 counter" data-target="12">0</div>
<h3 class="text-lg font-medium text-gray-700">Лет опыта</h3>
</div>
</div>
</div>
</section>
<!-- Products Section -->
<section id="products" class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<span class="text-primary font-medium tracking-wider">НОВАЯ КОЛЛЕКЦИЯ</span>
<h2 class="text-3xl font-bold mb-4">Популярные модели очков</h2>
<p class="text-gray-600 max-w-2xl mx-auto">Современные дизайны и технологии для вашего комфорта</p>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
<!-- Product 1 -->
<div class="product-card rounded-xl overflow-hidden relative">
<div class="absolute top-3 right-3 z-10">
<span class="badge-new text-xs font-bold px-3 py-1 rounded-full">NEW</span>
</div>
<div class="relative h-64 overflow-hidden">
<img src="https://images.unsplash.com/photo-1511499767150-a48a79f39864?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80" alt="Очки" class="w-full h-full object-cover transition duration-500">
</div>
<div class="p-5">
<div class="flex justify-between items-start mb-2">
<div>
<h3 class="font-bold text-lg mb-1">Ray-Ban Clubmaster</h3>
<p class="text-gray-600 text-sm">Классическая форма, золотистая оправа</p>
</div>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
</div>
<div class="flex justify-between items-center mt-4">
<span class="font-bold text-primary text-lg">12 990 ₽</span>
<button class="bg-primary hover:bg-primary-dark text-white px-4 py-2 rounded-lg text-sm flex items-center">
<i class="fas fa-shopping-cart mr-2"></i> Купить
</button>
</div>
</div>
</div>
<!-- Product 2 -->
<div class="product-card rounded-xl overflow-hidden">
<div class="relative h-64 overflow-hidden">
<img src="https://images.unsplash.com/photo-1556306535-0f09a537f0a3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Очки" class="w-full h-full object-cover transition duration-500">
</div>
<div class="p-5">
<div class="flex justify-between items-start mb-2">
<div>
<h3 class="font-bold text-lg mb-1">Oakley Holbrook</h3>
<p class="text-gray-600 text-sm">Спортивный стиль, черная оправа</p>
</div>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
<div class="flex justify-between items-center mt-4">
<span class="font-bold text-primary text-lg">14 490 ₽</span>
<button class="bg-primary hover:bg-primary-dark text-white px-4 py-2 rounded-lg text-sm flex items-center">
<i class="fas fa-shopping-cart mr-2"></i> Купить
</button>
</div>
</div>
</div>
<!-- Product 3 -->
<div class="product-card rounded-xl overflow-hidden relative">
<div class="absolute top-3 right-3 z-10">
<span class="badge-sale text-xs font-bold px-3 py-1 rounded-full">-20%</span>
</div>
<div class="relative h-64 overflow-hidden">
<img src="https://images.unsplash.com/photo-1591073113125-e46713c829ec?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Очки" class="w-full h-full object-cover transition duration-500">
</div>
<div class="p-5">
<div class="flex justify-between items-start mb-2">
<div>
<h3 class="font-bold text-lg mb-1">Prada PR 16WV</h3>
<p class="text-gray-600 text-sm">Стильные очки с прозрачной оправой</p>
</div>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
</div>
<div class="flex justify-between items-center mt-4">
<div>
<span class="font-bold text-primary text-lg">18 990 ₽</span>
<span class="text-gray-400 text-sm line-through ml-2">23 990 ₽</span>
</div>
<button class="bg-primary hover:bg-primary-dark text-white px-4 py-2 rounded-lg text-sm flex items-center">
<i class="fas fa-shopping-cart mr-2"></i> Купить
</button>
</div>
</div>
</div>
<!-- Product 4 -->
<div class="product-card rounded-xl overflow-hidden">
<div class="relative h-64 overflow-hidden">
<img src="https://images.unsplash.com/photo-1559599101-f09722fb4948?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1469&q=80" alt="Очки" class="w-full h-full object-cover transition duration-500">
</div>
<div class="p-5">
<div class="flex justify-between items-start mb-2">
<div>
<h3 class="font-bold text-lg mb-1">Gucci GG0397O</h3>
<p class="text-gray-600 text-sm">Элегантные женские очки</p>
</div>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
<div class="flex justify-between items-center mt-4">
<span class="font-bold text-primary text-lg">21 490 ₽</span>
<button class="bg-primary hover:bg-primary-dark text-white px-4 py-2 rounded-lg text-sm flex items-center">
<i class="fas fa-shopping-cart mr-2"></i> Купить
</button>
</div>
</div>
</div>
</div>
<div class="text-center mt-12">
<a href="#" class="btn-outline text-primary px-8 py-3 rounded-lg font-medium inline-flex items-center">
Смотреть все очки
<i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
</div>
</section>
<!-- About Section with People Background -->
<section id="about" class="py-16 people-bg parallax text-white">
<div class="container mx-auto px-4">
<div class="max-w-2xl mx-auto text-center">
<span class="text-primary-light font-medium tracking-wider">О НАС</span>
<h2 class="text-3xl font-bold mb-6">Visionary - это новый взгляд на оптику</h2>
<p class="text-gray-200 mb-8">Мы объединяем передовые технологии, стильный дизайн и индивидуальный подход к каждому клиенту. Наша миссия - дарить людям не только четкое зрение, но и уверенность в себе.</p>
<div class="grid grid-cols-2 md:grid-cols-3 gap-6 mb-8">
<div class="bg-white/10 p-4 rounded-lg backdrop-blur-sm">
<div class="text-3xl font-bold mb-2">12+</div>
<div class="text-sm">Лет опыта</div>
</div>
<div class="bg-white/10 p-4 rounded-lg backdrop-blur-sm">
<div class="text-3xl font-bold mb-2">24</div>
<div class="text-sm">Мировых бренда</div>
</div>
<div class="bg-white/10 p-4 rounded-lg backdrop-blur-sm">
<div class="text-3xl font-bold mb-2">100%</div>
<div class="text-sm">Гарантия качества</div>
</div>
</div>
<a href="#services" class="btn-primary text-white px-8 py-3 rounded-lg font-medium inline-flex items-center">
Наши услуги
<i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
</div>
</section>
<!-- Lenses Section -->
<section id="lenses" class="py-16 bg-white">
<div class="container mx-auto px-4">
<div class="flex flex-col lg:flex-row items-center gap-12">
<div class="lg:w-1/2">
<div class="relative rounded-xl overflow-hidden shadow-lg">
<img src="https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Контактные линзы" class="w-full h-auto">
</div>
</div>
<div class="lg:w-1/2">
<span class="text-primary font-medium tracking-wider">КОНТАКТНЫЕ ЛИНЗЫ</span>
<h2 class="text-3xl font-bold mb-6">Комфорт и свобода движения</h2>
<p class="text-gray-600 mb-6">Наши линзы обеспечивают максимальный комфорт даже при длительном ношении благодаря инновационным материалам и технологии увлажнения.</p>
<div class="space-y-4 mb-8">
<div>
<div class="flex justify-between mb-1">
<span class="font-medium">Кислородопроницаемость</span>
<span class="font-bold text-primary">95%</span>
</div>
<div class="progress-bar">
<div class="progress-value" style="width: 95%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="font-medium">Увлажнение</span>
<span class="font-bold text-primary">90%</span>
</div>
<div class="progress-bar">
<div class="progress-value" style="width: 90%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="font-medium">УФ-защита</span>
<span class="font-bold text-primary">100%</span>
</div>
<div class="progress-bar">
<div class="progress-value" style="width: 100%"></div>
</div>
</div>
</div>
<div class="flex flex-col sm:flex-row gap-4">
<a href="#" class="btn-primary text-white px-6 py-3 rounded-lg font-medium">
Подобрать линзы
</a>
<a href="#" class="btn-outline text-primary px-6 py-3 rounded-lg font-medium">
Консультация
</a>
</div>
</div>
</div>
</div>
</section>
<!-- Services Section -->
<section id="services" class="py-16 bg-gradient-to-br from-primary to-primary-light text-white">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<span class="text-white/80 font-medium tracking-wider">НАШИ УСЛУГИ</span>
<h2 class="text-3xl font-bold mb-4">Комплексный подход к здоровью ваших глаз</h2>
<p class="max-w-2xl mx-auto text-white/80">Профессиональные услуги для вашего комфорта и здоровья</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="service-card p-6 rounded-xl">
<div class="w-12 h-12 bg-white/20 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-eye text-xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">Проверка зрения</h3>
<p class="text-white/80 mb-4">Точная диагностика на современном оборудовании с индивидуальными рекомендациями</p>
<a href="#" class="inline-flex items-center text-white font-medium">
Подробнее <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
<div class="service-card p-6 rounded-xl">
<div class="w-12 h-12 bg-white/20 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-glasses text-xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">Подбор очков</h3>
<p class="text-white/80 mb-4">Индивидуальный подбор с учетом особенностей зрения, формы лица и стиля жизни</p>
<a href="#" class="inline-flex items-center text-white font-medium">
Подробнее <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
<div class="service-card p-6 rounded-xl">
<div class="w-12 h-12 bg-white/20 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-user-md text-xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">Консультация офтальмолога</h3>
<p class="text-white/80 mb-4">Профессиональная консультация по вопросам здоровья глаз и профилактике заболеваний</p>
<a href="#" class="inline-flex items-center text-white font-medium">
Подробнее <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
<div class="service-card p-6 rounded-xl">
<div class="w-12 h-12 bg-white/20 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-cogs text-xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">Ремонт очков</h3>
<p class="text-white/80 mb-4">Качественный ремонт и регулировка оправ любой сложности в кратчайшие сроки</p>
<a href="#" class="inline-flex items-center text-white font-medium">
Подробнее <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
<div class="service-card p-6 rounded-xl">
<div class="w-12 h-12 bg-white/20 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-sun text-xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">Солнцезащитные очки</h3>
<p class="text-white/80 mb-4">Широкий выбор солнцезащитных очков с UV-защитой от ведущих мировых брендов</p>
<a href="#" class="inline-flex items-center text-white font-medium">
Подробнее <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
<div class="service-card p-6 rounded-xl">
<div class="w-12 h-12 bg-white/20 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-child text-xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">Детская оптика</h3>
<p class="text-white/80 mb-4">Специальные детские оправы и линзы для комфортного ношения и защиты зрения</p>
<a href="#" class="inline-flex items-center text-white font-medium">
Подробнее <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section id="testimonials" class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<span class="text-primary font-medium tracking-wider">ОТЗЫВЫ</span>
<h2 class="text-3xl font-bold mb-4">Что говорят наши клиенты</h2>
<p class="text-gray-600 max-w-2xl mx-auto">Мы гордимся доверием наших клиентов</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="testimonial-card p-6 rounded-xl">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-gray-300 overflow-hidden mr-4">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Клиент" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-bold">Анна К.</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600 italic">"Очень профессиональный подход! Подобрали идеальные очки, которые мне очень идут. Проверка зрения была точной и комфортной. Рекомендую!"</p>
<div class="mt-4 text-sm text-gray-500">
<i class="fas fa-calendar-alt mr-2"></i> 15 мая 2023
</div>
</div>
<div class="testimonial-card p-6 rounded-xl">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-gray-300 overflow-hidden mr-4">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Клиент" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-bold">Иван П.</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600 italic">"Пользуюсь контактными линзами от Visionary уже несколько лет. Всегда отличное качество и быстрая доставка. Персонал очень вежливый и компетентный."</p>
<div class="mt-4 text-sm text-gray-500">
<i class="fas fa-calendar-alt mr-2"></i> 2 июня 2023
</div>
</div>
<div class="testimonial-card p-6 rounded-xl">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-gray-300 overflow-hidden mr-4">
<img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Клиент" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-bold">Елена С.</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
</div>
</div>
<p class="text-gray-600 italic">"Привела ребенка на проверку зрения. Врач нашел подход даже к моему непоседливому сыну. Очки подобрали быстро, а через месяц зрение улучшилось. Спасибо!"</p>
<div class="mt-4 text-sm text-gray-500">
<i class="fas fa-calendar-alt mr-2"></i> 22 апреля 2023
</div>
</div>
</div>
</div>
</section>
<!-- Contacts Section -->
<section id="contacts" class="py-16 bg-white">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<span class="text-primary font-medium tracking-wider">КОНТАКТЫ</span>
<h2 class="text-3xl font-bold mb-4">Мы всегда рады видеть вас</h2>
<p class="text-gray-600 max-w-2xl mx-auto">Посетите наш салон или свяжитесь с нами удобным способом</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12">
<div>
<div class="bg-gray-50 p-8 rounded-xl shadow-sm">
<h3 class="text-xl font-bold mb-6">Напишите нам</h3>
<form>
<div class="form-group">
<label for="name" class="floating-label">Ваше имя</label>
<input type="text" id="name" class="form-control w-full px-4 py-3 rounded-lg focus:outline-none">
</div>
<div class="form-group">
<label for="email" class="floating-label">Email</label>
<input type="email" id="email" class="form-control w-full px-4 py-3 rounded-lg focus:outline-none">
</div>
<div class="form-group">
<label for="message" class="floating-label">Сообщение</label>
<textarea id="message" rows="4" class="form-control w-full px-4 py-3 rounded-lg focus:outline-none"></textarea>
</div>
<button type="submit" class="btn-primary w-full text-white px-6 py-3 rounded-lg font-medium mt-2">
Отправить сообщение
</button>
</form>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-6 mt-8">
<div class="bg-gray-50 p-6 rounded-xl shadow-sm">
<h3 class="text-lg font-bold mb-4 flex items-center">
<i class="fas fa-map-marker-alt text-primary mr-3"></i> Адрес
</h3>
<p class="text-gray-600">г. Москва, ул. Оптическая, д. 15</p>
</div>
<div class="bg-gray-50 p-6 rounded-xl shadow-sm">
<h3 class="text-lg font-bold mb-4 flex items-center">
<i class="fas fa-clock text-primary mr-3"></i> Часы работы
</h3>
<p class="text-gray-600">Пн-Пт: 10:00 - 20:00</p>
<p class="text-gray-600">Сб-Вс: 11:00 - 18:00</p>
</div>
<div class="bg-gray-50 p-6 rounded-xl shadow-sm">
<h3 class="text-lg font-bold mb-4 flex items-center">
<i class="fas fa-phone-alt text-primary mr-3"></i> Телефон
</h3>
<a href="tel:+74951234567" class="text-gray-600 hover:text-primary">+7 (495) 123-45-67</a>
</div>
<div class="bg-gray-50 p-6 rounded-xl shadow-sm">
<h3 class="text-lg font-bold mb-4 flex items-center">
<i class="fas fa-envelope text-primary mr-3"></i> Email
</h3>
<a href="mailto:info@visionary.ru" class="text-gray-600 hover:text-primary">info@visionary.ru</a>
</div>
</div>
</div>
<div class="rounded-xl overflow-hidden shadow-lg h-full">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2245.373789919745!2d37.615310715930474!3d55.75202398055314!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x46b54a5a738fa419%3A0x7c347d506f52311f!2z0JrRgNCw0YHQvdCw0Y8g0YPQuy4sIDE1LCDQnNC-0YHQutCy0LAsINCc0L7RgdC60LLQsCwgMTI1MDQ3!5e0!3m2!1sru!2sru!4v1623750000000!5m2!1sru!2sru" width="100%" height="100%" style="border:0; min-height: 500px;" allowfullscreen="" loading="lazy"></iframe>
</div>
</div>
</div>
</section>
<!-- Newsletter Section -->
<section class="py-16 bg-gray-900 text-white">
<div class="container mx-auto px-4 text-center">
<div class="max-w-2xl mx-auto">
<h2 class="text-3xl font-bold mb-4">Подпишитесь на наши новости</h2>
<p class="text-gray-400 mb-8">Получайте информацию о новых коллекциях, акциях и полезные статьи о здоровье глаз</p>
<form class="flex flex-col sm:flex-row gap-4">
<input type="email" placeholder="Ваш email" class="flex-grow px-6 py-3 rounded-lg focus:outline-none text-gray-900">
<button type="submit" class="bg-primary hover:bg-primary-dark px-6 py-3 rounded-lg font-medium">
Подписаться
</button>
</form>
<div class="flex justify-center space-x-6 mt-8">
<a href="#" class="text-gray-400 hover:text-white text-xl">
<i class="fab fa-vk"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white text-xl">
<i class="fab fa-telegram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white text-xl">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white text-xl">
<i class="fab fa-youtube"></i>
</a>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12 border-t border-gray-800">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
<div>
<div class="flex items-center space-x-2 mb-4">
<svg class="w-8 h-8 logo-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<circle cx="12" cy="12" r="4"></circle>
<line x1="21.17" y1="8" x2="12" y2="8"></line>
<line x1="3.95" y1="6.06" x2="8.54" y2="14"></line>
<line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>
</svg>
<span class="logo-text text-xl">Visionary</span>
</div>
<p class="text-gray-400 mb-4">Премиальная оптика нового поколения. Заботимся о вашем зрении с 2011 года.</p>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-vk"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-telegram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-instagram"></i>
</a>
</div>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Меню</h3>
<ul class="space-y-2">
<li><a href="#home" class="text-gray-400 hover:text-white">Главная</a></li>
<li><a href="#products" class="text-gray-400 hover:text-white">Очки</a></li>
<li><a href="#lenses" class="text-gray-400 hover:text-white">Линзы</a></li>
<li><a href="#services" class="text-gray-400 hover:text-white">Услуги</a></li>
<li><a href="#about" class="text-gray-400 hover:text-white">О нас</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Информация</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Доставка и оплата</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Гарантии</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Возврат и обмен</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Политика конфиденциальности</a></li>
<li><a href="#contacts" class="text-gray-400 hover:text-white">Контакты</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Контакты</h3>
<ul class="space-y-2 text-gray-400">
<li class="flex items-start">
<i class="fas fa-map-marker-alt mt-1 mr-2 text-primary"></i>
<span>г. Москва, ул. Оптическая, д. 15</span>
</li>
<li class="flex items-start">
<i class="fas fa-phone-alt mt-1 mr-2 text-primary"></i>
<a href="tel:+74951234567" class="hover:text-white">+7 (495) 123-45-67</a>
</li>
<li class="flex items-start">
<i class="fas fa-envelope mt-1 mr-2 text-primary"></i>
<a href="mailto:info@visionary.ru" class="hover:text-white">info@visionary.ru</a>
</li>
<li class="flex items-start">
<i class="fas fa-clock mt-1 mr-2 text-primary"></i>
<span>Пн-Пт: 10:00-20:00, Сб-Вс: 11:00-18:00</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-10 pt-6 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-400 text-sm">© 2023 Visionary. Все права защищены.</p>
<div class="flex space-x-6 mt-4 md:mt-0">
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-cc-visa text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-cc-mastercard text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-cc-paypal text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-apple-pay text-xl"></i></a>
</div>
</div>
</div>
</footer>
<!-- Back to top button -->
<button id="back-to-top" class="fixed bottom-8 right-8 w-12 h-12 bg-primary text-white rounded-full shadow-lg flex items-center justify-center hidden transform transition hover:scale-110">
<i class="fas fa-arrow-up"></i>
</button>
<script>
// Preloader
window.addEventListener('load', function() {
const preloader = document.getElementById('preloader');
setTimeout(() => {
preloader.style.opacity = '0';
setTimeout(() => {
preloader.style.display = 'none';
}, 500);
}, 500);
});
// Mobile menu toggle
document.getElementById('mobile-menu-button').addEventListener('click', function() {
document.getElementById('mobile-menu').classList.add('open');
});
document.getElementById('mobile-menu-close').addEventListener('click', function() {
document.getElementById('mobile-menu').classList.remove('open');
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetId = this.getAttribute('href');
const targetElement = document.querySelector(targetId);
if (targetElement) {
window.scrollTo({
top: targetElement.offsetTop - 100,
behavior: 'smooth'
});
// Close mobile menu if open
const mobileMenu = document.getElementById('mobile-menu');
if (mobileMenu.classList.contains('open')) {
mobileMenu.classList.remove('open');
}
}
});
});
// Back to top button
const backToTopButton = document.getElementById('back-to-top');
window.addEventListener('scroll', function() {
if (window.pageYOffset > 300) {
backToTopButton.classList.remove('hidden');
} else {
backToTopButton.classList.add('hidden');
}
});
backToTopButton.addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Form submission
const forms = document.querySelectorAll('form');
forms.forEach(form => {
form.addEventListener('submit', function(e) {
e.preventDefault();
alert('Спасибо! Ваша заявка принята. Мы свяжемся с вами в ближайшее время.');
this.reset();
});
});
// Animated counters
const counters = document.querySelectorAll('.counter');
const speed = 200;
function animateCounters() {
counters.forEach(counter => {
const target = +counter.getAttribute('data-target');
const count = +counter.innerText;
const increment = target / speed;
if (count < target) {
counter.innerText = Math.ceil(count + increment);
setTimeout(animateCounters, 1);
} else {
counter.innerText = target;
}
});
}
// Start counters when section is in view
const statsSection = document.querySelector('section.bg-white');
const observer = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting) {
animateCounters();
observer.unobserve(statsSection);
}
});
observer.observe(statsSection);
// Product card hover effect
const productCards = document.querySelectorAll('.product-card');
productCards.forEach(card => {
card.addEventListener('mouseenter', function() {
const img = this.querySelector('img');
img.style.transform = 'scale(1.05)';
});
card.addEventListener('mouseleave', function() {
const img = this.querySelector('img');
img.style.transform = 'scale(1)';
});
});
// Animate progress bars on scroll
const progressBars = document.querySelectorAll('.progress-value');
const progressSection = document.getElementById('lenses');
const progressObserver = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting) {
progressBars.forEach(bar => {
const width = bar.style.width;
bar.style.width = '0';
setTimeout(() => {
bar.style.width = width;
}, 100);
});
progressObserver.unobserve(progressSection);
}
}, { threshold: 0.5 });
progressObserver.observe(progressSection);
</script>
</body>
</html>