: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;

    --red: #c8102e;
    --red-hover: #a50d26;

    --btn-bg: #f2f2f2;
    --btn-bg-hover: #e8e8e8;
    --btn-border: #d9d9d9;
    --btn-primary-bg: #3a3a3a;
    --btn-primary-bg-hover: #2a2a2a;

    --radius: 6px;
    --radius-lg: 10px;
    --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: -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(--red);
}

/* HEADER */
.header {
    border-bottom: 1px solid var(--border);
    padding: 14px 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 {
    background: var(--btn-primary-bg);
    color: var(--text-inv);
}
.nav a.is-active:hover {
    background: var(--btn-primary-bg-hover);
    color: var(--text-inv);
}

.header-phone { flex-shrink: 0; }
.header-phone a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--bg-mute);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    transition: background .15s, color .15s;
}
.header-phone a:hover {
    background: var(--btn-bg-hover);
    color: var(--red);
}
.header-phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 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: var(--btn-primary-bg);
    color: var(--text-inv);
}
.btn-primary:hover { background: var(--btn-primary-bg-hover); }

.btn-outline {
    background: #fff;
    border-color: var(--btn-border);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--btn-bg);
    border-color: var(--border-2);
}

.btn-light {
    background: #fff;
    color: var(--text);
}
.btn-light:hover { background: #ececec; }

.btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,.35);
    color: var(--text-inv);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.6);
}

/* HERO */
.hero {
    background: var(--bg-soft);
    padding: 80px 0;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero .badge {
    display: inline-block;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-2);
    background: #fff;
    border: 1px solid var(--border);
}
.hero .badge .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--red);
    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 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;
}
.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: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.hero-dots button:hover {
    background: rgba(255,255,255,.8);
}
.hero-dots button.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* 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: 1px solid var(--border);
    box-shadow: var(--shadow);
    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;
}

/* 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;
}
.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(--red); }

/* GRID */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   CATEGORIES
   ============================================ */
.grid-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: .2s;
    position: relative;
    height: 420px;
}
.category-card:hover {
    border-color: var(--border-2);
    box-shadow: var(--shadow);
}

.category-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 8px;
    padding: 12px;
    background: var(--bg-soft);
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.cat-main {
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    min-height: 0;
    min-width: 0;
}
.cat-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
}

.cat-thumbs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    min-height: 0;
}
.cat-thumb {
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    min-height: 0;
    min-width: 0;
}
.cat-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .25s ease;
}

.category-card:hover .cat-main img {
    transform: scale(1.05);
}
.category-card:hover .cat-thumb img {
    transform: scale(1.06);
}

.category-title {
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-top: 1px solid var(--border);
    text-align: center;
    transition: color .15s;
    flex-shrink: 0;
}
.category-card:hover .category-title {
    color: var(--red);
}

@media (max-width: 1100px) {
    .category-card { height: 380px; }
}
@media (max-width: 900px) {
    .grid-cats { grid-template-columns: repeat(2, 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(--border-2);
    box-shadow: var(--shadow);
}

/* Карточка по умолчанию — вертикальная, 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(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    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(--red); }
.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(--red);
}
.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: 20px;
    color: var(--text-2);
}
.map-placeholder {
    aspect-ratio: 4 / 3;
    background: #eee;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ============================================
   ARTICLES — фото 16:10
   ============================================ */
.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .2s;
}
.article-card:hover {
    border-color: var(--border-2);
    box-shadow: var(--shadow);
}

.article-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
    overflow: hidden;
}
.article-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}
.article-card:hover .article-image img {
    transform: scale(1.04);
}

.article-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.35;
}
.article-body h3 a:hover { color: var(--red); }
.article-body p {
    font-size: 14px;
    color: var(--text-2);
    flex: 1;
}

/* ============================================
   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(--border-2);
    box-shadow: var(--shadow);
}

.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(--red); }
.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(--red);
}
.callback-form textarea { resize: vertical; min-height: 80px; }
.callback-form select { appearance: none; cursor: pointer; }
.callback-note {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* FOOTER */
.footer {
    background: #0f0f0f;
    color: var(--text-inv-2);
    padding: 56px 0 28px;
    font-size: 14px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer .logo {
    color: #fff;
    margin-bottom: 14px;
    font-size: 18px;
}
.footer p { color: #888; }
.footer h4 {
    color: #fff;
    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(--red); }
.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: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.catalog-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-3);
    margin-bottom: 10px;
    padding: 0 10px;
    flex-shrink: 0;
}

.catalog-series {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow-y: auto;
    margin: 0 -6px;
    padding: 0 6px;
    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 {
    position: relative;
    display: block;
    padding: 7px 12px 7px 14px;
    border-radius: var(--radius);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    transition: background .15s, color .15s;
}
.catalog-series a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 16px;
    background: var(--red);
    border-radius: 2px;
    transition: transform .2s;
}
.catalog-series a:hover {
    background: var(--bg-mute);
    color: var(--text);
}
.catalog-series a:hover::before {
    transform: translateY(-50%) scaleY(1);
}
.catalog-series a.is-active {
    background: var(--bg-mute);
    color: var(--text);
    font-weight: 600;
}
.catalog-series a.is-active::before {
    transform: translateY(-50%) scaleY(1);
}

.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(--border-2);
    box-shadow: var(--shadow);
}

/* Фото — БЕЗ обрезки, БЕЗ 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(--red);
}

.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: 20px;
    background: var(--red);
    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: #3a8a3a;
}

/* Адаптив каталога */
@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(--red); }
.product-breadcrumbs span { color: var(--text-3); }

.product-h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.product-stock {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border: 1px solid #8bc34a;
    color: var(--text-2);
    font-size: 13px;
    margin-bottom: 16px;
}

.product-action-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff0000, #ff5252, #ff7b7b, #ff9e9e, #ff7b7b, #ff5252, #ff0000);
    background-size: 400% 400%;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: productBannerWave 8s ease infinite;
}
.product-action-discount {
    padding: 2px 10px;
    background: rgba(255,255,255,.25);
    border-radius: 20px;
    font-size: 14px;
}
@keyframes productBannerWave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.product-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}

.product-photos { min-width: 0; }
.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-photos-label {
    font-size: 13px;
    color: var(--text-3);
    display: block;
    margin-bottom: 8px;
}
.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-info { min-width: 0; }

.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: #a0c020; }
.product-size-sale {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    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: #bfdc34; }
.product-color:hover img { border-color: var(--border-2); }

.product-cart-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
}

/* Табы */
.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(--red);
    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-similar { margin-top: 48px; }
.product-similar h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}
.product-similar .product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.product-features {
    margin-top: 40px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; }
    .product-similar .product-grid { grid-template-columns: repeat(3, 1fr); }
}



/* ============================================
   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 solid var(--border);
}
.calc-row:last-of-type {
    border-bottom: 1px solid var(--border);
}
.calc-row__photo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}
.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__price-opt {
    font-size: 12px;
    color: #3a8a3a;
    margin-top: 4px;
}
.calc-row__price { text-align: right; white-space: nowrap; }
.calc-row__price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.calc-row__price-cur,
.calc-row__unit {
    font-size: 13px;
    color: var(--text-3);
}
.calc-row__qty { text-align: center; }
.calc-qty {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    text-align: center;
    font-family: inherit;
}
.calc-qty:focus {
    outline: none;
    border-color: var(--btn-primary-bg);
}
.calc-row__sum {
    text-align: right;
    white-space: nowrap;
}
.calc-sum-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.calc-sum-cur {
    font-size: 13px;
    color: var(--text-3);
}
.calc-row__action { text-align: right; }
.calc-row__action .btn {
    padding: 8px 14px;
    font-size: 13px;
}

.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-total__cur {
    font-size: 16px;
    color: var(--text-3);
}

.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;
    }
    .calc-row__action { display: none; }
}
@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__photo { grid-area: photo; }
    .calc-row__info { grid-area: info; }
    .calc-row__price { grid-area: price; text-align: right; }
    .calc-row__qty { grid-area: qty; text-align: left; }
    .calc-row__sum { grid-area: sum; text-align: right; }
    .calc-row__action { display: none; }
}

.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(--red);
}
.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;
}
.footer-legal a {
    font-size: 13px;
    color: #666;
    transition: color .15s;
}
.footer-legal a:hover {
    color: var(--red);
}


/* 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: #c8102e;
    cursor: pointer;
}
.callback-form .callback-consent a {
    color: #c8102e;
    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: #fdecec;
    color: #b00020;
    border: 1px solid #f5c2c7;
}

/* блокировка формы на время "кулдауна" */
.callback-form.is-busy { opacity: .6; pointer-events: none; }