/*
 * Страница «Услуги» (template-services.php): первый экран, «Результат», кейсы.
 * Остальные экраны общие с главной — их стили в home.css, он подключается и здесь.
 * Палитра темы: navy #1E3A5F, coral #EA580C.
 */

/* ===== u-intro-css ===== */
.u12-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%); border-bottom: 1px solid #eef1f5; }
.u12-hero::before { content: ""; position: absolute; top: 0; right: 0; width: 55%; height: 100%; background-image: radial-gradient(rgba(30,58,95,.12) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%); pointer-events: none; }
.u12-hero::after { content: ""; position: absolute; top: -14rem; right: -10rem; width: 36rem; height: 36rem; border-radius: 999px; background: rgba(234,88,12,.07); filter: blur(60px); pointer-events: none; }
.u12-hero__inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; padding: 3.5rem 0 4rem; }
@media (min-width: 1024px) { .u12-hero__inner { grid-template-columns: 1.2fr 1fr; gap: 4rem; padding: 5rem 0 5.5rem; } }
.u12-h1 { font-size: 2.5rem; font-weight: 800; color: #1E3A5F; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .u12-h1 { font-size: 3.5rem; } }
.u12-h1 span { color: #EA580C; }
.u12-lead { font-size: 1.125rem; color: rgba(30,58,95,.7); line-height: 1.65; max-width: 38rem; margin-bottom: 1.5rem; }
.u12-for { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.u12-for span { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid #e5e7eb; font-size: .875rem; font-weight: 600; color: #1E3A5F; }
.u12-for i { color: #46679a; font-size: .8rem; }
.u12-btns { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .u12-btns { flex-direction: row; flex-wrap: wrap; } }
.u12-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .75rem 1.6rem; border-radius: .75rem; border: 2px solid #1E3A5F; background: transparent; color: #1E3A5F; font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all .2s; }
.u12-ghost:hover { background: #1E3A5F; color: #fff; }
.u12-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; }
.u12-facts span { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 600; color: rgba(30,58,95,.75); }
.u12-facts i { color: #46679a; font-size: .8rem; }

/* Правая колонка: как идёт работа */
.u12-work { background: #fff; border: 1px solid #e5e7eb; border-radius: 1.5rem; padding: 1.75rem; box-shadow: 0 30px 60px -36px rgba(30,58,95,.45); }
@media (min-width: 768px) { .u12-work { padding: 2rem; } }
.u12-work__k { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(30,58,95,.45); margin-bottom: 1.25rem; }
.u12-flow { list-style: none; margin: 0; padding: 0; }
.u12-step { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-bottom: 1.5rem; }
.u12-step:last-child { padding-bottom: 0; }
.u12-step:not(:last-child)::before { content: ""; position: absolute; left: 1.5rem; top: 3.25rem; bottom: .25rem; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, #d5dde8 0 6px, transparent 6px 11px); }
.u12-step__icon { width: 3rem; height: 3rem; border-radius: .9rem; background: rgba(30,58,95,.08); color: #1E3A5F; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.u12-step__n { display: block; font-size: .75rem; font-weight: 800; color: rgba(30,58,95,.45); margin-bottom: .1rem; }
.u12-step__title { font-size: 1.125rem; font-weight: 800; color: #1E3A5F; line-height: 1.25; margin-bottom: .3rem; }
.u12-step__text { font-size: .9375rem; color: rgba(30,58,95,.65); line-height: 1.55; }
.u12-step--last .u12-step__icon { background: #1E3A5F; color: #fff; }
.u12-step--last .u12-step__n { color: #EA580C; }
.u12-work__foot { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; padding: .9rem 1rem; border-radius: 1rem; background: #fff7ed; font-size: .875rem; color: rgba(30,58,95,.75); line-height: 1.4; }
.u12-work__foot i { color: #EA580C; }
.u12-work__foot b { color: #1E3A5F; }

/* ===== u-result-css ===== */
.u-res { position: relative; overflow: hidden; background: #1E3A5F; }
.u-res::before { content: ""; position: absolute; top: -14rem; right: -12rem; width: 38rem; height: 38rem; border-radius: 999px; background: radial-gradient(circle, rgba(234,88,12,.1) 0%, rgba(234,88,12,0) 70%); pointer-events: none; }
.u-res::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%); mask-image: linear-gradient(180deg, #000 0%, transparent 60%); pointer-events: none; }
.u-res .a-wrap { position: relative; z-index: 1; }
.u-res .a-eyebrow { color: rgba(255,255,255,.55); }
.u-res .a-eyebrow::before { background: rgba(255,255,255,.35); }
.u-res .a-h2 { color: #fff; }
.u-res .a-h2 span { color: #F97316; }
.u-res .a-lead { color: rgba(255,255,255,.68); }

.u-res__stats { display: grid; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 1.25rem; overflow: hidden; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .u-res__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.u-res__stat { background: #1E3A5F; padding: 1.4rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.u-res__stat b { font-size: 2.25rem; font-weight: 800; color: #fff; line-height: 1; white-space: nowrap; letter-spacing: -.01em; }
.u-res__stat span { font-size: .875rem; color: rgba(255,255,255,.75); line-height: 1.4; }

.u-res__grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .u-res__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .u-res__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.u-res__item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 1.25rem; padding: 1.5rem; transition: background .25s, border-color .25s; }
.u-res__item:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.u-res__icon { width: 2.75rem; height: 2.75rem; border-radius: .85rem; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 1rem; }
.u-res__title { font-size: 1.125rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: .5rem; }
.u-res__text { font-size: .9rem; color: rgba(255,255,255,.68); line-height: 1.6; }
.u-res__for { display: inline-flex; margin-top: .9rem; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ===== u-cases-css ===== */
.u-cases { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .u-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .u-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.u-case { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 1.5rem; padding: 1.5rem; transition: box-shadow .25s, border-color .25s, transform .25s; }
.u-case:hover { transform: translateY(-3px); border-color: rgba(30,58,95,.2); box-shadow: 0 24px 48px -28px rgba(30,58,95,.4); }
.u-case__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.u-case__tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; color: #1E3A5F; background: rgba(30,58,95,.07); padding: .3rem .65rem; border-radius: 999px; }
.u-case__tag i { font-size: .7rem; color: #46679a; }
.u-case__num { font-size: 2.75rem; font-weight: 800; color: #1E3A5F; line-height: 1; letter-spacing: -.02em; }
.u-case__unit { font-size: .875rem; font-weight: 600; color: #EA580C; margin-top: .35rem; }
.u-case__name { font-size: 1.0625rem; font-weight: 800; color: #1E3A5F; line-height: 1.3; margin: 1.1rem 0 .5rem; padding-top: 1.1rem; border-top: 1px solid #f1f3f6; }
.u-case__text { font-size: .9rem; color: rgba(30,58,95,.68); line-height: 1.6; }
.u-case__text b { color: #1E3A5F; font-weight: 700; }
.u-case--accent { background: #1E3A5F; border-color: #1E3A5F; position: relative; overflow: hidden; }
.u-case--accent::after { content: ""; position: absolute; right: -6rem; bottom: -7rem; width: 18rem; height: 18rem; border-radius: 999px; background: radial-gradient(circle, rgba(234,88,12,.28) 0%, rgba(234,88,12,0) 70%); pointer-events: none; }
.u-case--accent > * { position: relative; z-index: 1; }
.u-case--accent .u-case__tag { background: rgba(255,255,255,.12); color: #fff; }
.u-case--accent .u-case__tag i { color: #F97316; }
.u-case--accent .u-case__num, .u-case--accent .u-case__name { color: #fff; }
.u-case--accent .u-case__unit { color: #F97316; }
.u-case--accent .u-case__name { border-top-color: rgba(255,255,255,.12); }
.u-case--accent .u-case__text { color: rgba(255,255,255,.72); }
.u-case--accent .u-case__text b { color: #fff; }
.u-cases__foot { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 2.5rem; text-align: center; }
.u-cases__note { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: rgba(30,58,95,.6); }
.u-cases__note i { color: #46679a; }

/* Якоря карточек услуг (#lichnyj-brend и др.) — под фиксированной шапкой */
.a-svcc__card { scroll-margin-top: 6rem; }

/* Без «висячего» слова в заголовках и тексте экранов страницы. */
.u12-h1, .u12-step__title, .u-res__title, .u-case__name { text-wrap: balance; }
.u12-lead, .u12-step__text, .u-res__text, .u-case__text { text-wrap: pretty; }
