/* ============================================================
   Страница «Образцы» — редизайн в стилистике каталога
   ============================================================ */

.sm-page {
    --sm-blue: #225e99;
    --sm-blue-dark: #1b4f82;
    --sm-blue-light: #3796ca;
    --sm-ink: #27343c;
    --sm-muted: #5b6b78;
    --sm-border: #e0e7ee;
    --sm-soft: #f4f8fc;
    --sm-shadow: 0 2px 12px rgba(16, 42, 67, .06);
    --sm-shadow-lg: 0 18px 50px rgba(16, 42, 67, .09);
    color: var(--sm-ink);
    padding-bottom: 96px;
}

.sm-page > section {
    margin-bottom: 96px;
}

.sm-page > section:last-child {
    margin-bottom: 0;
}

/* ---------- Общие элементы ---------- */

.sm-overline {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    font: 600 12px/1 Inter;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sm-blue);
}

.sm-overline:before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.sm-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 600 15px/1 Inter;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-transition: background .2s linear, border-color .2s linear, opacity .2s linear;
    transition: background .2s linear, border-color .2s linear, opacity .2s linear;
}

.sm-btn_primary {
    background: var(--sm-blue);
    border-color: var(--sm-blue);
    color: #fff;
    -webkit-box-shadow: 0 8px 24px rgba(34, 94, 153, .22);
    box-shadow: 0 8px 24px rgba(34, 94, 153, .22);
}

.sm-btn_primary:hover {
    background: var(--sm-blue-dark);
    border-color: var(--sm-blue-dark);
    color: #fff;
}

.sm-btn:disabled {
    opacity: .6;
    cursor: default;
}

/* ============================================================
   ЗАГОЛОВОК
   ============================================================ */

.sm-head {
    padding-top: 104px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--sm-border);
}

.sm-page > .sm-head {
    margin-bottom: 40px;
}

.sm-head__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 48px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.sm-head__titles {
    min-width: 0;
}

.sm-head__title {
    margin: 14px 0 0;
    font: 700 40px/1.12 SFProDisplay;
    letter-spacing: -.02em;
    color: var(--sm-ink);
    text-wrap: balance;
}

.sm-head__lead {
    padding-top: 20px;
}

.sm-head__lead p {
    margin: 0;
    font: 400 16px/1.65 Inter;
    color: var(--sm-muted);
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */

.sm-intro__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #eef2f6;
    border-radius: 24px;
    background: #fff;
    -webkit-box-shadow: var(--sm-shadow);
    box-shadow: var(--sm-shadow);
}

.sm-intro__body {
    min-width: 0;
    padding: 40px 44px;
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
}

.sm-checks {
    display: grid;
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.sm-checks__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 12px;
    font: 500 15px/1.5 Inter;
    color: var(--sm-ink);
}

.sm-checks__icon {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--sm-blue);
    color: #fff;
}

.sm-intro__media {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 24px 28px 24px 0;
}

.sm-intro__figure {
    position: relative;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1 / 1;
}

.sm-intro__fabric {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-filter: drop-shadow(0 26px 44px rgba(16, 42, 67, .22));
    filter: drop-shadow(0 26px 44px rgba(16, 42, 67, .22));
}

/* ============================================================
   ФОРМА
   ============================================================ */

.sm-form__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: 48px;
    padding: 44px;
    border: 1px solid #eef2f6;
    border-radius: 24px;
    background: #fff;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-shadow: var(--sm-shadow-lg);
    box-shadow: var(--sm-shadow-lg);
}

.sm-form__main {
    min-width: 0;
}

.sm-form__title {
    margin: 14px 0 0;
    font: 700 32px/1.15 SFProDisplay;
    letter-spacing: -.02em;
    color: var(--sm-ink);
    text-wrap: balance;
}

.sm-form__text {
    max-width: 420px;
    margin: 12px 0 0;
    font: 400 15px/1.6 Inter;
    color: var(--sm-muted);
}

.sm-form__phone {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font: 600 18px/1 Inter;
    color: var(--sm-ink);
    text-decoration: none;
    -webkit-transition: color .2s linear;
    transition: color .2s linear;
}

.sm-form__phone svg {
    color: var(--sm-blue);
}

.sm-form__phone:hover {
    color: var(--sm-blue);
}

.sm-form__media {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
}

.sm-form__media:before {
    content: "";
    position: absolute;
    top: -14%;
    right: -14%;
    bottom: -14%;
    left: -14%;
    border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(34, 94, 153, .10), rgba(34, 94, 153, 0));
    pointer-events: none;
}

.sm-form__col {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.sm-form__col--shift {
    padding-top: 30px;
}

.sm-form__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    -webkit-box-shadow: 0 12px 28px rgba(16, 42, 67, .13);
    box-shadow: 0 12px 28px rgba(16, 42, 67, .13);
}

/* Резервный вариант — единая картинка-коллаж */
.sm-form__media--banner {
    display: block;
    aspect-ratio: 1368 / 1000;
}

.sm-form__media--banner img {
    height: 100%;
    border-radius: 0;
    -o-object-fit: contain;
    object-fit: contain;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-filter: drop-shadow(0 20px 34px rgba(16, 42, 67, .12));
    filter: drop-shadow(0 20px 34px rgba(16, 42, 67, .12));
}

/* Поля */

.sm-fields {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.sm-fields__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sm-field {
    display: block;
    min-width: 0;
}

.sm-field__label {
    display: block;
    margin-bottom: 6px;
    font: 500 13px/1.2 Inter;
    color: var(--sm-muted);
}

.sm-field__input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: #fff;
    font: 400 15px/1 Inter;
    color: var(--sm-ink);
    -webkit-transition: border-color .2s linear, box-shadow .2s linear;
    transition: border-color .2s linear, box-shadow .2s linear;
}

.sm-field__input:focus {
    outline: none;
    border-color: var(--sm-blue);
    -webkit-box-shadow: 0 0 0 3px rgba(34, 94, 153, .12);
    box-shadow: 0 0 0 3px rgba(34, 94, 153, .12);
}

.sm-field__input::placeholder {
    color: #9aa9b5;
}

.sm-consent {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 10px;
    font: 400 12.5px/1.5 Inter;
    color: var(--sm-muted);
}

.sm-consent__checkbox {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    padding: 0;
    background-color: #fff;
    accent-color: var(--sm-blue);
    cursor: pointer;
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

.sm-consent__text a {
    color: var(--sm-blue);
}

.sm-fields__turnstile {
    min-height: 65px;
}

.sm-fields__msg {
    font: 500 14px/1.5 Inter;
    color: var(--sm-ink);
}

.sm-fields__msg:empty {
    display: none;
}

.sm-fields__msg--ok {
    color: #15803d;
}

.sm-fields__msg--err {
    color: #b42318;
}

.samples-form__button {
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
}

/* Фото-слайдер для мобильных */

.sm-photos {
    display: none;
    position: relative;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--sm-soft);
}

.sm-photos__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 430 / 250;
    -o-object-fit: cover;
    object-fit: cover;
}

.sm-photos__dots {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
}

.sm-photos__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
    opacity: 1;
    -webkit-transition: width .25s ease, background .25s ease;
    transition: width .25s ease, background .25s ease;
}

.sm-photos__dots .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1200px) {
    .sm-head__grid {
        gap: 36px;
    }

    .sm-intro__card {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .sm-intro__body {
        padding: 32px 32px;
    }

    .sm-form__card {
        gap: 36px;
        padding: 36px;
    }

    .sm-form__media,
    .sm-form__col {
        gap: 12px;
    }

    .sm-form__col--shift {
        padding-top: 24px;
    }

    .sm-form__title {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .sm-page {
        padding-bottom: 80px;
    }

    .sm-page > section {
        margin-bottom: 72px;
    }

    .sm-head {
        padding-top: 92px;
        padding-bottom: 32px;
    }

    .sm-page > .sm-head {
        margin-bottom: 32px;
    }

    .sm-head__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .sm-head__lead {
        padding-top: 0;
    }

    .sm-head__lead p {
        max-width: 640px;
    }

    .sm-intro__card {
        grid-template-columns: minmax(0, 1fr) 180px;
    }

    .sm-intro__body {
        padding: 28px 30px;
    }

    .sm-intro__media {
        padding: 20px 20px 20px 0;
    }

    .sm-intro__figure {
        max-width: 160px;
    }

    .sm-form__card {
        grid-template-columns: minmax(0, 1fr);
        padding: 32px;
    }

    .sm-form__media {
        display: none;
    }

    .sm-photos {
        display: block;
    }
}

@media (max-width: 767px) {
    .sm-page {
        padding-bottom: 64px;
    }

    .sm-page > section {
        margin-bottom: 56px;
    }

    .sm-head {
        padding-top: 88px;
        padding-bottom: 26px;
    }

    .sm-page > .sm-head {
        margin-bottom: 24px;
    }

    .sm-head__title {
        font-size: 30px;
    }

    .sm-head__lead p {
        font-size: 15px;
    }

    .sm-intro__card {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 20px;
    }

    .sm-intro__body {
        padding: 22px 20px 0;
    }

    .sm-intro__media {
        padding: 6px 20px 24px;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .sm-intro__figure {
        max-width: 150px;
    }

    .sm-checks {
        gap: 12px;
        margin-top: 16px;
    }

    .sm-checks__item {
        font-size: 14px;
    }

    .sm-form__card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .sm-form__title {
        font-size: 24px;
    }

    .sm-fields {
        margin-top: 22px;
        gap: 14px;
    }

    .sm-fields__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .samples-form__button {
        max-width: none;
    }

    .sm-photos__slide img {
        aspect-ratio: 4 / 3;
    }
}
