/* Страницы услуг: Покраска крепежа, Испытания крепежа */

/* Hero услуги */
.service-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, #0b1220 0%, #112255 55%, #1e40af 100%);
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 5rem);
    isolation: isolate;
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 85% 20%, rgba(59, 130, 246, 0.45), transparent 60%),
        radial-gradient(40% 50% at 10% 90%, rgba(255, 255, 255, 0.08), transparent 60%);
    z-index: -1;
}

.service-hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

@media (max-width: 991.98px) {
    .service-hero__inner { grid-template-columns: 1fr; }
}

.service-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.service-hero__eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.service-hero__title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 1rem 0 0.75rem;
}

.service-hero__sub {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.86);
    max-width: 56ch;
    margin: 0 0 1.5rem;
}

.service-hero__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

@media (max-width: 575.98px) {
    .service-hero__features { grid-template-columns: 1fr; }
}

.service-hero__features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    font-size: 0.95rem;
}

.service-hero__features svg {
    flex: 0 0 22px;
    color: #93c5fd;
}

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-service--primary {
    background: #fff;
    color: #1e40af;
}

.btn-service--primary:hover {
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-service--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-service--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.service-hero__card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.service-hero__card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.service-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-hero__stat-value {
    display: block;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.service-hero__stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Хлебные крошки */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 0.75rem 0;
}

.breadcrumb-bar ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
}

.breadcrumb-bar a {
    color: var(--text-muted, #6b7280);
    text-decoration: none;
}

.breadcrumb-bar a:hover {
    color: var(--accent, #1e40af);
}

.breadcrumb-bar li + li::before {
    content: "/";
    margin-right: 0.4rem;
    color: #cbd5e1;
}

.breadcrumb-bar [aria-current="page"] {
    color: var(--text, #1f2937);
    font-weight: 600;
}

/* Универсальная секция-блок */
.svc-section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.svc-section--muted {
    background: var(--bg-light, #f5f6f8);
}

.svc-section__head {
    max-width: 760px;
    margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}

.svc-section__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent, #1e40af);
    margin-bottom: 0.5rem;
}

.svc-section__title {
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.svc-section__lead {
    font-size: 1rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Большой текстовый блок (intro) */
.svc-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

@media (max-width: 991.98px) {
    .svc-intro { grid-template-columns: 1fr; }
}

.svc-intro__text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 1rem;
}

.svc-intro__visual {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.svc-intro__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    mix-blend-mode: luminosity;
}

.svc-intro__badge {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.svc-intro__badge-icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    background: #1e40af;
    border-radius: 10px;
    color: #fff;
}

.svc-intro__badge-text {
    font-size: 0.92rem;
    line-height: 1.4;
}

.svc-intro__badge-text strong { display: block; font-size: 1rem; }

/* Сетка преимуществ / "почему" */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .svc-grid { grid-template-columns: 1fr; }
}

.svc-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-card:hover {
    border-color: var(--accent, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.svc-card__icon {
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--accent, #1e40af);
    margin-bottom: 1rem;
}

.svc-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.svc-card__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

/* "Какой крепёж окрашиваем" / "Что испытываем" — список изделий */
.svc-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 767.98px) {
    .svc-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 419.98px) {
    .svc-items { grid-template-columns: 1fr; }
}

.svc-items__cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    font-weight: 600;
    color: #0f172a;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.svc-items__cell:hover {
    border-color: var(--accent, #1e40af);
    background: rgba(30, 64, 175, 0.04);
}

.svc-items__cell svg {
    flex: 0 0 28px;
    color: var(--accent, #1e40af);
}

/* Список параметров (растяжение, срез, ...) */
.svc-params {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .svc-params { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .svc-params { grid-template-columns: 1fr; }
}

.svc-params__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.6rem 1.4rem 1.4rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.svc-params__item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
    opacity: 0.9;
}

.svc-params__item:hover {
    transform: translateY(-3px);
    border-color: var(--accent, #1e40af);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.svc-params__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.svc-params__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.18));
    color: var(--accent, #1e40af);
}

.svc-params__name {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0;
}

.svc-params__desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.svc-params__meta {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent, #1e40af);
    background: rgba(30, 64, 175, 0.08);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    align-self: flex-start;
}

/* Полоса с ГОСТ / нормативами */
.svc-standards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 419.98px) {
    .svc-standards { grid-template-columns: 1fr; }
}

.svc-standards__chip {
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    text-align: center;
}

.svc-standards__chip-name {
    display: block;
    font-weight: 800;
    color: var(--accent, #1e40af);
    font-size: 1.05rem;
}

.svc-standards__chip-desc {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

/* Шаги процесса */
.svc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    counter-reset: svc-step;
    position: relative;
}

@media (max-width: 991.98px) {
    .svc-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .svc-steps { grid-template-columns: 1fr; }
}

.svc-steps__item {
    position: relative;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 18px;
    padding: 2rem 1.6rem 1.6rem;
    counter-increment: svc-step;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.svc-steps__item::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.svc-steps__item:hover {
    transform: translateY(-3px);
    border-color: var(--accent, #1e40af);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.svc-steps__item:hover::after { opacity: 1; }

.svc-steps__num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.svc-steps__num::before {
    content: counter(svc-step, decimal-leading-zero);
}

.svc-steps__num::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px dashed rgba(30, 64, 175, 0.18);
    border-radius: 18px;
}

.svc-steps__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.svc-steps__desc {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Блок "Почему мы" с фоном */
.svc-why {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: clamp(2rem, 4vw, 3rem);
}

.svc-why::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 90% 10%, rgba(59, 130, 246, 0.35), transparent 60%);
    pointer-events: none;
}

.svc-why > * { position: relative; z-index: 1; }

.svc-why__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .svc-why__head { grid-template-columns: 1fr; }
}

.svc-why__title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.svc-why__sub {
    color: rgba(255, 255, 255, 0.8);
    max-width: 60ch;
    margin: 0;
    line-height: 1.6;
}

.svc-why__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.svc-why__list li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}

.svc-why__list-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #93c5fd;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.svc-why__list-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Телефон + кнопка внутри тёмного s-cta */
.s-cta__phone-wrap {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.s-cta__phone-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.s-cta__phone-link {
    display: inline-block;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.s-cta__phone-link:hover { color: #93c5fd; }

.s-cta__phone-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.s-cta__phone-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* Финальный CTA-блок с телефоном */
.svc-final-cta {
    background: #fff;
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--border, #e5e7eb);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

@media (max-width: 767.98px) {
    .svc-final-cta { grid-template-columns: 1fr; text-align: center; }
}

.svc-final-cta__title {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.svc-final-cta__text {
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

.svc-final-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
}

@media (max-width: 767.98px) {
    .svc-final-cta__actions { align-items: center; }
}

.svc-final-cta__phone {
    font-size: clamp(1.3rem, 2.8vw, 1.7rem);
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.svc-final-cta__phone:hover { color: var(--accent, #1e40af); }

.svc-final-cta__phone-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.1rem;
}

.svc-final-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    background: var(--accent, #1e40af);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.svc-final-cta__btn:hover {
    background: var(--accent-hover, #1d4ed8);
    color: #fff;
}

/* Двухколоночный блок с картинкой/визуалом справа */
.svc-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

@media (max-width: 991.98px) {
    .svc-split { grid-template-columns: 1fr; }
    .svc-split--reverse > :first-child { order: 2; }
}

.svc-split__text p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 1rem;
}

.svc-split__visual {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 5/4;
    background: #0f172a;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
}

.svc-split__visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.svc-split__visual-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.svc-split__visual-tag::before {
    content: "";
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

/* Палитра цветов покраски */
.svc-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.6rem;
}

.svc-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 0.6rem;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.svc-color:hover { transform: translateY(-2px); border-color: var(--accent, #1e40af); }

.svc-color__chip {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.1), 0 6px 14px rgba(15,23,42,0.12);
}

.svc-color__code {
    font-weight: 800;
    font-size: 0.85rem;
    color: #0f172a;
}

.svc-color__name {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
}

/* Контрастные точки преимуществ inline */
.svc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.svc-pills li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(30, 64, 175, 0.08);
    color: var(--accent, #1e40af);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.svc-pills svg { width: 14px; height: 14px; }
