/* Основные стили */
:root {
    --primary: #87CEEB;
    --primary-light: #B0E0E6;
    --primary-dark: #5D8AA8;
    --secondary: #F0F8FF;
    --accent: #FFB6C1;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-white: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F8FBFE;
    --bg-gradient: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 50%, #F0F8FF 100%);
    --shadow-sm: 0 2px 8px rgba(140, 200, 255, 0.1);
    --shadow-md: 0 4px 20px rgba(140, 200, 255, 0.15);
    --shadow-lg: 0 10px 40px rgba(140, 200, 255, 0.2);
    --shadow-xl: 0 20px 60px rgba(140, 200, 255, 0.3);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --border-radius-lg: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.yarn-loader {
    text-align: center;
}

.yarn-ball-loader {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 20px;
}

.yarn-loop {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.yarn-loop:nth-child(1) { animation-delay: 0.2s; }
.yarn-loop:nth-child(2) { animation-delay: 0.4s; }
.yarn-loop:nth-child(3) { animation-delay: 0.6s; }

.preloader p {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Парящие элементы */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-yarn {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.yarn-1 { width: 100px; height: 100px; top: 10%; left: 5%; animation-delay: 0s; }
.yarn-2 { width: 150px; height: 150px; top: 60%; right: 10%; animation-delay: 5s; }
.yarn-3 { width: 80px; height: 80px; bottom: 20%; left: 15%; animation-delay: 10s; }
.yarn-4 { width: 120px; height: 120px; top: 30%; right: 20%; animation-delay: 15s; }

/* Навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 20px;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.logo-icon i { font-size: 24px; color: white; }

.logo-text { display: flex; flex-direction: column; }

.logo-main {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.logo-main1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.logo-sub {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn, .theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cart-btn:hover, .theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Главный экран */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, var(--primary-light) 2px, transparent 2px), radial-gradient(circle at 80% 20%, var(--primary-light) 2px, transparent 2px);
    background-size: 100px 100px;
    opacity: 0.1;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 0 5%;
}

.hero-content { max-width: 600px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    color: var(--text-dark);
}

.hero-badge i { color: var(--accent); }

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.title-line { display: block; }

.highlight {
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat { text-align: center; }

.stat-number {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 400px;
    height: 400px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.placeholder-content { text-align: center; }

.placeholder-content p {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--text-dark);
}

.frame-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed var(--primary-light);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    color: white;
    text-align: center;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.scroll-arrow { animation: bounce 2s infinite; }

/* Секции */
.section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.section-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.decor-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-decor i {
    color: var(--primary);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

/* Обо мне */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-photo {
    position: sticky;
    top: 120px;
}

.photo-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.photo-frame {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition-slow);
}

.photo-frame:hover .profile-photo { transform: scale(1.05); }

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.photo-frame:hover .photo-overlay { transform: translateY(0); }

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.photo-badge {
    position: absolute;
    top: 12px;
    right: 60px;
    background: var(--accent);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.photo-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.info-item:hover {
    background: var(--primary-light);
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-text { padding: 20px; }

.about-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.about-intro h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--text-dark);
}

.intro-badge {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    width: 350px;
    padding: 10px 30px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    overflow: hidden;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    padding-left: 40px;
    position: relative;
}

.lead i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 2rem;
}

.qualities h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.qualities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.quality-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.quality-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quality-content h5 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.quality-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.conclusion {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    padding: 25px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: var(--border-radius);
    color: white;
    margin-top: 30px;
}

.signature {
    margin-top: 40px;
    padding-left: 40px;
    position: relative;
}

.signature-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin-bottom: 15px;
}

.signature-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.signature-text .name {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary);
}

.signature-text .title {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Товары */
.products { background: var(--bg-light); }

.products-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-light);
    background: white;
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1;
}

.product-image {
    height: 375px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img { transform: scale(1.1); }

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.toggle-description {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 0;
    margin-bottom: 15px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.toggle-description:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 10px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i { color: var(--primary); }

.add-to-cart {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.products-cta {
    text-align: center;
    margin-top: 60px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    padding: 35px;
    border-radius: var(--border-radius);
    color: white;
    max-width: 400px;
    height: 250px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.cta-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.cta-card p {
    font-size: 1.0rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Галерея */
.gallery { background: white; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
}

.gallery-image {
    width: 100%;
    height: 100%;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover .gallery-image img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { transform: translateY(0); }

.gallery-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Как заказать */
.order { background: var(--bg-light); }

.order-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Контакты */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-icon.telegram { background: linear-gradient(135deg, #0088cc, #00aced); }
.contact-icon.email { background: linear-gradient(135deg, #ea4335, #fbbc05); }
.contact-icon.clock { background: linear-gradient(135deg, #34a853, #0f9d58); }

.contact-details h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 10px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-note {
    background: linear-gradient(135deg, var(--primary-light), white);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-note i {
    font-size: 24px;
    color: var(--primary);
}

.contact-note p {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-header p { color: var(--text-light); }

.form-group { margin-bottom: 25px; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group label i { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius-sm);
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Корзина */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 2001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active { right: 0; }

.cart-header {
    padding: 25px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-light);
    margin-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info { flex: 1; }

.cart-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-item-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.remove-item:hover { color: var(--accent); }

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--bg-light);
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.total-price { color: var(--primary); }

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.cart-overlay.active { display: block; }

/* Футер */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand { margin-bottom: 20px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.footer-tagline {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

.copyright i {
    color: var(--accent);
    margin: 0 5px;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

.scroll-top.active { display: flex; }

/* Модалка */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalAppear 0.3s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 48px;
    color: white;
    animation: pulse 2s infinite;
}

.modal-content h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.order-id {
    font-weight: 500;
    color: var(--text-dark);
    margin: 20px 0;
}

.order-id span {
    color: var(--primary);
    font-weight: 600;
}

.btn-modal {
    padding: 15px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-modal:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Анимации */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.9) translateY(50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 100000;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 100000;
    transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

.lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-family: var(--font-body, sans-serif);
}

/* Мульти-галерея */
.gallery-multi-preview {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-multi-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.gallery-multi-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.3s;
    cursor: pointer;
}
.gallery-dot.active { background: #fff; }

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}
.gallery-thumbnails .thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}
.gallery-thumbnails .thumb.active,
.gallery-thumbnails .thumb:hover {
    opacity: 1;
    outline: 2px solid var(--primary);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 3.5rem; }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-image { order: -1; }
    .image-frame {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    .about-content { grid-template-columns: 1fr; }
    .about-photo {
        position: static;
        margin-bottom: 50px;
    }
    .photo-frame {
        width: 250px;
        height: 250px;
    }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2.8rem; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    .hero-stats { flex-direction: column; gap: 20px; }
    .qualities-grid { grid-template-columns: 1fr; }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-card { min-width: 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    .order-steps { grid-template-columns: 1fr; }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    .about-content {
        display: block;
        overflow-x: hidden;
    }
    .about-photo {
        margin-bottom: 30px;
    }
    .photo-frame {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
    }
    .about-text {
        padding: 0 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .about-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .about-intro h3 {
        font-size: 2rem;
    }
    .intro-badge {
        width: auto;
        font-size: 14px;
        padding: 8px 20px;
    }
    .lead {
        padding-left: 30px;
        font-size: 1rem;
    }
    .qualities-grid {
        grid-template-columns: 1fr;
    }
    .quality-card {
        flex-direction: row;
        align-items: center;
    }
    .conclusion {
        font-size: 1rem;
        padding: 20px;
    }
    .signature {
        padding-left: 20px;
    }
    .signature-text .name {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2.5rem; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .about-intro {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .signature {
        padding-left: 0;
        text-align: center;
    }
    .signature-line { margin: 0 auto 15px; }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-title {
        font-size: 1.8rem !important;
    }
    .section-title {
        font-size: 2rem !important;
    }
    .hero-badge {
        font-size: 0.8rem;
    }
    .product-title {
        font-size: 1.2rem;
    }
    .price {
        font-size: 1.4rem;
    }
}

/* ================ ТЁМНАЯ ТЕМА ================ */
body.dark-theme {
    --primary: #5D9B9B;
    --primary-light: #6BA5A5;
    --primary-dark: #4A7A7A;
    --secondary: #1E2A3A;
    --accent: #7BA5A5;
    --text-dark: #E8EDF2;
    --text-light: #A8B5C2;
    --text-white: #FFFFFF;
    --bg-white: #1A2533;
    --bg-light: #121C28;
    --bg-gradient: linear-gradient(135deg, #1E3A3A 0%, #1A2A3A 50%, #121C28 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    background-color: #121C28;
}

body.dark-theme .navbar {
    background: rgba(18, 28, 40, 0.95);
    backdrop-filter: blur(10px);
}

body.dark-theme .product-card,
body.dark-theme .photo-card,
body.dark-theme .contact-card,
body.dark-theme .step,
body.dark-theme .contact-form,
body.dark-theme .cart-sidebar,
body.dark-theme .cart-item,
body.dark-theme .quality-card,
body.dark-theme .gallery-item {
    background: #1A2533;
    color: var(--text-dark);
}

body.dark-theme .filter-btn {
    background: #1A2533;
    color: var(--text-dark);
    border-color: #3A5A5A;
}

body.dark-theme .filter-btn:hover,
body.dark-theme .filter-btn.active {
    background: #3A5A5A;
    color: white;
}

body.dark-theme .hero-badge {
    background: #1A2533;
    color: var(--text-dark);
}

body.dark-theme .hero-title,
body.dark-theme .section-title,
body.dark-theme .product-title,
body.dark-theme .about-intro h3,
body.dark-theme .step-content h3 {
    color: var(--text-dark);
}

body.dark-theme .hero-subtitle,
body.dark-theme .section-subtitle,
body.dark-theme .product-description,
body.dark-theme .step-content p,
body.dark-theme .contact-details p {
    color: var(--text-light);
}

body.dark-theme .quality-icon {
    background: #2A3A3A;
    color: #5D9B9B;
}

body.dark-theme .btn-primary {
    background: #2A3A3A;
    color: var(--primary-light);
}

body.dark-theme .btn-primary:hover {
    background: #3A5A5A;
    color: white;
}

body.dark-theme .btn-secondary {
    border-color: #5D9B9B;
    color: #5D9B9B;
}

body.dark-theme .btn-secondary:hover {
    background: #5D9B9B;
    color: #121C28;
}

body.dark-theme .footer {
    background: #0E1620;
}

body.dark-theme .footer-links a:hover {
    color: #5D9B9B;
}

body.dark-theme .form-group input,
body.dark-theme .form-group select,
body.dark-theme .form-group textarea {
    background: #121C28;
    color: var(--text-dark);
    border-color: #2A3A3A;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group select:focus,
body.dark-theme .form-group textarea:focus {
    border-color: #5D9B9B;
    box-shadow: 0 0 0 3px rgba(93, 155, 155, 0.2);
}

body.dark-theme .btn-submit,
body.dark-theme .btn-checkout {
    background: #3A5A5A;
}

body.dark-theme .btn-submit:hover,
body.dark-theme .btn-checkout:hover {
    background: #4A6F6F;
}

body.dark-theme .hero-stats .stat-number,
body.dark-theme .hero-stats .stat-label {
    color: var(--text-dark);
}

body.dark-theme .cta-card {
    background: linear-gradient(135deg, #2A3A3A, #1A2533);
}

body.dark-theme .cta-card h3,
body.dark-theme .cta-card p {
    color: var(--text-dark);
}

body.dark-theme .photo-badge,
body.dark-theme .product-badge {
    background: #5D9B9B;
    color: white;
}

body.dark-theme .price {
    color: #5D9B9B;
}

body.dark-theme .old-price {
    color: #7A8A9A;
}

body.dark-theme .step-icon {
    background: #2A3A3A;
    color: #5D9B9B;
}

body.dark-theme .step-number {
    background: #5D9B9B;
}

body.dark-theme .cart-header,
body.dark-theme .cart-footer {
    border-color: #2A3A3A;
}

body.dark-theme .quantity-btn {
    border-color: #5D9B9B;
    color: #5D9B9B;
    background: #1A2533;
}

body.dark-theme .quantity-btn:hover {
    background: #5D9B9B;
    color: #1A2533;
}

body.dark-theme .remove-item:hover {
    color: #7A8A9A;
}

body.dark-theme .contact-icon.telegram {
    background: linear-gradient(135deg, #1E6A8A, #1E4A6A);
}

body.dark-theme .contact-icon.email {
    background: linear-gradient(135deg, #8A4A3A, #6A2A1A);
}

body.dark-theme .contact-icon.clock {
    background: linear-gradient(135deg, #2A6A4A, #1A4A3A);
}

body.dark-theme .modal-content {
    background: #1A2533;
}

body.dark-theme .modal-content h3 {
    color: var(--text-dark);
}

body.dark-theme .modal-content p {
    color: var(--text-light);
}

body.dark-theme .notification {
    background: #1A2533;
    color: var(--text-dark);
}

body.dark-theme .products,
body.dark-theme .gallery,
body.dark-theme .order,
body.dark-theme .hero,
body.dark-theme .section {
    background-color: transparent;
}
