/* K-Global: внутренние страницы (услуги, проекты, о компании, контакты) */

/* шапка страницы */
.phead { position: relative; overflow: hidden; color: #fff; padding: 40px 0 56px; background: radial-gradient(900px 480px at 85% 30%, #123049 0%, #0b1b28 60%, #08141d 100%); }
.phead::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(92,194,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(92,194,255,.07) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.phead .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.55); margin-bottom: 26px; }
.crumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.phead .eyebrow { color: #5cc2ff; }
.phead h1 { font-size: clamp(30px, 3.4vw, 50px); font-weight: 800; max-width: 900px; margin-bottom: 16px; }
.phead-lead { font-size: 18px; color: rgba(255,255,255,.78); max-width: 780px; }
.phead-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.phead-meta span { font-size: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 100px; padding: 6px 14px; white-space: nowrap; }

.phead.has-visual { padding: 48px 0 64px; min-height: 400px; }
.phead.has-visual h1, .phead.has-visual .phead-lead, .phead.has-visual .phead-meta { max-width: min(660px, calc(100vw - 580px)); }
.phead-photo { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: max(460px, calc((100vw - var(--wrap)) / 2 + 500px)); margin: 0; background: #0b1b28; overflow: hidden; }
.phead-photo img { width: 100%; height: 100%; object-fit: cover; }
.phead-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b1b28 0%, rgba(11,27,40,.55) 14%, transparent 42%); }
.phead .hero-frame { left: auto; right: max(8px, calc((100vw - var(--wrap)) / 2 - 20px)); top: 50%; transform: translateY(-50%); width: min(40vw, 560px); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

.sec-more { margin-top: 28px; text-align: center; }
.sec-tight { padding: 64px 0; }
.sec h2.h-lg { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 28px; max-width: 760px; }

/* текст страницы (из админки) */
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 44px 0 14px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p { color: var(--ink-2); margin: 0 0 14px; max-width: 760px; }
.prose ul { list-style: none; display: grid; gap: 10px; margin: 0 0 18px; max-width: 760px; }
.prose li { position: relative; padding-left: 26px; color: var(--ink-2); }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--blue); }
.prose a { color: var(--blue-d); }
/* ссылки перелинковки: в тексте, без кнопочного вида */
a.ilink { color: var(--blue-d); text-decoration: underline; text-decoration-color: rgba(1,148,235,.35); text-underline-offset: 3px; }
a.ilink:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }

/* страница услуги */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.svc-cover { display: none; border-radius: 18px; overflow: hidden; margin-bottom: 36px; aspect-ratio: 16/8; background: var(--bg-3); }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; }
.side-card { position: sticky; top: 100px; background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.side-card small { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #5cc2ff; font-weight: 600; }
.side-card .big { font: 800 26px/1.15 var(--f-head); }
.side-card p { font-size: 14.5px; color: rgba(255,255,255,.72); }
.side-card .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.side-card .btn-line:hover { border-color: #fff; }
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv-i { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r); padding: 22px 22px 24px; }
.adv-i h3 { font-size: 17px; margin-bottom: 8px; }
.adv-i p { font-size: 14.5px; color: var(--ink-2); }

/* карточки услуг */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(15,28,38,.35); }
.svc-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.svc-card-b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-card .row { display: flex; align-items: baseline; gap: 10px; }
.svc-card .n { font: 700 13px var(--f-head); color: var(--blue); flex-shrink: 0; }
.svc-card h3 { font-size: 20px; }
.svc-card p { color: var(--ink-2); font-size: 14.5px; }
.svc-card .price { margin-top: auto; padding-top: 12px; font: 600 14px var(--f-body); color: var(--blue-d); }
.svc-mini { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-mini a { text-decoration: none; font-size: 14.5px; border: 1px solid var(--line); background: #fff; border-radius: 100px; padding: 9px 16px; color: var(--ink-2); transition: all .2s; }
.svc-mini a:hover { border-color: var(--blue); color: var(--blue-d); }

/* страница проекта */
.proj { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gal a { display: block; border-radius: 12px; overflow: hidden; background: var(--bg-3); aspect-ratio: 4/3; cursor: zoom-in; }
.gal a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal a:hover img { transform: scale(1.04); }
/* видео объекта: тёмная полоса с сеткой как на чертеже, большой плеер, при нескольких видео - список справа */
.pvid-sec { position: relative; overflow: hidden; background: var(--ink); color: #fff;
  background-image: linear-gradient(rgba(92,194,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(92,194,255,.07) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top; }
.pvid-sec::before { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(1,148,235,.28), transparent); pointer-events: none; }
.pvid-sec .wrap { position: relative; }
.pvid-sec .eyebrow { color: #5cc2ff; }
.pvid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.pvid-head h2 { color: #fff; }
.pvid-count { flex: none; font: 600 13px var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: #9fb3c2; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.pvid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pvid.multi { grid-template-columns: minmax(0, 1fr) 300px; }
.pvid-main { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #050c12; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.pvid-main video { display: block; width: 100%; height: 100%; object-fit: contain; background: #050c12; }
.pvid-cover { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(5,12,18,.15) 40%, rgba(5,12,18,.75)); transition: background .3s; }
.pvid-cover:hover { background: linear-gradient(180deg, rgba(5,12,18,.05) 40%, rgba(5,12,18,.65)); }
.pvid.playing .pvid-cover { display: none; }
.pvid-badge { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 600 12px var(--f-head); letter-spacing: .08em; text-transform: uppercase; background: rgba(8,20,29,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; }
.pvid-badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; box-shadow: 0 0 0 3px rgba(255,77,79,.25); }
.pvid-btn { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(1,148,235,.7); transition: transform .3s; }
.pvid-btn::before, .pvid-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(92,194,255,.6); animation: pvid-ring 2.4s ease-out infinite; }
.pvid-btn::after { animation-delay: 1.2s; }
.pvid-btn svg { width: 36px; height: 36px; fill: #fff; margin-left: 5px; }
.pvid-cover:hover .pvid-btn { transform: scale(1.08); }
@keyframes pvid-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.pvid-cap { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pvid-cap b { font: 700 20px var(--f-head); }
.pvid-cap em { font-style: normal; font: 600 13px var(--f-head); background: rgba(8,20,29,.66); border-radius: 6px; padding: 3px 9px; }
.pvid-list { display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow-y: auto; }
.pvid-it { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #fff; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.pvid-it:hover { border-color: rgba(92,194,255,.5); }
.pvid-it.on { border-color: var(--blue); background: rgba(1,148,235,.14); }
.pvid-th { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: #050c12 center / cover; }
.pvid-th::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; opacity: .9; }
.pvid-it-t b { display: block; font: 700 15px var(--f-head); }
.pvid-it-t em { font-style: normal; font-size: 13px; color: #9fb3c2; }
/* на компьютере список ровно по высоте плеера: 2-3 видео - крупные карточки, 4-6 - строки с прокруткой */
@media (min-width: 901px) {
  .pvid.multi .pvid-list { height: 0; min-height: 100%; }
  .pvid.multi:not(.many) .pvid-list { display: grid; grid-auto-rows: minmax(0, 1fr); }
  .pvid.multi:not(.many) .pvid-it { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
  .pvid.multi:not(.many) .pvid-th { aspect-ratio: auto; min-height: 0; height: 100%; }
}
@media (max-width: 900px) {
  .pvid.multi { grid-template-columns: minmax(0, 1fr); }
  .pvid-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .pvid-it { flex: 0 0 240px; scroll-snap-align: start; grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pvid-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .pvid-main { border-radius: 14px; }
  .pvid-btn { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .pvid-btn svg { width: 26px; height: 26px; margin-left: 4px; }
  .pvid-badge { top: 12px; left: 12px; font-size: 10px; padding: 4px 9px; }
  .pvid-cap { left: 14px; right: 14px; bottom: 12px; }
  .pvid-cap b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pvid-btn::before, .pvid-btn::after { animation: none; opacity: 0; } }
.specs-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 24px; position: sticky; top: 100px; }
.specs-card h3 { font-size: 18px; padding: 14px 0 4px; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 36%; color: var(--ink-3); font-weight: 500; padding-right: 14px; }
.cta-band { background: var(--blue); color: #fff; border-radius: 20px; padding: 34px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.4vw, 30px); max-width: 640px; }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 6px; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-line { border-color: transparent; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,20,29,.94); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb .lb-x { top: 18px; right: 18px; }
.lb .lb-p { left: 18px; top: 50%; transform: translateY(-50%); background: rgba(8,20,29,.5); }
.lb .lb-n { right: 18px; top: 50%; transform: translateY(-50%); background: rgba(8,20,29,.5); }
.lb img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; transition: transform .25s ease, opacity .25s ease; }
.lb img.sw { transition: none; }
.lb .lb-c { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }
.lb.one .lb-p, .lb.one .lb-n, .lb.one .lb-c { display: none; }
.lb img { background: #fff; }

/* о компании */
.about-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-intro p { color: var(--ink-2); margin-bottom: 16px; font-size: 17px; }
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat b { display: block; font: 800 28px var(--f-head); letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 2px; }
.quote { background: var(--ink); color: #fff; border-radius: 20px; padding: 44px; }
.quote p.eyebrow { font: 600 13px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #5cc2ff; margin-bottom: 12px; max-width: none; }
.quote p { font: 600 clamp(20px, 2.2vw, 28px)/1.35 var(--f-head); max-width: 860px; }
.apr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.apr-i { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.apr-i .row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.apr-i .n { font: 800 24px var(--f-head); color: transparent; -webkit-text-stroke: 1.2px var(--blue); flex-shrink: 0; }
.apr-i h3 { font-size: 18px; }
.apr-i p { font-size: 14.5px; color: var(--ink-2); }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; }
.vals > div { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.vals h3 { font-size: 18px; margin-bottom: 6px; }
.vals p { font-size: 14.5px; color: var(--ink-2); }
.goal { font: 500 clamp(18px, 1.8vw, 22px)/1.5 var(--f-body); color: var(--ink-2); max-width: 860px; }
/* обращение руководителя: фото на всю высоту карточки, текст с кавычкой */
.director { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.director-photo { position: relative; margin: 0; min-height: 460px; background: var(--bg-3); }
.director-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.director-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(8,20,29,.82)); }
.director-photo figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; color: #fff; display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--blue); }
.director-photo figcaption b { font: 700 18px var(--f-head); }
.director-photo figcaption span { font-size: 13.5px; color: rgba(255,255,255,.78); }
.director-photo.empty { display: grid; place-items: center; text-align: center; padding: 16px; border-right: 1px dashed #b9c5cf; color: var(--ink-3); font-size: 13.5px; min-height: 320px; }
.director-body { position: relative; padding: 52px 56px 44px; display: flex; flex-direction: column; justify-content: center; }
.director blockquote { position: relative; margin: 0; }
.director blockquote p { font: 400 17px/1.7 var(--f-body); color: var(--ink-2); margin: 0 0 14px; }
.director blockquote p.first { font: 600 21px/1.5 var(--f-head); color: var(--ink); letter-spacing: -0.01em; margin-bottom: 18px; }
.director cite { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-style: normal; }
.director cite b { font: 700 17px var(--f-head); color: var(--ink); }
.director cite span { color: var(--ink-3); font-size: 14px; }
.director .ph { display: inline-block; font-size: 13.5px; color: var(--ink-3); border: 1px dashed #b9c5cf; border-radius: 8px; padding: 10px 14px; }
.about-svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.about-svc a { display: flex; align-items: baseline; gap: 10px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .2s; }
.about-svc a:hover { border-color: var(--blue); }
.about-svc .n { font: 700 13px var(--f-head); color: var(--blue); flex-shrink: 0; }
.about-svc b { font: 700 15.5px var(--f-head); }

/* контакты */
.cont { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cont-i { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 6px; align-content: start; }
.cont-i small { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.cont-i b { font: 700 18px/1.3 var(--f-head); }
.cont-i a { text-decoration: none; }
.cont-i p { font-size: 14px; color: var(--ink-3); }
a.map { text-decoration: none; background: var(--blue-t); border: 1px solid #b7dcf5; color: var(--blue-d); font-weight: 600; }
a.map:hover { background: #d6edfc; }

@media (max-width: 1100px) {
  .phead-photo, .phead .hero-frame { display: none; }
  .phead.has-visual h1, .phead.has-visual .phead-lead, .phead.has-visual .phead-meta { max-width: none; }
  .svc-cover { display: block; }
  .phead.has-visual { min-height: 0; padding: 40px 0 56px; }
  .svc, .proj { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .side-card, .specs-card { position: static; }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .svc-cards, .apr, .vals { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-svc, .cont { grid-template-columns: repeat(2, 1fr); }
  .director { grid-template-columns: 300px 1fr; }
  .director-body { padding: 40px 36px 32px; }
}
@media (max-width: 700px) {
  .phead { padding: 28px 0 40px; }
  .adv, .svc-cards, .apr, .vals, .about-svc, .cont { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
  .director { grid-template-columns: 1fr; }
  .director-photo { min-height: 0; aspect-ratio: 4/4.2; }
  .director-body { padding: 34px 22px 24px; }
  .director blockquote p.first { font-size: 18.5px; }
  .director blockquote p { font-size: 16px; }
  .quote { padding: 28px 24px; }
  .stat b { font-size: 22px; }
  .stat span { overflow-wrap: anywhere; }
  .cta-band { padding: 26px 22px; }
  .svc-cover { aspect-ratio: 16/10; }
  .lb button { width: 42px; height: 42px; font-size: 20px; }
  .lb .lb-p { left: 8px; }
  .lb .lb-n { right: 8px; }
  .lb .lb-x { top: 12px; right: 12px; }
}

/* этапы работы на телефоне: карточки со стрелками, «стекающими» вниз от этапа к этапу */
@keyframes kg-flow { from { background-position: center 0; } to { background-position: center 15px; } }
@keyframes kg-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .steps { gap: 0; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding: 20px 20px 18px; margin-bottom: 48px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 14px; box-shadow: 0 16px 32px -26px rgba(15,28,38,.55); }
  .step:last-child { margin-bottom: 0; border-top-color: var(--wa); }
  .step::before { position: static; width: auto; height: auto; border-radius: 0; background: none; text-align: left; content: "0" counter(st); font: 800 30px/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.3px var(--blue); }
  .step:last-child::before { -webkit-text-stroke-color: #1fb957; }
  .step h3 { font-size: 18px; margin: 0; }
  .step p { grid-column: 1 / -1; margin-top: 10px; font-size: 15px; }
  .step em { grid-column: 1 / -1; justify-self: start; margin-top: 12px; font-size: 13px; padding: 3px 10px; }
  .step::after { display: block; content: ""; position: absolute; left: calc(50% - 12px); right: auto; top: 100%; width: 24px; height: 48px; opacity: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='15' viewBox='0 0 24 15'%3E%3Cpath d='M4 3l8 8 8-8' fill='none' stroke='%230194eb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-y center 0 / 24px 15px;
    animation: kg-flow 1.1s linear infinite; -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .step { animation: kg-rise linear both; animation-timeline: view(); animation-range: entry 5% cover 26%; }
  }
}
@media (prefers-reduced-motion: reduce) { .step::after { animation: none; } }

/* телефон: кнопки в блоках призыва и под заголовками секций на всю ширину, без пустоты справа */
@media (max-width: 600px) {
  .btns, .cta-band .btns { flex-direction: column; align-items: stretch; width: 100%; }
  .btns .btn, .cta-band .btns .btn { width: 100%; }
  .sec-head > .btn { width: 100%; }
}

/* «Другие объекты» и проекты внутри услуги: три колонки на компьютере, на телефоне только тип и название */
.mosaic.mosaic-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .mosaic.mosaic-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .mosaic.mosaic-3 { grid-template-columns: 1fr; }
  .mosaic.compact { grid-auto-rows: 200px; }
  .mosaic.compact .tile-specs { display: none; }
}

/* чертежи на странице проекта */
.drw { display: grid; gap: 20px; }
.drw-it { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.drw-it > a { display: block; border-bottom: 1px solid var(--line); }
.drw-it img { display: block; width: 100%; height: auto; aspect-ratio: 420/297; object-fit: contain; background: #fff; }
.drw-it figcaption { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; }
.drw-it figcaption b { display: block; font: 700 17px var(--f-head); }
.drw-it figcaption span { font-size: 14px; color: var(--ink-3); }
.drw-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .drw-btns, .drw-btns .btn { width: 100%; } }
