:root {
    /* Цветовая схема */
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #2ecc71;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    
    --text-color: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #bdc3c7;
    
    --bg-color: #ecf0f1;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-header: #e74c3c;
    
    --border-color: #d5dbdb;
    --border-light: #e5e8e8;
    
    /* Тени и эффекты */
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-hover: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --radius: 10px;
    --transition: all 0.2s ease-in-out;
    
    --cart-icon: url(data:image/svg+xml,%3Csvg%20width%3D%2217%22%20height%3D%2216%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.925.488a.833.833%200%200%200-1.517.691l4.295%209.416v.001c.005.008.023.05.046.09a.9.9%200%200%200%20.979.446c.045-.01.089-.023.098-.026l6.22-1.853.105-.031c.44-.13.867-.256%201.201-.523.29-.232.517-.535.657-.88.16-.396.159-.842.158-1.3V4.105c0-.01%200-.06-.004-.11a.901.901%200%200%200-.488-.73.9.9%200%200%200-.447-.098H4.147L2.925.487ZM11.833%2012a1.333%201.333%200%200%200%200%202.667h.007a1.333%201.333%200%200%200%200-2.667h-.007ZM3.167%2013.334c0-.737.597-1.334%201.333-1.334h.007a1.333%201.333%200%200%201%200%202.667H4.5a1.333%201.333%200%200%201-1.333-1.333Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-icon__white {
    -webkit-mask-position: 50%;
    mask-position: 50%;
    -webkit-mask-size: 16px;
    mask-size: 16px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: var(--cart-icon);
    mask-image: var(--cart-icon);
    background-color: #fff;
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

/* Шапка */
.header {
    background: var(--bg-header);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.logo span {
    color: #fff;
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-mob {
    display: none;
}

.nav__link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.nav__link:hover {
    text-decoration: underline;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-icon i {
    font-size: 24px;
    color: #fff;
    transition: var(--transition);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    padding: 24px;
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu__link {
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-menu__link:hover {
    color: var(--primary-color);
}

.mobile-menu__link:last-child {
    border-bottom: none;
}

.mobile-cart {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-cart:hover {
    color: var(--primary-color);
}

.mobile-cart i {
    margin-right: 8px;
    font-size: 20px;
}

.mobile-cart-count {
    margin: 0 8px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
}

/* Основное содержимое */
.main {
    flex: 1;
    padding-top: 80px;
    background: linear-gradient(rgba(248, 249, 250, 0.8), rgba(248, 249, 250, 0.9)), url(images/bg.jpg);
}

/* Герой */
.hero {
    color: #000;
    padding: 60px 0;
    text-align: center;
}

.hero .container {
    background-size: cover;
    padding: 50px 0;
    max-width: 1230px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(115, 163, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(115, 163, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.hero .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #73ff73, #fc5757);
}

.hero__title {
    text-align: center;
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #e74c3c, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Секции */
.section {
    padding: 10px 0;
}

.section__title {
    text-align: center;
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #e74c3c, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c, #2ecc71);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* О магазине */
.about__content {
    margin: 0 auto;
    margin-top: 35px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(115, 163, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(115, 163, 255, 0.1);
    overflow: hidden;
    position: relative;
    padding: 40px 20px;
}

.about__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #73ff73, #fc5757);
}

.about__content p {
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
}

/* Реквизиты */
.company-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.details-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.details-header h3 {
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #73ff73, #fc5757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #73ff73, #fc5757);
    margin: 0 auto;
    border-radius: 2px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(115, 163, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(115, 163, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #73ff73, #fc5757);
}

.detail-card:hover {
    box-shadow: 0 12px 40px rgba(115, 163, 255, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #73ff73, #fc5757);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.card-header h4 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content {
    padding: 1rem;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.company-details-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.director {
    color: var(--text-secondary);
    font-weight: 500;
}

.basis {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.address-line {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-row, .contact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child, .contact-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.label, .contact-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 140px;
    font-size: 0.9rem;
}

.value {
    color: var(--text-color);
    text-align: right;
    flex: 1;
    font-weight: 500;
}

.account {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    background: var(--primary-bg);
    padding: 0.5rem;
    border-radius: 6px;
    word-break: break-all;
}

.contact-link {
    color: #73ff73;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.contact-link:hover {
    color: #fc5757;
}

/* Каталог */
.catalog__filters {
    margin-bottom: 24px;
    display: flex;
    justify-content: left;
    align-items: center;
}

.catalog__filters-ico {
    width: 40px;
    height: 40px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(115, 163, 255, 0.15);
}

.product-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card__content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.product-card__description {
    color: #3f2525;
    font-size: 14px;
    margin-bottom: 12px;
    flex-grow: 1;
}

.product-card__price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.product-card__btn {
    margin-right: 10px;
}

a.product-card__btn {
    text-decoration: none;
    width: 100%;
}

.product-btn_wrapper {
    display: flex;
    justify-content: center;
}

/* Подвал */
.footer {
    color: #242424;
    background-color: rgba(211, 212, 221, .24);
    padding: 24px 0 24px;
    margin-top: auto;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 5px;
}

.footer__title {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer__links {
    list-style: none;
}

.footer__link {
    color: var(--footer-text);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.footer__contacts {
    list-style: none;
}

.footer__contacts li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.footer__contacts i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer__bottom {
    padding-top: 16px;
    color: var(--footer-text);
    font-size: 13px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    overflow-y: auto;
    padding: 16px;
}

.modal__content {
    background-color: #fff;
    margin: 40px auto;
    max-width: 800px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    padding: 24px;
    animation: modalFadeIn 0.3s ease;
}

#cart-modal.modal {
    padding: 0px !important;
}

#cart-modal .modal__content {
    max-width: 500px;
    height: 100%;
    margin: 0 0 0 auto !important;
    border-radius: 0;
}

#order-modal .modal__content {
    max-width: 500px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--text-color);
}

.modal__title {
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
}

/* Модальное окно товара */
.product-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product-modal__images {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-modal__main-image,
.product-modal__certificate {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.product-modal__main-image img,
.product-modal__certificate img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.zoom-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.zoom-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.product-modal__info {
    display: flex;
    flex-direction: column;
}

.product-modal__title {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.product-modal__price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.product-modal__form {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-modal__section {
    margin-bottom: 16px;
}

.product-modal__section-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.expandable-content {
    position: relative;
}

.content-preview {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.content-preview.expanded {
    max-height: 1000px;
}

.content-preview:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    display: none;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.expand-btn:hover {
    text-decoration: underline;
}

.product-modal__actions {
    margin-top: auto;
    padding-top: 16px;
}

/* Модальное окно изображения */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    padding: 16px;
}

.image-modal__close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.image-modal__close:hover {
    color: var(--primary-color);
}

.image-modal__content {
    max-width: 95%;
    max-height: 95%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Корзина */
.cart-items {
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item__info {
    flex-grow: 1;
}

.cart-item__name {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 15px;
}

.cart-item__price {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.cart-item__quantity {
    display: flex;
    align-items: center;
    margin: 0 16px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-value {
    width: 36px;
    text-align: center;
    font-size: 14px;
}

.cart-item__remove {
    color: var(--text-light);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item__remove:hover {
    color: var(--secondary-color);
}

.cart-total {
    text-align: right;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}

.cart-total span {
    color: var(--primary-color);
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Формы */
.order-form {
    max-width: 450px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.form-group input::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Валидация форм */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 1px var(--error-color);
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus,
.form-group select.invalid:focus {
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.2);
}

.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.checkbox-group label {
    margin-bottom: 0px !important;
}

.checkbox-group input {
    width: auto;
    margin-right: 8px;
}

.policy-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.policy-link:hover {
    text-decoration: underline;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 16px;
    right: 16px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 4000;
    max-width: 350px;
    font-size: 14px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 992px) {
    .product-modal {
        grid-template-columns: 1fr;
    }

    .product-modal__images {
        order: 2;
    }

    .product-modal__info {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .nav-mob {
        display: flex;
    }
    
    .nav-mob .cart-icon {
        margin-right: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: 10px 0;
    }

    .section__title {
        font-size: 28px;
    }

    .hero {
        padding: 64px 0 44px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .details-header h3 {
        font-size: 1.8rem;
    }
    
    .info-row, .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .value {
        text-align: left;
    }
    
    .label, .contact-label {
        min-width: auto;
    }

    .product-btn_wrapper {
        flex-direction: column;
    }
    .product-card__btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero .btn {
        width: 90%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item__quantity {
        margin: 8px 0;
    }

    .cart-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .modal__content {
        padding: 16px;
    }
}

/* Логотип и название в шапке */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto; /* чтобы сдвинуть навигацию вправо */
}

.header-logo {
    height: 40px;
    margin-right: 10px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2ecc71;
}

.logo span {
    color: #2ecc71; /* или ваш цвет акцента */
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .header-logo {
        height: 30px;
    }
    .logo {
        font-size: 18px;
    }
}

/* Стили для кнопок в карточке товара */
.product-btn_wrapper {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-card .details-btn {
    background-color: #e74c3c; /* Красный */
    border: 1px solid #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    flex: 1;
}

.product-card .details-btn:hover {
    background-color: #c0392b;
}

.product-card .add-to-cart-btn {
    background-color: #2ecc71; /* Зеленый */
    border: 1px solid #2ecc71;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    flex: 1;
}

.product-card .add-to-cart-btn:hover {
    background-color: #27ae60;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .product-btn_wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-card .details-btn,
    .product-card .add-to-cart-btn {
        width: 100%;
        padding: 10px;
    }
}