/* JNN Factory — визуальный слой 2026.
   Подключается последним на всех страницах. Задача: убрать наследие Tilda
   (гигантские меню, тройные подвалы, разноцветные соцполосы) и привести
   шапку, подвал, карточки, FAQ и блог к одному строгому B2B-стилю. */

/* Stage 12-FINAL-POLISH: самохостинг Inter (переменный, latin + cyrillic).
   Google Fonts отключён. Fallback разделён на Arial и Roboto с точными метриками. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter Fallback Arial';
    src: local('Arial'), local('Helvetica Neue'), local('Segoe UI'), local('Liberation Sans');
    ascent-override: 90.20%;
    descent-override: 22.48%;
    line-gap-override: 0.00%;
    size-adjust: 107.40%;
}
@font-face {
    font-family: 'Inter Fallback Roboto';
    src: local('Roboto');
    ascent-override: 90.21%;
    descent-override: 22.46%;
    line-gap-override: 0.00%;
    size-adjust: 107.39%;
}

/* Стрелки и меню: глифов нет в сабсетах Inter — рендерим системным шрифтом. */
.jnn-arrow {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
}
.jnn-burger svg { display: block; width: 22px; height: 22px; }

:root {
    --jnn-ink: #101011;
    --jnn-ink-2: #171718;
    --jnn-paper: #ffffff;
    --jnn-soft: #f5f5f2;
    --jnn-line: #e5e5df;
    --jnn-muted: #66665f;
    --jnn-accent: #c2410c;
    --jnn-accent-dark: #9a3412;
    --jnn-radius: 16px;
    --jnn-header-h: 64px;
}

html { scroll-behavior: smooth; }

body.jnn-visual {
    padding-top: var(--jnn-header-h) !important;
    overflow-x: hidden;
    background: var(--jnn-paper);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

body.jnn-visual *,
body.jnn-visual *::before,
body.jnn-visual *::after { box-sizing: border-box; }

/* У Tilda в проекте стоял розовый фон #f3e7e7. Для B2B-сайта оставляем
   нейтральный белый; цветные блоки задаются своими record-стилями. */
body.jnn-visual #allrecords { background: #ffffff !important; }

/* --------------------------------------------------------------------------
   1. Убираем старые шапки, подвалы и «тройной» блок ссылок.
   -------------------------------------------------------------------------- */
body.jnn-visual #jnn-site-links,
body.jnn-visual #t-header,
body.jnn-visual header.header,
body.jnn-visual > nav,
body.jnn-visual #t-footer,
body.jnn-visual > footer:not(.jnn-ftr),
body.jnn-visual #rec1151195956 { display: none !important; }

/* Tilda иногда прячет блоки до срабатывания анимации. Если JS не успел —
   получается «пустой экран». Для статического сайта анимация не нужна. */
body.jnn-visual .r_hidden,
body.jnn-visual .t-records { opacity: 1 !important; visibility: visible !important; transform: none !important; }

/* --------------------------------------------------------------------------
   2. Компактная шапка.
   -------------------------------------------------------------------------- */
.jnn-hdr {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--jnn-header-h);
    background: rgba(16, 16, 17, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

.jnn-hdr__in {
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.jnn-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.jnn-logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.jnn-logo b { font-weight: 800; }

.jnn-nav {
    display: flex !important;
    align-items: center;
    gap: 3px;
    position: static !important;
    inset: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: auto !important;
    flex: 1 1 auto;
}

.jnn-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    color: #d9d9d9 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .15s ease, background .15s ease;
}

.jnn-nav a:hover,
.jnn-nav a:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.09);
}

.jnn-hdr__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.jnn-hdr__phone {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.jnn-hdr__phone:hover { color: var(--jnn-accent) !important; }

.jnn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--jnn-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.jnn-btn:hover { background: var(--jnn-accent-dark); transform: translateY(-1px); }

.jnn-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff !important;
}

.jnn-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

.jnn-burger {
    display: none;
    width: 40px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.jnn-mnav {
    display: none;
    position: absolute;
    top: var(--jnn-header-h);
    left: 0;
    right: 0;
    padding: 12px 20px 20px;
    background: #101011;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    grid-template-columns: 1fr 1fr;
    gap: 4px 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.jnn-mnav.is-open { display: grid; }

.jnn-mnav a {
    display: block;
    padding: 11px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ededed !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.jnn-hdr .jnn-mnav a:hover { color: var(--jnn-accent) !important; }

/* Страницы, где старый заголовок был частью шапки (не Tilda-меню). */
body.jnn-visual header.jnn-page-head {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 20px 24px !important;
    background: transparent !important;
    color: var(--jnn-ink);
    border: 0 !important;
}

body.jnn-visual header.jnn-page-head h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

body.jnn-visual header.jnn-page-head p {
    max-width: 760px;
    margin: 0;
    color: var(--jnn-muted);
    font-size: 16px;
    line-height: 1.65;
}

body.jnn-visual header.jnn-page-head nav { display: none !important; }

/* --------------------------------------------------------------------------
   3. Один аккуратный подвал.
   -------------------------------------------------------------------------- */
.jnn-ftr {
    margin-top: 64px;
    padding: 0 !important;
    background: #101011;
    color: #bdbdb8;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

.jnn-ftr__in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 20px 44px;
    display: grid;
    grid-template-columns: minmax(230px, 1.15fr) minmax(0, 2.2fr);
    gap: 48px;
}

.jnn-ftr__brand .jnn-logo { margin-bottom: 18px; }

.jnn-ftr__about {
    max-width: 330px;
    margin: 0 0 22px;
    color: #a7a7a1;
    font-size: 14px;
    line-height: 1.7;
}

.jnn-ftr__contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
}

.jnn-ftr__contacts a {
    display: inline-block;
    min-height: 28px;
    padding: 6px 0;
    color: #f1f1ee !important;
    text-decoration: none !important;
}

.jnn-ftr__contacts a:hover { color: var(--jnn-accent) !important; }

.jnn-ftr__contacts .jnn-ftr__muted { color: #8d8d87; }

.jnn-ftr__socials {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.jnn-ftr__socials a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    color: #e9e9e5 !important;
    text-decoration: none !important;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.jnn-ftr__socials a:hover {
    border-color: var(--jnn-accent);
    color: var(--jnn-accent) !important;
    background: rgba(255, 90, 31, 0.08);
}

.jnn-ftr__socials svg { width: 17px; height: 17px; fill: currentColor; }

.jnn-ftr__cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.jnn-ftr__col h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jnn-ftr__col ul {
    display: block;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    line-height: 1.4;
}

.jnn-ftr__col li {
    margin: 0 0 9px;
    font-size: 13.5px;
    line-height: 1.4;
}

.jnn-ftr__col a {
    display: inline-block;
    min-height: 28px;
    padding: 6px 0;
    color: #b7b7b1 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    line-height: 1.4;
}

.jnn-ftr__col a:hover { color: #fff !important; }

.jnn-ftr__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.jnn-ftr__bottom-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    color: #8d8d87;
    font-size: 12px;
    line-height: 1.5;
}

.jnn-ftr__bottom-in a { color: #bdbdb8 !important; text-decoration: none !important; }
.jnn-ftr__bottom-in a:hover { color: #fff !important; }

/* --------------------------------------------------------------------------
   4. Tilda: убираем гигантские отступы, нормализуем типографику.
   -------------------------------------------------------------------------- */
body.jnn-visual .t-rec[class*="t-rec_pt_135"] { padding-top: 64px !important; }
body.jnn-visual .t-rec[class*="t-rec_pt_105"] { padding-top: 48px !important; }
body.jnn-visual .t-rec[class*="t-rec_pt_90"]  { padding-top: 48px !important; }
body.jnn-visual .t-rec[class*="t-rec_pt_45"]  { padding-top: 28px !important; }
body.jnn-visual .t-rec[class*="t-rec_pb_165"] { padding-bottom: 72px !important; }
body.jnn-visual .t-rec[class*="t-rec_pb_135"] { padding-bottom: 64px !important; }
body.jnn-visual .t-rec[class*="t-rec_pb_105"] { padding-bottom: 48px !important; }
body.jnn-visual .t-rec[class*="t-rec_pb_90"]  { padding-bottom: 48px !important; }
body.jnn-visual .t-rec[class*="t-rec_pb_75"]  { padding-bottom: 44px !important; }
body.jnn-visual .t-rec[class*="t-rec_pb_45"]  { padding-bottom: 28px !important; }

body.jnn-visual .t-title,
body.jnn-visual .t-heading { letter-spacing: -0.03em; }

body.jnn-visual .t-text,
body.jnn-visual .t-descr { line-height: 1.65; }

body.jnn-visual .t-cover { min-height: 62vh !important; height: 62vh !important; }
body.jnn-visual .t-cover__wrapper { height: 62vh !important; }

body.jnn-visual .t-container { max-width: 1180px; }

body.jnn-visual header.hero { padding-top: 84px !important; }

/* Фоновое видео hero не скрываем: ролик играет за текстом, постер остаётся
   запасным фоном до загрузки iframe и на мобильных. */

/* --------------------------------------------------------------------------
   5. Сетки Tilda (мужское / женское, категории, товары).
   -------------------------------------------------------------------------- */
body.jnn-visual .t853__container,
body.jnn-visual .t776__parent,
body.jnn-visual .t1029__row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px)) !important;
    justify-content: center;
    gap: 24px !important;
    max-width: 1180px;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

body.jnn-visual .t853__col,
body.jnn-visual .t776__col,
body.jnn-visual .t1029__col {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.jnn-visual .t853__col,
body.jnn-visual .t776__col,
body.jnn-visual .t853__col > .t-card__col,
body.jnn-visual .t776__col > .t-card__col {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

body.jnn-visual .t853__content,
body.jnn-visual .t776__content,
body.jnn-visual .t1029__col {
    overflow: hidden;
    border: 1px solid var(--jnn-line);
    border-radius: var(--jnn-radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 16, 17, 0.05);
}

body.jnn-visual .t853__content,
body.jnn-visual .t776__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

body.jnn-visual .t853__imgwrapper,
body.jnn-visual .t776__imgwrapper {
    position: relative !important;
    height: 360px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding-bottom: 0 !important;
    background: var(--jnn-soft);
    flex: none;
}

body.jnn-visual .t853__bgimg,
body.jnn-visual .t776__bgimg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

body.jnn-visual .t853__textwrapper,
body.jnn-visual .t776__textwrapper {
    flex: 1 1 auto;
    padding: 18px 18px 12px !important;
}

body.jnn-visual .t776__btn-wrapper { padding: 0 18px 18px !important; }

body.jnn-visual .t-card__title,
body.jnn-visual .t776__title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
}

body.jnn-visual .t-card__descr,
body.jnn-visual .t776__price { color: var(--jnn-muted); }

body.jnn-visual .t-card__uptitle {
    margin: 0 0 6px;
    color: var(--jnn-muted) !important;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.jnn-visual .t776__btn,
body.jnn-visual .t853 .t-btn {
    border-radius: 8px !important;
    background: var(--jnn-ink) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Вводный текст на хабах. */
body.jnn-visual .jnn-hub-intro {
    max-width: 760px;
    margin: 18px auto 0;
    padding: 0 20px;
    color: #55554f;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}

body.jnn-visual .jnn-hub-intro a { color: var(--jnn-ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   6. Карточка товара: фото слева, характеристики справа.
   -------------------------------------------------------------------------- */
.jnn-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 38px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px 12px;
}

.jnn-product-hero > .t-rec,
.jnn-product-hero > .t-rec > .t165 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.jnn-product-hero .t989__gallery-wrapper {
    padding: 10px !important;
    border: 1px solid var(--jnn-line);
    border-radius: 20px !important;
    background: var(--jnn-soft) !important;
}

.jnn-product-hero .t989 [style*="display:grid"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
}

.jnn-product-hero .t989 [style*="display:grid"] > div:first-child { grid-column: 1 / -1; }

.jnn-product-hero .t989 img {
    width: 100% !important;
    height: auto !important;
    max-height: 620px;
    object-fit: cover;
    border-radius: 13px !important;
    display: block;
}

.jnn-product-hero .t165 .t-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.jnn-product-hero .t165__col-top {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    padding: 0 !important;
}

.jnn-product-hero .t165__col-top:empty { display: none !important; }

.jnn-product-hero .t165__textwrapper {
    padding: 0 !important;
}

.jnn-product-hero .t165__title {
    margin: 4px 0 18px !important;
    font-size: clamp(30px, 3.6vw, 44px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em;
}

.jnn-product-hero .t165__text {
    color: #4f4f49;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.jnn-product-hero .t165__text strong { color: var(--jnn-ink); }

.jnn-product-hero .t165__text ul {
    margin: 16px 0;
    padding-left: 18px;
}

.jnn-product-hero .t165__text li { margin: 5px 0; }

.jnn-product-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--jnn-line);
}

.jnn-product-cta .jnn-btn { min-height: 44px; padding: 0 18px; }
.jnn-product-cta .jnn-btn--ghost {
    border-color: var(--jnn-line);
    color: var(--jnn-ink) !important;
}
.jnn-product-cta .jnn-btn--ghost:hover { background: var(--jnn-soft); }

.jnn-product-note {
    width: 100%;
    margin: 2px 0 0;
    color: var(--jnn-muted);
    font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   7. FAQ на карточке товара: аккуратный список с разделителями.
   -------------------------------------------------------------------------- */
body.jnn-visual .jnn-faq {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 0 0;
}

body.jnn-visual .jnn-faq h4 {
    margin: 30px 0 4px;
    color: #8a8a83;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.jnn-visual .jnn-faq p {
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--jnn-line);
    color: #45453f;
    font-size: 15.5px;
    line-height: 1.65;
}

body.jnn-visual .jnn-faq p strong {
    display: block;
    margin-bottom: 5px;
    color: var(--jnn-ink);
    font-size: 16.5px;
    font-weight: 750;
}

body.jnn-visual .jnn-faq ul {
    margin: 12px 0;
    padding-left: 20px;
}

body.jnn-visual .jnn-faq li { margin: 4px 0; }

body.jnn-visual .jnn-faq a { color: var(--jnn-ink); font-weight: 650; }

/* --------------------------------------------------------------------------
   8. Нижний SEO-блок товара и таблицы.
   -------------------------------------------------------------------------- */
body.jnn-visual section.jnn-extra {
    max-width: 980px !important;
    margin: 44px auto !important;
    padding: 34px 34px 30px !important;
    border: 1px solid var(--jnn-line) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(16, 16, 17, 0.05);
}

body.jnn-visual section.jnn-extra h2 {
    margin: 0 0 16px !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em;
}

body.jnn-visual section.jnn-extra h3 {
    margin: 28px 0 10px !important;
    font-size: 20px !important;
    letter-spacing: -0.02em;
}

body.jnn-visual section.jnn-extra p {
    color: #4d4d47 !important;
    font-size: 15.5px !important;
    line-height: 1.7 !important;
}

body.jnn-visual section.jnn-extra table {
    width: 100% !important;
    margin: 20px 0 !important;
    border: 1px solid var(--jnn-line) !important;
    border-radius: 12px;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
}

body.jnn-visual section.jnn-extra th,
body.jnn-visual section.jnn-extra td {
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--jnn-line) !important;
    text-align: left;
    font-size: 14px !important;
    line-height: 1.45;
    vertical-align: top;
}

body.jnn-visual section.jnn-extra th {
    background: #f3f3ef !important;
    color: var(--jnn-ink);
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.jnn-visual section.jnn-extra tr:last-child td { border-bottom: 0 !important; }
body.jnn-visual section.jnn-extra tr:nth-child(even) td { background: #fbfbf8; }
body.jnn-visual section.jnn-extra td:first-child { color: #77776f !important; white-space: nowrap; }
body.jnn-visual section.jnn-extra a { color: var(--jnn-ink) !important; }

body.jnn-visual section.jnn-extra p > a[href="/request-price.html"],
body.jnn-visual section.jnn-extra p > a[href*="wa.me"] {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    padding: 0 18px !important;
    border-radius: 9px !important;
    background: var(--jnn-accent) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. Блог: современная сетка карточек вместо списка ссылок.
   -------------------------------------------------------------------------- */
.jnn-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1180px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.jnn-blog-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--jnn-line);
    border-radius: var(--jnn-radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 16, 17, 0.045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.jnn-blog-card:hover {
    transform: translateY(-3px);
    border-color: #d3d3cb;
    box-shadow: 0 18px 40px rgba(16, 16, 17, 0.09);
}

.jnn-blog-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.jnn-blog-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f0f0ea;
    color: #55554f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jnn-blog-card__time { color: #9a9a92; font-size: 11px; white-space: nowrap; }

.jnn-blog-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.jnn-blog-card h3 a {
    color: var(--jnn-ink) !important;
    text-decoration: none !important;
}

.jnn-blog-card h3 a:hover { color: var(--jnn-accent) !important; }

.jnn-blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 20px;
    color: #66665f;
    font-size: 14px;
    line-height: 1.6;
}

.jnn-blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--jnn-ink) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
}

.jnn-blog-card__more span { transition: transform .15s ease; }
.jnn-blog-card__more:hover { color: var(--jnn-accent) !important; }
.jnn-blog-card__more:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   10. Кнопки мессенджеров в CTA (STM и товары).
   -------------------------------------------------------------------------- */
.jnn-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.jnn-cta-actions .t-btn,
.jnn-cta-actions .jnn-btn { margin: 0 !important; }

body.jnn-visual .jnn-wa-cta {
    background: #25d366 !important;
    border-radius: 9px !important;
    color: #fff !important;
    box-shadow: none !important;
    margin-right: 6px !important;
}

body.jnn-visual .jnn-wa-cta:hover { background: #1eb958 !important; }

.jnn-cta-note {
    flex-basis: 100%;
    margin: 10px 0 0;
    color: #66665f;
    font-size: 13px;
    text-align: center;
}

.jnn-cta-note a {
    color: var(--jnn-ink) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   11. Адаптив.
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .jnn-nav { display: none !important; }
    .jnn-burger { display: inline-flex; align-items: center; justify-content: center; }
    .jnn-hdr__actions { gap: 8px; }
    .jnn-hdr__phone { display: none; }
}

@media (max-width: 900px) {
    .jnn-ftr__in { grid-template-columns: 1fr; gap: 32px; }
    .jnn-ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jnn-product-hero { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; }
    .jnn-product-hero .t989 [style*="display:grid"] { grid-template-columns: 1fr 1fr !important; }
    body.jnn-visual section.jnn-extra { margin: 28px 16px !important; padding: 24px 18px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body.jnn-visual .t853__container,
    body.jnn-visual .t776__parent { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
    body.jnn-visual .t853__imgwrapper,
    body.jnn-visual .t776__imgwrapper { height: 240px !important; }
    body.jnn-visual .t853__textwrapper,
    body.jnn-visual .t776__textwrapper { padding: 14px 14px 10px !important; }
    body.jnn-visual .t-card__title,
    body.jnn-visual .t776__title { font-size: 16px !important; }
}

@media (max-width: 640px) {
    :root { --jnn-header-h: 60px; }
    .jnn-hdr__in { gap: 10px; padding: 0 14px; }
    .jnn-logo { font-size: 14px; }
    .jnn-logo img { width: 30px; height: 30px; }
    .jnn-hdr__actions .jnn-btn { min-height: 36px; padding: 0 12px; font-size: 12px; }
    .jnn-ftr { margin-top: 40px; }
    .jnn-ftr__in { gap: 22px; padding: 28px 18px 22px; }
    .jnn-ftr__brand .jnn-logo { margin-bottom: 12px; }
    .jnn-ftr__about { margin-bottom: 14px; font-size: 13px; line-height: 1.55; }
    .jnn-ftr__contacts { gap: 5px; font-size: 13px; }
    .jnn-ftr__socials { margin-top: 12px; }
    .jnn-ftr__socials a { width: 32px; height: 32px; }
    .jnn-ftr__cols { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
    .jnn-ftr__col h3 { margin-bottom: 8px; font-size: 11px; line-height: 1.2; }
    .jnn-ftr__col li { margin-bottom: 5px; font-size: 12.5px; line-height: 1.35; }
    .jnn-ftr__col a { font-size: 12.5px; line-height: 1.35; }
    .jnn-ftr__bottom-in { padding: 14px 18px; font-size: 11px; }
    .jnn-blog-grid { grid-template-columns: 1fr; padding: 0 18px; }
    .jnn-blog-card { min-height: 0; padding: 20px; }
    body.jnn-visual .t853__container,
    body.jnn-visual .t776__parent { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; padding: 0 !important; }
    body.jnn-visual .t1029__row { grid-template-columns: 1fr !important; }
    body.jnn-visual .t853__imgwrapper,
    body.jnn-visual .t776__imgwrapper { height: 220px !important; }
    body.jnn-visual .t853__textwrapper,
    body.jnn-visual .t776__textwrapper { padding: 12px 12px 10px !important; }
    body.jnn-visual .t-card__title,
    body.jnn-visual .t776__title { font-size: 15px !important; }
    body.jnn-visual .t-card__descr,
    body.jnn-visual .t-card__uptitle { display: none !important; }
    body.jnn-visual .t776__btn-wrapper { padding: 0 12px 12px !important; }
    body.jnn-visual .t776__btn { min-height: 34px !important; font-size: 11px !important; padding: 0 10px !important; }
    body.jnn-visual .t-container { padding-left: 16px; padding-right: 16px; }
    .jnn-product-hero .t989 [style*="display:grid"] { grid-template-columns: 1fr !important; }
    .jnn-product-hero .t989 [style*="display:grid"] > div:first-child { grid-column: auto; }
    body.jnn-visual section.jnn-extra th,
    body.jnn-visual section.jnn-extra td { padding: 10px 11px !important; font-size: 13px !important; }
    body.jnn-visual section.jnn-extra td:first-child { white-space: normal; }
}
