/* ==========================================================================
   SOLITON — страница «Дизайн»: новые блоки поверх нынешнего оформления.
   Взяты только правила самих блоков (sw-*). Правила редизайна, которые
   перекрашивали базовые элементы страницы, намеренно не переносились.
   ========================================================================== */

body.pg-web {
    --sw-cyan:   #3ce7ff;
    --sw-blue:   #2f6bff;
    --sw-violet: #8b5cf6;
    --sw-pink:   #ff4d9d;
    --sw-lime:   #6ef7c0;
    --sw-ink:    #04060e;
    --sw-panel:  rgba(12, 20, 40, .72);
    --sw-panel2: rgba(9, 15, 30, .9);
    --sw-line:   rgba(120, 165, 255, .18);
    --sw-line2:  rgba(120, 165, 255, .42);
    --sw-text:   #eaf1ff;
    --sw-mut:    #9fb2d4;
    --sw-grad:   linear-gradient(115deg, var(--sw-cyan) 0%, var(--sw-blue) 42%, var(--sw-violet) 74%, var(--sw-pink) 100%);
    --sw-mono:   'Fira Code', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sw-e:      cubic-bezier(.22, 1, .36, 1);
}



/* Сетка-подложка для «инженерного» характера */
.sw-grid-bg { position: relative; }

.sw-grid-bg::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(to right,  rgba(120, 165, 255, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(120, 165, 255, .055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
            mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
}

.sw-grid-bg > * { position: relative; z-index: 1; }


/* ------------------------------------------------------------ типографика */

.sw-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sw-mono);
    font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--sw-cyan); margin-bottom: 18px;
}

.sw-eyebrow::before {
    content: ''; width: 26px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--sw-cyan));
}


.sw-head { margin-bottom: 54px; max-width: 900px; }

.sw-head.is-center { margin-inline: auto; text-align: center; }

.sw-head.is-center .sw-eyebrow::before { display: none; }

.sw-h2 {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.08; font-weight: 800; letter-spacing: -.028em;
    color: #fff; margin: 0;
}

.sw-h2 em {
    font-style: normal;
    background: var(--sw-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sw-sub {
    margin-top: 16px; font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.65; color: var(--sw-mut); max-width: 70ch;
}

.sw-head.is-center .sw-sub { margin-inline: auto; }


/* ---------------------------------------------------------------- кнопки */

.sw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 17px 34px; border-radius: 12px;
    font-weight: 700; font-size: .92rem; letter-spacing: .02em;
    border: 1px solid transparent; position: relative; overflow: hidden;
    transition: transform .35s var(--sw-e), box-shadow .35s var(--sw-e),
                border-color .3s, background .3s, color .3s;
    text-align: center;
}

.sw-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }


.sw-btn-primary {
    color: #04060e; background: var(--sw-grad);
    background-size: 180% 100%; background-position: 0% 50%;
    box-shadow: 0 12px 34px rgba(47, 107, 255, .32);
    transition: transform .35s var(--sw-e), box-shadow .35s var(--sw-e), background-position .6s var(--sw-e);
}

.sw-btn-primary:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(60, 231, 255, .38);
}

.sw-btn-ghost {
    color: #fff; background: rgba(255, 255, 255, .03);
    border-color: var(--sw-line2);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.sw-btn-ghost:hover {
    border-color: var(--sw-cyan); background: rgba(60, 231, 255, .08);
    transform: translateY(-3px);
}


.sw-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }


.sw-hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 12px; border-radius: 999px;
    border: 1px solid var(--sw-line2); background: rgba(60, 231, 255, .06);
    font-size: .78rem; letter-spacing: .04em; color: #cfe2ff;
    margin-bottom: 26px;
}

.sw-hero-badge b { color: #fff; font-weight: 700; }

.sw-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--sw-lime); box-shadow: 0 0 0 4px rgba(110, 247, 192, .16);
    animation: sw-pulse 2.4s ease-in-out infinite;
}


.sw-hero-facts {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
}

.sw-hero-facts li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: 10px;
    border: 1px solid var(--sw-line); background: rgba(255, 255, 255, .025);
    font-size: .84rem; color: #c6d5f0;
}

.sw-hero-facts svg { width: 15px; height: 15px; color: var(--sw-cyan); flex: 0 0 auto; }


.sw-hero-note {
    margin-top: 18px; font-size: .82rem; color: var(--sw-mut);
    display: flex; align-items: flex-start; gap: 9px; max-width: 52ch;
}

.sw-hero-note svg { width: 15px; height: 15px; color: var(--sw-lime); flex: 0 0 auto; margin-top: 3px; }


/* Метрики под hero */
.sw-hero-metrics {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px; margin-top: 54px;
    border: 1px solid var(--sw-line); border-radius: 18px;
    background: var(--sw-line); overflow: hidden;
}

.sw-metric { background: #060b16; padding: 26px 24px; transition: background .4s; }

.sw-metric:hover { background: #0a1326; }

.sw-metric b {
    display: block; font-family: var(--sw-mono);
    font-size: clamp(1.5rem, 2.4vw, 2.15rem); font-weight: 600; line-height: 1;
    background: var(--sw-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 9px;
}

.sw-metric span { font-size: .82rem; color: var(--sw-mut); line-height: 1.45; display: block; }


/* ---------------------------------------------------------- боли клиента */

.sw-pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.sw-pain {
    padding: 30px 26px 28px; border-radius: 18px;
    border: 1px solid var(--sw-line); background: var(--sw-panel);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    position: relative; overflow: hidden;
    transition: border-color .4s, transform .4s var(--sw-e), box-shadow .4s var(--sw-e);
}

.sw-pain::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: var(--sw-grad); opacity: .5; transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--sw-e), opacity .4s;
}

.sw-pain:hover { border-color: var(--sw-line2); transform: translateY(-5px); box-shadow: 0 22px 48px rgba(0, 0, 0, .5); }

.sw-pain:hover::before { transform: scaleX(1); opacity: 1; }

.sw-pain-q {
    font-size: 1.06rem; font-weight: 700; color: #fff; line-height: 1.35;
    margin-bottom: 12px; display: flex; gap: 11px; align-items: flex-start;
}

.sw-pain-q svg { width: 19px; height: 19px; color: var(--sw-pink); flex: 0 0 auto; margin-top: 3px; }

.sw-pain p { font-size: .93rem; line-height: 1.62; margin: 0; }

.sw-pain-a {
    margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--sw-line);
    font-size: .87rem; color: #bcd4ff; display: flex; gap: 9px; align-items: flex-start;
}

.sw-pain-a svg { width: 16px; height: 16px; color: var(--sw-lime); flex: 0 0 auto; margin-top: 2px; }

.sw-approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 70px); align-items: start; }

.sw-approach-copy p { font-size: 1.02rem; line-height: 1.72; margin-bottom: 18px; }

.sw-quote {
    margin-top: 26px; padding: 24px 26px; border-radius: 16px;
    border: 1px solid var(--sw-line); border-left: 3px solid transparent;
    background:
        linear-gradient(#0a1223, #0a1223) padding-box,
        var(--sw-grad) border-box;
    color: #dbe7ff; font-size: 1rem; line-height: 1.62;
}

.sw-quote b { color: #fff; }


.sw-principles { display: grid; gap: 14px; }

.sw-principle {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 24px 24px; border-radius: 16px;
    border: 1px solid var(--sw-line); background: var(--sw-panel);
    transition: border-color .4s, transform .4s var(--sw-e), background .4s;
}

.sw-principle:hover { border-color: var(--sw-line2); transform: translateX(5px); background: rgba(16, 26, 50, .8); }

.sw-principle-ic {
    width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px;
    display: grid; place-items: center;
    border: 1px solid var(--sw-line2); background: rgba(47, 107, 255, .1);
}

.sw-principle-ic svg { width: 21px; height: 21px; color: var(--sw-cyan); fill: none; stroke: currentColor; stroke-width: 1.7; }

.sw-principle h4 { font-size: 1.03rem; color: #fff; margin-bottom: 6px; font-weight: 700; }

.sw-principle p { font-size: .9rem; line-height: 1.58; margin: 0; }


/* ---------------------------------------------------------- услуги (что) */

.sw-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.sw-svc {
    --sw-a: var(--sw-cyan);
    position: relative; overflow: hidden;
    padding: 34px 30px 30px; border-radius: 20px;
    border: 1px solid var(--sw-line); background: var(--sw-panel2);
    transition: border-color .45s, transform .45s var(--sw-e), box-shadow .45s var(--sw-e);
}

.sw-svc::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
                rgba(255, 255, 255, .07), transparent 62%);
    opacity: 0; transition: opacity .4s;
}

.sw-svc:hover { border-color: var(--sw-a); transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0, 0, 0, .55); }

.sw-svc:hover::after { opacity: 1; }

.sw-svc-ic {
    width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
    border: 1px solid var(--sw-line2); margin-bottom: 20px;
    background: color-mix(in srgb, var(--sw-a) 12%, transparent);
    transition: transform .45s var(--sw-e);
}

.sw-svc:hover .sw-svc-ic { transform: translateY(-3px) rotate(-4deg); }

.sw-svc-ic svg { width: 24px; height: 24px; color: var(--sw-a); fill: none; stroke: currentColor; stroke-width: 1.7; }

.sw-svc h3 { font-size: 1.16rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 11px; }

.sw-svc > p { font-size: .93rem; line-height: 1.62; margin-bottom: 18px; }

.sw-svc ul { display: grid; gap: 8px; }

.sw-svc li {
    font-size: .855rem; color: #b7c8e6; padding-left: 20px; position: relative; line-height: 1.5;
}

.sw-svc li::before {
    content: ''; position: absolute; left: 0; top: .52em;
    width: 7px; height: 7px; border-radius: 2px; background: var(--sw-a); opacity: .85;
}


/* --------------------------------------------------- прайс-панель (карусель) */

.sw-price-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }

.sw-price-head .sw-head { margin-bottom: 0; }


.sw-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }

.sw-chip {
    padding: 10px 17px; border-radius: 999px; cursor: none;
    border: 1px solid var(--sw-line); background: rgba(255, 255, 255, .02);
    color: #b7c8e6; font-size: .84rem; font-weight: 600;
    transition: border-color .3s, color .3s, background .3s, transform .3s var(--sw-e);
}

.sw-chip:hover { border-color: var(--sw-line2); color: #fff; transform: translateY(-2px); }

.sw-chip.is-on {
    color: #04060e; border-color: transparent;
    background: var(--sw-grad);
}

.sw-card-body { padding: 26px 24px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.sw-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.sw-tag {
    font-family: var(--sw-mono); font-size: .68rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--sw-a);
    padding: 5px 10px; border-radius: 7px;
    border: 1px solid color-mix(in srgb, var(--sw-a) 38%, transparent);
    background: color-mix(in srgb, var(--sw-a) 10%, transparent);
    white-space: nowrap;
}

.sw-term {
    font-size: .76rem; color: var(--sw-mut); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}

.sw-term svg { width: 13px; height: 13px; }

.pg-web .price-card > .sw-card-body > p { font-size: .9rem; line-height: 1.58; color: var(--sw-mut); flex: 0 0 auto; margin: 0; }

.sw-mini { display: grid; gap: 7px; margin-top: 2px; }

.sw-mini li {
    font-size: .83rem; color: #b0c2e2; line-height: 1.45;
    padding-left: 19px; position: relative;
}

.sw-mini li::before {
    content: ''; position: absolute; left: 0; top: .46em; width: 10px; height: 6px;
    border-left: 1.6px solid var(--sw-a); border-bottom: 1.6px solid var(--sw-a);
    transform: rotate(-45deg);
}

.sw-card-foot {
    margin-top: auto; padding: 16px 24px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border-top: 1px solid var(--sw-line);
}

.sw-more {
    display: inline-flex; align-items: center; gap: 7px; cursor: none;
    padding: 10px 15px; border-radius: 10px; white-space: nowrap;
    border: 1px solid var(--sw-line2); color: #fff;
    background: rgba(255, 255, 255, .03); font-size: .82rem; font-weight: 600;
    transition: background .3s, border-color .3s, transform .3s var(--sw-e);
}

.sw-more svg { width: 14px; height: 14px; transition: transform .3s var(--sw-e); }

.sw-more:hover { background: color-mix(in srgb, var(--sw-a) 16%, transparent); border-color: var(--sw-a); }

.sw-more:hover svg { transform: translateX(3px); }


/* -------------------------------------------------- модалка описания услуги */

.sw-modal .sl-modal-box { max-width: 980px; }

.sw-detail-shell {
    border: 1px solid var(--sw-line2); border-radius: 22px; overflow: hidden;
    background: #070c18;
    box-shadow: 0 40px 110px rgba(0, 0, 0, .7);
}

.sw-detail { --sw-a: var(--sw-cyan); }

.sw-detail[data-cat="research"] { --sw-a: #3ce7ff; }

.sw-detail[data-cat="product"]  { --sw-a: #2f6bff; }

.sw-detail[data-cat="brand"]    { --sw-a: #b779ff; }

.sw-detail[data-cat="content"]  { --sw-a: #ff6fb0; }

.sw-detail[data-cat="support"]  { --sw-a: #6ef7c0; }


.sw-d-head {
    padding: 34px clamp(22px, 4vw, 44px) 30px;
    border-bottom: 1px solid var(--sw-line);
    background:
        radial-gradient(110% 160% at 0% 0%, color-mix(in srgb, var(--sw-a) 18%, transparent), transparent 62%),
        #0a1224;
}

.sw-d-head .sw-tag { margin-bottom: 16px; display: inline-block; }

.sw-d-head h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.14; font-weight: 800;
    letter-spacing: -.025em; color: #fff; margin-bottom: 14px;
}

.sw-d-lead { font-size: 1.02rem; line-height: 1.66; color: #c3d3ee; max-width: 68ch; }


.sw-d-facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px; background: var(--sw-line);
    border-bottom: 1px solid var(--sw-line);
}

.sw-d-fact { background: #08101f; padding: 20px clamp(18px, 3vw, 28px); }

.sw-d-fact span {
    display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--sw-mut); font-family: var(--sw-mono); margin-bottom: 7px;
}

.sw-d-fact b { font-size: 1.08rem; color: #fff; font-weight: 700; line-height: 1.3; display: block; }

.sw-d-fact.is-price b { color: var(--sw-a); font-family: var(--sw-mono); font-weight: 600; }


.sw-d-body { padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 44px) 34px; display: grid; gap: 34px; }

.sw-d-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }


.sw-d-block h3 {
    font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
    font-family: var(--sw-mono); color: var(--sw-a); margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}

.sw-d-block h3::after { content: ''; flex: 1; height: 1px; background: var(--sw-line); }

.sw-d-list { display: grid; gap: 10px; }

.sw-d-list li {
    position: relative; padding-left: 26px; font-size: .94rem; line-height: 1.6; color: #c3d3ee;
}

.sw-d-list li::before {
    content: ''; position: absolute; left: 0; top: .42em; width: 12px; height: 7px;
    border-left: 1.8px solid var(--sw-a); border-bottom: 1.8px solid var(--sw-a);
    transform: rotate(-45deg);
}

.sw-d-list.is-neutral li::before {
    border: none; width: 6px; height: 6px; border-radius: 50%;
    background: var(--sw-mut); transform: none; top: .58em;
}


.sw-d-steps { display: grid; gap: 0; counter-reset: swstep; }

.sw-d-step {
    display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px;
    padding-bottom: 20px; position: relative;
}

.sw-d-step:last-child { padding-bottom: 0; }

.sw-d-step::before {
    counter-increment: swstep; content: counter(swstep, decimal-leading-zero);
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    font-family: var(--sw-mono); font-size: .8rem; color: var(--sw-a);
    border: 1px solid color-mix(in srgb, var(--sw-a) 40%, transparent);
    background: color-mix(in srgb, var(--sw-a) 10%, transparent);
}

.sw-d-step::after {
    content: ''; position: absolute; left: 17px; top: 38px; bottom: 6px; width: 1px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--sw-a) 45%, transparent), transparent);
}

.sw-d-step:last-child::after { display: none; }

.sw-d-step b { display: block; color: #fff; font-size: .98rem; margin-bottom: 4px; font-weight: 700; }

.sw-d-step span { font-size: .89rem; color: var(--sw-mut); line-height: 1.55; display: block; }


.sw-d-cta {
    margin: 0 clamp(22px, 4vw, 44px) clamp(24px, 4vw, 40px);
    padding: 26px 28px; border-radius: 18px;
    border: 1px solid var(--sw-line);
    background: radial-gradient(120% 200% at 100% 0%, color-mix(in srgb, var(--sw-a) 16%, transparent), transparent 60%), #0a1224;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}

.sw-d-cta p { margin: 0; font-size: .95rem; color: #c3d3ee; max-width: 46ch; }

.sw-d-cta strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 5px; }


/* --------------------------------------------------- форматы сотрудничества */

.sw-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.sw-format {
    display: flex; flex-direction: column; padding: 34px 30px 32px; border-radius: 20px;
    border: 1px solid var(--sw-line); background: var(--sw-panel2); position: relative;
    transition: border-color .4s, transform .4s var(--sw-e), box-shadow .4s var(--sw-e);
}

.sw-format:hover { border-color: var(--sw-line2); transform: translateY(-5px); box-shadow: 0 24px 56px rgba(0, 0, 0, .5); }

.sw-format.is-featured {
    border-color: transparent;
    background:
        linear-gradient(#0a1224, #0a1224) padding-box,
        var(--sw-grad) border-box;
    box-shadow: 0 24px 70px rgba(47, 107, 255, .22);
}

.sw-format-badge {
    position: absolute; top: -12px; left: 30px;
    padding: 6px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #04060e;
    background: var(--sw-grad);
}

.sw-format h3 { font-size: 1.32rem; color: #fff; font-weight: 800; margin-bottom: 8px; }

.sw-format-for { font-size: .87rem; color: var(--sw-cyan); margin-bottom: 18px; font-family: var(--sw-mono); }

.sw-format > p { font-size: .94rem; line-height: 1.62; margin-bottom: 20px; }

.sw-format ul { display: grid; gap: 10px; margin-bottom: 24px; }

.sw-format li { font-size: .89rem; color: #b7c8e6; padding-left: 22px; position: relative; line-height: 1.5; }

.sw-format li::before {
    content: ''; position: absolute; left: 0; top: .44em; width: 11px; height: 6px;
    border-left: 1.7px solid var(--sw-cyan); border-bottom: 1.7px solid var(--sw-cyan); transform: rotate(-45deg);
}

.sw-format-price {
    margin-top: auto; padding-top: 20px; border-top: 1px solid var(--sw-line);
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px;
}

.sw-format-price b { font-family: var(--sw-mono); font-size: 1.25rem; color: #fff; font-weight: 600; }

.sw-format-price span { font-size: .78rem; color: var(--sw-mut); }

.sw-format .sw-btn { width: 100%; }


/* ------------------------------------------------------------- гарантии */

.sw-guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--sw-line);
    border: 1px solid var(--sw-line); border-radius: 20px; overflow: hidden; }

.sw-guard { background: #070d1b; padding: 30px 28px; transition: background .4s; }

.sw-guard:hover { background: #0b1428; }

.sw-guard-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(47, 107, 255, .12); border: 1px solid var(--sw-line2); margin-bottom: 16px; }

.sw-guard-ic svg { width: 19px; height: 19px; color: var(--sw-cyan); fill: none; stroke: currentColor; stroke-width: 1.8; }

.sw-guard h4 { font-size: 1.02rem; color: #fff; margin-bottom: 8px; font-weight: 700; }

.sw-guard p { font-size: .89rem; line-height: 1.6; margin: 0; }


/* -------------------------------------------------------------- процесс */

.sw-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }

.sw-step {
    position: relative; padding: 28px 22px 26px; border-radius: 18px;
    border: 1px solid var(--sw-line); background: var(--sw-panel2);
    transition: border-color .4s, transform .4s var(--sw-e);
}

.sw-step:hover { border-color: var(--sw-line2); transform: translateY(-5px); }

.sw-step-n {
    font-family: var(--sw-mono); font-size: .76rem; letter-spacing: .1em;
    color: var(--sw-cyan); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}

.sw-step-n::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--sw-line2), transparent); }

.sw-step h4 { font-size: 1.04rem; color: #fff; margin-bottom: 9px; font-weight: 700; line-height: 1.3; }

.sw-step p { font-size: .88rem; line-height: 1.58; margin-bottom: 14px; }

.sw-step-out {
    font-size: .78rem; color: #9fd8ff; padding-top: 12px; border-top: 1px dashed var(--sw-line);
    display: block;
}

.sw-step-out b { color: #fff; font-weight: 600; }


/* ------------------------------------------------------------ отзывы/факты */

.sw-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.sw-quote-card {
    padding: 32px 28px; border-radius: 18px; border: 1px solid var(--sw-line);
    background: var(--sw-panel2); position: relative;
    transition: border-color .4s, transform .4s var(--sw-e);
}

.sw-quote-card:hover { border-color: var(--sw-line2); transform: translateY(-4px); }

.sw-quote-card::before {
    content: '“'; position: absolute; top: 8px; right: 22px;
    font-size: 4.4rem; line-height: 1; color: var(--sw-line2); font-family: Georgia, serif;
}

.sw-quote-card p { font-size: .97rem; line-height: 1.68; color: #c3d3ee; margin-bottom: 18px; }

.sw-quote-card h5 { font-size: .92rem; color: #fff; font-weight: 700; }

.sw-quote-card span { font-size: .8rem; color: var(--sw-mut); }
@media (max-width: 1180px) {

    .sw-pains   { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sw-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sw-steps   { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .sw-guards  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {

    .sw-approach { grid-template-columns: 1fr; gap: 34px; }

    .sw-formats  { grid-template-columns: 1fr; }

    .sw-quotes   { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {

    .sw-hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sw-d-cols { grid-template-columns: 1fr; gap: 28px; }

    .sw-d-facts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {

    .sw-pains, .sw-svc-grid, .sw-steps, .sw-guards { grid-template-columns: 1fr !important; }

    .sw-head { margin-bottom: 36px; }

    .sw-btn { width: 100%; }

    .sw-actions .sw-btn { width: 100%; }

    .sw-d-cta { flex-direction: column; align-items: stretch; }

    .sw-d-cta .sw-btn { width: 100%; }

    .sw-format .sw-btn { width: 100%; }
}
@media (max-width: 600px) {

    .sw-card-body { padding: 22px 20px 0; }

    .sw-card-foot { padding: 14px 20px 18px; flex-wrap: wrap; }

    .sw-metric { padding: 20px 18px; }

    .sw-hero-facts li { font-size: .8rem; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {

    .sw-dot { animation: none; }

    .sw-btn, .sw-svc, .sw-pain, .sw-format, .sw-step, .sw-principle,
    .pg-web .price-card, .pg-web .case-card {
        transition: none !important; transform: none !important;
    }

    .sw-svc::after { display: none; }
}

.pg-web #cases .sw-actions { margin-top: 34px; justify-content: center; }

.pg-web #cases .sw-actions .sw-btn { min-width: 240px; }
@media (min-width: 769px) {
 .sw-actions .sw-btn { width: auto; }
}


/* ---------- Бегущая строка ----------
   После добавления инструментов лента стала длиннее, а время прохода
   осталось прежним — визуально строка ускорилась. Возвращаем темп. */

.pg-web .marquee-wrapper { animation-duration: 95s; }
@media (max-width: 768px) {
    .pg-web .marquee-track { animation-duration: 60s !important; }
}


/* ---------- Кнопка раскрытия услуги ----------
   В прайсе она была подписью «Подробнее» с чужой типографикой и выбивалась
   из карточек. Оставляем компактную стрелку в стиле самой страницы. */

.sw-more.is-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: none;
    transition: border-color .25s, color .25s, transform .25s;
}
.sw-more.is-icon:hover {
    border-color: var(--blue, var(--primary));
    color: var(--blue, var(--primary));
    transform: translateX(2px);
}
.sw-more.is-icon svg { width: 16px; height: 16px; }


/* ---------- Новые блоки на общих классах страницы ---------- */

.section-lead {
    max-width: 62ch;
    margin: -10px 0 42px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--muted);
}

.svc-list { list-style: none; margin: 16px 0 0; padding: 0; }
.svc-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--muted);
}
.svc-list li::before {
    content: '';
    position: absolute;
    left: 0; top: .62em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue, var(--primary));
    opacity: .75;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 1024px) { .formats-grid { grid-template-columns: 1fr; } }
.format-card { display: flex; flex-direction: column; }
.format-card .format-for {
    margin: 6px 0 14px;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue, var(--primary));
}
.format-card .svc-list { flex: 1; }
.format-card .price-meta { margin-top: 20px; }

/* карточка услуги открывается целиком */
.price-card.is-clickable { cursor: none; }
.price-card.is-clickable:focus-visible {
    outline: 2px solid var(--blue, var(--primary));
    outline-offset: 3px;
}

/* бегущая строка с инструментами идёт спокойнее основной */
.marquee-tools { animation-duration: 120s; }


/* ---------- Услуги и стоимость: статичная сетка ---------- */

.price-grid-static {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
@media (max-width: 1024px) { .price-grid-static { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .price-grid-static { grid-template-columns: 1fr; } }

.price-grid-static .price-card { display: flex; flex-direction: column; height: auto; }
.price-grid-static .price-card .price-meta { margin-top: auto; }
.price-card.is-open { grid-column: 1 / -1; }

/* кнопка раскрытия */
.price-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-family: inherit;
    font-size: .8rem;
    letter-spacing: .04em;
    cursor: none;
    transition: border-color .25s, color .25s;
}
.price-more:hover,
.price-more[aria-expanded="true"] {
    border-color: var(--blue, var(--primary));
    color: var(--blue, var(--primary));
}
.price-more svg { width: 15px; height: 15px; transition: transform .3s; }
.price-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.price-more:focus-visible { outline: 2px solid var(--blue, var(--primary)); outline-offset: 2px; }

/* раскрытая панель */
.svc-panel {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.svc-panel[hidden] { display: none; }
.svc-panel .sw-detail { display: block; }
.svc-panel .sw-d-head h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 800;
    margin: 10px 0 12px;
}
.svc-panel .sw-d-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}
@media (max-width: 760px) { .svc-panel .sw-d-cols { grid-template-columns: 1fr; } }
.svc-panel .sw-d-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 18px 0 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.svc-panel .sw-d-fact span { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svc-panel .sw-d-fact b { font-size: 1rem; }
.svc-panel .sw-d-fact.is-price b { color: var(--blue, var(--primary)); }
.svc-panel .sw-d-block { margin-bottom: 22px; }
.svc-panel .sw-d-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.svc-panel .sw-d-list { list-style: none; margin: 0; padding: 0; }
.svc-panel .sw-d-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--muted);
}
.svc-panel .sw-d-list li::before {
    content: '';
    position: absolute;
    left: 0; top: .62em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue, var(--primary));
    opacity: .75;
}
.svc-panel .sw-d-steps { display: grid; gap: 14px; }
.svc-panel .sw-d-step b { display: block; font-size: .95rem; margin-bottom: 4px; }
.svc-panel .sw-d-step span { font-size: .9rem; line-height: 1.6; color: var(--muted); }
.svc-panel .sw-d-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.svc-panel .sw-d-cta p { font-size: .9rem; line-height: 1.6; color: var(--muted); }
.svc-panel .sw-d-cta strong { display: block; color: #fff; margin-bottom: 4px; }


/* ---------- Услуги и стоимость: своя карусель ---------- */

.svc-carousel { position: relative; }
.svc-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.svc-viewport::-webkit-scrollbar { display: none; }
.svc-carousel.is-grabbing .svc-viewport { cursor: none; scroll-snap-type: none; }
/* Пока лента едет от колеса или стрелок, привязка к карточкам мешает:
   она возвращает прокрутку к ближайшему краю быстрее, чем идёт ход.
   Снимаем на время движения — скрипт вернёт её после остановки. */
.svc-carousel.is-gliding .svc-viewport { scroll-snap-type: none; }

/* Ширина карточки считается от окна, а не в процентах от дорожки:
   дорожка сама по себе шире экрана, и проценты считать было не от чего. */
.svc-track {
    display: flex;
    gap: 20px;
    padding: 4px;
    width: max-content;
}
.svc-track .price-card {
    flex: 0 0 clamp(260px, 26vw, 360px);
    scroll-snap-align: start;
    height: auto;
}
@media (max-width: 1100px) { .svc-track .price-card { flex-basis: clamp(260px, 42vw, 330px); } }
@media (max-width: 680px)  { .svc-track .price-card { flex-basis: min(84vw, 340px); } }

/* строка с ценой не должна слипаться при узкой карточке */
.svc-track .price-meta { margin-top: auto; flex-wrap: wrap; row-gap: 4px; }
.svc-track .price-card > p { flex: 0 1 auto; }

.price-card.svc-openable { cursor: none; transition: border-color .25s, transform .25s; }
.price-card.svc-openable:hover { border-color: var(--blue, var(--primary)); transform: translateY(-3px); }
.price-card.svc-openable:focus-visible { outline: 2px solid var(--blue, var(--primary)); outline-offset: 3px; }

.svc-carousel-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
}
.svc-arrow {
    flex: none;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: none;
    transition: border-color .25s, color .25s, opacity .25s;
}
.svc-arrow:hover:not(:disabled) { border-color: var(--blue, var(--primary)); color: var(--blue, var(--primary)); }
.svc-arrow:disabled { opacity: .35; cursor: none; }
.svc-arrow svg { width: 18px; height: 18px; }
.svc-progress { flex: 1; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.svc-progress span {
    display: block; height: 100%; width: 6%;
    background: linear-gradient(90deg, var(--cyan, var(--primary)), var(--blue, var(--secondary)));
    border-radius: 2px;
    transition: width .25s;
}

/* ---------- Всплывающее окно услуги ---------- */

.svc-modal { position: fixed; inset: 0; z-index: 99997; overflow-y: auto; }
.svc-modal[hidden] { display: none; }
.svc-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(3, 4, 8, .82);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; transition: opacity .3s;
}
.svc-modal.is-in .svc-modal-backdrop { opacity: 1; }
.svc-modal-box {
    position: relative;
    width: min(940px, calc(100% - 32px));
    margin: clamp(40px, 8vh, 90px) auto;
    padding: clamp(26px, 4vw, 44px);
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 24px;
    opacity: 0; transform: translateY(22px);
    transition: opacity .35s, transform .35s cubic-bezier(.23, 1, .32, 1);
}
.svc-modal.is-in .svc-modal-box { opacity: 1; transform: none; }
.svc-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    cursor: none;
    transition: border-color .25s, color .25s;
}
.svc-modal-close:hover { border-color: var(--blue, var(--primary)); color: var(--blue, var(--primary)); }
.svc-modal-close svg { width: 18px; height: 18px; }
body.svc-modal-open { overflow: hidden; }


/* ---------- Свой курсор поверх новых блоков ----------
   Страница скрывает системный курсор правилом * { cursor: none }.
   Любое собственное cursor: pointer перебивало его и возвращало
   обычную мышку, поэтому перечисляем всё явно. */

.svc-carousel, .svc-carousel *,
.svc-viewport, .svc-viewport *,
.svc-track, .svc-track *,
.svc-arrow, .svc-arrow *,
.svc-modal, .svc-modal *,
.price-card, .price-card *,
.price-more, .price-more *,
.svc-panel, .svc-panel *,
.formats-grid, .formats-grid *,
.services-grid-detailed, .services-grid-detailed *,
#tools, #tools * { cursor: none; }


/* ---------- Кнопка «Получить смету» в окне услуги ----------
   Была окрашена градиентом из редизайна. Приводим к основной
   кнопке страницы: белая плашка, чёрный текст, тот же радиус. */

.svc-modal .sw-btn,
.svc-panel .sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: none;
    transition: transform .35s var(--ease, cubic-bezier(.23, 1, .32, 1)), box-shadow .35s;
}
.svc-modal .sw-btn-primary,
.svc-panel .sw-btn-primary {
    background: #fff;
    background-image: none;
    color: #000;
    box-shadow: 0 0 30px rgba(26, 102, 255, .2);
}
.svc-modal .sw-btn-primary:hover,
.svc-panel .sw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 44px rgba(26, 102, 255, .34);
}
.svc-modal .sw-btn-primary svg,
.svc-panel .sw-btn-primary svg { width: 16px; height: 16px; }
.svc-modal .sw-btn-ghost,
.svc-panel .sw-btn-ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--border);
    color: #fff;
}


/* ---------- Цикл разработки ---------- */

.svc-cycle { margin: 0 0 52px; }

.cycle-head p { color: var(--muted); line-height: 1.7; max-width: 62ch; margin-bottom: 28px; }
.cycle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .cycle-grid { grid-template-columns: 1fr; } }
.cycle-step {
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg2);
    cursor: none;
}
/* номер и название стоят в одной строке, по базовой линии */
.cycle-step { display: flex; flex-direction: column; }
.cycle-step .cycle-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}
.cycle-num {
    flex: none;
    font-size: .78rem;
    letter-spacing: .18em;
    color: var(--primary, var(--blue));
}
.cycle-step h4 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.cycle-step p { font-size: .92rem; line-height: 1.65; color: var(--muted); }


/* ---------- Окно услуги: то же оформление, что в раскрытой панели ----------
   Прежние правила были написаны только под .svc-panel, поэтому внутри
   модального окна списки шли без маркеров, а колонки не выстраивались. */

.svc-modal-slot .sw-detail { display: block; }
.svc-modal-slot .sw-d-head h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
}
.svc-modal-slot .sw-d-lead { color: var(--muted); line-height: 1.7; max-width: 64ch; }
.svc-modal-slot .sw-d-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 22px 0 26px;
    padding: 18px 22px;
    background: var(--bg3, rgba(255, 255, 255, .03));
    border: 1px solid var(--border);
    border-radius: 14px;
}
.svc-modal-slot .sw-d-fact span {
    display: block;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.svc-modal-slot .sw-d-fact b { font-size: 1.02rem; }
.svc-modal-slot .sw-d-fact.is-price b { color: var(--primary, var(--blue)); }
.svc-modal-slot .sw-d-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
@media (max-width: 760px) { .svc-modal-slot .sw-d-cols { grid-template-columns: 1fr; gap: 20px; } }
.svc-modal-slot .sw-d-block { margin-bottom: 26px; }
.svc-modal-slot .sw-d-block h3 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.svc-modal-slot .sw-d-list { list-style: none; margin: 0; padding: 0; }
.svc-modal-slot .sw-d-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: .94rem;
    line-height: 1.6;
    color: var(--muted);
}
.svc-modal-slot .sw-d-list li::before {
    content: '';
    position: absolute;
    left: 0; top: .62em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary, var(--blue));
    opacity: .8;
}
.svc-modal-slot .sw-d-steps { display: grid; gap: 16px; }
/* Счётчик увеличивает только ::before — базовое правило .sw-d-step::before.
   Второй counter-increment здесь давал шаг через один: 02, 04, 06. */
.svc-modal-slot .sw-d-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}
.svc-modal-slot .sw-d-step::before {
    content: counter(swstep, decimal-leading-zero);
    font-size: .72rem;
    letter-spacing: .1em;
    color: var(--primary, var(--blue));
    padding-top: 3px;
}
.svc-modal-slot .sw-d-steps { counter-reset: swstep; }
.svc-modal-slot .sw-d-step b { display: block; font-size: .98rem; margin-bottom: 4px; }
.svc-modal-slot .sw-d-step span { font-size: .92rem; line-height: 1.6; color: var(--muted); }
.svc-modal-slot .sw-d-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.svc-modal-slot .sw-d-cta p { font-size: .92rem; line-height: 1.65; color: var(--muted); max-width: 52ch; }
.svc-modal-slot .sw-d-cta strong { display: block; color: #fff; margin-bottom: 6px; font-size: 1rem; }

/* ---------- Цикл разработки: подсветка при наведении ---------- */

.cycle-step { transition: border-color .25s, transform .25s, background .25s; }
.cycle-step:hover {
    border-color: var(--primary, var(--blue));
    transform: translateY(-3px);
    background: var(--bg3, var(--bg2));
}
.cycle-step:hover .cycle-num { opacity: 1; }
.cycle-num { opacity: .75; transition: opacity .25s; }

/* ---------- Ползунок под каруселью ----------
   Красился градиентом из переменных, которых на этой странице нет:
   несуществующий цвет делал градиент недействительным, и полоса
   пропадала. Задаём запасной сплошной цвет. */

.svc-progress span {
    background: var(--primary, var(--blue, #1a66ff));
    background-image: linear-gradient(90deg,
        var(--primary, var(--cyan, #1a66ff)),
        var(--secondary, var(--blue, var(--primary, #1a66ff))));
}

/* ---------- Сетка карточек «Что вы получаете» ----------
   Класс services-grid-detailed описан не на всех страницах,
   поэтому карточки вставали в одну колонку и разъезжались. */

.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
@media (max-width: 1024px) { .services-grid-detailed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .services-grid-detailed { grid-template-columns: 1fr; } }
.services-grid-detailed .service-card-detailed {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg2);
    transition: border-color .25s, transform .25s;
    cursor: none;
}
.services-grid-detailed .service-card-detailed:hover {
    border-color: var(--primary, var(--blue));
    transform: translateY(-3px);
}
.services-grid-detailed .svc-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--primary, var(--blue)); }
.services-grid-detailed .svc-icon svg { width: 100%; height: 100%; }
.services-grid-detailed h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.services-grid-detailed p { font-size: .93rem; line-height: 1.65; color: var(--muted); }


/* ---------- Цикл: карточки заметнее при наведении ---------- */

.cycle-step:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

/* Линия под заголовком секции не должна прыгать: у неё
   фиксированные размеры и собственный отступ. */
#services .section-header .title-line {
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 14px;
    border-radius: 3px;
    background: var(--primary, var(--blue));
}
#services .svc-cycle { margin-top: 40px; }


/* ---------- Плавность карусели ---------- */

.svc-viewport { scroll-behavior: auto; }
.svc-track .price-card { transition: border-color .25s, transform .25s, opacity .35s; }
.svc-carousel.is-grabbing .svc-track .price-card { transition: none; }
.svc-arrow { transition: border-color .25s, color .25s, opacity .25s, transform .25s; }
.svc-arrow:active:not(:disabled) { transform: scale(.94); }
.svc-progress span { transition: width .18s linear; }

@media (prefers-reduced-motion: reduce) {
    .svc-track .price-card,
    .svc-arrow,
    .svc-progress span { transition: none; }
}


/* ==========================================================================
   ОКНО УСЛУГИ — переработанное оформление.

   Правила ниже идут последними и намеренно перекрывают более ранний блок
   «.svc-modal-slot …»: там плашки стояли в ряд разной ширины и оставляли
   пустоту справа, а разделы шли сплошным текстом без границ.

   Цвет берётся из переменных страницы: на «Разработке» это --primary,
   на «Дизайне» — --blue. Собственных цветов здесь нет, чтобы окно
   выглядело частью страницы, а не отдельным виджетом.
   ========================================================================== */

.svc-modal {
    --sd-accent: var(--primary, var(--blue, #1a66ff));
    --sd-line:   var(--border, rgba(255, 255, 255, .12));
    --sd-mono:   'Fira Code', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sd-e:      cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Коробка окна ---------- */

.svc-modal .svc-modal-box {
    width: min(980px, calc(100% - 28px));
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, .05) 0%, transparent 60%),
        var(--bg2);
    border-color: var(--sd-line);
    border-radius: 26px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}

/* Тонкая цветная кромка сверху — та же, что у карточек услуг */
.svc-modal .svc-modal-box::before {
    content: '';
    position: absolute; inset: 0 0 auto; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--sd-accent), var(--cyan, var(--sd-accent)), transparent);
    opacity: .85;
}

.svc-modal .svc-modal-close {
    top: 18px; right: 18px; z-index: 3;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.svc-modal-slot .sw-detail { display: block; }


/* ---------- Шапка ---------- */

.svc-modal-slot .sw-d-head {
    position: relative;
    padding: clamp(30px, 4.4vw, 46px) clamp(24px, 4vw, 46px) clamp(22px, 3vw, 30px);
    padding-right: clamp(66px, 8vw, 92px);
    border-bottom: 1px solid var(--sd-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, transparent 100%);
}

.svc-modal-slot .sw-d-head h2 {
    font-size: clamp(1.45rem, 2.7vw, 2.05rem);
    letter-spacing: -.02em;
    margin: 0 0 12px;
}

.svc-modal-slot .sw-d-lead { font-size: 1rem; max-width: 68ch; margin: 0; }


/* ---------- Плашки: цена, срок, что фиксируем ---------- */

.svc-modal-slot .sw-d-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: clamp(20px, 3vw, 26px) clamp(24px, 4vw, 46px);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--sd-line);
    border-radius: 0;
}

.svc-modal-slot .sw-d-fact {
    position: relative;
    display: flex; flex-direction: column; justify-content: center;
    gap: 7px;
    min-height: 86px;
    padding: 16px 18px;
    border: 1px solid var(--sd-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .022);
    overflow: hidden;
}

.svc-modal-slot .sw-d-fact span {
    margin: 0;
    font-family: var(--sd-mono);
    font-size: .66rem;
    letter-spacing: .16em;
}

.svc-modal-slot .sw-d-fact b {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
    color: #fff;
}

/* Цена — главная плашка: цветная полоса слева и подсвеченная подложка */
.svc-modal-slot .sw-d-fact.is-price {
    border-color: color-mix(in srgb, var(--sd-accent) 42%, transparent);
    background: color-mix(in srgb, var(--sd-accent) 9%, transparent);
}

.svc-modal-slot .sw-d-fact.is-price::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--sd-accent);
}

.svc-modal-slot .sw-d-fact.is-price b { color: var(--sd-accent); font-size: 1.2rem; }

/* Запасной вариант для браузеров без color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .svc-modal-slot .sw-d-fact.is-price {
        border-color: var(--sd-accent);
        background: rgba(255, 255, 255, .05);
    }
}


/* ---------- Тело ---------- */

.svc-modal-slot .sw-d-body { padding: clamp(24px, 3.6vw, 36px) clamp(24px, 4vw, 46px) 0; }

.svc-modal-slot .sw-d-cols { gap: 16px; margin-bottom: 16px; }

/* Разделы стали панелями: колонки «что входит» и «что получаете»
   раньше сливались в один поток и читались как продолжение друг друга. */
.svc-modal-slot .sw-d-cols .sw-d-block,
.svc-modal-slot .sw-d-body > .sw-d-block {
    margin: 0 0 16px;
    padding: 22px 22px 20px;
    border: 1px solid var(--sd-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .022);
}

.svc-modal-slot .sw-d-cols .sw-d-block { margin-bottom: 0; }

.svc-modal-slot .sw-d-block h3 {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--sd-mono);
    font-size: .68rem;
    letter-spacing: .16em;
    color: var(--sd-accent);
    margin-bottom: 16px;
}

.svc-modal-slot .sw-d-block h3::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--sd-line), transparent);
}

.svc-modal-slot .sw-d-list li {
    padding-left: 22px;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, .82);
}

.svc-modal-slot .sw-d-list li:last-child { margin-bottom: 0; }

.svc-modal-slot .sw-d-list li::before {
    top: .58em;
    width: 7px; height: 7px;
    border-radius: 2px;
    opacity: 1;
}


/* ---------- Как идёт работа ---------- */

.svc-modal-slot .sw-d-steps {
    display: grid;
    gap: 0;
    counter-reset: swstep;
}

.svc-modal-slot .sw-d-step {
    position: relative;
    grid-template-columns: 38px 1fr;
    gap: 16px;
    padding-bottom: 20px;
}

.svc-modal-slot .sw-d-step:last-child { padding-bottom: 0; }

/* Номер в кружке. Счётчик увеличивается только здесь — второй
   counter-increment на самом шаге давал нумерацию через один. */
.svc-modal-slot .sw-d-step::before {
    content: counter(swstep, decimal-leading-zero);
    counter-increment: swstep;
    display: grid; place-items: center;
    width: 38px; height: 38px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--sd-accent) 40%, transparent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--sd-accent) 10%, transparent);
    font-family: var(--sd-mono);
    font-size: .74rem; font-weight: 700;
    color: var(--sd-accent);
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .svc-modal-slot .sw-d-step::before {
        border-color: var(--sd-line);
        background: rgba(255, 255, 255, .04);
    }
}

/* Линия, связывающая шаги в цепочку */
.svc-modal-slot .sw-d-step::after {
    content: '';
    position: absolute; left: 18px; top: 44px; bottom: 6px; width: 1px;
    background: linear-gradient(180deg, var(--sd-line), transparent);
}

.svc-modal-slot .sw-d-step:last-child::after { display: none; }

.svc-modal-slot .sw-d-step > div { padding-top: 7px; }
.svc-modal-slot .sw-d-step b { font-size: 1rem; margin-bottom: 5px; }


/* ---------- Подвал: смета и запрос кейса ---------- */

.svc-modal-slot .sw-d-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 4px 0 0;
    padding: clamp(22px, 3vw, 30px) clamp(24px, 4vw, 46px) clamp(26px, 3.6vw, 38px);
    border-top: 1px solid var(--sd-line);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .022) 100%);
}

.svc-modal-slot .sw-d-foot .sw-d-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 24px 22px;
    border: 1px solid var(--sd-line);
    border-top: 1px solid var(--sd-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .022);
}

.svc-modal-slot .sw-d-foot .sw-d-cta.is-case {
    background: none;
    border-style: dashed;
}

.svc-modal-slot .sw-d-cta p { max-width: none; margin: 0; font-size: .9rem; }
.svc-modal-slot .sw-d-cta strong { font-size: 1.02rem; margin-bottom: 7px; }

.svc-modal-slot .sw-d-foot .sw-btn { width: 100%; padding: 15px 24px; font-size: .82rem; }


/* ---------- Тесные экраны ---------- */

@media (max-width: 760px) {
    .svc-modal-slot .sw-d-facts { grid-template-columns: 1fr; gap: 10px; }
    .svc-modal-slot .sw-d-fact { min-height: 0; flex-direction: row; align-items: baseline; gap: 12px; }
    .svc-modal-slot .sw-d-fact span { flex: 0 0 auto; }
    .svc-modal-slot .sw-d-fact b { margin-left: auto; text-align: right; }
    .svc-modal-slot .sw-d-foot { grid-template-columns: 1fr; }
    .svc-modal .svc-modal-box { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .svc-modal .svc-modal-box { transition: none; }
}
