/* Service detail — Figma EL-3404e8c4 */

.fg-services-page.is-services-figma .main {
    padding-top: 0;
}

.fg-svc-detail {
    background: #fff;
    font-family: 'Inter', sans-serif;
    color: #000;
}

/* .main уже на всю ширину — fg-section breakout (50vw) ломает позиционирование */
.fg-svc-detail .fg-section {
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}

.fg-svc-detail__container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 40px 80px 80px;
    box-sizing: border-box;
}

.fg-svc-detail__breadcrumbs {
    margin-bottom: 40px;
}

.fg-svc-detail__section {
    margin-bottom: 100px;
}

.fg-svc-detail__title {
    margin: 0 0 40px;
    font-weight: 500;
    font-size: 50px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.fg-svc-detail__calc,
.fg-svc-detail__faq,
.fg-svc-detail__contacts {
    margin-top: 100px;
}

/* Hero */
.fg-svc-hero {
    min-height: 520px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.fg-svc-hero__inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 80px;
    box-sizing: border-box;
}

.fg-svc-hero__content {
    max-width: 958px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

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

/* Equipment card */
.fg-svc-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    border-radius: 16px;
    background: #f8f8f8;
    box-sizing: border-box;
}

.fg-svc-card__media {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    height: 228px;
}

.fg-svc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fg-svc-card__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.fg-svc-card__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
}

.fg-svc-card__title a {
    color: inherit;
    text-decoration: none;
}

.fg-svc-card__specs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fg-svc-card__spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fg-svc-card__spec {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    line-height: 1.2;
}

.fg-svc-card__spec-label {
    color: rgba(0, 0, 0, 0.55);
}

.fg-svc-card__spec-value {
    font-weight: 600;
    text-align: right;
}

.fg-svc-card__sep {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
}

.fg-svc-card__price {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ff8441;
}

.fg-svc-card__actions > .fg-btn--md {
    min-height: 51px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-weight: 600;
}

/* Equipment detail specs */
.fg-pd-equip-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fg-pd-equip-specs__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    line-height: 1.2;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fg-pd-equip-specs__row span:last-child {
    font-weight: 600;
    text-align: right;
}

@media (max-width: 1599px) {
    .fg-svc-detail__container,
    .fg-svc-hero__inner { padding-left: 60px; padding-right: 60px; }
}

@media (max-width: 1199px) {
    .fg-svc-detail__container,
    .fg-svc-hero__inner { padding-left: 40px; padding-right: 40px; }
    .fg-svc-hero__title { font-size: 56px; }
    .fg-svc-detail__title { font-size: 40px; }
}

@media (max-width: 991px) {
    .fg-svc-detail__grid { grid-template-columns: 1fr; }
    .fg-svc-hero__title { font-size: 44px; }
}

@media (max-width: 767px) {
    .fg-svc-detail__container,
    .fg-svc-hero__inner { padding: 24px 16px 40px; }
    .fg-svc-hero { min-height: 420px; }
    .fg-svc-hero__title { font-size: 30px; }
    .fg-svc-hero__lead { font-size: 15px; }
    .fg-svc-detail__title { font-size: 26px; margin-bottom: 24px; }
    .fg-svc-detail__section,
    .fg-svc-detail__calc,
    .fg-svc-detail__faq,
    .fg-svc-detail__contacts { margin-top: 60px; margin-bottom: 60px; }
    .fg-svc-card { padding: 12px; gap: 20px; }
    .fg-svc-card__title { font-size: 20px; }
    .fg-svc-card__spec-row { grid-template-columns: 1fr; }
}

/* Desktop: hero-блоки услуг на весь экран (header поверх) */
@media (min-width: 992px) {
    .fg-svc-hero {
        --fg-hero-h: 100vh;
        min-height: 100vh !important;
        height: 100vh !important;
    }

    .fg-svc-hero .fg-svc-hero__inner {
        min-height: 100vh !important;
        height: 100vh !important;
    }
}
