:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f7;
    --bg-mute: #f2f2f2;
    --dark: #1f1f1f;
    --dark-2: #2a2a2a;

    --text: #1a1a1a;
    --text-2: #666666;
    --text-3: #999999;
    --text-inv: #ffffff;
    --text-inv-2: #b3b3b3;

    --border: #e5e5e5;
    --border-2: #d4d4d4;

    --brand: #008e21;
    --brand-hover: #00731b;
    --accent: #ca2718;
    --accent-hover: #a51f13;
    --wood: #8d6e4f;

    --btn-bg: #f2f2f2;
    --btn-bg-hover: #e8e8e8;
    --btn-border: #d9d9d9;
    --btn-primary-bg: #008e21;
    --btn-primary-bg-hover: #00731b;

    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 8px 24px rgba(0,0,0,.06);
    --shadow-hover: 0 12px 32px rgba(0,0,0,.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP LINE */
.top-line {
    height: 3px;
    background: var(--brand);
}

/* HEADER */
.header {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-2);
    flex-shrink: 0;
}
.logo img {
    display: block;
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 4px;
    font-size: 14px;
}
.nav a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text-2);
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav a:hover {
    background: var(--bg-mute);
    color: var(--text);
}
.nav a.is-active {
    color: var(--brand);
    font-weight: 600;
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--brand);
}
.nav a.is-active:hover {
    color: var(--brand);
    background: var(--bg-mute);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
    text-align: center;
    font-family: inherit;
    line-height: 1;
}
.btn-primary {
    background: #d8efdb;
    color: #1b5e20;
    box-shadow: none;
}
.btn-primary:hover {
    background: #c2e2c6;
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    border-color: var(--btn-border);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--btn-bg);
    border-color: var(--border-2);
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #eef6f0 0%, #e3efe6 100%);
    padding: 80px 0;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}
.hero .badge {
    display: inline-block;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ca2718;
    background: #fdecea;
    border: 1px solid #f5c2c2;
}
.hero .badge .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ca2718;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.hero h1 {
    font-size: 46px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-highlight {
    color: var(--brand);
    background: linear-gradient(180deg, transparent 55%, rgba(0,142,33,.18) 55%);
}
.hero p {
    font-size: 18px;
    color: var(--text-2);
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #e5e5e5;
    order: -1;
    box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
}
.hero-slide.is-active {
    opacity: 1;
}
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}
.hero-dots button {
    width: 22px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s, width .2s;
}
.hero-dots button:hover {
    background: rgba(255,255,255,.8);
}
.hero-dots button.is-active {
    background: #fff;
    width: 34px;
}

/* AUDIENCE */
.audience { padding: 0 0 72px; }
.audience .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}
.audience-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: none;
    border-top: 3px solid var(--brand);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: .2s;
}
.audience-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.audience-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}
.audience-card p {
    color: var(--text-2);
    margin-bottom: 20px;
    font-size: 15px;
}
.audience-card--dark {
    background: #ececec;
    border-top-color: var(--brand);
}

/* SECTIONS */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 {
    font-size: 32px;
    letter-spacing: -0.4px;
    margin-bottom: 32px;
    font-weight: 700;
    border-left: 4px solid var(--brand);
    padding-left: 16px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; }
.link-more {
    color: var(--text-2);
    font-size: 14px;
    white-space: nowrap;
    transition: color .15s;
}
.link-more:hover { color: var(--brand); }

/* GRID */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   PRODUCTS — базовая сетка (главная: 6 в ряд)
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .2s;
    position: relative;
}
.product-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* Карточка по умолчанию — вертикальная, contain */
.product-image {
    display: block;
    aspect-ratio: 9 / 16;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 8px;
    line-height: 1;
}

.product-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
}
.product-price {
    font-size: 12px;
    color: var(--text-3);
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.product-card .btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ADVANTAGES */
.advantage {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.advantage h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}
.advantage p {
    font-size: 14px;
    color: var(--text-2);
}

/* STATS */
.stats {
    background: var(--dark);
    color: var(--text-inv);
}
.stats .grid-4 { text-align: center; }
.stat-num {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 6px;
    color: #fff;
}
.stat-num .accent { color: var(--brand); }
.stat-label {
    font-size: 13px;
    color: var(--text-inv-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   DEALER + FORM
   ============================================ */
.dealer {
    background: var(--dark);
    color: var(--text-inv);
}
.dealer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.dealer h2 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 32px;
    letter-spacing: -0.4px;
}
.dealer p {
    color: var(--text-inv-2);
    margin-bottom: 24px;
    font-size: 16px;
}
.dealer ul {
    list-style: none;
    margin-bottom: 32px;
}
.dealer li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 10px;
    color: #e5e5e5;
    font-size: 15px;
}
.dealer li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 2px;
    background: var(--brand);
}
.dealer-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.dealer-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.dealer-form > p {
    color: var(--text-inv-2);
    font-size: 15px;
    margin-bottom: 20px;
}

/* ============================================
   WHERE TO BUY
   ============================================ */
.where-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: center;
}
.where h2 { margin-bottom: 16px; }
.where p {
    color: var(--text-2);
    margin-bottom: 24px;
    font-size: 16px;
}
.where-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.where-cities span {
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 8px;
    color: var(--text-2);
}

/* ============================================
   NEWS — квадрат 1:1
   ============================================ */
.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .2s;
}
.news-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.news-image {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    overflow: hidden;
}
.news-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}
.news-card:hover .news-image img {
    transform: scale(1.04);
}

.news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-date {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.news-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.35;
}
.news-body h3 a:hover { color: var(--brand); }
.news-body p {
    font-size: 14px;
    color: var(--text-2);
    flex: 1;
}

/* CALLBACK FORM */
.callback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.callback-form input,
.callback-form select,
.callback-form textarea {
    padding: 14px 16px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s;
}
.callback-form input::placeholder,
.callback-form textarea::placeholder {
    color: #777;
}
.callback-form input:focus,
.callback-form select:focus,
.callback-form textarea:focus {
    outline: none;
    border-color: var(--brand);
}
.callback-form textarea { resize: vertical; min-height: 80px; }
.callback-form select { appearance: none; cursor: pointer; }

/* FOOTER */
.footer {
    background: #0f0f0f;
    color: var(--text-inv-2);
    padding: 56px 0 28px;
    font-size: 14px;
    border-top: 3px solid #8d6e4f;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer .logo {
    color: #fff;
    margin-bottom: 14px;
    font-size: 18px;
}
.footer p { color: #888; }
.footer h4 {
    color: #c9a06c;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { transition: color .15s; }
.footer a:hover { color: var(--brand); }
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 24px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* ADAPTIVE */
@media (max-width: 1100px) {
    .nav a { padding: 10px 12px; font-size: 13px; }
}
@media (max-width: 900px) {
    .hero-inner,
    .audience .grid,
    .dealer-inner,
    .where-inner { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
    .hero h1 { font-size: 32px; }
    .audience .grid { margin-top: 24px; }
    .section { padding: 56px 0; }
    .section h2 { font-size: 26px; }
    .dealer h2 { font-size: 26px; }
}
@media (max-width: 560px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .hero h1 { font-size: 26px; }
    .stat-num { font-size: 34px; }
}

/* ============================================
   CATALOG PAGE
   ============================================ */
.catalog-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 72px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 90px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.catalog-sidebar-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 14px;
    padding: 0 0 10px;
    border-bottom: 2px solid var(--brand);
    flex-shrink: 0;
}

.catalog-series {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-2) transparent;
    flex: 1;
    min-height: 0;
}
.catalog-series::-webkit-scrollbar { width: 6px; }
.catalog-series::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 3px;
}
.catalog-series::-webkit-scrollbar-thumb:hover {
    background: var(--text-3);
}
.catalog-series::-webkit-scrollbar-track { background: transparent; }

.catalog-series li { margin: 0; }

.catalog-series a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 2px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    border-bottom: 1px solid var(--border);
    transition: color .15s, padding-left .15s;
}
.catalog-series a::after {
    content: "→";
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s, transform .15s;
    flex: 0 0 auto;
}
.catalog-series a:hover {
    color: var(--brand);
    padding-left: 6px;
}
.catalog-series a:hover::after {
    opacity: 1;
    transform: translateX(0);
}
.catalog-series a.is-active {
    color: var(--brand);
    font-weight: 700;
    padding-left: 6px;
}
.catalog-series a.is-active::after {
    opacity: 1;
    transform: translateX(0);
}

.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.catalog-head h1 {
    font-size: 28px;
    letter-spacing: -0.4px;
}
.catalog-count { font-size: 14px; color: var(--text-3); }
.catalog-empty { padding: 40px 0; text-align: center; color: var(--text-2); }

/* ============================================
   CATALOG — карточки товаров (5 в ряд)
   ============================================ */

/* Сетка */
.catalog-main .product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 16px;
}

/* Карточка — обводка, белый фон */
.catalog-main .product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: .2s;
    position: relative;
}
.catalog-main .product-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* Фото — БЕЗ обрезки, БЕЗ aspect-ratio, БЕЗ max-height, БЕЗ overflow:hidden */
.catalog-main .product-image {
    display: block;
    position: relative;
    padding: 16px 8px;              /* отступы над и под картинкой */
    background: #fff;
    /* никаких ограничений по высоте */
}
.catalog-main .product-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
}
.catalog-main .product-card:hover .product-image img {
    transform: scale(1.02);
}

/* Тело карточки */
.catalog-main .product-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    border-top: 1px solid var(--border);
}

.catalog-main .product-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
}
.catalog-main .product-title a:hover {
    color: var(--brand);
}

.catalog-main .product-color {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.3;
}

.catalog-main .product-price {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.catalog-main .product-price-current {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
}
.catalog-main .product-price-old {
    font-size: 12px;
    color: var(--text-3);
    text-decoration: line-through;
}

/* Кнопка */
.catalog-main .product-card .btn {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

/* Плашки */
.catalog-main .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.catalog-main .product-badge--akciya {
    background: #008e21;
}

/* Адаптив каталога */
@media (max-width: 1200px) {
    .catalog-main .product-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1000px) {
    .catalog-main .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .catalog-wrap { grid-template-columns: 1fr; gap: 24px; }
    .catalog-sidebar { position: static; max-height: none; }
    .catalog-series { overflow: visible; }
}
@media (max-width: 700px) {
    .catalog-main .product-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================
   CATALOG — финальный override. Режет картинки — убиваем.
   ============================================ */
.catalog-main .product-card,
.catalog-main .product-image,
.catalog-main .product-image img {
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    object-fit: contain !important;
}

.catalog-main .product-image {
    display: block !important;
    padding: 16px 8px !important;
    background: #fff !important;
}

.catalog-main .product-image img {
    display: block !important;
    width: 100% !important;
}

.catalog-main .product-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;   /* важно: обрезает только лишний зум при ховере, не саму картинку */
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    background: #fff !important;
}


.container--wide {
    max-width: 1440px;
}

/* ============================================
   PRODUCT PAGE (desktop)
   ============================================ */
.product-page { padding: 40px 0 72px; }

.product-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 20px;
}
.product-breadcrumbs a { color: var(--text-2); }
.product-breadcrumbs a:hover { color: var(--brand); }
.product-breadcrumbs span { color: var(--text-3); }

.product-h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.product-photo-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.product-photo-main img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
}
.product-photo-thumbs-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
}
.product-thumb:hover { border-color: var(--border-2); }

.product-price-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.product-price-label {
    color: var(--text-3);
    font-size: 14px;
    min-width: 90px;
}
.product-price-current {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}
.product-price-old {
    font-size: 14px;
    color: var(--text-3);
    text-decoration: line-through;
}

.product-section { margin-bottom: 24px; }
.product-section-title {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 10px;
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-size-btn {
    position: relative;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: .15s;
    text-align: center;
    min-width: 100px;
}
.product-size-btn:hover { border-color: var(--border-2); }
.product-size-btn.is-active { border-color: #008e21; }
.product-size-sale {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #ca2718;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.product-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-2);
    font-size: 12px;
}
.product-color img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: border-color .15s;
}
.product-color.is-active img { border-color: #008e21; }
.product-color:hover img { border-color: var(--border-2); }

/* Табы */
.product-tabs {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
}
.product-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
}
.product-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: color .15s, background .15s;
    font-family: inherit;
}
.product-tab:hover { background: var(--bg-soft); color: var(--text); }
.product-tab.is-active {
    color: var(--text);
    font-weight: 600;
    border-bottom: 2px solid var(--brand);
    margin-bottom: -1px;
}
.product-tab-pane { display: none; padding: 24px; }
.product-tab-pane.is-active { display: block; }

.product-spec {
    width: 100%;
    border-collapse: collapse;
}
.product-spec td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: top;
}
.product-spec tr:last-child td { border-bottom: none; }
.product-spec td:first-child { width: 200px; color: var(--text-2); }

.product-features {
    margin-top: 40px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.7;
}





/* ============================================
   PRODUCT CALCULATOR
   ============================================ */
.product-calculator {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}
.product-calculator-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.calc-row {
    display: grid;
    grid-template-columns: 100px 1fr 180px 100px 130px 130px;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px dashed #e0e0e0;
}
.calc-row:last-of-type {
    border-bottom: 1px dashed #e0e0e0;
}
.calc-row__info { min-width: 0; }
.calc-row__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-3);
    margin-bottom: 4px;
}
.calc-row__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
}
.calc-row__articul {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 400;
    margin-top: 2px;
}
.calc-row__qty { text-align: center; }
.calc-qty {
    width: 72px;
    padding: 9px 6px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.calc-qty:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.calc-row__sum {
    text-align: right;
    white-space: nowrap;
}
.calc-sum-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.calc-total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 16px;
    padding: 20px 0 0;
}
.calc-total__label {
    font-size: 15px;
    color: var(--text-2);
}
.calc-total__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.calc-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .calc-row {
        grid-template-columns: 80px 1fr 140px 90px 110px;
    }
}
@media (max-width: 900px) {
    .calc-row {
        grid-template-columns: 80px 1fr 100px;
        grid-template-areas:
            "photo info price"
            "photo qty sum";
        gap: 8px 12px;
    }
    .calc-row__info { grid-area: info; }
    .calc-row__qty { grid-area: qty; text-align: left; }
    .calc-row__sum { grid-area: sum; text-align: right; }
}

.product-breadcrumbs__sep { color: var(--text-3); }
.product-breadcrumbs__current { color: var(--text); font-weight: 500; }


/* ============================================
   FOOTER (расширенный)
   ============================================ */
.footer-col--brand .logo {
    margin-bottom: 14px;
}
.footer-col--brand p {
    margin-bottom: 16px;
    line-height: 1.5;
}
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.footer-contacts a {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: color .15s;
}
.footer-contacts a:hover {
    color: var(--brand);
}
.footer-time {
    font-size: 13px;
    color: #666;
    padding-top: 8px;
    border-top: 1px solid #222;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}



/* honeypot — визуально скрыт, но не display:none (иначе боты умнеют) */
.callback-form .hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* галочка согласия */
.callback-form .callback-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #555;
    margin: 4px 0 8px;
    cursor: pointer;
}
.callback-form .callback-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: #008e21;
    cursor: pointer;
}
.callback-form .callback-consent a {
    color: #008e21;
    text-decoration: underline;
}
.callback-form .callback-consent a:hover {
    text-decoration: none;
}

/* статус отправки */
.callback-form .callback-status {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}
.callback-form .callback-status.is-ok {
    display: block;
    background: #e8f7ec;
    color: #1e7a3a;
    border: 1px solid #bfe6c9;
}
.callback-form .callback-status.is-err {
    display: block;
    background: #e8f5e9;
    color: #ca2718;
    border: 1px solid #c8e6c9;
}

/* блокировка формы на время "кулдауна" */
.callback-form.is-busy { opacity: .6; pointer-events: none; }
/* ============================================
   ЛЕНИВАЯ ЗАГРУЗКА ФОТО ТОВАРОВ (каталог)
   Серая заглушка (без рисунка) + плавная проявка фото.
   Заглушка - серый блок позади фото (::before); фото проявляется
   opacity 0 -> 1 при загрузке. Пропорции 453x1000, без сдвига вёрстки.
   ============================================ */
.product-photo-lazy {
    position: relative;
    z-index: 1;
    aspect-ratio: 453 / 1000;
    opacity: 0;
    transition: opacity .45s ease;
}
.product-photo-lazy.is-loaded {
    opacity: 1;
}
/* серый блок-заглушка позади фото (без рисунка) */
.product-image:has(> .product-photo-lazy)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #d6d6dc;
    transition: opacity .45s ease;
}
/* после загрузки фото заглушка исчезает */
.product-image:has(> .product-photo-lazy.is-loaded)::before {
    opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
    .product-photo-lazy,
    .product-image:has(> .product-photo-lazy)::before {
        transition: none;
    }
}
