/*
 * STO (auto-service) Home Page Styles
 * All rules scoped to .sto-page to avoid affecting other pages.
 * Palette modelled on sto-karchmit.by — dark navy bg, blue accent, white text.
 */

/* ── CSS Custom Properties ── */
.sto-page {
    --sto-bg:        #0a1430;
    --sto-bg-2:      #0d1b3e;
    --sto-card:      #10224d;
    --sto-card-2:    #14285a;
    --sto-line:      rgba(255, 255, 255, 0.08);
    --sto-accent:    #2a8fe0;
    --sto-accent-2:  #1b6ec2;
    --sto-white:     #ffffff;
    --sto-muted:     #aebbd6;
    --sto-shadow:    0 10px 30px rgba(0, 0, 0, 0.35);
    --sto-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    --sto-radius:    20px;
    --sto-radius-sm: 14px;

    background: var(--sto-bg);
    color: var(--sto-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* ── Elementor container resets for sto-page ── */
.sto-page .elementor-section,
.sto-page .elementor-container,
.sto-page .elementor-column,
.sto-page .elementor-widget-wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
.sto-page .elementor-widget-container { padding: 0 !important; }
.sto-page .elementor-widget { margin-bottom: 0 !important; }

/* ── Shared layout ── */
.sto-page .sto-section-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.sto-page .sto-section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 44px;
    color: var(--sto-white);
}
.sto-page .sto-section-title--left { text-align: left; margin-bottom: 24px; }
.sto-page .sto-section-title span { color: var(--sto-accent); }

/* ── Buttons ── */
.sto-page .sto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.sto-page .sto-btn--primary {
    background: linear-gradient(135deg, var(--sto-accent) 0%, var(--sto-accent-2) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(42, 143, 224, 0.35);
}
.sto-page .sto-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(42, 143, 224, 0.5); }
.sto-page .sto-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.sto-page .sto-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* ── Scroll fade-in animation ── */
.sto-page [data-anim] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.sto-page [data-anim].is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .sto-page [data-anim] { opacity: 1; transform: none; transition: none; }
}
/* Elementor editor: the fade-in JS doesn't run in the canvas, so reveal every
   animated block immediately — otherwise widgets would be invisible while editing. */
.elementor-editor-active [data-anim],
.elementor-editor-preview [data-anim] {
    opacity: 1 !important;
    transform: none !important;
}

/* ═══════════════════════════════════════════ HERO ═══════════════════════════════════════════ */
.sto-page .sto-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.sto-page .sto-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--sto-bg-2);
    background-image:
        radial-gradient(ellipse 90% 60% at 70% 20%, rgba(42, 143, 224, 0.25) 0%, transparent 60%),
        linear-gradient(135deg, #0a1430 0%, #112555 60%, #0a1430 100%);
}
.sto-page .sto-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 20, 48, 0.92) 0%, rgba(10, 20, 48, 0.6) 55%, rgba(10, 20, 48, 0.35) 100%);
}
.sto-page .sto-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 130px 24px 80px;
    box-sizing: border-box;
}
.sto-page .sto-hero-title {
    font-size: clamp(34px, 5.5vw, 64px);
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 22px;
    max-width: 760px;
}
.sto-page .sto-hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--sto-muted);
    max-width: 600px;
    margin: 0 0 36px;
    line-height: 1.6;
}
.sto-page .sto-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ═══════════════════════════════════════════ SERVICES ═══════════════════════════════════════════ */
.sto-page .sto-services {
    position: relative;
    padding: 90px 0 100px;
    overflow: hidden;
}
.sto-page .sto-services-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--sto-bg);
    background-image: linear-gradient(180deg, #0c1a3c 0%, #0a1430 100%);
    opacity: 0.9;
}
.sto-page .sto-services-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 16, 38, 0.78);
}
.sto-page .sto-services .sto-section-inner { position: relative; z-index: 2; }
.sto-page .sto-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.sto-page .sto-service-card {
    background: var(--sto-card);
    border: 1px solid var(--sto-line);
    border-radius: var(--sto-radius);
    padding: 22px;
    box-shadow: var(--sto-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.sto-page .sto-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sto-shadow-lg);
    border-color: rgba(42, 143, 224, 0.6);
}
.sto-page .sto-service-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--sto-radius-sm);
    background-size: cover;
    background-position: center;
    background-color: #0a1736;
    background-image: linear-gradient(135deg, #173063 0%, #0d1d44 100%);
    margin-bottom: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sto-page .sto-service-card__img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.sto-page .sto-service-card__img .sto-ph-icon { width: 56px; height: 56px; color: rgba(174, 187, 214, 0.4); }
.sto-page .sto-service-card__title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sto-white);
    padding: 4px 6px 6px;
}

/* ═══════════════════════════════════════════ ABOUT ═══════════════════════════════════════════ */
.sto-page .sto-about { padding: 90px 0; background: var(--sto-bg-2); }
.sto-page .sto-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.sto-page .sto-about-media img,
.sto-page .sto-about-media .sto-about-ph {
    width: 100%;
    border-radius: var(--sto-radius);
    box-shadow: var(--sto-shadow-lg);
    display: block;
}
.sto-page .sto-about-media .sto-about-ph {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #173063 0%, #0d1d44 100%);
}
.sto-page .sto-about-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--sto-muted);
    margin-bottom: 30px;
}
.sto-page .sto-about-text p { margin: 0 0 14px; }
.sto-page .sto-about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.sto-page .sto-feature { display: flex; gap: 14px; align-items: flex-start; }
.sto-page .sto-feature__icon {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(42, 143, 224, 0.15);
    color: var(--sto-accent);
}
.sto-page .sto-feature__icon svg { width: 24px; height: 24px; }
.sto-page .sto-feature__title { font-weight: 700; font-size: 16px; margin: 2px 0 4px; }
.sto-page .sto-feature__desc { font-size: 14px; color: var(--sto-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════ PORTFOLIO ═══════════════════════════════════════════ */
.sto-page .sto-portfolio { padding: 90px 0; }
/* No photo: ease top & bottom into the neighbouring section colour so the block
   edges blend instead of showing a flat seam. */
.sto-page .sto-portfolio:not(.has-bg) {
    background: linear-gradient(180deg,
        var(--sto-bg-2) 0%, var(--sto-bg) 160px,
        var(--sto-bg) calc(100% - 160px), var(--sto-bg-2) 100%);
}
/* Optional background photo with adjustable dark overlay (set in the widget). */
.sto-page .sto-portfolio.has-bg {
    position: relative;
    background-size: cover;
    background-position: center;
}
.sto-page .sto-portfolio.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Top & bottom fades to the neighbouring section colour so the photo block's
       edges melt into the sections above/below; flat dark overlay underneath
       keeps the cards and text readable. */
    background:
        linear-gradient(180deg, var(--sto-bg-2) 0%, transparent 160px),
        linear-gradient(0deg,   var(--sto-bg-2) 0%, transparent 160px),
        rgba(10, 20, 48, var(--sto-portfolio-overlay, 0.82));
    z-index: 0;
}
.sto-page .sto-portfolio.has-bg .sto-section-inner { position: relative; z-index: 1; }
.sto-page .sto-portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.sto-page .sto-filter {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--sto-line);
    background: var(--sto-card);
    color: var(--sto-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.sto-page .sto-filter:hover { color: #fff; border-color: rgba(42, 143, 224, 0.5); }
.sto-page .sto-filter.is-active {
    background: linear-gradient(135deg, var(--sto-accent) 0%, var(--sto-accent-2) 100%);
    color: #fff;
    border-color: transparent;
}
.sto-page .sto-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.sto-page .sto-work {
    position: relative;
    margin: 0;
    border-radius: var(--sto-radius);
    overflow: hidden;
    background: var(--sto-card);
    border: 1px solid var(--sto-line);
    box-shadow: var(--sto-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.sto-page .sto-work.is-hidden { display: none; }
.sto-page .sto-work:hover { transform: translateY(-6px); box-shadow: var(--sto-shadow-lg); }
/* Image slider inside each work card */
.sto-page .sto-work__slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #173063 0%, #0d1d44 100%);
}
.sto-page .sto-work__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.sto-page .sto-work__slide { flex: 0 0 100%; min-width: 100%; }
.sto-page .sto-work__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.sto-page .sto-work__img--ph { background: linear-gradient(135deg, #173063 0%, #0d1d44 100%); }
/* Prev/next arrows */
.sto-page .sto-work__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 20, 48, 0.55);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 3;
    backdrop-filter: blur(4px);
}
.sto-page .sto-work__nav svg { width: 20px; height: 20px; }
.sto-page .sto-work__nav--prev { left: 10px; }
.sto-page .sto-work__nav--next { right: 10px; }
.sto-page .sto-work__nav:hover { background: var(--sto-accent); }
.sto-page .sto-work:hover .sto-work__nav { opacity: 1; }
/* Dots */
.sto-page .sto-work__dots {
    position: absolute;
    left: 0; right: 0; bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 3;
}
.sto-page .sto-work__dot {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.sto-page .sto-work__dot.is-active { background: #fff; transform: scale(1.25); }
@media (hover: none) {
    .sto-page .sto-work__nav { opacity: 1; }
}
.sto-page .sto-work__cap {
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sto-white);
}
.sto-page .sto-work__cap span { display: block; font-size: 13px; color: var(--sto-accent); font-weight: 600; margin-top: 2px; }

/* ═══════════════════════════════════════════ WHY US (tabs) ═══════════════════════════════════════════ */
.sto-page .sto-why { padding: 90px 0; background: var(--sto-bg-2); }
.sto-page .sto-why-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--sto-line);
    padding-bottom: 2px;
}
.sto-page .sto-why-tab {
    position: relative;
    padding: 12px 22px;
    border: 0;
    background: transparent;
    color: var(--sto-muted);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}
.sto-page .sto-why-tab::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: -2px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background 0.18s ease;
}
.sto-page .sto-why-tab:hover { color: #fff; }
.sto-page .sto-why-tab.is-active {
    color: #fff;
    background: rgba(42, 143, 224, 0.10);
}
.sto-page .sto-why-tab.is-active::after {
    background: linear-gradient(135deg, var(--sto-accent) 0%, var(--sto-accent-2) 100%);
}
/* Panels: all visible by default (Elementor editor / no-JS); JS shows one at a time. */
.sto-page .sto-why.is-js .sto-why-panel { display: none; }
.sto-page .sto-why.is-js .sto-why-panel.is-active { display: block; animation: sto-tab-in 0.35s ease; }
.sto-page .sto-why-panel:not(:last-child) { margin-bottom: 28px; }
.sto-page .sto-why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px 28px;
}
.sto-page .sto-why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.sto-page .sto-why-check {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--sto-accent) 0%, var(--sto-accent-2) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(42, 143, 224, 0.35);
    margin-top: 1px;
}
.sto-page .sto-why-check svg { width: 17px; height: 17px; }
.sto-page .sto-why-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--sto-white);
    padding-top: 3px;
}

/* ═══════════════════════════════════════════ REVIEWS ═══════════════════════════════════════════ */
.sto-page .sto-reviews { padding: 90px 0; background: var(--sto-bg); }
.sto-page .sto-reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}
.sto-page .sto-reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.sto-page .sto-reviews-rating .sto-stars { color: #ffb400; letter-spacing: 2px; font-size: 20px; }
.sto-page .sto-reviews-sub {
    text-align: center;
    color: var(--sto-muted);
    margin: 0 auto 40px;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.6;
}
.sto-page .sto-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}
.sto-page .sto-review-card {
    background: var(--sto-card);
    border: 1px solid var(--sto-line);
    border-radius: var(--sto-radius);
    padding: 26px;
    box-shadow: var(--sto-shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sto-page .sto-review-card__top { display: flex; align-items: center; gap: 14px; }
.sto-page .sto-review-card__avatar {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--sto-accent) 0%, var(--sto-accent-2) 100%);
    color: #fff; font-weight: 800; font-size: 18px;
    text-transform: uppercase;
}
.sto-page .sto-review-card__meta { display: flex; flex-direction: column; gap: 2px; }
.sto-page .sto-review-card__name { font-weight: 700; color: #fff; font-size: 16px; }
.sto-page .sto-review-card__date { font-size: 13px; color: var(--sto-muted); }
.sto-page .sto-review-card__stars { color: #ffb400; font-size: 16px; letter-spacing: 2px; }
.sto-page .sto-review-card__text { font-size: 15px; line-height: 1.65; color: var(--sto-muted); margin: 0; }
.sto-page .sto-reviews-more { text-align: center; margin-top: 40px; }
.sto-page .sto-reviews-yandex-embed { margin-top: 24px; border-radius: var(--sto-radius); overflow: hidden; }
.sto-page .sto-reviews-yandex-embed iframe { width: 100%; border: 0; display: block; }

/* ═══════════════════════════════════════════ BLOG (list) ═══════════════════════════════════════════ */
.sto-page .sto-blog-head {
    position: relative;
    /* Clear the fixed header (height published as --sto-header-h by sto.js). */
    padding: calc(var(--sto-header-h, 76px) + 44px) 0 56px;
    text-align: center;
    background:
        radial-gradient(ellipse 120% 78% at 50% 116%, rgba(74, 160, 230, 0.30) 0%, transparent 60%),
        linear-gradient(180deg, var(--sto-bg) 0%, #143163 34%, #173a73 100%);
}
.sto-page .sto-blog-head__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.sto-page .sto-blog-head__sub {
    max-width: 680px;
    margin: 0 auto;
    color: #d7e3fb;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.6;
}
.sto-page .sto-blog {
    /* Continue the head blue and fade into the dark page background. */
    background: linear-gradient(180deg, #173a73 0%, #102446 220px, var(--sto-bg) 460px);
    padding: 64px 0 90px;
}
.sto-page .sto-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.sto-page .sto-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--sto-card);
    border: 1px solid var(--sto-line);
    border-radius: var(--sto-radius);
    overflow: hidden;
    box-shadow: var(--sto-shadow);
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.sto-page .sto-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sto-shadow-lg);
    border-color: rgba(42, 143, 224, 0.55);
}
.sto-page .sto-blog-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #0d1d44;
}
.sto-page .sto-blog-card__img--ph {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #173063 0%, #0d1d44 100%);
    color: rgba(174, 187, 214, 0.4);
}
.sto-page .sto-blog-card__img--ph svg { width: 64px; height: 64px; }
.sto-page .sto-blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
    flex: 1;
}
.sto-page .sto-blog-card__cat {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sto-accent);
}
.sto-page .sto-blog-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0;
}
.sto-page .sto-blog-card__excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--sto-muted);
    margin: 0;
    flex: 1;
}
.sto-page .sto-blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--sto-line);
}
.sto-page .sto-blog-card__date { font-size: 13px; color: var(--sto-muted); }
.sto-page .sto-blog-card__more { font-size: 14px; font-weight: 700; color: var(--sto-accent); white-space: nowrap; }
.sto-page .sto-blog-card:hover .sto-blog-card__more { color: #fff; }
.sto-page .sto-blog-empty { text-align: center; color: var(--sto-muted); font-size: 16px; padding: 40px 0; }

/* ═══════════════════════════════════════════ CONTACTS / MAP ═══════════════════════════════════════════ */
.sto-page .sto-contacts { padding: 90px 0 100px; background: var(--sto-bg-2); }

/* Phones grid — labelled phone groups (like the reference site) */
.sto-page .sto-phones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 48px;
}
.sto-page .sto-phone-group {
    background: var(--sto-card);
    border: 1px solid var(--sto-line);
    border-radius: var(--sto-radius-sm);
    padding: 18px 20px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.sto-page .sto-phone-group:hover { border-color: rgba(42, 143, 224, 0.5); transform: translateY(-3px); }
.sto-page .sto-phone-group__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sto-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}
.sto-page .sto-phone-group__nums { display: flex; flex-direction: column; gap: 6px; }
.sto-page .sto-phone-num {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.18s ease;
}
.sto-page .sto-phone-num svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--sto-accent); }
.sto-page .sto-phone-num:hover { color: var(--sto-accent); }

/* Bottom: company / requisites + map */
.sto-page .sto-contacts-bottom {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.sto-page .sto-company-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.3;
}
.sto-page .sto-requisites {
    margin-top: 22px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--sto-muted);
    border-top: 1px solid var(--sto-line);
    padding-top: 18px;
}
.sto-page .sto-requisites p { margin: 0 0 10px; }
.sto-page .sto-requisites p:last-child { margin-bottom: 0; }

.sto-page .sto-contacts-list { list-style: none; margin: 0; padding: 0; }
.sto-page .sto-contacts-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--sto-line);
}
.sto-page .sto-contacts-list .sto-ci-icon {
    flex: 0 0 auto; width: 26px; height: 26px; color: var(--sto-accent); margin-top: 2px;
}
.sto-page .sto-contacts-list .sto-ci-label { font-size: 13px; color: var(--sto-muted); margin-bottom: 2px; }
.sto-page .sto-contacts-list .sto-ci-value { font-size: 17px; font-weight: 600; color: #fff; }
.sto-page .sto-contacts-list a.sto-ci-value { text-decoration: none; }
.sto-page .sto-contacts-list a.sto-ci-value:hover { color: var(--sto-accent); }
.sto-page .sto-contacts-map {
    border-radius: var(--sto-radius);
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--sto-line);
    box-shadow: var(--sto-shadow);
    background: var(--sto-card);
}
.sto-page .sto-contacts-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.sto-page .sto-map-ph {
    width: 100%; min-height: 420px;
    display: flex; align-items: center; justify-content: center;
    color: var(--sto-muted); font-size: 15px; text-align: center; padding: 24px;
    background: linear-gradient(135deg, #173063 0%, #0d1d44 100%);
}

/* ═══════════════════════════════════════════ SERVICES PAGE (uslugi) ═══════════════════════════════════════════ */
/* Page header + category nav */
.sto-page .sto-svc-head {
    position: relative;
    /* Clear the fixed header (its height is published as --sto-header-h by sto.js)
       plus breathing room, so the title never sits under the nav. */
    padding: calc(var(--sto-header-h, 76px) + 44px) 0 0;
    overflow: hidden;
    /* Start at the page/header dark tone and ease down into the blue so there is
       no hard line under the fixed menu; soft glow lifted from the lower centre. */
    background:
        radial-gradient(ellipse 120% 78% at 50% 116%, rgba(74, 160, 230, 0.30) 0%, transparent 60%),
        linear-gradient(180deg, var(--sto-bg) 0%, #143163 34%, #173a73 100%);
    background-size: cover;
    background-position: center;
}
.sto-page .sto-svc-head--photo { background-color: #173a73; }
.sto-page .sto-svc-head__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 48, 0.55) 0%, rgba(10, 20, 48, 0.8) 100%);
    pointer-events: none;
}
.sto-page .sto-svc-head:not(.sto-svc-head--photo) .sto-svc-head__overlay { display: none; }
.sto-page .sto-svc-head .sto-section-inner { position: relative; z-index: 2; }
.sto-page .sto-svc-head__title {
    text-align: center;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin: 0 0 28px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.sto-page .sto-svc-nav {
    position: sticky;
    top: 64px;
    z-index: 800;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px 0 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.admin-bar .sto-page .sto-svc-nav { top: 96px; }
.sto-page .sto-svc-nav__link {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.15);
    color: #eaf2ff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
}
.sto-page .sto-svc-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.26); border-color: rgba(255, 255, 255, 0.5); }
.sto-page .sto-svc-nav__link.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #4aa8f0 0%, #2a8fe0 100%);
    box-shadow: 0 6px 16px rgba(42, 143, 224, 0.45);
}

/* Content block — dark, swappable single panel.
   Top continues the head/nav blue and fades into the dark so the jump from the
   sticky category nav to the content is gradual, not abrupt. */
.sto-page .sto-svc-content {
    /* Long, evenly-stepped fade from the head/nav blue down into the dark, so the
       darkening is gradual across the whole upper area instead of dropping off in
       the first ~130px right under the pills. */
    background: linear-gradient(180deg,
        #173a73 0%,
        #143259 130px,
        #102446 270px,
        #0b1832 420px,
        #080d1c 600px);
    padding: 56px 0 90px;
}
.sto-page .sto-svc-panel { scroll-margin-top: 130px; }
.sto-page .sto-svc-panel__title {
    text-align: center;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 40px;
}

/* Legacy category block (old widget) */
.sto-page .sto-svc { scroll-margin-top: 130px; padding-bottom: 20px; }

/* Tab mode (JS-enabled): show only the active panel.
   NB: .sto-page and .sto-tabs-ready are the SAME element (body),
   so they must be combined on one selector — not nested. */
.sto-tabs-ready .sto-svc-panel { display: none; }
.sto-tabs-ready .sto-svc-panel.is-active-tab { display: block; animation: sto-tab-in 0.35s ease; }
@keyframes sto-tab-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sto-page .sto-svc-banner {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--sto-bg-2);
    background-image: linear-gradient(135deg, #0c1a3c 0%, #112555 100%);
    margin-bottom: 40px;
}
.sto-page .sto-svc-banner__overlay { position: absolute; inset: 0; background: rgba(8, 16, 38, 0.6); }
.sto-page .sto-svc-banner__title {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    color: #fff;
    padding: 0 20px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* List style (Слесарные работы) */
.sto-page .sto-svc-list { list-style: none; margin: 0 auto 50px; padding: 0; max-width: 980px; }
.sto-page .sto-svc-list__item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--sto-line);
}
.sto-page .sto-svc-list__icon {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(42, 143, 224, 0.14);
    color: var(--sto-accent);
}
.sto-page .sto-svc-list__icon svg { width: 26px; height: 26px; }
.sto-page .sto-svc-list__text { padding-top: 4px; }
.sto-page .sto-svc-list__title { display: block; font-size: 17px; font-weight: 700; color: #fff; line-height: 1.4; }
.sto-page .sto-svc-list__desc { display: block; font-size: 14px; color: var(--sto-muted); margin-top: 4px; line-height: 1.55; }

/* Cards style — compact grid, title + description, no photo.
   Desktop 4 cols · tablet 3 · phone 1 (see responsive block). */
.sto-page .sto-svc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 50px;
}
.sto-page .sto-svc-card {
    display: flex;
    flex-direction: column;
    background: var(--sto-card);
    border: 1px solid var(--sto-line);
    border-radius: var(--sto-radius);
    padding: 22px 22px 24px;
    box-shadow: var(--sto-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sto-page .sto-svc-card:hover { transform: translateY(-4px); box-shadow: var(--sto-shadow-lg); border-color: rgba(42, 143, 224, 0.5); }
.sto-page .sto-svc-card__img { display: none; }
.sto-page .sto-svc-card__body { padding: 0; }
.sto-page .sto-svc-card__title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 10px; line-height: 1.35; }
.sto-page .sto-svc-card__desc { font-size: 14px; line-height: 1.6; color: var(--sto-muted); margin: 0; }

/* ═══════════════════════════════════════════ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sto-page .sto-services-grid,
    .sto-page .sto-portfolio-grid,
    .sto-page .sto-phones-grid { grid-template-columns: repeat(2, 1fr); }
    .sto-page .sto-svc-cards { grid-template-columns: repeat(3, 1fr); }
    .sto-page .sto-about-grid,
    .sto-page .sto-contacts-bottom { grid-template-columns: 1fr; gap: 32px; }
    .sto-page .sto-section-title--left { text-align: center; }
}
@media (max-width: 760px) {
    .sto-page .sto-svc-nav { top: 58px; }
    .admin-bar .sto-page .sto-svc-nav { top: 58px; }
}
@media (max-width: 640px) {
    .sto-page .sto-services-grid,
    .sto-page .sto-portfolio-grid,
    .sto-page .sto-svc-cards,
    .sto-page .sto-phones-grid { grid-template-columns: 1fr; }
    .sto-page .sto-about-features { grid-template-columns: 1fr; }
    .sto-page .sto-hero { min-height: 70vh; }
    .sto-page .sto-hero-inner { padding: 110px 20px 60px; }
    .sto-page .sto-hero-actions { flex-direction: column; }
    .sto-page .sto-hero-actions .sto-btn { width: 100%; }
    .sto-page .sto-services,
    .sto-page .sto-about,
    .sto-page .sto-portfolio,
    .sto-page .sto-contacts { padding: 60px 0; }
}
