/* === Triada-1.5 / Veranda — global stylesheet ===
   Регистр дизайна: triada desigm 1/ui_kits/veranda.html (соседский Claude).
   Зелёный акцент #21a06f, фирменная сетка-фон, sticky-header стекло. */

/* ── tokens ── */
:root {
    --accent:        #21a06f;
    --accent2:       #8b6209;
    --accent3:       #ff006a;   /* tag */
    --accent4:       #10c027;   /* success */
    --accent5:       #ff0000;   /* danger */
    --bg:            #ffffff;
    --text:          #373737;
    --text-accent:   #ffffff;
    --accent-t:      color-mix(in srgb, var(--accent) 5%, transparent);
    --accent-t1:     color-mix(in srgb, var(--accent) 10%, transparent);
    --accent-t2:     color-mix(in srgb, var(--accent) 20%, transparent);
    --accent-t3:     color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

/* ── base ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: #fff;
    background:
        repeating-linear-gradient(90deg, var(--accent-t) 0 6vmin, var(--accent-t1) 6vmin calc(6vmin + 2px), var(--accent-t) calc(6vmin + 2px) 12vmin),
        repeating-linear-gradient(0deg, var(--accent-t) 0 8vmin, var(--accent-t1) 8vmin calc(8vmin + 2px), var(--accent-t) calc(8vmin + 2px) 17vmin),
        #fff;
    min-height: 100vh;
}
* { transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; }

main { max-width: 1320px; margin: 0 auto; padding: 32px 28px 80px; }

/* ── header ── */
.vh {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--accent-t1);
}
.vh-inner { max-width: 1320px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 24px; }
.vh-logo { display: flex; align-items: center; gap: 10px; color: var(--accent); flex-shrink: 0; }
.vh-logo svg { width: 36px; height: 36px; }
.vh-logo b { font-size: 16px; font-weight: 600; letter-spacing: 1.2px; }
.vh-links { display: flex; gap: 22px; flex: 1; justify-content: center; }
.vh-links a { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.vh-links a:hover { color: var(--accent2); }
.vh-actions { display: flex; gap: 8px; align-items: center; }
.vh-phone {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: var(--accent); color: #fff;
    border-radius: 3px; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.vh-phone:hover { background: var(--accent2); }
.vh-phone svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vh-burger { display: none; background: transparent; border: none; padding: 6px; color: var(--accent); }
.vh-burger svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── hero ── */
.hero {
    position: relative;
    height: 520px;
    border-radius: 8px;
    overflow: hidden;
    display: flex; align-items: center;
    padding: 36px;
    background: linear-gradient(135deg, #0d3a25 0%, var(--accent) 50%, #8b6209 100%);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .4; mix-blend-mode: luminosity; pointer-events: none;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(255,255,255,.18), transparent 55%);
    pointer-events: none;
}
.hero-info {
    position: relative; z-index: 2;
    max-width: 580px;
    background: rgba(255,255,255,.18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 28px 32px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,.2);
}
.hero-tag {
    display: inline-block; background: var(--accent3); color: #fff;
    padding: 5px 11px; border-radius: 2px;
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: 38px; font-weight: 500; line-height: 1.15; margin-bottom: 12px; }
.hero p { color: rgba(255,255,255,.92); font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 12px; font-weight: 600;
    border: 1px solid transparent; background: transparent; cursor: pointer;
}
.cta-primary { background: #fff; color: var(--accent); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.cta-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-ghost:hover { background: rgba(255,255,255,.1); }
.cta-accent { background: var(--accent); color: #fff; }
.cta-accent:hover { background: var(--accent2); }
.cta-ghost-accent { color: var(--accent); border-color: var(--accent); }
.cta-ghost-accent:hover { background: var(--accent-t1); }

/* ── sections ── */
.section { margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.4px; font-size: 14px; font-weight: 600; color: var(--accent); text-align: center; margin: 64px 0 12px; }
.section-title { font-size: 32px; font-weight: 500; color: var(--text); text-align: center; margin: 0 0 32px; line-height: 1.2; }
.section-subtitle { font-size: 22px; font-weight: 500; color: var(--text); text-align: center; margin: 32px 0 16px; }

/* ── advantages ── */
.advs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adv-card { background: #fff; border: 1px solid var(--accent-t1); border-radius: 6px; padding: 28px 24px; text-align: center; }
.adv-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-t1); border-color: var(--accent-t2); }
.adv-icon { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 12px; }
.adv-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.adv-card h3 { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.adv-card p { font-size: 13px; line-height: 1.5; }

/* ── calculator ── */
.calc-box { background: #fff; border-radius: 8px; padding: 36px; border: 1px solid var(--accent-t2); display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.calc-form .row { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 14px; margin-bottom: 14px; }
.calc-form label { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.calc-form input, .calc-form select {
    padding: 12px 14px; background: var(--accent-t); border: none; border-radius: 3px;
    font-family: inherit; font-size: 14px; color: var(--text); outline: none; width: 100%;
}
.calc-form input:focus, .calc-form select:focus { background: var(--accent-t3); color: var(--text-accent); }
.calc-checks { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.calc-checks label { display: flex; gap: 10px; font-size: 13px; align-items: center; cursor: pointer; }
.calc-checks input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.calc-result { background: var(--accent-t1); border-radius: 6px; padding: 24px; text-align: center; }
.calc-result .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); font-weight: 600; }
.calc-result .price { font-size: 56px; font-weight: 600; color: var(--accent); line-height: 1; margin: 12px 0 8px; }
.calc-result .from { font-size: 13px; margin-bottom: 18px; }
.calc-result .cta { width: 100%; justify-content: center; }
.calc-note { margin-top: 14px; font-size: 11px; opacity: .7; }

/* ── gallery ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work { aspect-ratio: 4/3; border-radius: 6px; position: relative; overflow: hidden; background-color: var(--accent-t1); background-size: cover; background-position: center; display: block; }
.work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,58,37,.85), transparent 55%); pointer-events: none; }
.work .meta { position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 1; color: #fff; }
.work .meta b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.work .meta span { font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }
.work:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--accent-t2); }
.gallery-more { text-align: center; margin-top: 24px; }

/* ── lookbook page ── */
.lb-page { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.breadcrumbs { font-size: 12px; color: var(--text); opacity: .65; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .8px; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent2); }
.breadcrumbs span { margin: 0 6px; }
.breadcrumbs .bc-current { color: var(--text); opacity: .7; }

.lb-spread { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-bottom: 32px; }
.lb-fig { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 36px var(--accent-t2); background: var(--accent-t1); }
.lb-fig img { width: 100%; height: auto; display: block; }
.lb-prose { font-size: 16px; line-height: 1.7; color: var(--text); padding-top: 4px; }
.lb-prose p { margin: 0 0 16px; }
.lb-prose p:first-child { font-size: 18px; line-height: 1.55; color: var(--text); font-weight: 500; }
.lb-prose p:first-child::first-letter {
    font-size: 48px; line-height: 1; float: left; font-weight: 600;
    color: var(--accent); padding: 4px 8px 0 0;
}
.lb-cta { margin-top: 12px; }

/* prev/next/up */
.lb-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 32px 0; }
.lb-nav > a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 18px; background: #fff; border: 1px solid var(--accent-t2);
    border-radius: 6px; color: var(--text); font-size: 13px;
    text-transform: uppercase; letter-spacing: .8px; font-weight: 500;
}
.lb-nav > a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px var(--accent-t2); }
.lb-nav-prev { justify-self: start; }
.lb-nav-next { justify-self: end; }
.lb-nav-up { justify-self: center; background: var(--accent-t1) !important; }
.lb-nav-arrow { font-size: 18px; color: var(--accent); font-weight: 600; }
.lb-nav-count { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 11px; }

@media (max-width: 768px) {
    .lb-page { padding: 0 16px; }
    .lb-spread { grid-template-columns: 1fr; gap: 20px; }
    .lb-prose p:first-child { font-size: 16px; }
    .lb-prose p:first-child::first-letter { font-size: 38px; padding: 2px 6px 0 0; }
    .lb-nav { grid-template-columns: 1fr; }
    .lb-nav-prev, .lb-nav-next, .lb-nav-up { justify-self: stretch; }
}

/* ── readbook list (без картинок, чистая типографика) ── */
.rb-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rb-card {
    background: #fff;
    border: 1px solid var(--accent-t1);
    border-radius: 8px;
    padding: 26px 28px;
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-t2); border-color: var(--accent); }
.rb-card-pic { display: none; }
.rb-card-body { padding: 0; }
.rb-card h3 {
    font-size: 19px; font-weight: 600; line-height: 1.3;
    color: var(--text); margin-bottom: 10px;
    letter-spacing: -.2px;
}
.rb-card p {
    font-size: 14px; line-height: 1.55;
    color: var(--text); opacity: .75;
    margin: 0;
}
.rb-card::after {
    content: "Читать →";
    margin-top: 14px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--accent); font-weight: 600;
}

/* ── blog block on home page ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.blog-card {
    background: #fff;
    border: 1px solid var(--accent-t1);
    border-radius: 8px;
    padding: 24px 26px;
    color: var(--text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-t2); border-color: var(--accent); }
.blog-card-pic { display: none; }
.blog-card-body { padding: 0; }
.blog-card h3 {
    font-size: 17px; font-weight: 600; line-height: 1.3;
    color: var(--text); margin-bottom: 8px;
    letter-spacing: -.2px;
}
.blog-card p { font-size: 13px; line-height: 1.55; color: var(--text); opacity: .75; margin: 0; }
.blog-card::after {
    content: "Читать →";
    margin-top: 12px; display: block;
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--accent); font-weight: 600;
}
.blog-more { text-align: center; margin-top: 24px; }

/* ── article (типографика чистая, читабельная) ── */
.page-title { font-size: 38px; font-weight: 500; line-height: 1.2; text-align: center; margin: 16px 0 24px; letter-spacing: -.5px; }
.article-section {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 48px 56px;
    border: 1px solid var(--accent-t1);
}
.article-lead {
    font-size: 19px; line-height: 1.55;
    color: var(--text); margin-bottom: 28px;
    font-weight: 500;
}
.article-body { font-size: 16px; line-height: 1.75; color: var(--text); }
.article-body p { margin: 0 0 18px; }
.article-body p:first-of-type { font-size: 17px; }
.article-body h2 {
    font-size: 22px; font-weight: 600;
    margin: 36px 0 14px;
    color: var(--accent);
    letter-spacing: -.2px;
}
.article-body h3 {
    font-size: 17px; font-weight: 600;
    margin: 26px 0 10px;
    color: var(--text);
}
.article-body ul {
    margin: 14px 0 22px 0;
    list-style: none;
    padding-left: 0;
}
.article-body ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}
.article-body ul li::before {
    content: "";
    position: absolute;
    left: 4px; top: 11px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.article-body b { font-weight: 600; color: var(--text); }
.article-body i { font-style: italic; color: var(--text); }
/* GitHub-style markdown table — со скроллом на мобиле, не разрывает экран */
.article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14px;
    white-space: nowrap;
}
.article-body table thead, .article-body table tbody, .article-body table tr { display: table; width: 100%; table-layout: fixed; }
.article-body table th,
.article-body table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--accent-t1);
}
.article-body table th {
    background: var(--accent-t);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 12px;
    color: var(--accent);
    border-bottom: 2px solid var(--accent-t2);
}
.article-body table tr:hover td { background: var(--accent-t); }

.rb-hero { display: none; }

/* ── stories slider on home (preview cards) ── */
.stories-section { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.st-slider-wrap { position: relative; }
.st-slider {
    display: flex; gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 4px 16px;
    margin: 0 -4px;
}
.st-slider::-webkit-scrollbar { display: none; }
.st-slide {
    flex: 0 0 280px; aspect-ratio: 9/14;
    scroll-snap-align: start;
    border-radius: 10px;
    background: var(--accent-t1) center/cover no-repeat;
    position: relative; overflow: hidden;
    display: block; text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 24px var(--accent-t2);
    transition: transform .25s ease;
}
.st-slide:hover { transform: translateY(-3px); }
.st-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(13,58,37,.92) 0%, rgba(13,58,37,.4) 35%, transparent 65%);
}
.st-slide .st-meta {
    position: absolute; left: 18px; right: 18px; bottom: 18px;
    z-index: 1;
}
.st-slide .st-tag {
    display: inline-block;
    background: var(--accent3); color: #fff;
    padding: 4px 10px; border-radius: 2px;
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    margin-bottom: 10px;
}
.st-slide b {
    display: block; font-size: 16px; font-weight: 600;
    line-height: 1.3; letter-spacing: -.2px;
}
.st-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 1px solid var(--accent-t2);
    color: var(--accent); cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px var(--accent-t2);
}
.st-arrow:hover { background: var(--accent); color: #fff; }
.st-arrow svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-arrow-prev { left: -10px; }
.st-arrow-next { right: -10px; }
@media (max-width: 768px) {
    .stories-section { padding: 0 16px; }
    .st-slide { flex-basis: 220px; }
    .st-arrow { display: none; }
}

/* ── Instagram-style story player (full-screen overlay on /stories/<code>) ── */
.story-player[hidden] { display: none !important; }
.story-player {
    position: fixed; inset: 0; z-index: 200;
    background: #0d0d0d;
    display: flex; flex-direction: column;
}
.sp-bars {
    display: flex; gap: 4px; padding: 12px 16px 0;
}
.sp-bar { flex: 1; height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.sp-bar-fill { display: block; height: 100%; background: #fff; width: 0%; }
.sp-bar.played .sp-bar-fill { width: 100%; }
.sp-bar.active .sp-bar-fill { animation: spProgress 6s linear forwards; }
.sp-paused .sp-bar.active .sp-bar-fill { animation-play-state: paused; }
@keyframes spProgress { from { width: 0%; } to { width: 100%; } }

.sp-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; color: #fff;
}
.sp-title { font-size: 14px; font-weight: 500; opacity: .9; }
.sp-close {
    background: transparent; border: 0; color: #fff;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.sp-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.sp-stage { flex: 1; position: relative; overflow: hidden; }
.sp-frame {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.sp-frame.active { opacity: 1; pointer-events: auto; }
.sp-frame img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    background: #000;
}

.sp-caption {
    position: absolute; left: 16px; right: 16px; bottom: 24px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 14px 18px; border-radius: 8px;
    color: #fff; font-size: 14px; line-height: 1.55;
    max-height: 38vh; overflow-y: auto;
}
.sp-caption p { margin: 0 0 10px; }
.sp-caption p:last-child { margin: 0; }

.sp-zone {
    position: absolute; top: 0; bottom: 0;
    width: 35%; cursor: pointer; z-index: 3;
}
.sp-zone-prev { left: 0; }
.sp-zone-next { right: 0; }

.sp-cta {
    display: flex; gap: 8px; padding: 12px 16px 20px;
}
.sp-cta a {
    flex: 1; padding: 12px; background: var(--accent); color: #fff;
    text-align: center; border-radius: 6px; text-decoration: none;
    font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.sp-cta a.alt { background: rgba(255,255,255,.12); color: #fff; }

@media (min-width: 769px) {
    .sp-stage { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* === Catalog === */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
    background: #fff; border: 1px solid var(--accent-t1); border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column;
    color: var(--text);
    transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px var(--accent-t2); border-color: var(--accent); }
.cat-card-pic {
    aspect-ratio: 4/3;
    background: var(--accent-t1) center/cover no-repeat;
}
.cat-card-body { padding: 18px 20px; }
.cat-card-body h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.cat-card-body p { font-size: 13px; opacity: .75; line-height: 1.5; margin: 0; }
.cat-card-price { color: var(--accent); font-weight: 600; margin-top: 8px; font-size: 15px; }
.cat-price { font-size: 32px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.cat-cta-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cat-cta-row .cta { flex: 1; min-width: 140px; justify-content: center; }
@media (max-width: 768px) {
    .cat-grid { grid-template-columns: 1fr; gap: 12px; }
    .cat-price { font-size: 26px; }
}

/* === Story list page === */
.stl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 960px; margin: 0 auto;
}
.stl-card {
    aspect-ratio: 16/10;
    border-radius: 10px;
    background: var(--accent-t1) center/cover no-repeat;
    position: relative; overflow: hidden;
    text-decoration: none; color: #fff;
    box-shadow: 0 12px 32px var(--accent-t2);
    transition: transform .25s ease, box-shadow .25s ease;
}
.stl-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px var(--accent-t3); }
.stl-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(13,58,37,.92) 0%, rgba(13,58,37,.55) 35%, rgba(13,58,37,.18) 75%, transparent 100%);
}
.stl-meta {
    position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1;
}
.stl-tag {
    display: inline-block;
    background: var(--accent3); color: #fff;
    padding: 4px 10px; border-radius: 2px;
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    margin-bottom: 12px;
}
.stl-meta h3 {
    color: #fff;
    font-size: 22px; font-weight: 600; line-height: 1.2;
    margin-bottom: 8px; letter-spacing: -.3px;
}
.stl-meta p {
    color: rgba(255,255,255,.85);
    font-size: 13px; line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stl-cta {
    display: inline-block;
    color: #fff; font-size: 12px;
    text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600;
    border-bottom: 2px solid var(--accent4); padding-bottom: 2px;
}
@media (max-width: 768px) {
    .stl-grid { grid-template-columns: 1fr; gap: 12px; }
    .stl-card { aspect-ratio: 16/12; }
    .stl-meta { left: 18px; right: 18px; bottom: 16px; }
    .stl-meta h3 { font-size: 18px; }
}

/* === Story page (вне проигрывателя — для SEO и без JS) === */
/* ── stories: серия кадров с подписями ── */
.story-page { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.story-text { max-width: 720px; margin: 0 auto 28px; font-size: 16px; line-height: 1.7; }
.story-text p { margin: 0 0 16px; }
.story-text p:first-child { font-size: 18px; font-weight: 500; }
.story-strip { display: flex; flex-direction: column; gap: 36px; margin: 36px 0; }
.story-slide { display: flex; flex-direction: column; gap: 16px; }
.story-frame { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px var(--accent-t1); background: var(--accent-t1); }
.story-frame img { width: 100%; height: auto; display: block; }
.story-caption {
    background: #fff;
    border: 1px solid var(--accent-t1);
    border-left: 3px solid var(--accent);
    padding: 18px 22px;
    border-radius: 0 6px 6px 0;
    font-size: 15px; line-height: 1.6;
    color: var(--text);
}
.story-caption p { margin: 0 0 12px; }
.story-caption p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
    .story-page { padding: 0 16px; }
    .story-text { font-size: 15.5px; }
    .story-strip { gap: 24px; }
    .story-caption { padding: 14px 16px; font-size: 14.5px; }
}

@media (max-width: 768px) {
    .article-section { padding: 28px 22px; border-radius: 6px; }
    .article-lead { font-size: 17px; }
    .article-body { font-size: 15.5px; }
    .article-body h2 { font-size: 20px; }
    .article-body table { font-size: 13px; white-space: normal; }
    .article-body table thead, .article-body table tbody, .article-body table tr { display: revert; }
    .article-body table { display: block; overflow-x: auto; }
    .article-body table th, .article-body table td { padding: 8px 10px; min-width: 90px; }
    .blog-grid { grid-template-columns: 1fr; }
    .rb-list { grid-template-columns: 1fr; }
}

/* ── contacts ── */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.contacts-block { background: #fff; border: 1px solid var(--accent-t1); border-radius: 8px; padding: 28px 24px; }
.contacts-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); margin-bottom: 12px; }
.contacts-block .big-link { display: inline-block; font-size: 22px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.contacts-block a { display: block; color: var(--accent); margin: 4px 0; }
.contacts-block a:hover { color: var(--accent2); }
.contacts-block p { font-size: 14px; line-height: 1.6; }

/* ── quickcalls ── */
.qc-section { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--accent-t1); }
.qc-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 960px; margin: 0 auto 32px; }
.qc-btn { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 20px; background: #fff; border: 1px solid var(--accent-t2); border-radius: 6px; color: var(--text); }
.qc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-t2); border-color: var(--accent); }
.qc-btn svg { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qc-btn span { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.qc-btn small { font-size: 12px; opacity: .7; }
.qc-wa svg { stroke: #25d366; }

/* ── lead form ── */
.lead-form { max-width: 720px; margin: 0 auto; background: #fff; padding: 24px; border-radius: 8px; border: 1px solid var(--accent-t1); }
.lead-form h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; text-align: center; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.lead-row input { padding: 12px 14px; border: 1px solid var(--accent-t2); border-radius: 3px; font-family: inherit; font-size: 14px; outline: none; }
.lead-row input:focus { border-color: var(--accent); }
.lead-status { margin-top: 10px; text-align: center; font-size: 13px; min-height: 18px; }
.lead-status.ok    { color: var(--accent4); }
.lead-status.error { color: var(--accent5); }

/* ── footer ── */
.vf { background: var(--accent); color: rgba(255,255,255,.85); padding: 48px 28px; margin-top: 80px; }
.vf-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.vf-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; margin-bottom: 14px; }
.vf-col a, .vf-col p { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.85); }
.vf-col a { display: block; }
.vf-col a:hover { color: #fff; }
.vf-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vf-logo svg { width: 40px; height: 40px; }
.vf-logo b { color: #fff; font-size: 17px; letter-spacing: 1.2px; }
.vf-copy { max-width: 1320px; margin: 32px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); font-size: 11px; color: rgba(255,255,255,.6); text-align: center; text-transform: uppercase; letter-spacing: 1px; }

/* ── hover-эффекты только для устройств с реальной мышью (не залипают на тач) ── */
@media (hover: none) {
    .vh-phone:hover, .cta:hover, .qc-btn:hover, .lb-card:hover, .work:hover,
    .blog-card:hover, .rb-card:hover, .adv-card:hover, .lb-nav > a:hover,
    .vh-links a:hover, .vf-col a:hover, .contacts-block a:hover, .breadcrumbs a:hover {
        transform: none !important; box-shadow: none !important;
    }
}

/* ── якорные ссылки не прячутся под sticky-header ── */
section[id], h1[id], #lead-form { scroll-margin-top: 80px; }

/* ── responsive (mobile) ── */
@media (max-width: 768px) {
    main { padding: 16px 16px 48px; }
    .vh-inner { padding: 12px 16px; gap: 12px; }
    .vh-links {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        padding: 16px 24px; gap: 16px;
        border-bottom: 1px solid var(--accent-t1);
    }
    .vh-links.open { display: flex; }
    .vh-links a { font-size: 14px; padding: 4px 0; }
    .vh-burger { display: flex; }
    .vh-phone span { display: none; }
    .vh-phone { padding: 10px; }
    .vh-logo b { font-size: 15px; }
    .vh-logo svg { width: 32px; height: 32px; }

    .hero { height: auto; min-height: 460px; padding: 22px; margin: 16px 0 0; border-radius: 6px; }
    .hero-info { max-width: 100%; padding: 22px 22px; }
    .hero h1 { font-size: 26px; line-height: 1.2; }
    .hero p { font-size: 14px; }
    .hero-cta { gap: 8px; }
    .hero-cta .cta { flex: 1; min-width: 45%; justify-content: center; padding: 14px 12px; font-size: 11px; }

    .eyebrow { margin: 40px 0 10px; font-size: 12px; }
    .section-title { font-size: 24px; margin-bottom: 24px; padding: 0 4px; }
    .page-title { font-size: 26px; padding: 0 4px; }

    .advs-grid, .gallery, .qc-buttons, .contacts-grid, .rb-list { grid-template-columns: 1fr; gap: 12px; }

    /* calculator: input full-width, не выпрыгивает за экран */
    .calc-box { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .calc-form .row { grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
    .calc-form .row label { font-size: 11px; }
    .calc-form input, .calc-form select { font-size: 16px; padding: 12px; min-width: 0; }
    .calc-form .checks label { font-size: 14px; padding: 4px 0; }
    .calc-result { padding: 22px; }
    .calc-result .price { font-size: 44px; }
    .calc-result .cta { padding: 16px; min-height: 48px; }

    /* gallery карточки на мобиле — full-width, чуть больше высота */
    .gallery .work { aspect-ratio: 16/10; }

    /* быстрая связь */
    .qc-btn { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 16px 18px; min-height: 56px; }
    .qc-btn svg { width: 32px; height: 32px; flex-shrink: 0; }
    .qc-btn small { margin-left: auto; text-align: right; max-width: 60%; }

    .rb-card { padding: 20px 22px; }
    .blog-card { padding: 20px 22px; }
    .rb-card-pic { display: none; }

    .lead-row { grid-template-columns: 1fr; gap: 8px; }
    .lead-row input, .lead-row button { font-size: 16px; padding: 14px; min-height: 48px; }

    .vf-inner { grid-template-columns: 1fr; gap: 24px; }
    .vf { padding: 32px 20px; margin-top: 48px; }

    /* breadcrumbs на мобиле — переносить, не растягивать */
    .breadcrumbs { font-size: 11px; line-height: 1.6; }
}
