/* Inter Font Face Declarations */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Inter-300-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Inter-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-400-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-500-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-600-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-700-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --secondary: #1E40AF;
    --accent: #0EA5E9;
    --dark: #0F172A;
    --dark-secondary: #1E293B;
    --gray: #64748B;
    --gray-light: #F1F5F9;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #2563EB 100%);
    --gradient-light: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--dark);
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.logo-text span {
    color: var(--primary-light);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-link:hover, .nav-link.active {
    background: var(--gradient-light);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-light);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-direction: column;
    gap: 10px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    text-align: center;
    padding: 15px;
}

/* Page Sections */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 70px;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--white);
    color: var(--dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    color: var(--white);
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.about-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.about-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.about-card p {
    color: var(--gray);
    font-size: 15px;
}

/* Company Info */
.company-info {
    background: var(--dark);
    padding: 80px 20px;
}

.company-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.company-text p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin-bottom: 20px;
}

.company-list {
    list-style: none;
    margin-top: 30px;
}

.company-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.company-list li:last-child {
    border-bottom: none;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

.company-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.visual-card {
    background: var(--dark-secondary);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.visual-card:first-child {
    grid-column: span 2;
    background: var(--gradient-light);
    color: var(--white);
    border: none;
}

.visual-card h4 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.visual-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.visual-card:first-child p {
    color: rgba(255,255,255,0.9);
}

/* Catalog Page */
.catalog-header {
    background: var(--gradient);
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.catalog-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.catalog-header p {
    font-size: 18px;
    opacity: 0.9;
}

.catalog-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}

.product-images {
    position: relative;
    height: 600px;
    background: var(--gray-light);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.product-main-image {
    width: 100%;
    /*height: 550px;*
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
    background: transparent;
    padding: 0;
    margin: 0;
    display: block;
}

.product-main-image-placeholder {
    width: 100%;
    /* height: 540px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    transition: opacity 0.3s ease;
}

.product-thumbnails {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.thumbnail {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active, .thumbnail:hover {
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.product-specs {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.product-spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.product-spec-item:last-child {
    margin-bottom: 0;
}

.spec-label {
    color: var(--gray);
    font-weight: 500;
}

.spec-value {
    color: var(--dark);
    font-weight: 600;
}

.product-description-btn {
    width: 100%;
    padding: 14px 32px;
    background: var(--gradient-light);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.product-description-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.product-desc {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-price-current {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.product-old-price {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-btn:hover {
    transform: scale(1.1);
}

.product-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Contacts Page */
.contacts-header {
    background: var(--gradient);
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.contacts-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contacts-header p {
    font-size: 18px;
    opacity: 0.9;
}

.contacts-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--gray);
    font-size: 15px;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-section {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--dark);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0,0,0,0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--white);
    color: var(--dark);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--gradient-light);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.smartcaptcha-container {
    margin-bottom: 20px;
}

/* Map */
.map-section {
    background: var(--gray-light);
    padding: 60px 20px;
}

.map-container {
    max-width: 1280px;
    margin: 0 auto;
}

.map-container h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark);
}

.map-placeholder {
    height: 400px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    color: var(--gray);
    border: 2px dashed rgba(37, 99, 235, 0.2);
}

.map-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.8;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .company-content {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .company-visual {
        grid-template-columns: 1fr;
    }

    .visual-card:first-child {
        grid-column: span 1;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page.active {
    animation: fadeIn 0.5s ease;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-light);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100001;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-images {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.modal-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--gray-light);
    margin-bottom: 15px;
}

.modal-main-image-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: var(--gray-light);
    border-radius: 12px;
    margin-bottom: 15px;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnail.active,
.modal-thumbnail:hover {
    border-color: var(--primary);
}

.modal-info {
    padding-right: 20px;
}

.modal-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.modal-specs {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.modal-specs h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.modal-spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.modal-spec-item:last-child {
    margin-bottom: 0;
}

.modal-description {
    margin-bottom: 30px;
}

.modal-description h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.modal-description p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.modal-old-price {
    font-size: 18px;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 10px;
}

.modal-buy-btn {
    padding: 14px 32px;
    background: var(--gradient-light);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

@media (max-width: 968px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .modal-images {
        position: relative;
        top: 0;
    }
    
    .modal-info {
        padding-right: 0;
    }
    
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-buy-btn {
        width: 100%;
    }
}

/* Order Form Modal */
.order-modal-content {
    max-width: 800px;
    background: var(--white);
}

.order-form-container {
    padding: 40px;
}

.order-form-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    text-align: center;
}

.order-form-container .form-group label {
    color: var(--dark);
}

.order-form-container .form-group input,
.order-form-container .form-group textarea {
    background: var(--white);
    color: var(--dark);
    border: 2px solid rgba(0,0,0,0.1);
}

.order-form-container .form-group input::placeholder,
.order-form-container .form-group textarea::placeholder {
    color: rgba(0,0,0,0.4);
}

.order-form-container .form-group input:focus,
.order-form-container .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.order-form-container .form-group input[readonly] {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
}

.order-form-container .form-group input[readonly]:focus {
    border-color: rgba(0,0,0,0.1);
    box-shadow: none;
}

/* Кнопка закрытия в форме заказа */
.order-modal-content .modal-close {
    background: rgba(0,0,0,0.1);
    color: var(--dark);
}

.order-modal-content .modal-close:hover {
    background: var(--primary);
    color: white;
}

/* Чекбокс согласия на обработку ПД */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
}

.consent-checkbox input[type="checkbox"]:checked {
    border-color: var(--primary);
}

.consent-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.consent-checkbox a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-checkbox a:hover {
    color: var(--primary-dark);
}

.consent-checkbox.error {
    color: #DC2626;
}

.consent-checkbox.error input[type="checkbox"] {
    border-color: #DC2626;
}

@media (max-width: 768px) {
    .order-form-container {
        padding: 30px 20px;
    }
    
    .order-form-container h2 {
        font-size: 24px;
    }
}

