/* ============================================================
   Внутренние страницы (услуги, отрасли, кейсы, цены, концепты).
   Подключается после main.css — токены и компоненты общие.
   Страницы собирает tools/build.mjs.
   ============================================================ */

/* ── герой ── */
.pg-hero { position: relative; color: #fff; overflow: clip; padding: calc(var(--hdr-h) + 12px + clamp(28px, 4vw, 64px)) 0 calc(clamp(56px, 7vw, 120px) + var(--rr)); }
.pg-hero--blue { background: var(--blue); }
.pg-hero--ink { background: var(--ink); }
.pg-hero--blue::before { content: ''; position: absolute; inset: auto -10% -40% 40%; height: 120%; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none; }
.pg-hero--ink::before { content: ''; position: absolute; inset: -30% -20% auto 35%; height: 110%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 55%, transparent), transparent 72%); pointer-events: none; }
.pg-hero__in { position: relative; }
.pg-hero__grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (min-width: 1000px) { .pg-hero__grid:has(.pg-hero__vis) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pg-kicker { display: inline-flex; font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); margin-bottom: clamp(18px, 2vw, 28px); }
.pg-h1 { font-family: var(--disp); font-weight: 850; font-stretch: 122%; font-size: clamp(40px, 6.6vw, 112px); line-height: .96; letter-spacing: -.03em; text-wrap: balance; max-width: 15ch; }
.pg-hero__grid:has(.pg-hero__vis) .pg-h1 { font-size: clamp(38px, 4.8vw, 84px); }
.pg-lede { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; max-width: 52ch; color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.pg-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 2.4vw, 36px); }
.pg-facts li { display: grid; gap: 2px; padding: 12px 18px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); min-width: 0; }
.pg-facts span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.pg-facts b { font-family: var(--disp); font-weight: 800; font-stretch: 115%; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.15; letter-spacing: -.01em; }
.pg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 2.6vw, 40px); }
@media (max-width: 520px) { .pg-cta .btn--lg { min-height: 54px; padding-inline: 20px; font-size: 16px; } .pg-cta .btn { flex: 1 1 auto; } }

/* хлебные крошки */
.crumbs { margin-bottom: clamp(22px, 3vw, 44px); font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: flex; align-items: center; color: rgba(255, 255, 255, .75); }
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: .5; }
.crumbs a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .22em; }
.crumbs a:hover { text-decoration-color: #fff; }

/* активный пункт меню */
.hdr__nav a[aria-current="page"] { background: var(--lav-2); }

/* ── «Кому подходит» и «Что входит» ── */
.pg-who { display: grid; gap: 14px; margin-bottom: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) { .pg-who { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; } }
.pg-who__list { display: grid; gap: 0; }
@media (min-width: 700px) { .pg-who__list { grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px); } }
.pg-who__list li { position: relative; padding: 16px 0 16px 34px; border-top: 1.5px solid var(--line); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.45; }
.pg-who__list li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 18px; height: 10px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); rotate: -45deg; }
.pg-inc__grid { display: grid; gap: clamp(14px, 1.4vw, 22px); grid-template-columns: 1fr; counter-reset: i; }
@media (min-width: 700px) { .pg-inc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .pg-inc__grid { grid-template-columns: repeat(3, 1fr); } }
.pg-inc__item { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2vw, 30px); border-radius: var(--r); background: var(--white); box-shadow: 0 1px 0 rgba(12, 14, 42, .05); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pg-inc__item:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(12, 14, 42, .35); }
.pg-inc__n { font-family: var(--disp); font-weight: 900; font-stretch: 151%; font-size: 15px; color: var(--blue); }
.pg-inc__item p { color: var(--mute); font-size: 16px; line-height: 1.5; }

/* ── смысловые секции: заголовок слева, текст справа ── */
.pg-prose__in { display: grid; gap: 20px; }
@media (min-width: 1000px) { .pg-prose__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 5vw, 96px); align-items: start; } .pg-prose__h { position: sticky; top: 100px; } }
.pg-h2 { font-size: clamp(30px, 3.8vw, 62px); line-height: 1.02; }
.pg-prose__b { display: grid; gap: 1em; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.62; max-width: 66ch; }
.pg-prose__b p { color: #2a2d52; text-wrap: pretty; }
.pg-prose:nth-of-type(even) { background: var(--white); }
.pg-list { display: grid; gap: 10px; margin-top: .3em; }
.pg-list li { position: relative; padding-left: 28px; line-height: 1.5; }
.pg-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--blue); }
.pg-list--sm { gap: 12px; font-size: 15.5px; color: var(--mute); }
.pg-list--sm li { padding-left: 22px; }
.pg-list--sm li::before { width: 9px; }
.ul { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.pg-prose__b .ul, .pg-intro .ul, .qa__a .ul, .pg-case .ul { color: var(--blue); }

/* ── кейсы и концепты внутри услуг ── */
.pg-works .work { grid-column: auto; }
@media (min-width: 1100px) { .pg-works { grid-template-columns: repeat(3, 1fr); } .pg-works .work { grid-column: auto; } }
.pg-cpts__grid { display: grid; gap: clamp(14px, 1.4vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .pg-cpts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pg-cpts__grid { grid-template-columns: repeat(4, 1fr); } }
.pg-cpt { display: grid; gap: 14px; }
.pg-cpt__img { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r); overflow: hidden; background: var(--c0); isolation: isolate; }
.pg-cpt__img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 82% 110%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 70%); }
.pg-cpt__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.pg-cpt__img img.is-phone { width: auto; height: 118%; margin: 7% auto 0; border-radius: 18px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); object-fit: cover; }
.pg-cpt:hover .pg-cpt__img img { transform: scale(1.04); }
.pg-cpt__t { display: grid; gap: 2px; }
.pg-cpt__t b { font-family: var(--disp); font-weight: 700; font-stretch: 112%; font-size: 21px; line-height: 1.1; }
.pg-cpt__t span { font-size: 14.5px; color: var(--mute); }

/* ── смотрите также ── */
.pg-rel { padding-block: clamp(48px, 6vw, 96px) calc(clamp(48px, 6vw, 96px) + var(--rr)); }
.pg-rel__h { font-family: var(--disp); font-weight: 800; font-stretch: 118%; font-size: clamp(24px, 2.4vw, 36px); margin-bottom: 20px; letter-spacing: -.015em; }
.pg-rel__list { display: grid; gap: 12px; }
@media (min-width: 800px) { .pg-rel__list { grid-template-columns: repeat(3, 1fr); } }
.pg-rel__list a { display: grid; gap: 6px; height: 100%; padding: 20px 22px; border-radius: 20px; background: var(--white); transition: background .25s, color .25s; }
.pg-rel__list b { font-family: var(--disp); font-weight: 700; font-stretch: 110%; font-size: 20px; }
.pg-rel__list span { font-size: 15px; color: var(--mute); }
.pg-rel__list a:hover { background: var(--ink); color: #fff; }
.pg-rel__list a:hover span { color: var(--mute-d); }

/* ── финальный призыв ── */
.pg-final__in { display: grid; gap: 18px; justify-items: start; }
.pg-final .lede { max-width: 46ch; }

/* ── хаб услуг: карточки ── */
.pg-intro { display: grid; gap: 1em; max-width: 70ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: #2a2d52; margin-bottom: clamp(40px, 5vw, 80px); }
.pg-intro--d { color: var(--mute-d); }
.pg-intro--d .ul { color: #fff; }
.pg-svc { display: grid; gap: clamp(12px, 1.2vw, 20px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .pg-svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .pg-svc { grid-template-columns: repeat(3, 1fr); } }
.pg-svc__a { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; height: 100%; padding: clamp(22px, 2vw, 32px); padding-right: 64px; border-radius: var(--r); background: var(--white); transition: background .3s, color .3s, transform .5s var(--ease); }
.sec--lav .pg-svc__a { background: rgba(255, 255, 255, .7); }
.pg-svc__a p { color: var(--mute); font-size: 16px; line-height: 1.5; }
.pg-svc__m { font-size: 14px; font-weight: 600; color: var(--blue); }
.pg-svc__go { position: absolute; top: clamp(20px, 2vw, 30px); right: clamp(18px, 1.8vw, 26px); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 18px; transition: background .3s, color .3s, transform .5s var(--ease); }
.pg-svc__a:hover { background: var(--ink); color: #fff; transform: translateY(-4px); }
.pg-svc__a:hover p { color: var(--mute-d); }
.pg-svc__a:hover .pg-svc__m { color: #b7bbff; }
.pg-svc__a:hover .pg-svc__go { background: var(--blue); color: #fff; transform: rotate(-45deg); }
.pg-more { margin-top: clamp(28px, 3vw, 48px); }

/* ── кейс ── */
.pg-hero__vis { perspective: 1400px; }
.pg-bro { border-radius: 14px; overflow: hidden; background: #1d2046; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); display: flex; flex-direction: column; }
.pg-bro--hero { transform: rotateY(-8deg) rotateX(3deg); transform-origin: 30% 50%; transition: transform 1s var(--ease); }
.pg-bro--hero:hover { transform: none; }
.pg-bro .bro__bar { height: 30px; }
.pg-bro__vp { position: relative; background: #fff; height: clamp(360px, 62vh, 760px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: rgba(12, 14, 42, .35) transparent; }
.pg-bro__vp img { width: 100%; height: auto; }
.pg-bro__vp--still { height: auto; overflow: hidden; aspect-ratio: 16 / 10; }
.pg-bro__vp--still img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pg-case-act { padding-block: 0 calc(clamp(32px, 4vw, 56px) + var(--rr)); margin-top: calc(-1 * clamp(40px, 5vw, 80px)); }
.pg-case-act__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.pg-case-act .pg-cta { margin-top: 0; }
.pg-show { background: var(--ink-2); }
.pg-shots { display: grid; gap: clamp(20px, 2.4vw, 40px); align-items: start; }
@media (min-width: 1000px) { .pg-shots { grid-template-columns: minmax(0, 1fr) clamp(240px, 22vw, 330px); } .pg-shots__desk ~ .pg-shots__desk { grid-column: 1; } .pg-shots__mob { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 96px; } }
.pg-shots figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.pg-shots figcaption { font-size: 14px; color: var(--mute-d); }
.pg-pho { border-radius: 38px; background: #0a0b1c; padding: 9px; box-shadow: 0 0 0 1.5px #3a3f7a, 0 40px 80px -30px rgba(0, 0, 0, .8); max-width: 340px; margin-inline: auto; width: 100%; }
.pg-pho__vp { border-radius: 30px; overflow-y: auto; background: #fff; aspect-ratio: 390 / 780; scrollbar-width: none; }
.pg-pho__vp::-webkit-scrollbar { display: none; }
.pg-pho__vp img { width: 100%; height: auto; }
.pg-shots__hint { margin-top: 18px; font-size: 14px; color: var(--mute-d); }
.pg-shots--mock { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.pg-shots__nums { display: grid; grid-template-columns: repeat(4, auto); gap: 10px clamp(20px, 4vw, 64px); color: var(--mute-d); font-size: 14px; }
.pg-shots__nums b { display: block; font-family: var(--disp); font-weight: 900; font-stretch: 130%; font-size: clamp(30px, 4vw, 60px); line-height: 1; color: #fff; letter-spacing: -.03em; }
@media (max-width: 620px) { .pg-shots__nums { grid-template-columns: repeat(2, auto); } }
.pg-shots__phone { position: relative; width: min(300px, 70vw); aspect-ratio: 1170 / 2532; }
.pg-shots__phone .pho { inset: 0; padding: 7px; }
.pg-shots__note { font-size: 14px; color: var(--mute-d); max-width: 40ch; }
.pg-case__in { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 1000px) { .pg-case__in { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; } .pg-case__side { position: sticky; top: 100px; } }
.pg-case__main { display: grid; gap: clamp(36px, 4vw, 64px); }
.pg-case__blk { display: grid; gap: 1em; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.62; max-width: 66ch; }
.pg-case__blk > p { color: #2a2d52; text-wrap: pretty; }
.pg-done { display: grid; gap: 0; counter-reset: d; }
.pg-done li { position: relative; display: grid; gap: 6px; padding: 18px 0 18px 56px; border-top: 1.5px solid var(--line); counter-increment: d; }
.pg-done li::before { content: counter(d, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--disp); font-weight: 900; font-stretch: 151%; font-size: 15px; color: var(--blue); }
.pg-done p { color: var(--mute); font-size: 16.5px; line-height: 1.55; }
.pg-case__side { display: grid; gap: 14px; }
.pg-card { padding: 22px 24px; border-radius: 22px; background: var(--white); display: grid; gap: 12px; }
.pg-card__h { font-family: var(--disp); font-weight: 800; font-stretch: 120%; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chips li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper); }
.pg-chips--l li { background: var(--white); border: 1px solid var(--line); }
.pg-links { display: grid; gap: 8px; }
.pg-links a { font-weight: 600; color: var(--blue); }
.pg-links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.pg-pn { padding-block: clamp(36px, 4vw, 64px) calc(clamp(36px, 4vw, 64px) + var(--rr)); }
.pg-pn__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.pg-pn__a { display: grid; gap: 4px; padding: 18px 22px; border-radius: 20px; background: var(--white); transition: background .25s, color .25s; min-width: 0; }
.pg-pn__a span { font-size: 14px; color: var(--mute); }
.pg-pn__a b { font-family: var(--disp); font-weight: 700; font-stretch: 112%; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.15; overflow-wrap: anywhere; }
.pg-pn__a:hover { background: var(--ink); color: #fff; }
.pg-pn__a:hover span { color: var(--mute-d); }
.pg-pn__a--r { text-align: right; }
.pg-pn__all { font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 640px) { .pg-pn__in { grid-template-columns: 1fr 1fr; } .pg-pn__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }

/* ── концепты списком ── */
.pg-cl { display: grid; gap: clamp(56px, 7vw, 120px); }
.pg-cl__row { display: grid; gap: clamp(22px, 3vw, 56px); align-items: center; scroll-margin-top: 90px; }
@media (min-width: 1000px) { .pg-cl__row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .pg-cl__row:nth-child(even) .pg-cl__img { order: 2; } }
.pg-cl__img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--c0); isolation: isolate; }
.pg-cl__img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 82% 110%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 70%), radial-gradient(40% 50% at 8% -10%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 70%); }
.pg-cl__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.pg-cl__img:hover img { transform: scale(1.03); }
.pg-cl__img--phone img { width: auto; height: 120%; margin: 6% auto 0; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.pg-cl__txt { display: grid; gap: 14px; justify-items: start; }
.pg-cl__txt > p { color: #2a2d52; font-size: clamp(16.5px, 1.2vw, 18.5px); line-height: 1.6; max-width: 58ch; }
.pg-cl__n { font-size: 14px; font-weight: 600; color: var(--blue) !important; }
.pg-cl__tag { font-family: var(--disp); font-weight: 500; font-stretch: 105%; font-size: clamp(19px, 1.6vw, 24px) !important; line-height: 1.3 !important; color: var(--ink) !important; }
.pg-cl__wow { font-size: 15.5px !important; color: var(--mute) !important; }
.pg-cl__wow b { color: var(--ink); }

/* ── цены ── */
.pg-table-w { overflow-x: auto; border-radius: var(--r); background: var(--white); }
.sec--lav .pg-table-w { background: rgba(255, 255, 255, .75); }
.pg-table { width: 100%; border-collapse: collapse; font-size: clamp(15.5px, 1.2vw, 18px); min-width: 560px; }
.pg-table th, .pg-table td { text-align: left; padding: 18px clamp(16px, 2vw, 28px); border-bottom: 1px solid var(--line); vertical-align: top; }
.pg-table tbody tr:last-child th, .pg-table tbody tr:last-child td { border-bottom: 0; }
.pg-table thead th { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); padding-block: 14px; }
.pg-table tbody th { font-weight: 600; }
.pg-table tbody th a { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
.pg-table tbody th small { display: block; font-weight: 400; font-size: 14px; color: var(--mute); margin-top: 2px; }
.pg-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-table tbody tr:hover { background: color-mix(in srgb, var(--lav) 35%, transparent); }
.pg-urg__h { margin: clamp(36px, 4vw, 56px) 0 16px; }
.pg-urg { display: grid; gap: 12px; }
@media (min-width: 800px) { .pg-urg { grid-template-columns: repeat(3, 1fr); } }
.pg-urg li { display: grid; gap: 4px; padding: 20px 22px; border-radius: 20px; background: rgba(255, 255, 255, .75); }
.pg-urg b { font-family: var(--disp); font-weight: 700; font-stretch: 112%; font-size: 21px; }
.pg-urg span { color: var(--mute); font-size: 15px; }
.pg-urg em { font-style: normal; font-weight: 600; color: var(--blue); font-size: 15px; }

/* ── 404 ── */
.pg-404 { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.pg-404__n { font-family: var(--disp); font-weight: 900; font-size: clamp(120px, 26vw, 380px); line-height: .8; letter-spacing: -.05em; font-variation-settings: "wdth" 151, "wght" 900; opacity: .22; margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) { .pg-bro--hero { transform: none; } .pg-inc__item, .pg-svc__a, .pg-cpt__img img, .pg-cl__img img { transition: none; } }

/* таблицы цен на телефоне — карточками, без горизонтальной прокрутки */
@media (max-width: 640px) {
  .pg-table { min-width: 0; }
  .pg-table thead { display: none; }
  .pg-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .pg-table tbody tr:last-child { border-bottom: 0; }
  .pg-table th, .pg-table td { padding: 0; border: 0 !important; }
  .pg-table tbody th { grid-column: 1 / -1; margin-bottom: 4px; }
  .pg-table td { font-weight: 600; white-space: normal; }
  .pg-table td + td { text-align: right; font-weight: 400; color: var(--mute); }
}
