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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f5f7fc;
    color: #1e293b;
    line-height: 1.4;
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.shop-header {
    background: white;
    border-bottom: 1px solid #e9eef3;
    padding: 20px 0;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    cursor: pointer;
}


.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    /* Убираем градиент, теперь будем раскрашивать span */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: inherit;
}

.logo .logo-blue {
    color: #1e4a6e; /* Синий */
}

.logo .logo-red {
    color: #dc2626; /* Красный */
}



.tagline {
    color: #5b6e8c;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.calc-link {
    background: #1e4a6e;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calc-link:hover {
    background: #0f3a56;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: 0.2s;
}

.cart-icon:hover {
    background: #e2e8f0;
}

.cart-count {
    background: #dc2626;
    color: white;
    border-radius: 30px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

/* Стили для страниц корзины, оформления, спасибо */
.cart-page,
.checkout-page,
.thankyou-page {
    background: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f8;
    margin-bottom: 48px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eef2f8;
    flex-wrap: wrap;
    align-items: center;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 16px;
}

.cart-item-info {
    flex: 2;
    min-width: 200px;
}

.cart-item-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-item-brand {
    color: #5b6e8c;
    font-size: 0.8rem;
}

.cart-item-price {
    font-weight: 600;
    color: #1f5e3a;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.quantity-btn {
    background: #eef2fa;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.quantity-btn:hover {
    background: #dce5f0;
}

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

.cart-item-subtotal {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e293b;
    min-width: 120px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    transition: 0.2s;
}

.cart-item-remove:hover {
    color: #b91c1c;
    transform: scale(1.1);
}

.cart-summary {
    margin-top: 30px;
    text-align: right;
    padding: 20px;
    background: #f8fafd;
    border-radius: 24px;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f5e3a;
}

.empty-cart {
    text-align: center;
    padding: 60px;
    color: #5b6e8c;
}

.checkout-btn,
.back-btn,
.submit-order,
.thankyou-btn {
    background: #1e4a6e;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.back-btn {
    background: #eef2fa;
    color: #1e4a6e;
}

.back-btn:hover {
    background: #e2e8f0;
}

.checkout-btn:hover,
.submit-order:hover,
.thankyou-btn:hover {
    background: #0f3a56;
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.checkout-form-group {
    margin-bottom: 20px;
}

.checkout-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.checkout-form-group input,
.checkout-form-group select,
.checkout-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dce3ec;
    border-radius: 16px;
    font-size: 1rem;
    transition: 0.2s;
}

.checkout-form-group input:focus,
.checkout-form-group select:focus {
    outline: none;
    border-color: #1e4a6e;
}

.delivery-fields {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafd;
    border-radius: 16px;
}

.warning-text {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 8px;
}

.install-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.install-checkbox input {
    width: auto;
}

.payment-methods {
    margin: 20px 0;
}

.payment-methods label {
    display: inline-block;
    margin-right: 20px;
}

.order-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f5e3a;
    margin: 20px 0;
    text-align: right;
}

.submit-order {
    width: 100%;
}

.thankyou-page {
    text-align: center;
    padding: 48px 24px;
}

.thankyou-page i {
    font-size: 4rem;
    color: #1f5e3a;
    margin-bottom: 24px;
}

.thankyou-page h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.thankyou-page p {
    margin-bottom: 12px;
    color: #2c3e50;
}

.thankyou-btn {
    margin-top: 24px;
}

/* Остальные стили каталога, фильтров, карточек, калькулятора и т.д. */
.main-layout {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
}

.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f8;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f2b3d;
}

.brand-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.brand-checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.series-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.series-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.price-range,
.area-range,
.btu-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.price-range input,
.area-range input,
.btu-range input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    font-size: 0.85rem;
    background: #fff;
}

.type-checkboxes {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.type-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.reset-filters {
    background: #f1f5f9;
    border: none;
    padding: 10px 0;
    width: 100%;
    border-radius: 40px;
    font-weight: 500;
    color: #1e4a6e;
    cursor: pointer;
    margin-top: 8px;
}

.reset-filters:hover {
    background: #e2e8f0;
}

.stock-filter {
    margin-bottom: 20px;
}

.stock-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.catalog-header-static {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
    background: transparent;
}

.search-box {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    min-width: 200px;
    background: white;
    border: 1px solid #dce3ec;
    border-radius: 40px;
    padding: 6px 16px;
}

.search-box i {
    color: #8ba0bc;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    background: transparent;
}

.sort-select {
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #dce3ec;
    background: white;
    font-weight: 500;
    cursor: pointer;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    flex: 1;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f8;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
    border-color: #cbdde9;
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
}

.card-content {
    padding: 18px;
    flex: 1;
}

.product-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-brand {
    color: #5b6e8c;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-series {
    font-size: 0.8rem;
    color: #2c7da0;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1f5e3a;
    margin: 10px 0 6px;
}

.product-area {
    font-size: 0.8rem;
    background: #f0f4fa;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    color: #2c3e66;
    margin-right: 8px;
}

.product-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    background: #eef2fa;
    color: #1e4a6e;
}

.product-type-badge.inverter {
    background: #d4edda;
    color: #155724;
}

.product-type-badge.onoff {
    background: #fff3cd;
    color: #856404;
}

.out-of-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

.add-to-cart-btn {
    background: #1e4a6e;
    color: white;
    border: none;
    padding: 10px 0;
    margin-top: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #0f3a56;
}

.add-to-cart-btn.disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.product-detail {
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f8;
}

.detail-img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 24px;
    margin-bottom: 24px;
}

.detail-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eef2f8;
    padding-bottom: 16px;
}

.detail-brand {
    color: #2c7da0;
    font-weight: 600;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1f5e3a;
    margin: 12px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 24px;
    background: #f8fafd;
    padding: 20px;
    border-radius: 24px;
    margin: 20px 0;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.spec-item i {
    width: 24px;
    color: #2c7da0;
    margin-top: 2px;
}

.spec-item strong {
    font-weight: 600;
    min-width: 130px;
}

.tooltip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    cursor: pointer;
    color: #2c7da0;
}

.tooltip-icon i {
    font-size: 0.85rem;
    width: auto;
    margin-top: 0;
}

.tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.75rem;
    font-weight: normal;
    white-space: normal;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:active .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.back-btn {
    background: #eef2fa;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #e2e8f0;
}

.calculator-section {
    background: white;
    border-radius: 28px;
    padding: 28px 32px;
    margin: 40px 0 48px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f8;
}

.calc-form {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0;
    align-items: flex-end;
}

.calc-field {
    flex: 1;
    min-width: 130px;
}

.calc-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid #dce3ec;
    background: #fff;
}

.calc-btn {
    background: #1e4a6e;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

.calc-result {
    background: #eef2fc;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.recommendations-container {
    margin-top: 16px;
}

.matching-models {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 4px 12px 4px;
}

.match-badge {
    background: white;
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid #cbdde9;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.match-badge:hover {
    background: #eef2fa;
    border-color: #1e4a6e;
}

.load-more-btn {
    background: #f0f4fa;
    border: 1px solid #cbdde9;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1e4a6e;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.load-more-btn:hover {
    background: #e2e8f0;
}

.load-more-btn.hidden {
    display: none;
}

.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1e4a6e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    font-size: 1.4rem;
}

.go-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.go-top:hover {
    background: #0f3a56;
    transform: translateY(-3px);
}

.mobile-filters-toggle {
    display: none;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 60px;
    font-weight: 500;
    margin-bottom: 20px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.loading {
    text-align: center;
    padding: 60px;
    font-size: 1.2rem;
    color: #5b6e8c;
}

/* Кнопка "Подтвердить" рядом с телефоном */
.btn-verify {
    background: #1e4a6e;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-verify:hover {
    background: #0f3a56;
}

.btn-verify:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

/* Компактная синяя кнопка "Проверить" */
.btn-primary-small {
    background: #1e4a6e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-primary-small:hover {
    background: #0f3a56;
}

.btn-primary-small:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

/* Кнопка-ссылка "Отправить повторно" */
.btn-link {
    background: none;
    border: none;
    color: #1e4a6e;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: #0f3a56;
}

.btn-link:disabled {
    color: #a0aec0;
    cursor: not-allowed;
    text-decoration: none;
}

/* Блок статуса кода (warning-text уже есть) */
#codeStatus {
    font-size: 0.85rem;
}

/* Обновлённая кнопка "Подтвердить" — более заметный синий */
.btn-verify {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(44, 125, 160, 0.2);
}
.btn-verify:hover {
    background: #1e6b8c;
    box-shadow: 0 4px 8px rgba(44, 125, 160, 0.3);
}
.btn-verify:disabled {
    background: #a0aec0;
    box-shadow: none;
    cursor: not-allowed;
}
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    animation: shake 0.3s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Мобильная адаптация для страниц корзины и оформления */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .cart-page,
    .checkout-page,
    .thankyou-page {
        padding: 16px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding: 16px 0;
    }

    .cart-item-img {
        width: 80px;
        height: 80px;
        margin-bottom: 8px;
    }

    .cart-item-info {
        width: 100%;
        min-width: auto;
    }

    .cart-item-subtotal {
        text-align: left;
        width: 100%;
        font-size: 1rem;
        margin-top: 8px;
    }

    .cart-item-remove {
        position: absolute;
        top: 16px;
        right: 0;
        font-size: 1.2rem;
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .cart-summary {
        text-align: center;
        padding: 16px;
    }

    .checkout-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-icon {
        align-self: stretch;
        justify-content: center;
    }

    .submit-order {
        padding: 14px;
        font-size: 1rem;
    }

    .order-total {
        text-align: center;
        font-size: 1.2rem;
    }

    .checkout-form-group input,
    .checkout-form-group select {
        padding: 14px;
        font-size: 1rem;
    }

    .delivery-fields {
        padding: 12px;
    }

    /* Остальные мобильные стили из оригинального файла (фильтры и т.д.) */
    .tooltip-text {
        width: 200px;
        bottom: auto;
        top: 125%;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .main-layout {
        flex-direction: column;
        gap: 16px;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
        display: none;
        margin-bottom: 20px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .filters-sidebar.open {
        display: block;
    }

    .mobile-filters-toggle {
        display: flex;
    }

    .catalog-header-static {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-box {
        width: 100%;
    }

    .sort-select {
        width: 100%;
        text-align: center;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-img {
        height: 160px;
    }

    .detail-img {
        height: 300px;
    }

    .card-content {
        padding: 14px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .calc-link {
        margin-top: 8px;
    }

    .calc-form {
        flex-direction: column;
        align-items: stretch;
    }

    .calc-field {
        width: 100%;
    }

    .calc-btn {
        width: 100%;
        margin-top: 8px;
    }

    .brand-checkboxes label,
    .series-checkboxes label {
        padding: 8px 0;
    }

    .price-range input,
    .area-range input,
    .btu-range input {
        font-size: 1rem;
        padding: 10px 12px;
    }

    .reset-filters {
        padding: 12px 0;
        font-size: 1rem;
    }
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: white;
    border-top: 1px solid #eef2f8;
    margin-top: 48px;
    padding: 40px 0 24px;
    color: #334155;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0f2b3d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 i {
    color: #2c7da0;
}

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

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

.footer-col ul li a {
    color: #475569;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #1e4a6e;
}

.footer-col ul li i {
    width: 20px;
    color: #2c7da0;
    margin-right: 8px;
    font-size: 0.9rem;
}

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

.footer-contact i {
    width: 20px;
    color: #2c7da0;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #1e4a6e;
    font-size: 1.2rem;
    transition: 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    background: #1e4a6e;
    color: white;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #62748c;
}

.footer-bottom a {
    color: #2c7da0;
    text-decoration: none;
    margin-left: 16px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}



/* Мобильная адаптация футера */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom a {
        margin: 0 8px;
    }
}

button,
.product-card {
    cursor: pointer;
}


/* ===== НАВИГАЦИЯ В ХЕДЕРЕ ===== */
.header-nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
    margin-right: 30px;
}

.header-nav .nav-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.header-nav .nav-link i {
    color: #2c7da0;
    font-size: 0.9rem;
}

.header-nav .nav-link:hover {
    color: #1e4a6e;
    border-bottom-color: #2c7da0;
}

/* Значок опыта (отдельно, если не определён) */
.experience-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c7da0;
    font-weight: 500;
    white-space: nowrap;
}

/* Кнопка мобильного меню (бургер) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 1.5rem;
    color: #1e4a6e;
    cursor: pointer;
    transition: 0.2s;
}

.mobile-menu-toggle:hover {
    background: #f1f5f9;
}

/* Мобильное выпадающее меню */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid #eef2f8;
    padding: 16px 24px;
    gap: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.mobile-menu a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f4fa;
}

.mobile-menu a i {
    width: 24px;
    color: #2c7da0;
}

.mobile-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.mobile-experience {
    color: #2c7da0;
    font-weight: 500;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Адаптация существующего хедера под новую структуру */
.shop-header {
    padding: 16px 0;
}

.header-inner {
    align-items: center;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .experience-badge {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu.open {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    .header-actions {
        gap: 10px;
    }

    .cart-icon span:not(.cart-count) {
        display: none; /* Скрыть слово "Корзина" на маленьких экранах */
    }

    .cart-icon {
        padding: 8px 12px;
    }

    .calc-link span {
        display: none; /* Оставить только иконку */
    }

    .calc-link {
        padding: 8px 12px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.7rem;
    }
}

/* ===== Улучшенная мобильная адаптация для страницы корзины (≤480px) ===== */
@media (max-width: 480px) {
    /* Контейнер корзины */
    .cart-page {
        padding: 12px;
        border-radius: 20px;
        margin-bottom: 24px;
    }

    /* Элемент корзины */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
        gap: 12px;
        position: relative;
    }

    /* Уменьшаем изображение */
    .cart-item-img {
        width: 70px;
        height: 70px;
        border-radius: 12px;
        object-fit: cover;
    }

    /* Информация о товаре/услуге */
    .cart-item-info {
        width: 100%;
        min-width: 0;
    }

    .cart-item-title {
        font-size: 1rem;
        padding-right: 40px; /* место для кнопки удаления */
    }

    .cart-item-title a {
        color: #1e293b;
        text-decoration: none;
    }

    .cart-item-brand {
        font-size: 0.75rem;
    }

    .cart-item-price {
        font-size: 1rem;
        margin-top: 4px;
    }

    /* Блок с количеством */
    .cart-item-quantity {
        margin-top: 8px;
        gap: 8px;
    }

    /* Кнопки +/- делаем большими */
    .quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        border-radius: 12px;
        background: #f1f5f9;
    }

    .cart-item-quantity span {
        min-width: 40px;
        font-size: 1.2rem;
        font-weight: 600;
    }

    /* Подытог */
    .cart-item-subtotal {
        width: 100%;
        text-align: left;
        font-size: 1.2rem;
        margin-top: 4px;
        color: #1f5e3a;
    }

    /* Кнопка удаления — абсолютное позиционирование в правом верхнем углу */
    .cart-item-remove {
        position: absolute;
        top: 16px;
        right: 0;
        font-size: 1.3rem;
        padding: 8px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Сводка корзины */
    .cart-summary {
        padding: 16px;
        border-radius: 20px;
        text-align: center;
    }

    .cart-total {
        font-size: 1.8rem;
        display: block;
        margin: 8px 0 16px;
    }

    /* Кнопки в сводке */
    .cart-summary .back-btn,
    .cart-summary .checkout-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 14px 0;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .cart-summary .back-btn {
        background: #eef2fa;
        order: 1;
    }

    .cart-summary .checkout-btn {
        order: 2;
        margin-bottom: 0;
    }

    /* Пустая корзина */
    .empty-cart {
        padding: 40px 16px;
    }

    .empty-cart i {
        font-size: 3rem !important;
    }

    .empty-cart h3 {
        font-size: 1.4rem;
    }

    .empty-cart p {
        font-size: 0.95rem;
    }

    .empty-cart .back-btn {
        margin-top: 16px;
    }

    /* Заголовок "Корзина" */
    .cart-page h2 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }
}

/* Для очень узких экранов (320-360px) */
@media (max-width: 360px) {
    .cart-item-title {
        font-size: 0.95rem;
    }

    .cart-item-price {
        font-size: 0.95rem;
    }

    .cart-item-subtotal {
        font-size: 1.1rem;
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
    }

    .cart-total {
        font-size: 1.6rem;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ СТРАНИЦЫ ОФОРМЛЕНИЯ ЗАКАЗА ===== */

@media (max-width: 768px) {
    /* Уменьшаем внутренние отступы контейнера */
    .checkout-page {
        padding: 20px 16px !important;
    }

    /* Все сетки внутри блоков — в одну колонку */
    .contacts-block > div,
    .info-block > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Поле телефона + кнопка "Подтвердить" — разрешаем перенос */
    .checkout-form-group > div[style*="display: flex"] {
        flex-wrap: wrap;
    }

    /* Кнопка "Подтвердить" растягивается на всю ширину при переносе */
    .btn-verify {
        width: 100%;
        margin-left: 0 !important;
        padding: 12px 18px;
        font-size: 1rem;
    }

    /* Поле ввода кода и кнопка "Проверить" */
    #codeBlock > div {
        flex-wrap: wrap;
    }

    #codeBlock input {
        width: 100%;
        margin-bottom: 8px;
    }

    #codeBlock .btn-primary-small {
        width: 100%;
    }

    /* Блок доставки и услуг — убираем лишние отступы */
    .info-block {
        padding: 18px 16px !important;
    }

    /* Карточки позиций заказа */
    .order-item-card {
        flex-wrap: wrap;
        padding: 14px;
    }

    .order-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .order-item-info {
        flex: 1 1 100%;
        margin-top: 8px;
    }

    .order-item-quantity {
        margin-top: 8px;
    }

    .order-item-price {
        width: 100%;
        text-align: left;
        margin-top: 8px;
        font-size: 1.1rem;
    }

    /* Кнопки действий */
    .submit-order,
    .back-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1.05rem;
    }

    .back-btn {
        margin-top: 12px !important;
    }

    /* reCAPTCHA — масштабируем */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin: 16px 0;
    }

    /* Чекбокс согласия — увеличиваем область клика */
    #agree152 {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    /* Общий заголовок */
    .checkout-page h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    /* Текст итоговой суммы */
    #orderSummary > div:last-child,
    .order-total {
        font-size: 1.3rem;
    }
}

/* Для очень узких экранов (iPhone SE, 320–375px) */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .checkout-page {
        padding: 16px 12px !important;
    }

    /* Ещё сильнее уменьшаем reCAPTCHA */
    .g-recaptcha {
        transform: scale(0.75);
    }

    /* Кнопки делаем чуть выше */
    .btn-verify,
    .submit-order,
    .back-btn {
        padding: 16px 12px;
    }

    /* Убираем лишние отступы в блоках */
    .contacts-block,
    .info-block {
        padding: 14px 12px !important;
    }

    .order-item-name {
        font-size: 1rem;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ СТРАНИЦЫ ПОЛИТИКИ ===== */
@media (max-width: 768px) {
    /* Основной контейнер */
    .privacy-policy {
        padding: 24px 16px !important;
        border-radius: 24px !important;
        margin: 20px 0 !important;
    }

    /* Заголовок с иконкой */
    .privacy-policy > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-bottom: 16px !important;
    }

    .privacy-policy h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }

    .privacy-policy > div:first-child i {
        font-size: 2rem !important;
        padding: 12px !important;
    }

    /* Вступительный абзац */
    .privacy-policy > p {
        font-size: 1rem !important;
        margin-bottom: 24px !important;
    }

    /* Сетка карточек — всегда одна колонка */
    .privacy-policy > div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    /* Карточки */
    .privacy-policy > div[style*="display: grid"] > div {
        padding: 18px !important;
    }

    /* Заголовки карточек */
    .privacy-policy > div[style*="display: grid"] h2 {
        font-size: 1.2rem !important;
    }

    /* Блок с гарантией конфиденциальности */
    .privacy-policy > div[style*="background: linear-gradient"] {
        padding: 18px !important;
        margin-bottom: 24px !important;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .privacy-policy > div[style*="background: linear-gradient"] i {
        font-size: 1.6rem !important;
        margin-bottom: 8px;
    }

    .privacy-policy > div[style*="background: linear-gradient"] h3 {
        font-size: 1.1rem !important;
    }

    .privacy-policy > div[style*="background: linear-gradient"] p {
        font-size: 0.95rem !important;
    }

    /* Кнопка возврата */
    .privacy-policy .back-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px !important;
        font-size: 1.05rem;
    }
}

/* Для очень узких экранов (320–480px) */
@media (max-width: 480px) {
    .privacy-policy {
        padding: 20px 12px !important;
    }

    .privacy-policy h1 {
        font-size: 1.4rem !important;
    }

    .privacy-policy > p {
        font-size: 0.95rem !important;
    }

    .privacy-policy > div[style*="display: grid"] > div {
        padding: 14px !important;
    }

    .privacy-policy > div[style*="background: linear-gradient"] {
        padding: 14px !important;
    }
}