.checkout-form textarea {
    width: 100%;
    min-height: 140px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 6px;
    resize: vertical;
}
/* Checkout */
.checkout-form {
    display: grid;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.checkout-form fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 12px;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 6px;
}

.checkout-actions {
    text-align: center;
}
/* Общие стили для всех страниц */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1728px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    background-color: #DBDBDB;
    padding: 37px 43px;
    border-radius: 8px;
    font-size: 36px;
    font-weight: 400;
    text-decoration: none;
    color: #000000;
    transition: background-color 0.3s ease;
}

.logo:hover {
    background-color: #c0c0c0;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-btn {
    background-color: #DBDBDB;
    padding: 37px 46px;
    border-radius: 8px;
    text-decoration: none;
    color: #000000;
    font-size: 36px;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #c0c0c0;
}

.nav-btn.active {
    opacity: 0.5;
}

/* Main Content */
main {
    padding: 40px 0;
}

/* Стили заголовков H1 и H2 */
h1 {
    font-size: 52px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 50px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

h2 {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 35px;
}

/* Catalog specific main layout */
main.catalog-main {
    display: flex;
    gap: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

/* Lists for news and promotions */
.news-list, .promotions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.news-item, .promotion-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.news-title a {
    text-decoration: none;
    color: #000000;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-date, .promotion-dates {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #7E7A7A;
}

.promotion-card .promotion-title {
    font-size: 24px;
    font-weight: 600;
}

.promotion-text {
    margin-top: 10px;
    font-size: 16px;
    color: #333333;
}

/* Footer */
footer {
    background-color: #EBEBEB;
    padding: 21px 48px;
    margin-top: 40px;
}

.footer-content {
    font-size: 36px;
    font-weight: 400;
    color: #000000;
}

/* Стили для главной страницы (index.html) */

/* Popular Brands Section */
.popular-brands {
    margin-bottom: 60px;
}

.brands-grid {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    list-style: none;
}

.brands-grid::-webkit-scrollbar {
    height: 8px;
}

.brands-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.brands-grid::-webkit-scrollbar-thumb {
    background: #DBDBDB;
    border-radius: 4px;
}

.brands-grid::-webkit-scrollbar-thumb:hover {
    background: #c0c0c0;
}

.brand-card {
    background-color: #DBDBDB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: auto;
    width: 265px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-figure {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 347px;
}

.brand-image {
    background-color: #7E7A7A;
    border-radius: 4px;
    height: 347px;
    margin-bottom: 0;
    display: block;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
}

.brand-image.apple {
    background-color: #ffffff;
}

.brand-image.samsung {
    background-color: #ffffff;
}

.brand-image.xiaomi {
    background-color: #ffffff;
}

.brand-image.oppo {
    background-color: #ffffff;
}

.brand-image.other {
    background-color: #f5f5f5;
}

.brand-name {
    font-size: 36px;
    font-weight: 400;
    color: #000000;
}

/* News Blog Section */
.news-blog {
    margin-bottom: 60px;
}

.news-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    list-style: none;
}

.news-grid::-webkit-scrollbar {
    height: 8px;
}

.news-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.news-grid::-webkit-scrollbar-thumb {
    background: #DBDBDB;
    border-radius: 4px;
}

.news-grid::-webkit-scrollbar-thumb:hover {
    background: #c0c0c0;
}

.news-article {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #7E7A7A;
    width: 400px;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-article h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.news-article h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 8px 0;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.news-article p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
    text-align: justify;
}

.news-date {
    font-size: 13px;
    color: #7E7A7A;
    font-weight: 500;
    background-color: #f8f9ff;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Стили для каталога (catalog.html) */

/* Sidebar with Filters */
.sidebar {
    flex: 0 0 300px;
}

.filter-section {
    background-color: #DBDBDB;
    padding: 30px 30px 15px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
}

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

.filter-group h4 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #000000;
}

.filter-option {
    margin-bottom: 8px;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.filter-option label {
    font-size: 16px;
    cursor: pointer;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

/* Content Area */
.content {
    flex: 1;
}

.catalog-search-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.catalog-search-wrap {
    position: relative;
    flex: 1;
}

.catalog-cart {
    flex-shrink: 0;
    padding: 10px 16px;
    background: #936161;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
}

.catalog-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.catalog-search-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.catalog-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.catalog-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.catalog-autocomplete-item:last-child {
    border-bottom: none;
}

.catalog-autocomplete-item:hover,
.catalog-autocomplete-item-active {
    background: #f5f5f5;
}

.catalog-autocomplete-type {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
}

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

.category-title {
    font-size: 36px;
    font-weight: 400;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    font-size: 20px;
    font-weight: 400;
}

.sort-select {
    font-size: 18px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    list-style: none;
}

.catalog-ajax-loading,
.catalog-ajax-error {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
}

.catalog-ajax-loading {
    color: #666;
}

.catalog-ajax-error {
    color: #c00;
}

.product-card {
    background-color: #B9B9B9;
    border-radius: 8px;
    padding: 20px;
    height: auto;
    display: flex;
    align-items: stretch;
    position: relative;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #7E7A7A;
}

.product-image-block {
    width: 180px;
    height: 180px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-content-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    overflow: hidden;
    padding-left: 5px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000000;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-description {
    font-size: 8px;
    font-weight: 400;
    /* line-height: 1.4; */
    margin-bottom: 15px;
    color: #333333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);
    flex-grow: 1;
}

.product-price {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    text-align: right;
    margin-top: auto;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    transition: transform 0.2s ease;
}

.product-link:hover {
    transform: translateY(-2px);
}

.quick-view-btn {
    padding: 8px 14px;
    font-size: 13px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quick-view-btn:hover {
    background: #555;
}

.product-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
    width: 100%;
}

.product-card-footer .product-price {
    margin-top: 0;
}

.product-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.cart-add-btn,
.cart-remove-btn {
    padding: 8px 14px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #936161;
    color: #fff;
}

.cart-add-btn:hover,
.cart-remove-btn:hover {
    background: #b47a7a;
}

.cart-btn-animate {
    animation: cartBtnChange 0.35s ease;
}

@keyframes cartBtnChange {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Quick View модальное окно */
/* Quick View: заменяет сетку, рендерится в области .content */
.catalog-quickview-inline {
    width: 100%;
    display: none;
}

.content.quickview-active .products-grid,
.content.quickview-active .catalog-header {
    display: none !important;
}

.content.quickview-active .catalog-quickview-inline {
    display: block !important;
}

.quickview-back-btn {
    display: inline-block;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #eee;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.quickview-back-btn:hover {
    background: #ddd;
}

.quickview-product-section {
    margin-bottom: 0;
}

/* Стили для страницы доставки (delivery.html) */

.page-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #000000;
}

/* Delivery Info Section */
.delivery-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.delivery-block {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #DBDBDB;
}

.block-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
}

.block-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 15px;
}

.highlight {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
}

/* Delivery Table */
.delivery-table-section {
    margin-bottom: 60px;
}

.table-container {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delivery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.delivery-table thead {
    background-color: #DBDBDB;
}

.delivery-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 18px;
    color: #000000;
    border-bottom: 2px solid #c0c0c0;
}

.delivery-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e9ecef;
    color: #333333;
}

.delivery-table tbody tr:hover {
    background-color: #f8f9fa;
}

.delivery-table tbody tr:last-child td {
    border-bottom: none;
}

.price-cell {
    font-weight: 600;
    color: #000000;
}

.time-cell {
    color: #28a745;
    font-weight: 500;
}

.zone-cell {
    font-weight: 500;
}

/* Map Section */
.map-section {
    margin-bottom: 60px;
}

.map-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    position: relative;
    border: 2px solid #DBDBDB;
}

.map-mock {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e8f4f8 25%, transparent 25%), 
                linear-gradient(-45deg, #e8f4f8 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #e8f4f8 75%), 
                linear-gradient(-45deg, transparent 75%, #e8f4f8 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.map-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.map-overlay p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.zone-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.zone-1 { background-color: #28a745; top: 30%; left: 40%; }
.zone-2 { background-color: #ffc107; top: 45%; left: 60%; }
.zone-3 { background-color: #fd7e14; top: 60%; left: 35%; }
.zone-4 { background-color: #dc3545; top: 35%; left: 70%; }

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-block {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #7E7A7A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.contact-block:hover {
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #7E7A7A;
}

.contact-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.contact-text {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Стили для страницы товара (product.html) */

/* Product Section */
.product-section {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.product-image-container {
    flex: 0 0 450px;
}

.product-image {
    width: 221px;
    height: 310px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-image img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Карусель изображений */
.product-carousel {
    width: 100%;
    max-width: 450px;
}

.carousel-main {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #000000;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.carousel-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: #DBDBDB;
    border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #c0c0c0;
}

.carousel-thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.carousel-thumbnail:hover {
    border-color: #7E7A7A;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-thumbnail.active {
    border-color: #000000;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-details {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000000;
}

.product-price {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #000000;
}

.product-description {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 40px;
    color: #000000;
    flex: 1;
}

.product-description-with-button {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.product-description-with-button .product-description {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
    max-height: none;
}

.buy-section {
    flex-shrink: 0;
    align-self: flex-start;
}

.buy-button {
    background-color: #DBDBDB;
    padding: 15px 33px;
    border-radius: 8px;
    text-decoration: none;
    color: #000000;
    font-size: 32px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.buy-button:hover {
    background-color: #c0c0c0;
}

/* Specifications Section */
.specifications {
    margin-bottom: 60px;
}

.spec-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
    text-align: center;
}

.spec-list {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spec-list {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

.spec-label {
    font-weight: 600;
    color: #333;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    min-width: 250px
}

.spec-value {
    color: #555;
    text-align: right;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.spec-label:nth-last-of-type(1),
.spec-value:last-of-type {
    border-bottom: none;
}

/* Reviews Section */
.reviews {
    margin-bottom: 60px;
}

.reviews-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
    text-align: center;
}

.review-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.review-item:hover {
    transform: translateY(-1px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.review-date {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.review-rating {
    font-size: 16px;
    color: #ffc107;
    font-weight: 600;
    background-color: #fff9e6;
    padding: 4px 8px;
    border-radius: 4px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

/* Related Products */
.related-products {
    margin-bottom: 60px;
}

.related-title {
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #000000;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
}

.related-item {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.related-item:hover {
    transform: translateY(-2px);
}

.related-image {
    width: 100%;
    min-height: 150px;
    background-color: #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.related-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.related-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-buttons {
        justify-content: center;
    }

    main.catalog-main {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .delivery-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-description-with-button {
        flex-direction: column;
        gap: 20px;
    }
    
    .buy-section {
        align-self: center;
    }

    .product-section {
        flex-direction: column;
    }

    .product-details {
        padding-left: 0;
    }

    .product-image-container {
        flex: none;
        text-align: center;
    }

    .product-carousel {
        max-width: 100%;
    }

    .carousel-main {
        height: 400px;
    }
}

/* Form Validation (Lab 5) */
.checkout-form .hint {
    font-size: 12px;
    color: #7E7A7A;
    margin-top: 6px;
}

.checkout-form .error-msg {
    min-height: 18px;
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

.checkout-form input.error,
.checkout-form textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
    outline: none;
}

.checkout-form input.valid,
.checkout-form textarea.valid {
    border-color: #28a745;
}

.checkout-form fieldset.has-error {
    border-color: #dc3545;
}

.checkout-form fieldset.valid {
    border-color: #28a745;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo, .nav-btn {
        font-size: 24px;
        padding: 20px 25px;
    }
    
    h1 {
        font-size: 32px;
        letter-spacing: 1px;
        padding: 15px 20px;
        margin-bottom: 35px;
    }
    
    h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .brands-grid {
        gap: 15px;
    }
    
    .brand-card {
        height: auto;
        width: 200px;
    }
    
    .brand-image {
        height: 220px;
    }
    
    .news-grid {
        gap: 20px;
    }

    .news-article {
        width: 350px;
    }
    
    .footer-content {
        font-size: 24px;
    }

    .category-title {
        font-size: 28px;
    }
    
    .sort-label, .sort-select {
        font-size: 16px;
    }
    
    .filter-title {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
    }
    
    .product-card {
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    .product-image-block {
        width: 150px;
        height: 150px;
    }
    
    .product-content-block {
        height: auto;
        padding-left: 3px;
    }
    
    .product-name {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .product-description {
        font-size: 7px;
        margin-bottom: 12px;
    }
    
    .product-price {
        font-size: 16px;
    }

    .page-title {
        font-size: 32px;
    }
    
    .block-title {
        font-size: 24px;
    }
    
    .delivery-table {
        font-size: 14px;
    }
    
    .delivery-table th,
    .delivery-table td {
        padding: 12px 10px;
    }
    
    .delivery-table th {
        font-size: 16px;
    }
    
    .map-container {
        height: 300px;
    }

    .product-title {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 24px;
    }
    
    .product-description {
        font-size: 18px;
    }
    
    .buy-button {
        font-size: 24px;
        padding: 12px 25px;
    }
    
    .spec-title, .reviews-title, .related-title {
        font-size: 24px;
    }
    
    .spec-list {
        font-size: 18px;
    }
    
    .spec-label {
        min-width: 150px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .carousel-main {
        height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-thumbnail {
        flex: 0 0 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
        letter-spacing: 0.5px;
        padding: 10px 15px;
        margin-bottom: 25px;
    }
    
    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .brand-card {
        width: 180px;
        height: auto;
    }

    .brand-image {
        height: 180px;
    }

    .news-article {
        width: 300px;
    }
    
    .news-article {
        padding: 20px;
    }
    
    .news-article h3 {
        font-size: 20px;
    }
    
    .news-article h4 {
        font-size: 18px;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-section {
        padding: 20px;
    }
    
    .price-range {
        flex-direction: column;
        gap: 5px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        height: 180px;
        padding: 12px;
        gap: 12px;
    }
    
    .product-image-block {
        width: 130px;
        height: 130px;
    }
    
    .product-content-block {
        height: auto;
        padding-left: 2px;
    }
    
    .product-name {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .product-description {
        font-size: 6px;
        margin-bottom: 10px;
    }
    
    .product-price {
        font-size: 14px;
    }

    .delivery-table {
        font-size: 12px;
    }
    
    .delivery-table th,
    .delivery-table td {
        padding: 8px 6px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .map-overlay {
        position: static;
        margin-bottom: 15px;
    }

    .product-image {
        width: 100%;
        max-width: 250px;
    }
    
    .spec-list {
        grid-template-columns: 1fr;
    }
    
    .spec-label {
        min-width: auto;
        margin-bottom: 5px;
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .spec-value {
        padding-top: 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .carousel-main {
        height: 300px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .carousel-counter {
        font-size: 12px;
        padding: 4px 8px;
    }

    .carousel-thumbnail {
        flex: 0 0 60px;
        height: 60px;
    }

    /* Адаптивные размеры для видео на смартфонах */
    .video-wrapper {
        max-height: 200px;
    }

    .video-wrapper.video-vertical {
        max-width: 112.5px; /* 200px * 9/16 */
    }

    .video-wrapper.video-square {
        max-width: 200px;
    }

    .video-play-btn svg {
        width: 50px;
        height: 50px;
    }
}

/* News Single Page */
.news-single {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-single header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.news-single-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #000;
}

.news-single .news-date {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Видео плеер в новостях */
.news-video-container {
    margin: 30px 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-height: 300px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
}

/* Горизонтальное видео 16:9 */
.video-wrapper.video-horizontal {
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

/* Вертикальное видео 9:16 */
.video-wrapper.video-vertical {
    max-width: 168.75px; /* 300px * 9/16 */
    aspect-ratio: 9 / 16;
}

/* Квадратное видео 1:1 */
.video-wrapper.video-square {
    max-width: 300px;
    aspect-ratio: 1 / 1;
}

.news-video,
.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    object-fit: contain;
    pointer-events: none;
}

/* Включаем pointer-events только для контролов видео */
.news-video::-webkit-media-controls-panel {
    pointer-events: auto;
}

.news-video::-webkit-media-controls {
    pointer-events: auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    cursor: default;
    z-index: -1;
}

.video-play-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: all;
    padding: 0;
    z-index: 11;
    position: relative;
}

.video-play-btn:hover {
    transform: scale(1.1);
}

.video-play-btn:active {
    transform: scale(0.95);
}

.video-play-btn svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.video-caption {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

.news-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.news-content strong {
    font-weight: 600;
    color: #000;
}

.news-content em {
    font-style: italic;
    color: #555;
}

.news-content .section-heading {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #000;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.news-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.news-content ul li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.news-content ul li strong {
    color: #000;
}

@media (max-width: 768px) {
    .news-single {
        padding: 25px 20px;
        margin: 20px 10px;
    }
    
    .news-single-title {
        font-size: 28px;
    }
    
    .news-content {
        font-size: 16px;
    }
    
    .news-content .section-heading {
        font-size: 20px;
        margin-top: 25px;
    }

    .news-video-container {
        margin: 20px 0 30px 0;
    }

    .video-play-btn svg {
        width: 60px;
        height: 60px;
    }

    .video-caption {
        font-size: 13px;
        margin-top: 10px;
    }

    /* Адаптивные размеры для разных ориентаций на планшетах */
    .video-wrapper {
        max-height: 250px;
    }

    .video-wrapper.video-vertical {
        max-width: 140.625px; /* 250px * 9/16 */
    }

    .video-wrapper.video-square {
        max-width: 250px;
    }
}

/* Floating "Fill demo" button */
#fill-demo {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

#fill-demo:hover {
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    #fill-demo {
        right: 12px;
        bottom: 12px;
        padding: 6px 10px;
        font-size: 12px;
    }
}
