/* Service page — Рытье котлованов (Figma 117:7013) */

.fg-svc-detail--kotlovanov {
    display: flex;
    flex-direction: column;
    gap: 140px;
    padding-bottom: 140px;
    box-sizing: border-box;
}

/* Hero — 1080px + glass cards справа */
.fg-svc-hero--kotlovanov {
    --fg-hero-h: 1080px;
    position: relative;
    display: block;
    width: 100%;
    min-height: var(--fg-hero-h);
    height: var(--fg-hero-h);
    overflow: visible;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: 1920px;
    min-height: var(--fg-hero-h);
    height: var(--fg-hero-h);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__content {
    position: relative;
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 366px 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    z-index: 1;
    box-sizing: border-box;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 893px;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__title {
    margin: 0;
    max-width: 893px;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 2px 4px 5px rgba(0, 0, 0, 0.15);
}

.fg-svc-hero--kotlovanov .fg-svc-hero__lead {
    max-width: 493px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__actions {
    display: flex;
    gap: 20px;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__cta {
    height: 64px;
    min-height: 64px;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    border-radius: 10px;
    background: #e65100;
    white-space: nowrap;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__cta:hover {
    background: #f05b0a;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 870px;
    max-width: calc(100% - 40px);
    margin: 698px 80px 0 0;
    z-index: 1;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__glass-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 0.2px solid #fff;
    border-radius: 20px;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.fg-svc-hero--kotlovanov .fg-svc-hero__glass-card:first-child {
    min-height: 156px;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__glass-card p {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
}

@supports not (backdrop-filter: blur(1px)) {
    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-card {
        background: rgba(0, 0, 0, 0.55);
    }
}

/* Комплекс услуг */
.fg-kot-complex {
    padding: 0 var(--gutter, 80px);
    box-sizing: border-box;
}

.fg-kot-complex__container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1760px;
    margin: 0 auto;
}

.fg-kot-complex__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1106px;
}

.fg-kot-complex__title {
    margin: 0;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    color: #000;
}

.fg-kot-complex__lead {
    margin: 0;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: rgba(0, 0, 0, 0.7);
}

.fg-kot-complex--center .fg-kot-complex__head {
    align-items: center;
    text-align: center;
    max-width: none;
}

.fg-kot-complex--center .fg-kot-complex__title {
    text-align: center;
}

.fg-kot-complex__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fg-kot-complex__card {
    min-height: 320px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 16px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.fg-kot-complex__card-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 445px;
}

.fg-kot-complex__card-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.fg-kot-complex__card-text {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
}

/* Собственный парк */
.fg-kot-equip {
    padding: 0 var(--gutter, 80px);
    box-sizing: border-box;
}

.fg-kot-equip__container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1760px;
    margin: 0 auto;
}

.fg-kot-equip__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1106px;
}

.fg-kot-equip__title {
    margin: 0;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    color: #000;
}

.fg-kot-equip__lead {
    margin: 0;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: rgba(0, 0, 0, 0.7);
}

.fg-kot-equip__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fg-kot-equip__card {
    min-height: 320px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 16px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.fg-kot-equip__card-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 520px;
}

.fg-kot-equip__card-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.fg-kot-equip__card-text {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
}

.fg-svc-detail--kotlovanov .fg-svc-price {
    padding-top: 0;
}

/* Преимущества */
.fg-kot-advantages {
    position: relative;
    width: 100%;
    min-height: 460px;
    padding: 70px var(--gutter, 80px);
    background-color: #2d2d2d;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    overflow: hidden;
}

.fg-kot-advantages__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fg-kot-advantages__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.fg-kot-advantages::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(45, 45, 45, 0.85);
    pointer-events: none;
}

.fg-kot-advantages__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1760px;
    margin: 0 auto;
}

.fg-kot-advantages__title {
    margin: 0;
    font-size: 50px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.fg-kot-advantages__title-accent {
    font-weight: 600;
    font-style: italic;
    color: #e65100;
}

.fg-kot-advantages__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.fg-kot-advantages__item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.fg-kot-advantages__icon {
    display: block;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.fg-kot-advantages__icon svg {
    display: block;
    width: 80px;
    height: 80px;
}

.fg-kot-advantages__icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.fg-kot-advantages__item:has(img) .fg-kot-advantages__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.fg-kot-advantages__text {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

/* Related services */
.fg-kot-related {
    padding: 0 var(--gutter, 80px);
    box-sizing: border-box;
}

.fg-kot-related__container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1760px;
    margin: 0 auto;
}

.fg-kot-related__title {
    margin: 0;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    color: #000;
}

.fg-kot-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fg-kot-related__card {
    min-height: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 16px;
    background-color: #333;
    background-size: cover;
    background-position: 82% center;
    background-repeat: no-repeat;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.fg-kot-related__card:hover {
    transform: translateY(-2px);
}

.fg-kot-related__card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    min-height: 100%;
}

.fg-kot-related__card-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.fg-kot-related__card-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: #e65100;
    border-radius: 10px;
}

.fg-svc-detail--kotlovanov .fg-svc-detail__faq,
.fg-svc-detail--kotlovanov .fg-svc-detail__contacts,
.fg-svc-detail--kotlovanov .fg-svc-detail__trust {
    margin-top: 0;
}

.fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile {
    display: none;
}

@media (max-width: 1599px) {
    .fg-kot-complex,
    .fg-kot-equip,
    .fg-kot-related,
    .fg-kot-advantages {
        padding-left: 60px;
        padding-right: 60px;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards {
        margin-right: 60px;
        width: min(870px, 46vw);
    }
}

@media (max-width: 1199px) {
    .fg-svc-hero--kotlovanov,
    .fg-svc-hero--kotlovanov .fg-svc-hero__inner {
        min-height: 720px;
        height: auto;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__inner {
        flex-direction: column;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__content {
        padding: 220px 40px 0;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__title {
        font-size: 56px;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards {
        width: auto;
        margin: 24px 40px 40px;
        align-self: stretch;
    }

    .fg-kot-complex__grid,
    .fg-kot-equip__grid,
    .fg-kot-related__grid {
        grid-template-columns: 1fr;
    }

    .fg-kot-advantages__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fg-kot-complex__title,
    .fg-kot-equip__title,
    .fg-kot-related__title,
    .fg-kot-advantages__title {
        font-size: 40px;
    }
}

@media (max-width: 991px) {
    /* Figma 117:15447 — mobile / tablet */
    .fg-svc-detail--kotlovanov {
        gap: 90px;
        padding-bottom: 90px;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--desktop {
        display: none;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile {
        display: flex;
    }

    .fg-kot-complex,
    .fg-kot-equip,
    .fg-kot-related,
    .fg-kot-advantages,
    .fg-svc-detail--kotlovanov .fg-svc-price,
    .fg-svc-detail--kotlovanov .fg-svc-detail__trust,
    .fg-svc-detail--kotlovanov .fg-svc-detail__faq {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fg-kot-complex__container,
    .fg-kot-equip__container,
    .fg-kot-related__container {
        gap: 30px;
        max-width: 328px;
        margin-left: auto;
        margin-right: auto;
    }

    .fg-kot-complex__head,
    .fg-kot-equip__head {
        gap: 20px;
    }

    .fg-kot-complex__title,
    .fg-kot-equip__title,
    .fg-kot-related__title {
        font-size: 26px;
        font-weight: 500;
        line-height: 1;
    }

    .fg-kot-complex__lead,
    .fg-kot-equip__lead {
        font-size: 15px;
        font-style: italic;
        font-weight: 400;
        line-height: 1;
    }

    .fg-kot-complex__grid,
    .fg-kot-equip__grid,
    .fg-kot-related__grid {
        gap: 20px;
    }

    .fg-kot-complex__card,
    .fg-kot-equip__card,
    .fg-kot-related__card {
        min-height: 320px;
        height: auto;
        padding: 20px;
        border-radius: 16px;
    }

    .fg-kot-complex__card,
    .fg-kot-equip__card,
    .fg-kot-related__card {
        background-position: 90% 55%;
    }

    .fg-kot-complex__card-body,
    .fg-kot-equip__card-body,
    .fg-kot-related__card-body {
        gap: 8px;
        max-width: none;
    }

    .fg-kot-complex__card-title,
    .fg-kot-equip__card-title,
    .fg-kot-related__card-title {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.2;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .fg-kot-complex__card-text,
    .fg-kot-equip__card-text {
        font-size: 15px;
        line-height: 1.2;
    }

    .fg-kot-related__card-body {
        gap: 30px;
    }

    .fg-kot-related__card-btn {
        padding: 14px 40px;
        font-size: 16px;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price {
        padding-top: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price__container {
        gap: 30px;
        max-width: 328px;
        margin-left: auto;
        margin-right: auto;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price__title {
        font-size: 26px;
        font-weight: 500;
        line-height: 1.1;
        letter-spacing: -0.02em;
        text-align: center;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price__table-wrap {
        display: none;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price__mobile-group {
        display: flex;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price__mobile-group-title {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price__mobile-name {
        font-size: 20px;
        line-height: 1.2;
        max-width: none;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price__mobile-row dt,
    .fg-svc-detail--kotlovanov .fg-svc-price__mobile-row dd {
        font-size: 16px;
        line-height: 1.2;
    }

    .fg-svc-detail--kotlovanov .fg-svc-price__mobile-btn.fg-btn {
        width: 100%;
        max-width: none;
        height: 51px;
        min-height: 51px;
        padding: 16px 40px;
        font-size: 16px;
        line-height: 19px;
    }

    .fg-kot-advantages {
        padding: 40px 16px;
        min-height: 0;
    }

    .fg-kot-advantages__container {
        gap: 30px;
        max-width: 328px;
        margin-left: auto;
        margin-right: auto;
    }

    .fg-kot-advantages__title,
    .fg-kot-advantages__title--plain {
        font-size: 26px;
        font-weight: 700;
        font-style: italic;
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: #e65100;
    }

    .fg-kot-advantages__title-accent,
    .fg-kot-advantages__title-rest {
        color: inherit;
        font: inherit;
    }

    .fg-kot-advantages__list {
        gap: 30px;
    }

    .fg-kot-advantages__item {
        gap: 20px;
    }

    .fg-kot-advantages__text {
        font-size: 20px;
        line-height: 1;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__container {
        gap: 30px;
        max-width: 328px;
        margin-left: auto;
        margin-right: auto;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__title {
        font-size: 26px;
        line-height: 1.1;
        letter-spacing: -0.02em;
        text-align: center;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__subtitle {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__box {
        padding: 20px;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__slide .fg-svc-trust__card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        padding: 0;
        gap: 16px;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__media {
        width: 100%;
        height: 300px;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__bg {
        object-fit: cover;
        object-position: center center;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__logo {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
        object-fit: contain;
        object-position: left bottom;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__caption {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
    }

    .fg-svc-detail--kotlovanov .fg-svc-faq__container {
        gap: 30px;
        max-width: 328px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }

    .fg-svc-detail--kotlovanov .fg-svc-faq__title {
        height: auto;
        font-size: 26px;
        line-height: 1.2;
        text-align: center;
    }

    .fg-svc-detail--kotlovanov .fg-svc-faq__inner {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .fg-svc-detail--kotlovanov .fg-svc-faq__item.is-open .fg-svc-faq__inner {
        gap: 16px;
    }

    .fg-svc-detail--kotlovanov .fg-svc-faq__trigger {
        height: auto;
        min-height: 20px;
        gap: 18px;
        align-items: flex-start;
    }

    .fg-svc-detail--kotlovanov .fg-svc-faq__q {
        font-size: 16px;
        line-height: 1;
    }

    .fg-svc-detail--kotlovanov .fg-svc-faq__a {
        margin-left: 28px;
        font-size: 15px;
        line-height: 1.2;
    }
}

@media (min-width: 480px) and (max-width: 991px) {
    /* 480–991: центрированный hero, типографика растёт с шириной экрана */
    .fg-svc-hero--kotlovanov {
        --fg-hero-h: auto;
        min-height: 0;
        height: auto;
        max-height: none;
        overflow: hidden;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__inner {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        min-height: 0;
        height: auto;
        max-height: none;
        gap: 16px;
        padding: 0;
        box-sizing: border-box;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__content {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: calc(var(--header-h, 88px) + clamp(16px, 3.5vw, 28px)) clamp(20px, 4vw, 32px) 0;
        gap: clamp(16px, 3vw, 24px);
        box-sizing: border-box;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__head {
        align-items: center;
        text-align: center;
        gap: 16px;
        max-width: min(620px, 92vw);
        width: 100%;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__title {
        font-size: clamp(30px, 5.8vw, 40px);
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
        text-align: center;
        max-width: 100%;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__lead {
        max-width: min(560px, 90vw);
        font-size: clamp(16px, 2.4vw, 18px);
        font-weight: 500;
        line-height: 1.25;
        text-align: center;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__actions {
        justify-content: center;
        width: 100%;
        max-width: min(360px, 88vw);
        margin-top: 0;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__cta {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        min-height: 56px;
        padding: 18px 40px;
        font-size: clamp(16px, 2.2vw, 18px);
        white-space: normal;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile {
        flex-shrink: 0;
        align-self: stretch;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile .fg-svc-hero__glass-card {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        min-height: 0;
        padding: 16px 20px;
        border-radius: 16px 16px 0 0;
        box-sizing: border-box;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile .fg-svc-hero__glass-card p {
        font-size: clamp(14px, 2vw, 16px);
        font-weight: 500;
        line-height: 1.35;
        text-align: center;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile .fg-svc-hero__glass-card p + p {
        margin-top: 10px;
    }

    .fg-svc-detail--kotlovanov {
        gap: 70px;
        padding-bottom: 70px;
    }

    /* Tablet: не сужать контент до 328px как на 360 */
    .fg-kot-complex__container,
    .fg-kot-equip__container,
    .fg-kot-related__container,
    .fg-svc-detail--kotlovanov .fg-svc-price__container,
    .fg-kot-advantages__container,
    .fg-svc-detail--kotlovanov .fg-svc-trust__container,
    .fg-svc-detail--kotlovanov .fg-svc-faq__container {
        max-width: none;
        width: 100%;
    }

    .fg-kot-complex__grid,
    .fg-kot-equip__grid,
    .fg-kot-related__grid {
        grid-template-columns: 1fr;
    }

    .fg-kot-complex__card,
    .fg-kot-equip__card,
    .fg-kot-related__card {
        height: auto;
        background-position: 92% 58%;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__slide {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        gap: 20px;
        flex-direction: column;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__track {
        width: 100%;
        min-width: 100%;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__slide .fg-svc-trust__card {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        padding: 0;
        gap: 16px;
    }
}

/* 640–991: две колонки только когда карточкам хватает ширины */
@media (min-width: 640px) and (max-width: 991px) {
    .fg-kot-complex__grid,
    .fg-kot-equip__grid,
    .fg-kot-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__slide {
        flex-direction: row;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__slide .fg-svc-trust__card {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 479px) {
    /* Figma 360 — фиксированный кадр 806px, контент слева */
    .fg-svc-hero--kotlovanov {
        --fg-hero-h: 806px;
        min-height: 806px;
        height: 806px;
        max-height: 806px;
        overflow: hidden;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__inner {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        min-height: 806px;
        height: 806px;
        max-height: 806px;
        padding: 0;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__content {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: calc(var(--header-h, 72px) + 116px) 16px 0;
        gap: 40px;
        align-items: flex-start;
        box-sizing: border-box;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__head {
        gap: 20px;
        max-width: 328px;
        width: 100%;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__title {
        font-size: 30px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.6px;
        max-width: 100%;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__lead {
        max-width: 328px;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__actions {
        width: 100%;
        max-width: 328px;
        margin-top: 0;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__cta {
        width: 100%;
        min-width: 0;
        height: 60px;
        min-height: 60px;
        padding: 20px 40px;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        white-space: normal;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile {
        flex-shrink: 0;
        align-self: stretch;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile .fg-svc-hero__glass-card {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        min-height: 0;
        padding: 16px 20px;
        border-radius: 16px 16px 0 0;
        box-sizing: border-box;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile .fg-svc-hero__glass-card p {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.21;
    }

    .fg-svc-hero--kotlovanov .fg-svc-hero__glass-cards--mobile .fg-svc-hero__glass-card p + p {
        margin-top: 12px;
    }

    .fg-kot-complex__container,
    .fg-kot-equip__container,
    .fg-kot-related__container,
    .fg-svc-detail--kotlovanov .fg-svc-price__container,
    .fg-kot-advantages__container,
    .fg-svc-detail--kotlovanov .fg-svc-trust__container,
    .fg-svc-detail--kotlovanov .fg-svc-faq__container {
        max-width: none;
        width: 100%;
    }

    .fg-svc-detail--kotlovanov .fg-svc-detail__contacts {
        padding-left: 0;
        padding-right: 0;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__slide {
        display: contents;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__track {
        gap: 20px;
    }

    .fg-svc-detail--kotlovanov .fg-svc-trust__card {
        flex: 0 0 100cqw;
        width: 100cqw;
        max-width: 100cqw;
        min-width: 0;
        padding: 0;
        gap: 16px;
        box-sizing: border-box;
        scroll-snap-align: start;
    }
}

/* Общие правки fg-kot-complex / fg-kot-equip на страницах услуг */
@media (max-width: 991px) {
    [class*="fg-svc-detail--"] .fg-kot-complex__card,
    [class*="fg-svc-detail--"] .fg-kot-equip__card {
        height: auto !important;
        overflow: visible;
        justify-content: flex-start !important;
        align-items: stretch;
    }

    [class*="fg-svc-detail--"] .fg-kot-complex__card-body,
    [class*="fg-svc-detail--"] .fg-kot-equip__card-body {
        justify-content: flex-start;
        width: 100%;
        margin-top: 0;
    }

    [class*="fg-svc-detail--"] .fg-kot-complex__card-title,
    [class*="fg-svc-detail--"] .fg-kot-equip__card-title {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }

    [class*="fg-svc-detail--"] .fg-kot-complex__grid,
    [class*="fg-svc-detail--"] .fg-kot-equip__grid {
        align-items: stretch;
    }
}

@media (min-width: 480px) and (max-width: 639px) {
    [class*="fg-svc-detail--"] .fg-kot-complex__grid,
    [class*="fg-svc-detail--"] .fg-kot-equip__grid,
    [class*="fg-svc-detail--"] .fg-kot-related__grid {
        grid-template-columns: 1fr !important;
    }
}

/* Related-карточки: заголовок и кнопка внизу, слева */
@media (max-width: 991px) {
    [class*="fg-svc-detail--"] .fg-kot-related__card {
        justify-content: flex-end !important;
        align-items: stretch;
    }

    [class*="fg-svc-detail--"] .fg-kot-related__card-body {
        justify-content: flex-start;
        gap: 30px;
        min-height: auto;
        width: 100%;
        align-items: flex-start;
    }

    [class*="fg-svc-detail--"] .fg-kot-related__card-btn {
        align-self: flex-start;
    }
}
