@font-face {
    font-family: 'Montserrat-Variable';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #7e93f1;
    --accent-color: #4a4950de;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e8ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
        "Ubuntu", "Cantarell", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
}

.logo {
    display: flex;
}

.logo_img {
    width: 50px;
    height: 100%;
    margin-right: 6px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
}

.brand {
    font-family: Montserrat-Variable, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.lang-switcher:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-lang-switcher {
    display: none;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: Montserrat-Variable, sans-serif;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    /* background-color: var(--primary-color); */
    /* 1. Делаем цвет полупрозрачным (белый или темный, зависит от темы) */
    background-color: rgba(255, 255, 255, 0.7);
    /* 2. Эффект размытия заднего плана */
    -webkit-backdrop-filter: blur(10px);
    /* Для поддержки Safari */
    backdrop-filter: blur(5px);
    /* 3. Тонкая светлая граница для эффекта грани стекла */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow: var(--shadow);
    padding: 20px;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
}

/* About Section */
.about-section {
    padding: 0px 0px 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.banner {
    font-family: Montserrat-Variable, sans-serif;
}

.banner-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-bottom: 30px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg,
            var(--secondary-color) 0%,
            var(--accent-color) 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.banner-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(107, 156, 209, 0.274) 0%,
            rgba(74, 124, 167, 0.288) 100%);
    z-index: 2;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: var(--primary-color);
    padding: 20px;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 10px rgba(20, 20, 20, 0.219);
}

.banner-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 20px;
    font-weight: 300;
}

/* .banner-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
} */

/* .indicator.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
} */

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* How to Order Section */
.how-to-order-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

.how-to-order-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.how-to-order-image {
    flex: 0 0 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.how-to-order-image img {
    width: 85%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

.how-to-order-text {
    flex: 1;
}

.how-to-order-text h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.order-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.order-steps li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
}

.order-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.order-steps li strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Catalog Section */
.catalog-section {
    padding: 60px 0;
    min-height: 80vh;
}

.section-title {
    font-family: Montserrat-Variable, sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.1);
}

/* Filters */
.filters-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.accordion {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--primary-color);
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-btn:hover {
    background-color: #f8f9fa;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-btn.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.filter-options {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* Brands */
.brands-container {
    margin-bottom: 50px;
}

.brands-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.brand-item {
    padding: 20px;
    background-color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-dark);
}

.brand-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    overflow: hidden;
}

.product-image img {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(0.95);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-id {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.order-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #6c84ee48;
    color: #2c3e50;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 18px;
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 40px auto;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px;
}

.load-more-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-dark);
}

.order-modal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
}

.order-modal-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.order-modal-product {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

.order-modal-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.order-modal-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.order-modal-volume {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.order-modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.order-modal-product-name {
    font-weight: 600;
    color: var(--accent-color);
}

.order-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.1);
}

.form-success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.order-submit-btn {
    background-color: #9b7ed8;
    color: var(--primary-color);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

.order-submit-btn:hover {
    background-color: #8a6bc7;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 50px 0 20px;
    margin-top: 80px;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-section p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 
.social-link {
  padding: 8px 15px;
  background-color: var(--primary-color);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.3s ease;
} */

.social-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.soc_ico {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    /* text-align: center; */
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

.author {
    margin-left: auto;
}

.author a {
    color: var(--accent-color);
    font-weight: 200;
    font-size: small;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
    }

    .mobile-lang-switcher {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .banner-content h2 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-slider {
        height: 50vh;
        min-height: 350px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .order-modal-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .order-modal-layout {
        gap: 20px;
    }

    .order-modal-product {
        display: flex;
        /* flex-direction: column; */
        align-items: center;
        gap: 15px;
    }

    .order-modal-image-wrapper {
        align-items: center;
        width: 25%;
    }

    .order-modal-image {
        width: 100%;
        max-width: 250px;
    }

    .order-modal-volume {
        margin-top: 10px;
        text-align: center;
    }

    .order-modal-description {
        font-size: 14px;
        text-align: center;
    }

    .how-to-order-content {
        flex-direction: column;
        gap: 40px;
    }

    .how-to-order-image {
        flex: none;
        order: 2;
        max-width: 100%;
    }

    .how-to-order-image img {
        max-width: 400px;
    }

    .how-to-order-text {
        order: 1;
    }

    .how-to-order-text h3 {
        font-size: 26px;
    }

    .order-steps li {
        font-size: 16px;
        padding-left: 50px;
    }

    .order-steps li::before {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo_img {
        width: 40px;
        height: 100%;
        margin-right: 6px;
    }

    .logo h1 {
        display: flex;
        align-items: center;
        font-size: 18px;
        font-weight: 400;
    }

    .logo h1 {
        font-size: 18px;
    }

    .banner-slider {
        height: 40vh;
        min-height: 300px;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        font-size: 16px;
    }

    .how-to-order-image {
        max-width: 100%;
    }

    .how-to-order-image img {
        max-width: 300px;
    }

    .how-to-order-text h3 {
        font-size: 22px;
    }

    .order-steps li {
        font-size: 15px;
        padding-left: 45px;
    }

    .order-steps li::before {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}