/* Внутренние страницы: услуги, кейсы, блог, «О студии», «Контакты».
   Работает поверх styles.css — те же цвета, шрифты и сетка. */

.page-hero { padding: 36px 0 60px; }
.page-hero .overline { margin-bottom: 18px; }
.page-hero h1 { max-width: 920px; margin: 0 0 24px; font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -.05em; }
.page-hero .lead { max-width: 700px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.62; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero .hero-note { max-width: 560px; }

.crumbs ol { margin: 0 0 14px; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; list-style: none; color: var(--muted); font-size: 13.5px; }
.crumbs li { min-width: 0; display: flex; flex: 0 0 auto; align-items: center; white-space: nowrap; }
.crumbs li:last-child { flex: 0 1 auto; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: rgba(33,28,21,.38); }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--green); text-decoration-color: currentColor; }
.crumbs [aria-current] span { display: block; min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }

.block { padding-block: 84px; }
.block.alt { --muted: #655C50; background: var(--bg2); border-block: 1px solid var(--line); }
.block-head { margin-bottom: 36px; }
.block-head .overline { margin-bottom: 14px; }
.block-head h2, .split-head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.split-head .overline { margin-bottom: 16px; }
.split-head p:not(.overline) { margin: 18px 0 0; color: var(--muted); font-size: 16.5px; line-height: 1.65; }

.prose > :first-child { margin-top: 0; }
.prose p { max-width: 68ch; margin: 0 0 18px; font-size: 17.5px; line-height: 1.7; }
.prose h3 { margin: 32px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.prose ul { max-width: 68ch; margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.prose a, .note a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--green-h); }
.prose .muted { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.cards article, .cards > div { padding: 26px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: .25s ease; }
.cards h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.cards p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.62; }
.cards p + p { margin-top: 10px; }
.cards .k { margin-bottom: 14px; color: var(--green); font: 650 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.cards .big { margin: 0 0 10px; color: var(--green); font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.cards .big small { color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: 0; }
.cards-link article:hover { transform: translateY(-3px); border-color: rgba(15,90,68,.35); box-shadow: 0 18px 36px -26px rgba(33,28,21,.35); }
.cards-link h3 a:hover { color: var(--green); }
.cards-link .more { min-height: 44px; margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; color: var(--green); font-size: 13.5px; font-weight: 750; }
.cards-link article > p { margin-bottom: 8px; }
.narrow .cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 30px; color: var(--green); font: 650 12px/1 var(--mono); }
.steps h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; }

.note { max-width: 780px; margin: 28px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.note strong { color: var(--ink); }

.shell.narrow { width: min(780px, calc(100% - 56px)); }
.article-hero { padding-bottom: 28px; }
.article-hero h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; }
.article-hero .meta { margin: 0; color: var(--muted); font-size: 14.5px; }
.article-cover { margin: 0 auto 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.article-cover img { width: 100%; height: auto; }
.article-body { font-size: 18px; line-height: 1.75; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 20px; }
.article-body h2 { margin: 46px 0 14px; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; padding-left: 4px; }
.article-body li::marker { color: var(--green); }
.article-body a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--green-h); }
.cta-card { margin: 48px auto 8px; padding: 32px; display: grid; gap: 22px; justify-items: start; color: #fff; background: var(--green); border-radius: 14px; }
.cta-card p { max-width: 58ch; margin: 0; color: rgba(255,255,255,.92); font-size: 17.5px; line-height: 1.65; }
.cta-card .button.primary { color: var(--green); background: #fff; }
.cta-card .button.primary:hover { background: var(--bg2); }
.cta-card :focus-visible { outline-color: #fff; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: .25s ease; }
.case-card:hover { transform: translateY(-3px); border-color: rgba(15,90,68,.35); box-shadow: 0 18px 36px -26px rgba(33,28,21,.35); }
.case-card > a { height: 100%; display: flex; flex-direction: column; }
.case-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.case-card-body { padding: 20px 22px 24px; display: flex; flex: 1; flex-direction: column; }
.case-card-body h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.22; letter-spacing: -.02em; }
.case-card-body p:not(.post-tag) { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.case-card:hover .post-more { text-decoration: underline; text-underline-offset: 4px; }

.case-shot { padding-bottom: 20px; }
.shot-frame { overflow: hidden; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -40px rgba(33,28,21,.4); }
.shot-frame img { width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: top center; }
.facts { margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.facts > div { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.facts > div:not(:first-child) { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { margin: 0 0 8px; color: var(--green); font: 650 11.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }

.cards.contact-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-cards .k { word-break: break-word; }
.contact-cards p:not(.k) { margin-bottom: 18px; }
.contact-cards a.big-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: auto; color: var(--green); font-size: 20px; font-weight: 800; letter-spacing: -.02em; word-break: break-word; }
.contact-cards a.big-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.requisites { margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.requisites div { padding: 14px 0; display: grid; grid-template-columns: 200px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); font-size: 14.5px; }
.requisites dd { margin: 0; font-size: 16px; font-weight: 600; }
.requisites a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div:not(:first-child) { padding: 18px 0; border-left: 0; }
}

@media (max-width: 720px) {
  .shell.narrow { width: min(100% - 30px, 780px); }
  .page-hero { padding: 24px 0 44px; }
  .page-hero .lead { font-size: 17px; }
  .block { padding-block: 60px; }
  .steps, .case-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 24px; margin-top: 38px; }
  .cta-card { padding: 24px; }
  .cta-card .button { width: 100%; justify-content: space-between; white-space: normal; }
  .prose p { font-size: 16.5px; }
  .requisites div { grid-template-columns: 1fr; gap: 4px; }
  .page-hero .hero-actions .button { justify-content: space-between; }
}

/* ---------- примеры систем на странице услуги ---------- */
.sys-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.sys-case { padding-block: 56px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; border-top: 1px solid var(--line); }
.sys-case:first-of-type { padding-top: 10px; border-top: 0; }
.sys-case:last-child { padding-bottom: 0; }
.sys-case-text > :first-child { margin-top: 0; }
.sys-case-text .k { margin: 0 0 12px; color: var(--green); font: 650 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.sys-case-text h3 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.sys-case-text .sys-lead { font-size: 18.5px; font-weight: 600; line-height: 1.6; }
.sys-case-text .sys-list-title { margin: 26px 0 10px; color: var(--green); font: 650 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.sys-case-text .prose ul, .sys-case-text ul { margin-bottom: 24px; }
.sys-case-shots { min-width: 0; display: grid; gap: 14px; }
.sys-case figure { margin: 0; min-width: 0; }
.sys-case .shot-frame { display: block; }
.sys-case .shot-frame img { display: block; width: 100%; height: auto; max-height: none; }
.sys-case .shot-frame:hover { border-color: rgba(15,90,68,.4); }
.sys-case figcaption { padding: 10px 2px 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.sys-more { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sys-more:empty { display: none; }
.sys-more.one { grid-template-columns: 1fr; }
.sys-more:has(> figure:only-child) { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .sys-case { grid-template-columns: 1fr; gap: 30px; padding-block: 44px; }
}
@media (max-width: 560px) {
  .sys-more { grid-template-columns: 1fr; }
}

/* ---------- страница, на которую ведём рекламу: первый экран ---------- */
.page-hero-ad { padding-bottom: 44px; }
.ad-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.page-hero-ad h1 { margin-bottom: 20px; font-size: clamp(34px, 4.2vw, 54px); }
.hero-prices { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-prices li { padding: 10px 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 650; line-height: 1.3; }
.hero-prices b { color: var(--green); font-weight: 800; }
.page-hero-ad .hero-actions { margin-top: 24px; }
.page-hero-ad .hero-note { margin-top: 16px; }
.hero-note a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.trust-strip { margin: 36px 0 0; padding: 20px 0 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; border-top: 1px solid var(--line-2); }
.trust-strip li { position: relative; padding-left: 26px; color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.trust-strip li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg) scale(.9); }
.check-list li b { color: var(--ink); font-weight: 800; }
.quote-card { margin: 0; padding: 34px 38px; max-width: 860px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; }
.quote-card blockquote { margin: 0; }
.quote-card p { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.7; }
.quote-card figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; color: var(--green); font: 650 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.quote-card figcaption a { min-height: 44px; display: inline-flex; align-items: center; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* закреплённая кнопка на телефоне */
.sticky-cta { display: none; }
@media (max-width: 980px) {
  .ad-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .trust-strip { grid-template-columns: 1fr; margin-top: 26px; }
}
@media (max-width: 720px) {
  .page-hero-ad h1 { font-size: 32px; }
  .hero-prices li { padding: 9px 14px; font-size: 14px; }
  .quote-card { padding: 22px 20px; }
  .quote-card p { font-size: 16.5px; }
  .sticky-cta { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; background: rgba(241,236,227,.96); border-top: 1px solid var(--line); box-shadow: 0 -14px 30px -22px rgba(33,28,21,.5); transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .sticky-cta.is-on { transform: none; visibility: visible; transition: transform .3s ease; }
  .sticky-cta .button { min-height: 48px; padding: 0 12px; justify-content: center; white-space: normal; text-align: center; }
  .sticky-cta.is-on ~ .cookie { bottom: 82px; }
  body:has(.sticky-cta) { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.is-on { transition: none; } }
