/* Страницы услуг (snos-*.php) */

.sp {
    padding-top: 77px;
    color: #2e3338;
    background-color: #fff;
}

.sp-container {
    max-width: 1264px;
    padding: 0 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

.sp-section {
    padding: 60px 0;
}

.sp-text {
    font-size: 14px;
    line-height: 1.3;
}

.sp-text b {
    font-weight: 700;
}

.sp-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Метка над заголовком */
.sp-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 12px;
    border: 1px solid #c9a11e;
    border-radius: 50px;
    color: #c9a11e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.sp-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.sp-head:last-child {
    margin-bottom: 0;
}

.sp-head--center {
    align-items: center;
    text-align: center;
}

.sp-head--center .sp-tag {
    align-self: center;
}

.sp-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.sp-lead {
    font-size: 16px;
    line-height: 1.3;
}

.sp-lead--narrow {
    max-width: 720px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    background-color: #ffcb18;
    color: #2e3338;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s;
}

.sp-btn:hover {
    background-color: #f0bc00;
}

.sp-btn--full {
    width: 100%;
}

.sp-card {
    padding: 24px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .15);
    box-sizing: border-box;
}

.sp-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

/* Первый экран */
.sp-hero {
    padding: 60px 0;
}

.sp-hero__inner {
    display: flex;
    align-items: stretch;
    gap: 50px;
}

.sp-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.sp-hero__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-hero__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.05;
}

.sp-hero__img {
    flex-shrink: 0;
    width: 596px;
    min-height: 503px;
}

.sp-hero__img img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
}

/* Нумерованные этапы */
.sp-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-steps__caption {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.sp-step {
    display: flex;
    align-items: center;
    gap: 32px;
}

.sp-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    background-color: #fff2ea;
    color: #c9a11e;
    font-size: 16px;
    font-weight: 700;
}

.sp-step__body,
.sp-note__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Карточки с иконкой-восклицанием */
.sp-notes {
    display: flex;
    gap: 24px;
    margin-top: 50px;
}

.sp-note {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sp-note--wide {
    margin-top: 50px;
}

.sp-note__icon {
    display: block;
    flex-shrink: 0;
}

/* Сетка карточек по 3 в ряд */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sp-factor,
.sp-tip {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-factor__num {
    margin-bottom: 8px;
    color: #c9a11e;
    font-size: 32px;
    font-weight: 500;
}

.sp-tip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 24px;
    background-color: #f6f6f6;
}

.sp-tip__icon img {
    display: block;
}

/* Сетка по 4 в ряд и 3+2 */
.sp-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.sp-grid--3-2 {
    grid-template-columns: repeat(6, 1fr);
}

.sp-grid--3-2 > * {
    grid-column: span 2;
}

.sp-grid--3-2 > :nth-child(n+4) {
    grid-column: span 3;
}

.sp-steps--spaced {
    margin-top: 50px;
}

/* Карточка с иконкой и крупным текстом */
.sp-reason {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-reason img {
    display: block;
}

.sp-reason__text {
    font-size: 18px;
}

/* Карточка с номером и текстом */
.sp-case {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-case__text {
    font-size: 16px;
    font-weight: 500;
}

.sp-grid--tight {
    gap: 16px;
}

.sp-steps--wide-gap {
    gap: 20px;
}

.sp-note__body--spaced .sp-text + .sp-text {
    margin-top: 10px;
}

/* Карточки сразу после заголовка — без верхнего отступа */
.sp-head + .sp-notes {
    margin-top: 0;
}

/* Сетки по 5 и по 2 в ряд */
.sp-grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

.sp-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.sp-paragraphs--tight {
    gap: 16px;
}

/* Заголовок слева с увеличенным отступом */
.sp-head--loose {
    gap: 32px;
    margin-bottom: 32px;
}

/* Пара карточек с иконкой внутри списка */
.sp-notes--tight {
    margin-top: 0;
    gap: 16px;
}

.sp-case__text b {
    font-weight: 700;
}

/* Форма заявки */
.sp-cta {
    display: flex;
    align-items: center;
    gap: 50px;
}

.sp-cta__text {
    flex: 1;
    gap: 24px;
}

.sp-form {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 492px;
    padding: 40px;
}

.sp-form__title {
    font-size: 24px;
    font-weight: 700;
}

.sp-form__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-form__inp {
    width: 100%;
    height: 50px;
    padding: 12px 24px;
    border: 1px solid #a3aab5;
    border-radius: 50px;
    box-sizing: border-box;
    color: #2e3338;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}

.sp-form__inp::placeholder {
    color: #a3aab5;
}

.sp-form__inp:focus {
    border-color: #c9a11e;
}

.sp-form__inp.err {
    border-color: #ff4433;
}

.sp-form__agree {
    font-size: 11px;
    line-height: 1.4;
}

@media screen and (max-width: 1250px) {
    .sp-hero__img {
        width: 45%;
    }

    .sp-form {
        width: 420px;
    }

    .sp-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-grid--5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .sp {
        padding-top: 60px;
    }

    .sp-section,
    .sp-hero {
        padding: 40px 0;
    }

    .sp-head {
        margin-bottom: 30px;
    }

    .sp-head--center {
        align-items: flex-start;
        text-align: left;
    }

    .sp-head--center .sp-tag {
        align-self: flex-start;
    }

    .sp-tag {
        font-size: 10px;
    }

    .sp-title {
        font-size: 32px;
    }

    .sp-hero__inner,
    .sp-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .sp-hero__title {
        font-size: 36px;
    }

    .sp-hero__img {
        width: 100%;
        min-height: 0;
        height: 281px;
    }

    .sp-btn {
        align-self: stretch;
    }

    .sp-steps__caption {
        text-align: left;
    }

    .sp-step,
    .sp-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sp-head--loose {
        gap: 16px;
        margin-bottom: 30px;
    }

    .sp-notes {
        flex-direction: column;
        margin-top: 24px;
    }

    .sp-notes--tight {
        margin-top: 0;
    }

    .sp-grid,
    .sp-grid--2,
    .sp-grid--4,
    .sp-grid--5,
    .sp-grid--3-2 {
        grid-template-columns: 1fr;
    }

    .sp-grid--3-2 > *,
    .sp-grid--3-2 > :nth-child(n+4) {
        grid-column: auto;
    }

    .sp-note--wide,
    .sp-steps--spaced {
        margin-top: 30px;
    }

    .sp-form {
        width: 100%;
        padding: 24px;
    }
}
