/*
 Theme Name:   Twenty Twenty-Five Child
 Theme URI:    http://dom-parketa-dev.local
 Description:  Дочерняя тема для сайта Дом Паркета
 Author:       Dom Parketa
 Template:     twentytwentyfive
 Version:      1.2.0
 Text Domain:  twentytwentyfive-child
*/

:root {
    --color-bg: #FAF7F2;
    --color-sand: #E8DCC4;
    --color-oak: #6B4F35;
    --color-wine: #7A2A26;
    --color-wine-dark: #5C1F1C;
    --color-text: #2C2416;
    --color-muted: #6B5D4F;
    --color-border: rgba(107, 79, 53, 0.22);
    --color-success: #2d7d46;
    --color-error: #c0392b;
    --shadow-soft: 0 18px 45px rgba(44, 36, 22, 0.11);
}

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

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--color-wine);
    text-decoration: none;
}

a:hover {
    color: var(--color-wine-dark);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    gap: 28px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-right {
    gap: 16px;
}

.site-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: var(--color-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.site-logo span {
    color: var(--color-wine);
}

.site-logo:hover {
    color: var(--color-text);
}

.site-logo:hover span {
    color: var(--color-wine-dark);
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.main-navigation a {
    position: relative;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
}

.main-navigation a::after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-wine);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
    content: "";
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    transform: scaleX(1);
}

.header-phone {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 12px 26px;
    border: 1px solid var(--color-wine);
    border-radius: 14px;
    background: var(--color-wine);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 12px 24px rgba(122, 42, 38, 0.14);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: var(--color-wine-dark);
    border-color: var(--color-wine-dark);
    color: #fff;
    box-shadow: 0 12px 25px rgba(122, 42, 38, 0.18);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--color-wine);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--color-sand);
    border-color: var(--color-wine);
    color: var(--color-wine-dark);
}

.btn-gold {
    background: var(--color-sand);
    border-color: var(--color-sand);
    color: var(--color-wine);
}

.btn-gold:hover {
    background: var(--color-bg);
    border-color: var(--color-bg);
    color: var(--color-wine-dark);
}

.btn-callback,
.btn-callback-footer {
    white-space: nowrap;
}

.callback-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.callback-modal.active {
    display: block;
}

.callback-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 22, 0.68);
}

.callback-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90%, 430px);
    padding: 34px 30px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg);
    box-shadow: var(--shadow-soft);
    transform: translate(-50%, -50%);
}

.callback-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.callback-modal-close:hover {
    color: var(--color-wine);
}

.callback-modal-content h3 {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 22px;
    text-align: center;
}

.callback-modal-content > p {
    margin-bottom: 20px;
    color: var(--color-muted);
    font-size: 14px;
    text-align: center;
}

.callback-form .form-group {
    margin-bottom: 12px;
}

.callback-form input,
.callback-form textarea,
.catalog-sort select {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-family: inherit;
    font-size: 14px;
}

.callback-form input,
.callback-form textarea {
    padding: 12px 14px;
}

.callback-form input:focus,
.callback-form textarea:focus,
.catalog-sort select:focus {
    outline: 2px solid rgba(122, 42, 38, 0.18);
    border-color: var(--color-wine);
}

.callback-form .btn-submit {
    width: 100%;
    margin-top: 4px;
}

.form-note {
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 11px;
    text-align: center;
}

.callback-success,
.callback-error {
    padding: 30px 0;
    text-align: center;
}

.callback-success p {
    color: var(--color-success);
}

.callback-error p {
    margin-bottom: 15px;
    color: var(--color-error);
}

.hero-section {
    padding: 78px 0 68px;
    background:
        radial-gradient(circle at 82% 18%, rgba(232, 220, 196, 0.82), transparent 31%),
        linear-gradient(120deg, rgba(232, 220, 196, 0.68), rgba(250, 247, 242, 0.92)),
        repeating-linear-gradient(90deg, rgba(107, 79, 53, 0.06) 0 1px, transparent 1px 82px);
    border-bottom: 1px solid var(--color-border);
}

.hero-section .container {
    max-width: 1200px;
}

.site-dev-notice {
    margin: 0 0 34px;
}

.site-dev-notice__text {
    max-width: 860px;
    padding: 14px 18px;
    border: 1px solid rgba(122, 42, 38, 0.2);
    border-left: 4px solid var(--color-wine);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: 0 12px 30px rgba(44, 36, 22, 0.08);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: 52px;
}

.hero-copy {
    max-width: 620px;
}

.hero-tag,
.premium-tag,
.card-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(122, 42, 38, 0.1);
    color: var(--color-wine);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-section h1 {
    margin: 18px 0;
    color: var(--color-text);
    font-size: clamp(38px, 4.8vw, 62px);
    letter-spacing: 0;
    line-height: 1.04;
}

.hero-section p {
    margin: 0 0 28px;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-benefits span {
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid rgba(107, 79, 53, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 14px;
}

.hero-photo-main,
.hero-photo-small {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(107, 79, 53, 0.2);
    background:
        linear-gradient(135deg, rgba(232, 220, 196, 0.86), rgba(250, 247, 242, 0.96)),
        repeating-linear-gradient(90deg, rgba(107, 79, 53, 0.09) 0 1px, transparent 1px 44px);
    color: var(--color-muted);
    text-align: center;
}

.hero-photo-main {
    min-height: 360px;
    padding: 34px;
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(44, 36, 22, 0.13);
    font-size: 17px;
}

.hero-photo-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-photo-small {
    min-height: 108px;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(44, 36, 22, 0.08);
    font-size: 13px;
    line-height: 1.35;
}

.categories-section,
.advantages-section,
.premium-section {
    padding: 58px 0;
}

.categories-section h2,
.advantages-title,
.contacts-map h2 {
    margin-bottom: 32px;
    color: var(--color-text);
    font-size: 32px;
    text-align: center;
}

.categories-grid,
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.advantages-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card,
.product-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(44, 36, 22, 0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-card:hover,
.product-card:hover {
    border-color: rgba(122, 42, 38, 0.38);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.category-card-img,
.product-card-img,
.product-image,
.map-placeholder {
    background:
        linear-gradient(135deg, rgba(232, 220, 196, 0.88), rgba(250, 247, 242, 0.96)),
        repeating-linear-gradient(90deg, rgba(107, 79, 53, 0.12) 0 1px, transparent 1px 44px);
    color: var(--color-muted);
}

.category-card-img {
    min-height: 196px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}

.category-card-body {
    padding: 18px 18px 22px;
}

.category-card h3 {
    margin: 12px 0 8px;
    color: var(--color-text);
    font-size: 20px;
}

.category-card p {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.65;
}

.help-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.help-note {
    padding: 18px 20px;
    border: 1px solid rgba(122, 42, 38, 0.16);
    border-radius: 16px;
    background: rgba(232, 220, 196, 0.34);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.advantages-section {
    background: var(--color-sand);
}

.advantage-item {
    text-align: center;
}

.advantage-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-wine);
    font-size: 28px;
}

.advantage-item h4 {
    margin-bottom: 7px;
    color: var(--color-text);
    font-size: 16px;
}

.advantage-item p {
    color: var(--color-muted);
    font-size: 14px;
}

.premium-section {
    padding-top: 20px;
}

.premium-panel {
    padding: 38px 34px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-text) 0%, #4A3520 100%);
    color: var(--color-bg);
}

.premium-panel .premium-tag {
    background: rgba(232, 220, 196, 0.15);
    color: var(--color-sand);
}

.premium-panel h2 {
    margin: 14px 0 10px;
    color: var(--color-sand);
    font-size: 32px;
}

.premium-panel p {
    max-width: 680px;
    margin-bottom: 22px;
    color: #C9A876;
}

.catalog-header {
    padding: 38px 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-sand);
}

.catalog-header h1 {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 34px;
}

.catalog-subtitle,
.products-empty,
.page-content,
.product-description,
.contact-item p {
    color: var(--color-muted);
}

.catalog-controls {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0 25px;
}

.catalog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-category-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.catalog-category-link:hover,
.catalog-category-link.is-active {
    background: var(--color-wine);
    border-color: var(--color-wine);
    color: #fff;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.catalog-sort label {
    color: var(--color-muted);
    font-size: 14px;
}

.catalog-sort select {
    min-height: 38px;
    padding: 8px 34px 8px 12px;
}

.catalog-sort-submit {
    min-height: 38px;
    padding: 8px 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 52px;
}

.products-empty {
    grid-column: 1 / -1;
    padding: 60px 0;
    font-size: 16px;
    text-align: center;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--color-text);
}

.product-card-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.product-card-img img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(232, 220, 196, 0.8), rgba(250, 247, 242, 0.98)),
        repeating-linear-gradient(90deg, rgba(107, 79, 53, 0.13) 0 2px, transparent 2px 34px);
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.product-image-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(107, 79, 53, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.product-card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.product-card-tag {
    margin-bottom: 10px;
    border-radius: 4px;
    background: var(--color-wine);
    color: #fff;
}

.product-card-title {
    min-height: 42px;
    margin-bottom: 10px;
    overflow: hidden;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.product-card-meta {
    display: grid;
    gap: 3px;
    min-height: 36px;
    margin-bottom: 12px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.35;
}

.product-card-price,
.product-price {
    color: var(--color-wine);
    font-weight: 800;
}

.product-card-price {
    margin-top: auto;
    font-size: 18px;
}

.product-card-unit,
.product-price-unit {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 52px;
}

.catalog-pagination .page-numbers {
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    text-align: center;
}

.catalog-pagination .page-numbers.current,
.catalog-pagination .page-numbers:hover {
    background: var(--color-wine);
    border-color: var(--color-wine);
    color: #fff;
}

.product-page,
.contacts-page,
.page-default {
    padding: 44px 0;
}

.product-page,
.product-detail,
.product-media,
.product-info,
.product-buybox,
.product-section,
.product-related {
    max-width: 100%;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: var(--color-muted);
    font-size: 14px;
}

.product-breadcrumb a {
    color: var(--color-muted);
}

.product-detail,
.contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 42px;
}

.product-media {
    min-width: 0;
}

.product-image {
    width: 100%;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: #fff;
}

.product-photo-note {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.product-info {
    min-width: 0;
}

.product-info h1,
.contacts-page h1,
.page-default h1 {
    margin-bottom: 16px;
    color: var(--color-text);
    font-size: 34px;
    line-height: 1.15;
}

.product-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.product-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(107, 79, 53, 0.2);
    border-radius: 8px;
    background: #fff;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.product-buybox {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(122, 42, 38, 0.18);
    border-radius: 12px;
    background: #fff;
}

.product-price-label {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.product-price {
    font-size: 28px;
    line-height: 1.15;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(45, 125, 70, 0.24);
    border-radius: 8px;
    background: rgba(45, 125, 70, 0.08);
    color: var(--color-success);
    font-size: 14px;
    font-weight: 800;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-outline {
    border-color: var(--color-border);
    background: #fff;
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-wine);
    background: var(--color-wine);
    color: #fff;
}

.product-summary-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-summary-spec {
    padding: 11px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.product-summary-spec span {
    display: block;
    margin-bottom: 3px;
    color: var(--color-muted);
    font-size: 12px;
}

.product-summary-spec strong {
    color: var(--color-text);
    font-size: 14px;
}

.product-sections {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    margin-top: 42px;
}

.product-section {
    min-width: 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.product-section h2,
.product-related h2 {
    margin-bottom: 18px;
    color: var(--color-text);
    font-size: 24px;
    line-height: 1.25;
}

.product-description {
    color: var(--color-muted);
    line-height: 1.75;
}

.product-description p + p {
    margin-top: 12px;
}

.product-specs {
    display: grid;
    gap: 0;
}

.product-spec-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1fr);
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.product-spec-row:first-child {
    border-top: 1px solid var(--color-border);
}

.product-spec-row span {
    color: var(--color-muted);
}

.product-spec-row strong {
    color: var(--color-text);
    font-weight: 800;
}

.product-related {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading a {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
}

.products-grid-related {
    padding-bottom: 0;
}

.contact-item {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--color-text);
    font-size: 18px;
}

.contact-item p {
    margin-bottom: 18px;
    line-height: 1.7;
}

.contacts-map {
    margin-top: 36px;
}

.map-placeholder {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 16px;
}

.site-footer {
    padding: 44px 0 22px;
    background: var(--color-text);
    color: var(--color-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--color-sand);
    font-size: 16px;
}

.footer-col p,
.footer-col a {
    color: #C9A876;
    font-size: 14px;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--color-bg);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(232, 220, 196, 0.2);
    color: #C9A876;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .catalog-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .header-left,
    .header-right {
        justify-content: space-between;
    }

    .categories-grid,
    .footer-grid,
    .advantages-grid,
    .help-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-sort {
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-direction: column;
    }

    .header-left,
    .header-right {
        width: 100%;
        gap: 14px;
    }

    .header-left {
        flex-direction: column;
    }

    .header-right {
        justify-content: center;
    }

    .header-phone {
        display: none;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .hero-section {
        padding: 58px 0 52px;
    }

    .site-dev-notice {
        margin-bottom: 28px;
    }

    .site-dev-notice__text {
        max-width: none;
        font-size: 14px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-benefits,
    .hero-photo-stack,
    .help-notes {
        grid-template-columns: 1fr;
    }

    .hero-photo-main {
        min-height: 280px;
        border-radius: 22px;
    }

    .categories-grid,
    .footer-grid,
    .contacts-grid,
    .advantages-grid,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-sections {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-image {
        height: 340px;
    }

    .product-photo-note {
        font-size: 12px;
    }

    .callback-modal-content {
        padding: 28px 20px;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions,
    .hero-actions .btn,
    .catalog-sort,
    .catalog-sort .btn,
    .catalog-sort select {
        width: 100%;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .site-dev-notice__text {
        padding: 12px 14px;
    }

    .product-info h1 {
        max-width: calc(100vw - 32px);
        font-size: 28px;
        overflow-wrap: anywhere;
    }

    .hero-section p {
        font-size: 16px;
    }

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

    .product-actions,
    .product-actions .btn {
        width: 100%;
    }

    .product-detail,
    .product-media,
    .product-image,
    .product-photo-note,
    .product-info,
    .product-buybox,
    .product-actions,
    .product-summary-specs,
    .product-section,
    .product-related {
        width: min(100%, calc(100vw - 32px));
    }

    .product-summary-specs,
    .product-spec-row {
        grid-template-columns: 1fr;
    }

    .product-spec-row {
        gap: 3px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .premium-panel {
        padding: 30px 22px;
    }
}

/* Modern product card */
.product-page-modern {
    padding: 34px 0 58px;
}

.product-page-modern .product-breadcrumb {
    margin-bottom: 18px;
}

.product-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.product-heading h1 {
    max-width: 860px;
    margin: 8px 0 0;
    color: var(--color-text);
    font-size: 42px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.product-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 5px 11px;
    border-radius: 4px;
    background: rgba(122, 42, 38, 0.1);
    color: var(--color-wine);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.product-sku {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.product-detail-modern {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    gap: 30px;
    align-items: start;
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.product-gallery {
    min-width: 0;
}

.product-gallery-main {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(107, 79, 53, 0.18);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(232, 220, 196, 0.8), rgba(250, 247, 242, 0.98)),
        repeating-linear-gradient(90deg, rgba(107, 79, 53, 0.1) 0 1px, transparent 1px 44px);
}

.product-main-image__button {
    display: block;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.product-main-image__button:focus-visible {
    outline: 3px solid rgba(122, 42, 38, 0.32);
    outline-offset: -6px;
}

.product-main-image__button:hover .product-gallery-image {
    transform: scale(1.015);
}

.product-gallery-image,
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.product-gallery-placeholder {
    min-height: 100%;
    border: 0;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-gallery-thumb {
    overflow: hidden;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--color-bg);
    cursor: pointer;
}

.product-gallery-thumb.is-active,
.product-gallery-thumb:hover {
    border-color: var(--color-wine);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs-placeholder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-gallery-thumbs-placeholder span {
    display: grid;
    place-items: center;
    min-height: 64px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(250, 247, 242, 0.82);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.product-lightbox.is-active {
    display: flex;
}

.product-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.82);
}

.product-lightbox__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(96vw, 1120px);
    max-height: 92vh;
    justify-items: center;
}

.product-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: min(82vh, 820px);
    background: #fff;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.product-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: #fff;
    color: var(--color-wine);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.product-lightbox__caption {
    max-width: min(90vw, 760px);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

body.product-lightbox-open {
    overflow: hidden;
}

.product-info-modern {
    min-width: 0;
}

.product-info-card {
    display: grid;
    gap: 16px;
}

.product-top-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-top-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(107, 79, 53, 0.18);
    border-radius: 8px;
    background: #fff;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.product-top-meta__item strong {
    color: var(--color-text);
    font-weight: 900;
}

.product-top-meta__item--sku {
    border-color: rgba(122, 42, 38, 0.28);
    background: rgba(122, 42, 38, 0.08);
    color: var(--color-wine);
}

.product-top-meta__item--sku strong {
    color: var(--color-wine-dark);
    font-size: 14px;
    letter-spacing: 0;
}

.product-top-meta__item--stock {
    border-color: rgba(45, 125, 70, 0.24);
    background: rgba(45, 125, 70, 0.08);
    color: var(--color-success);
    font-weight: 900;
}

.product-price-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(122, 42, 38, 0.16);
    border-radius: 12px;
    background: rgba(250, 247, 242, 0.86);
}

.product-price-note {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.45;
}

.product-key-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-key-spec {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
}

.product-key-spec span {
    display: block;
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.25;
}

.product-key-spec strong {
    display: block;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-short-description {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.7;
}

.product-actions-modern {
    margin-bottom: 0;
}

.product-calculator {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background:
        linear-gradient(135deg, #fff, rgba(250, 247, 242, 0.9));
    box-shadow: 0 12px 34px rgba(44, 36, 22, 0.08);
}

.product-section-heading {
    margin-bottom: 20px;
}

.product-section-heading h2 {
    margin: 8px 0 8px;
    color: var(--color-text);
    font-size: 28px;
    line-height: 1.18;
}

.product-section-heading p {
    max-width: 780px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}

.calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.calculator-form {
    display: grid;
    gap: 14px;
    align-content: start;
    height: 100%;
    padding: 18px;
    border: 1px solid rgba(107, 79, 53, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.calculator-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.calculator-form label {
    display: grid;
    gap: 7px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
    min-width: 0;
    line-height: 1.35;
}

.calculator-form input,
.calculator-form select {
    min-height: 44px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-family: inherit;
    font-size: 14px;
}

.calculator-form input:focus,
.calculator-form select:focus {
    outline: 2px solid rgba(122, 42, 38, 0.18);
    border-color: var(--color-wine);
}

.calculator-results {
    display: grid;
    gap: 14px;
    align-content: start;
    height: 100%;
    padding: 18px;
    border: 1px solid rgba(107, 79, 53, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.calculator-warning {
    padding: 13px 14px;
    border: 1px solid rgba(192, 57, 43, 0.18);
    border-radius: 8px;
    background: rgba(192, 57, 43, 0.07);
    color: var(--color-error);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.calculator-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.calculator-result {
    display: grid;
    align-content: space-between;
    min-width: 0;
    min-height: 98px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
}

.calculator-result span {
    display: block;
    margin-bottom: 5px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.calculator-result strong {
    display: block;
    color: var(--color-text);
    font-size: 19px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.calculator-result-total {
    grid-column: 1 / -1;
    min-height: 104px;
    border-color: rgba(122, 42, 38, 0.25);
    background: rgba(122, 42, 38, 0.06);
}

.calculator-result-total strong {
    color: var(--color-wine);
    font-size: 24px;
}

.product-sections-modern {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 34px;
}

.product-section-specs,
.product-section-description {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
}

.product-specs-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.product-specs-modern .product-spec-row {
    grid-template-columns: minmax(130px, 0.68fr) minmax(0, 1fr);
}

.product-related .section-heading > div {
    min-width: 0;
}

@media (max-width: 992px) {
    .product-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-heading h1 {
        font-size: 36px;
    }

    .product-detail-modern,
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-page-modern {
        padding-top: 28px;
    }

    .product-detail-modern,
    .product-calculator,
    .product-section-specs,
    .product-section-description {
        padding: 18px;
        border-radius: 12px;
    }

    .product-key-specs,
    .calculator-fieldset,
    .calculator-result-grid,
    .product-specs-modern {
        grid-template-columns: 1fr;
    }

    .product-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-lightbox {
        padding: 18px;
    }

    .product-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .product-lightbox__image {
        max-height: 78vh;
    }

    .product-section-heading h2 {
        font-size: 24px;
    }
}

@media (max-width: 520px) {
    .product-heading h1 {
        font-size: 30px;
    }

    .product-detail-modern,
    .product-calculator,
    .product-section-specs,
    .product-section-description {
        width: min(100%, calc(100vw - 32px));
    }

    .product-gallery-main {
        aspect-ratio: 1 / 1;
    }

    .calculator-result-total strong {
        font-size: 21px;
    }
}

/* Catalog download widget and modal */
.product-layout-with-aside {
    position: relative;
    overflow: visible;
}

.product-main-column {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
    overflow: visible;
}

.product-catalog-aside {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% + 630px);
    width: 180px;
    max-width: calc(50vw - 650px);
    z-index: 5;
    min-width: 0;
    overflow: visible;
}

.catalog-download-widget {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 10px;
    width: 100%;
    min-height: 152px;
    padding: 17px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    box-shadow: 0 12px 28px rgba(44, 36, 22, 0.09);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.catalog-download-widget:hover {
    border-color: rgba(122, 42, 38, 0.34);
    box-shadow: 0 15px 34px rgba(44, 36, 22, 0.13);
    transform: translateY(-2px);
}

.catalog-download-widget__logo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    width: fit-content;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
}

.catalog-download-widget__logo strong {
    color: var(--color-wine);
}

.catalog-download-widget__text {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.catalog-download-widget__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: auto;
    border-radius: 12px;
    background: var(--color-wine);
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 9px 18px rgba(122, 42, 38, 0.14);
}

.product-short-description {
    padding-top: 4px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.75;
}

.product-short-description__title {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 19px;
    line-height: 1.25;
}

.product-short-description__content {
    color: var(--color-muted);
    line-height: 1.75;
    overflow: visible;
}

.product-short-description__content p + p,
.product-short-description__content ul,
.product-short-description__content ol {
    margin-top: 12px;
}

.product-short-description__content ul,
.product-short-description__content ol {
    padding-left: 20px;
}

.catalog-download-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.catalog-download-modal.active {
    display: block;
}

.catalog-download-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 22, 0.68);
}

.catalog-download-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(320px, 1.12fr);
    overflow: hidden;
    width: min(92vw, 860px);
    max-height: min(90vh, 720px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(44, 36, 22, 0.28);
    transform: translate(-50%, -50%);
}

.catalog-download-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-muted);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.catalog-download-modal__close:hover {
    color: var(--color-wine);
}

.catalog-download-modal__visual {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
    min-height: 520px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(232, 220, 196, 0.9), rgba(250, 247, 242, 0.98)),
        repeating-linear-gradient(90deg, rgba(107, 79, 53, 0.1) 0 1px, transparent 1px 48px);
}

.catalog-download-modal__brand {
    color: var(--color-text);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.catalog-download-modal__brand strong {
    color: var(--color-wine);
}

.catalog-download-modal__image {
    display: grid;
    place-items: center;
    min-height: 340px;
    padding: 24px;
    border: 1px solid rgba(107, 79, 53, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(232, 220, 196, 0.36)),
        repeating-linear-gradient(0deg, rgba(107, 79, 53, 0.12) 0 2px, transparent 2px 36px);
    color: var(--color-muted);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.catalog-download-modal__content {
    overflow-y: auto;
    padding: 40px 36px 34px;
}

.catalog-download-modal__content h2 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 30px;
    line-height: 1.12;
}

.catalog-download-modal__content > p {
    margin-bottom: 22px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.6;
}

.catalog-download-form {
    display: grid;
    gap: 13px;
}

.catalog-download-form label {
    display: grid;
    gap: 7px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
}

.catalog-download-form input,
.catalog-download-form select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-family: inherit;
    font-size: 14px;
}

.catalog-download-form input:focus,
.catalog-download-form select:focus {
    outline: 2px solid rgba(122, 42, 38, 0.18);
    border-color: var(--color-wine);
}

.catalog-download-form__consent {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px !important;
    color: var(--color-muted) !important;
    font-size: 12px !important;
    line-height: 1.4;
}

.catalog-download-form__consent input {
    width: 16px;
    min-height: 16px;
    margin-top: 2px;
}

.catalog-download-form__submit {
    width: 100%;
    margin-top: 2px;
}

.catalog-download-form__success,
.catalog-download-form__error {
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.catalog-download-form__success {
    border: 1px solid rgba(45, 125, 70, 0.22);
    background: rgba(45, 125, 70, 0.08);
    color: var(--color-success);
}

.catalog-download-form__error {
    border: 1px solid rgba(192, 57, 43, 0.18);
    background: rgba(192, 57, 43, 0.07);
    color: var(--color-error);
}

@media (max-width: 1180px) {
    .product-catalog-aside {
        position: static;
        width: 100%;
        max-width: 1200px;
        margin: 18px auto 0;
    }

    .catalog-download-widget {
        position: static;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        min-height: 0;
        padding: 16px 18px;
    }

    .catalog-download-widget__icon {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .catalog-download-modal__dialog {
        grid-template-columns: 1fr;
        width: min(94vw, 520px);
        max-height: 88vh;
        overflow-y: auto;
    }

    .catalog-download-modal__visual {
        min-height: 240px;
        padding: 24px;
    }

    .catalog-download-modal__image {
        min-height: 150px;
    }

    .catalog-download-modal__content {
        overflow: visible;
        padding: 28px 24px;
    }

    .catalog-download-modal__content h2 {
        font-size: 25px;
    }
}

@media (max-width: 520px) {
    .catalog-download-widget {
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        width: min(100%, calc(100vw - 32px));
    }

    .catalog-download-widget__logo {
        grid-column: 1 / -1;
    }

    .catalog-download-modal__dialog {
        width: calc(100vw - 24px);
    }

    .catalog-download-modal__visual {
        padding: 22px 18px;
    }

    .catalog-download-modal__content {
        padding: 26px 18px;
    }
}
