* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
:root {
--primary-color: #f5f5f5;       
--secondary-color: #ffffff;     
--accent-color: #d34333;        
--accent-secondary: #FDEAEC;    
--text-color: #2C3E50;          
--text-secondary: #566573;
--border-color: #D5DBDB;        

    --shadow-color: rgba(0, 0, 0, 0.05);
    --font-size-large: 48px;
    --font-size-medium: 24px;
    --font-size-small: 16px;
    --padding-large: 80px;
    --padding-medium: 60px;
    --padding-small: 30px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}
/* Custom Scrollbar Styles */
html, body {
    scrollbar-color: var(--accent-color) var(--primary-color); 
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 8px; 
    height: 8px; 
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
    background: var(--primary-color); 
    border-radius: 4px; 
}

html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
    background: var(--accent-color); 
    border-radius: 4px; 
    transition: background 0.3s ease; 
}

html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
    background: #c0392b; 
}


body {
    overflow-y: auto; 
    overflow-x: hidden; 
}
body {
    color: var(--text-color);
    background-color: var(--primary-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;

}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-small);
}
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border: none;
    margin: 15px auto 30px;
}
.navbar {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 1000;
    padding: var(--padding-small) 0;
    transition: background 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}
.logo {
    width: 60px;
    height: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}
.logo-text {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}
.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}
a{
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
}
.menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}
.menu li a:hover::after {
    width: 100%;
}
.menu li a:hover {
    color: var(--accent-color);
}

.primary-button {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;

}
.primary-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);

}
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}
.menu-icon {
    width: 30px;
    height: auto;
}
.mobile-menu {
    display: none;
}
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../pictures/head_back2.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--padding-large) 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.contact-form label::after {
    content: '';
    color: #ff0000; /* Для звёздочки */
}
.contacts-hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('assets/pictures/contacts/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--padding-large) 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.contacts-hero h1 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.contacts-hero .subtitle {
    font-size: var(--font-size-medium);
    max-width: 800px;
    margin: 0 auto;
}
.contacts-section {
    padding: var(--padding-medium) 0;
}
.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.contacts-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: var(--transition);
}
.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
}
.contact-item .icon {
    width: 40px;
    height: 40px;
}
.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}
.contact-item p {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}
.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.contact-item a:hover {
    text-decoration: underline;
}
.contacts-info .social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}
.contact-form-container h2 {
    font-size: var(--font-size-medium);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.contact-form label {
    font-weight: 500;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 193, 127, 0.2);
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 768px) {
    .contacts-container {
        flex-direction: column;
    }
    .contact-details {
        grid-template-columns: 1fr;
    }
}

.catalog-hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('assets/pictures/catalog/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--padding-large) 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.catalog-hero h1 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.catalog-hero .subtitle {
    font-size: var(--font-size-medium);
    max-width: 800px;
    margin: 0 auto;
}
.catalog-section {
    padding: var(--padding-medium) 0;
}
.catalog-filter {
    margin-bottom: 40px;
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
}
.catalog-filter h2 {
    font-size: var(--font-size-medium);
    margin-bottom: 20px;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.filter-form label {
    font-weight: 500;
    font-size: var(--font-size-small);
}
.filter-form select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    min-width: 200px;
    background: var(--primary-color);
    transition: var(--transition);
}
.filter-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 193, 127, 0.2);
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.product-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px var(--shadow-color);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.product-info p {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.product-info ul {
    list-style: none;
    margin-bottom: 20px;
}
.product-info ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}
.product-info ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}
.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.card-button, .order-button {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-button {
    background: var(--accent-color);
    color: var(--primary-color);
}
.card-button:hover {
    background: #f55b5b;
}
.order-button {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    cursor: pointer;
}
.order-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.pagination-link {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}
.pagination-link:hover, .pagination-link.active {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--accent-color);
}
.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-form label {
    font-weight: 500;
}
.order-form input, .order-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    transition: var(--transition);
}
.order-form input[readonly] {
    background: var(--secondary-color);
    cursor: default;
}
.order-form input:focus, .order-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 193, 127, 0.2);
}
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-form select, .filter-form button {
        width: 100%;
    }
    .product-actions {
        flex-direction: column;
    }
    .card-button, .order-button {
        width: 100%;
    }
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
}
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.hero-text h1 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.subtitle {
    font-size: var(--font-size-medium);
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('assets/pictures/blog/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--padding-large) 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.blog-hero h1 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.blog-hero .subtitle {
    font-size: var(--font-size-medium);
    max-width: 800px;
    margin: 0 auto;
}
.blog-section {
    padding: var(--padding-medium) 0;
}
.blog-filter {
    margin-bottom: 40px;
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
}
.blog-filter h2 {
    font-size: var(--font-size-medium);
    margin-bottom: 20px;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.filter-form label {
    font-weight: 500;
    font-size: var(--font-size-small);
}
.filter-form select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    min-width: 200px;
    background: var(--primary-color);
    transition: var(--transition);
}
.filter-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 193, 127, 0.2);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.blog-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px var(--shadow-color);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 1;
}
.blog-info {
    padding: 20px;
}
.blog-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}
.blog-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.blog-excerpt {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.card-button {
    background: var(--accent-color);
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.pagination-link {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}
.pagination-link:hover, .pagination-link.active {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--accent-color);
}
.newsletter-section {
    padding: var(--padding-medium) 0;
    background: var(--accent-secondary);
    text-align: center;
}
.newsletter-section p {
    font-size: var(--font-size-small);
    max-width: 600px;
    margin: 0 auto 20px;
}
.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form label {
    font-weight: 500;
    width: 100%;
}
.newsletter-form input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    width: 100%;
    max-width: 300px;
    transition: var(--transition);
}
.newsletter-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 193, 127, 0.2);
}
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-form select, .filter-form button {
        width: 100%;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form input, .newsletter-form button {
        max-width: 100%;
    }
}
.hero-actions {
    display: flex;
    gap: 20px;
}
.secondary-button {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.secondary-button:hover {
    background: #fff;
    color: var(--text-color);
}
.about-section, .products-section, .advantages-section, .reviews-section, .cta-section {
    padding: var(--padding-medium) 0;
    position: relative;
}
h2 {
    font-size: var(--font-size-medium);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.blog-post-hero {
    background-size: cover;  /* Измените на cover, если используете inline без contain */
    background-position: center;
    padding: var(--padding-large) 0;
    text-align: center;
    color: #fff;
    position: relative;
    background-repeat: no-repeat;
    overflow: hidden;  /* Добавьте, чтобы избежать обрезания при размытии */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;  /* Фон под overlay */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);  /* Полупрозрачный чёрный overlay для затемнения */
    backdrop-filter: blur(8px);  /* Размытие фона за overlay. Поддержка: современные браузеры (Chrome, Safari, Firefox) */
    z-index: 2;  /* Overlay над фоном */
}

.hero-content {
    position: relative;
    z-index: 3;  /* Контент над всем */
}

.blog-post-hero h1 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-post-hero .blog-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-post-hero .blog-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 14px;
}
.blog-post-section {
    padding: var(--padding-medium) 0;
}
.post-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
}
.post-content {
    margin: 0 auto 30px;
    font-size: var(--font-size-small);
    line-height: 1.8;
}
.post-content p {
    margin-bottom: 20px;
}
.post-content h2, .post-content h3 {
    margin: 20px 0 10px;
}
.admin-section {
    padding: var(--padding-medium) 0;
}
.admin-form {
    display: flex;
    flex-direction: column;
    margin: auto;
    gap: 15px;
    max-width: 600px;
    margin-bottom: 40px;
}
.admin-form label {
    font-weight: 500;
}
.admin-form input, .admin-form textarea, .admin-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    transition: var(--transition);
}
.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 193, 127, 0.2);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.admin-table th, .admin-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}
.admin-table th {
    background: var(--secondary-color);
    font-weight: 600;
}
.admin-table a {
    color: var(--accent-color);
    text-decoration: none;
    margin-right: 10px;
}
.admin-table a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .admin-table {
        font-size: 14px;
    }
    .admin-table th, .admin-table td {
        padding: 8px;
    }
}

.product-hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('assets/pictures/catalog/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--padding-large) 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.product-hero h1 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.product-hero .subtitle {
    font-size: var(--font-size-medium);
}
.product-section {
    padding: var(--padding-medium) 0;
}
.product-content {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}
.product-image {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    object-fit: cover;
}
.product-details {
    flex: 1;
}
.product-details h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.product-details p {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.product-details ul {
    list-style: none;
    margin-bottom: 20px;
}
.product-details ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}
.product-details ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}
@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
    }
    .product-image {
        max-width: 100%;
    }
}
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.about-hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    background-size: cover;
    background-position: center;
    padding: var(--padding-large) 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.about-hero h1 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}
.about-text {
    flex: 1;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px var(--shadow-color);
}
.quality-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}
.quality-badges img {
    width: 50px;
    height: auto;
    filter: grayscale(100%);
    transition: var(--transition);
}
.quality-badges img:hover {
    filter: grayscale(0%);
}
.mission-section {
    padding: var(--padding-medium) 0;
    background: var(--secondary-color);
    text-align: center;
}
.mission-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--font-size-small);
}
.cta-contact {
    margin: 20px 0;
    font-size: var(--font-size-small);
}
.cta-contact p {
    margin-bottom: 10px;
}
.cta-contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.error-section {
    padding: var(--padding-large) 0;
    text-align: center;
}
.error-content h1 {
    font-size: 120px;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.error-content h2 {
    font-size: var(--font-size-medium);
    margin-bottom: 20px;
}
.error-content p {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}
.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}
.error-suggestions {
    max-width: 600px;
    margin: 0 auto;
}
.error-suggestions h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.error-suggestions ul {
    list-style: none;
}
.error-suggestions li {
    margin-bottom: 10px;
}
.error-suggestions a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}
.error-suggestions a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .about-image img {
        height: 200px;
    }
    .error-actions {
        flex-direction: column;
        gap: 15px;
    }
    .error-actions a, .error-actions button {
        width: 100%;
    }
}

.stat h3 {
    font-size: 42px;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.stat p {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px var(--shadow-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover img {
    transform: scale(1.05);
}
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.product-info ul {
    list-style: none;
    margin-bottom: 20px;
    color: var(--text-secondary);
}
.product-info ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.product-info ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}


.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.advantage-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px var(--shadow-color);
    transition: var(--transition);
}
.advantage-card:hover {
    transform: translateY(-5px);
}
.icon {
    width: 60px;
    margin-bottom: 20px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}
.advantage-card:hover .icon {
    filter: brightness(1);
}
.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.cta-section {
    background: var(--accent-secondary);
    color: var(--text-color);
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.cta-content {
    position: relative;
    z-index: 1;
}
.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}
.cta-content p {
    font-size: 18px;
    margin-bottom: 25px;
}
.cta-button {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: none;
    max-width: 400px;
    margin: auto;
}
.cta-button:hover {
    background: #f55b5b;
    transform: translateY(-3px);
}
.reviews-section {
    background: var(--secondary-color);
}
.reviews-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}
.review {
    flex: 0 0 320px;
    background: var(--primary-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px var(--shadow-color);
    position: relative;
    transition: var(--transition);
}
.review:hover {
    transform: translateY(-5px);
}
.review::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 40px;
    color: var(--accent-color);
    opacity: 0.3;
}
.review p {
    font-style: italic;
    margin-bottom: 15px;
}

.review span {
    display: block;
    text-align: right;
    color: var(--text-secondary);
    font-weight: 500;
}
.contacts-section {
    padding: var(--padding-medium) 0;
}
.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.contacts-info, .map {
    flex: 1;
    min-width: 300px;
}
.contacts-info p {
    margin-bottom: 15px;
    font-size: var(--font-size-small);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}
.contact-form label {
    font-weight: 500;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 193, 127, 0.2);
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.footer {
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding: var(--padding-medium) 0;
    margin-top: auto;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.city-select {
    display: flex;
    align-items: center;
    gap: 10px;
}
.city-select svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}
.city-dropdown {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    font-size: var(--font-size-small);
    cursor: pointer;
}
.footer-contact {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}
.phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}
.social-links img {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}
.social-links a:hover img {
    transform: scale(1.1);
}
.footer-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}
.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: var(--transition);
}

.custom-product-card {
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);

}



.custom-product-card .product-info h3 {
    font-size: var(--font-size-medium);
}






.footer-nav a:hover {
    color: var(--accent-color);
}
.copyright {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
}
.modal {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 700px;
    width: 90%;
    background: var(--primary-color);
    padding: 0;
}

/* Центрируем <dialog class="modal"> посередине экрана */
dialog.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-height: calc(100vh - 40px);
}
.modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}
.modal-content {
    
    padding: var(--padding-small);
    position: relative;
}
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.close-button img {
    width: 20px;
    height: 20px;
}

.close-button:hover {
    transform: scale(1.1);
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
/* Hero sections for non-main pages */
.catalog-hero,
.about-hero,
.contacts-hero,
.blog-hero,
.product-hero,
.blog-post-hero {
    background: linear-gradient(to bottom, #fee8e8, #faf8f8);
    padding: var(--padding-large) 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Overlay for text readability */
.catalog-hero::before,
.about-hero::before,
.contacts-hero::before,
.blog-hero::before,
.product-hero::before,
.blog-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Slightly darker for contrast */
    z-index: 1;
}

/* Hero content and text styles */
.catalog-hero h1,
.about-hero h1,
.contacts-hero h1,
.blog-hero h1,
.product-hero h1,
.blog-post-hero h1 {
    font-size: var(--font-size-large);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.catalog-hero .subtitle,
.about-hero .subtitle,
.contacts-hero .subtitle,
.blog-hero .subtitle,
.product-hero .subtitle {
    font-size: var(--font-size-medium);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Blog-post-hero specific styles */
.blog-post-hero .hero-background {
    display: none; /* Remove inline background image */
}

.blog-post-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.blog-post-hero .hero-content {
    position: relative;
    z-index: 3;
}

.blog-post-hero .blog-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
}

.blog-post-hero .blog-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 14px;
    position: relative;
    z-index: 3;
}
.modal-card {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.modal-card:hover {
    box-shadow: 0 4px 15px rgba(252, 193, 127, 0.1);
}
.modal-card img {
    width: 50px;
    margin-bottom: 15px;
}
.modal-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
.phone-link, .email-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
.divider hr {
    flex: 1;
    border-top: 1px solid var(--border-color);
}
.callback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.callback-form input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.callback-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 193, 127, 0.2);
}

.success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2000;
    box-shadow: 0 0 25px #28a745;
}
.success-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 992px) {
    .logo-text{
        display: none;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 768px) {
    :root {
        --font-size-large: 36px;
        --font-size-medium: 20px;
        --padding-large: 60px;
        --padding-medium: 40px;
        --padding-small: 20px;
    }
    .navbar-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .desktop-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-menu {
        display: none;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: var(--padding-small);
        box-shadow: 0 4px 10px var(--shadow-color);
        text-align: center;
    }
    .mobile-menu.active {
        display: flex;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .hero-actions button {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .contacts-container {
        flex-direction: column;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-nav ul {
        justify-content: center;
    }
    .zakaz_button{
        display: none;
    }
}
@media (max-width: 576px) {
    .reviews-carousel {
        flex-direction: column;
        overflow-x: visible;
    }
    .review {
        flex: 0 0 auto;
        width: 100%;
    }
}