/* ==================================================================
   Особенности мягких стеновых панелей — вёрстка заказчика
   (soft-panels-block), перенесена на сайт 18.09.2026.

   Оформление не менялось. Все классы с приставкой spf, с темой
   не пересекаются. Поправлены только пути к картинкам: они лежат
   в assets/img/features.
   ================================================================== */

/* ================================================================
   SOFT PANELS — responsive section based on the supplied mockup.
   No external libraries or font files. All styles are namespaced.
   Change these variables to integrate the section into another site.
   ================================================================ */
.spf {
  --spf-bg: #f7f4f0;
  --spf-paper: #fff;
  --spf-ink: #292b30;
  --spf-muted: #626570;
  --spf-accent: #c75e40;
  --spf-accent-hover: #b84d32;
  --spf-warm: #a98570;
  --spf-line: #e9dfd7;
  --spf-container: 1500px;
  --spf-gap: 16px;
  --spf-per-view: 4;
  --spf-serif: Georgia, "Times New Roman", serif;
  --spf-sans: Arial, Helvetica, sans-serif;
  color: var(--spf-ink);
  background: var(--spf-bg);
  font-family: var(--spf-sans);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.spf *, .spf *::before, .spf *::after { box-sizing: border-box; }
.spf [hidden] { display: none !important; }
.spf button, .spf input, .spf select, .spf textarea { font: inherit; }
.spf button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
.spf button, .spf input, .spf select, .spf textarea { color: inherit; }
.spf button { margin: 0; }
.spf button:disabled { cursor: wait; opacity: .6; }
.spf :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--spf-accent);
  outline-offset: 5px;
}
.spf-icon { display: block; flex: 0 0 auto; width: 24px; height: 24px; pointer-events: none; }
.spf__sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.spf__main {
  position: relative;
  padding: 26px 0 12px;
  background:
    radial-gradient(ellipse at 76% 0%, #fff9 0, #fff0 47%),
    radial-gradient(ellipse at 14% 82%, #e8e1d76e 0, #f8f5f100 40%),
    linear-gradient(105deg, #f3efea 0%, #faf8f5 40%, #f6f3ef 78%, #ece7e1 100%);
}
.spf__main::after {
  position: absolute; z-index: -1; content: ""; inset: 0;
  background: radial-gradient(ellipse at 91% 11%, #c4b8ab25 0, #ffffff00 26%);
  pointer-events: none;
}
.spf__container {
  position: relative;
  width: calc(100% - clamp(112px, 10.28vw, 172px));
  max-width: var(--spf-container);
  margin-inline: auto;
}
.spf__header { position: relative; z-index: 1; margin-bottom: 27px; text-align: center; }
.spf__eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin: 0 0 15px; color: #957c6c; font-size: 11px; font-weight: 500;
  line-height: 14px; letter-spacing: 6px; text-transform: uppercase;
}
.spf__eyebrow::before, .spf__eyebrow::after { content: ""; width: 44px; height: 1px; background: #aaa198; }
.spf .spf__heading {
  margin: 0; color: var(--spf-ink); font-family: var(--spf-serif);
  font-size: clamp(46px, 4.08vw, 68px); font-weight: 700;
  line-height: 1.08; letter-spacing: -1.8px;
}
.spf__heading span { color: var(--spf-accent); }
.spf .spf__intro {
  margin: 10px auto 0; max-width: 1240px; color: var(--spf-muted);
  font-size: clamp(17px, 1.275vw, 21px); font-weight: 400; line-height: 1.43;
  letter-spacing: .05px;
}
.spf__handwriting {
  position: absolute; top: 30px; right: -45px; z-index: 2;
  transform: rotate(-16deg); color: #936c55; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 26px; font-weight: 400; font-style: italic; line-height: 1.32; text-align: center;
  pointer-events: none;
}
.spf__handwriting .spf-icon { margin: 12px 0 0 auto; width: 27px; height: 30px; color: #b48972; stroke-width: 1.2; }
.spf__shadow { position: absolute; pointer-events: none; user-select: none; z-index: 0; width: 260px; height: 430px; object-fit: contain; opacity: .54; }
.spf__shadow--left { left: -31px; top: -57px; transform: rotate(-15deg); }
.spf__shadow--right { right: -137px; bottom: -68px; width: 254px; height: 437px; transform: scaleX(-1) rotate(-19deg); opacity: .7; }

/* CAROUSEL: four actual cards in HTML; JS adds temporary looping copies. */
.spf-carousel { position: relative; z-index: 1; }
.spf-carousel__viewport { overflow: hidden; margin: -10px; padding: 10px; touch-action: pan-y pinch-zoom; }
.spf-carousel__track {
  display: flex; align-items: stretch; gap: var(--spf-gap);
  transition: transform 450ms cubic-bezier(.22,.7,.22,1); will-change: transform;
}
.spf-carousel__track.is-static, .spf-carousel__viewport.is-dragging .spf-carousel__track { transition: none; }
.spf-carousel__viewport.is-dragging { cursor: grabbing; user-select: none; }
.spf-carousel:not(.is-ready) .spf-carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.spf-carousel:not(.is-ready) .spf-card { scroll-snap-align: start; }
.spf-carousel:not(.is-ready) .spf-carousel__arrow,
.spf-carousel:not(.is-ready) .spf-carousel__dots { visibility: hidden; }
.spf-card {
  display: flex; flex: 0 0 calc((100% - (var(--spf-per-view) - 1) * var(--spf-gap)) / var(--spf-per-view));
  flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #fffc; border-radius: 17px;
  background: var(--spf-paper); box-shadow: 0 5px 15px #6751420d; contain: layout style;
}
.spf-card__media { position: relative; overflow: hidden; aspect-ratio: 1.147 / 1; background: #ddd0c2; }
.spf-card__media picture { display: block; width: 100%; height: 100%; }
.spf-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.spf-card__badge {
  position: absolute; left: 5%; top: 6.2%; display: inline-flex; justify-content: center; align-items: center;
  gap: 10px; width: calc(var(--spf-badge-ratio) * 100%); max-width: 90%; min-height: 44px;
  padding: 8px 13px; border: 1px solid #ffffffb0; border-radius: 99px;
  background: #fcf8f3; color: #573c2d; font-size: clamp(12px, .84vw, 14px);
  font-weight: 600; line-height: 1.15; white-space: nowrap; box-shadow: 0 2px 6px #34261806;
}
.spf-card__badge .spf-icon { width: 23px; height: 23px; stroke-width: 1.65; }
.spf-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 25px 21px; }
.spf .spf-card__eyebrow { margin: 0 0 6px; color: #af876f; font-size: 11px; font-weight: 500; line-height: 1.35; letter-spacing: 3px; text-transform: uppercase; }
.spf .spf-card__title { margin: 0 0 10px; font-family: var(--spf-serif); font-size: clamp(22px, 1.67vw, 28px); font-weight: 700; line-height: 1.13; letter-spacing: -.7px; }
.spf .spf-card__text { margin: 0; color: var(--spf-muted); font-size: clamp(15px, 1.04vw, 17.3px); line-height: 1.365; }
.spf-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 13px; }
.spf-card__more {
  display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid #bf5536; border-radius: 50%; color: #fff !important;
  background: linear-gradient(135deg, #d57554, var(--spf-accent));
  box-shadow: inset 0 1px 3px #ffffff3b; transition: background .2s ease, transform .2s ease;
}
.spf-card__more:hover { transform: translateX(2px); background: var(--spf-accent-hover); }
.spf-card__more .spf-icon { width: 23px; height: 23px; stroke-width: 1.5; }
.spf-card__benefit { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 40px; max-width: calc(100% - 50px); padding: 7px 12px; border-radius: 15px; background: #faf8f5; color: #766252; font-size: clamp(10px, .735vw, 12.2px); line-height: 1.2; white-space: nowrap; }
.spf-card__benefit .spf-icon { width: 21px; height: 21px; color: #936b4e; }
.spf-carousel__arrow {
  position: absolute; top: calc(42% - 44px); z-index: 3; display: flex; justify-content: center; align-items: center;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: #ffffffed; color: #3a3330; box-shadow: 0 5px 12px #5b423709;
  transition: background .2s ease, transform .2s ease;
}
.spf-carousel__arrow:hover { background: #fff; transform: scale(1.06); }
.spf-carousel__arrow--prev { left: -69px; }
.spf-carousel__arrow--next { right: -69px; }
.spf-carousel__arrow .spf-icon { width: 28px; height: 28px; stroke-width: 2.3; }
.spf-carousel__dots { display: flex; justify-content: center; gap: 0; padding-top: 8px; }
.spf-carousel__dot { display: grid; place-items: center; width: 24px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.spf-carousel__dot span { width: 9px; height: 9px; border-radius: 50%; background: #d0cecc; transition: background .2s ease, transform .2s ease; }
.spf-carousel__dot.is-active span { background: var(--spf-accent); box-shadow: 0 0 0 1px #fffa; }
.spf-carousel__dot:hover span { transform: scale(1.2); }

/* FULL-WIDTH BENEFIT BAR */
.spf__bottom { position: relative; z-index: 2; border-top: 1px solid #ffffffc4; background: #ffffffed; }
.spf__bottom-inner { display: flex; align-items: center; gap: 30px; width: calc(100% - 104px); max-width: 1568px; min-height: 94px; margin-inline: auto; padding-block: 12px; }
.spf-benefits { display: grid; flex: 1; grid-template-columns: 1fr 1.3fr 1.42fr 1.08fr; gap: 0; margin: 0; padding: 0; list-style: none; }
.spf-benefit { display: flex; align-items: center; gap: 24px; min-height: 48px; padding: 0 30px; color: #717580; font-size: 14px; line-height: 1.35; }
.spf-benefit:first-child { padding-left: 10px; }
.spf-benefit + .spf-benefit { border-left: 1px solid var(--spf-line); }
.spf-benefit .spf-icon { width: 37px; height: 37px; color: var(--spf-accent); stroke-width: 1.05; }
.spf-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 18px;
  min-height: 54px; padding: 14px 24px; border: 1px solid #ffffff80; border-radius: 99px;
  color: #fff !important; background: linear-gradient(105deg, #cb6344, #c45c3d);
  font-size: 16px; font-weight: 500; line-height: 1.25; text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.spf-button:hover { background: var(--spf-accent-hover); box-shadow: 0 5px 16px #ad59301f; }
.spf-button:active { transform: translateY(1px); }
.spf-button--main { flex: 0 0 272px; min-height: 66px; padding: 18px 24px; }
.spf-button--main .spf-icon { width: 20px; height: 20px; }

/* DETAILS AND REQUEST DIALOGS — not part of the initial screenshot. */
.spf-dialog {
  width: min(940px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px);
  margin: auto; padding: 0; overflow: auto; border: 1px solid #e7ddd4; border-radius: 24px;
  background: #fcfaf7; color: var(--spf-ink); box-shadow: 0 24px 100px #33251e33;
}
.spf-dialog::backdrop { background: #28201bb0; backdrop-filter: blur(7px); }
.spf-dialog__close { position: absolute; z-index: 3; top: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #e6ddd6; border-radius: 50%; background: #ffffffef; color: #68564a; }
.spf-dialog__close:hover { background: #f5e9df; }
.spf-detail { display: grid; grid-template-columns: .9fr 1.1fr; }
.spf-detail__image { display: block; width: 100%; height: 100%; min-height: 490px; object-fit: cover; }
.spf-detail__body { padding: 62px 38px 40px; }
.spf .spf-dialog__eyebrow { margin: 0 0 12px; color: var(--spf-warm); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.spf .spf-dialog__title { margin: 0 0 16px; font-family: var(--spf-serif); font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1.05; }
.spf .spf-dialog__text { margin: 0 0 20px; color: var(--spf-muted); font-size: 16px; line-height: 1.55; }
.spf-detail__list { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; color: #635950; font-size: 14px; line-height: 1.5; }
.spf-detail__list li { display: flex; align-items: flex-start; gap: 10px; }
.spf-detail__list .spf-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--spf-accent); }
.spf-dialog--request { width: min(660px, calc(100vw - 40px)); }
.spf-request { padding: 42px; }
.spf-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.spf-form__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 13px; font-weight: 500; }
.spf-form__field--wide { grid-column: 1 / -1; }
.spf-form :is(input:not([type="hidden"]), select, textarea) { display: block; width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #e2d8d0; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 400; line-height: 1.4; }
.spf-form textarea { resize: vertical; }
.spf-form :is(input, textarea)::placeholder { color: #a49b95; opacity: 1; }
.spf-form__actions { display: grid; gap: 12px; }
.spf .spf-form__note { margin: 0; color: #8b7b70; font-size: 12px; line-height: 1.5; }
.spf .spf-form__status { margin: 0; color: #81634b; font-size: 14px; line-height: 1.5; }
.spf-form__status:empty { display: none; }
.spf .spf-request__result-title { margin: 24px 0 12px; font-family: var(--spf-serif); font-size: 28px; }
.spf-request__summary { margin: 0 0 20px; padding: 20px; border: 1px solid var(--spf-line); border-radius: 12px; background: #fff; color: #65574d; font-family: inherit; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.spf-request__result .spf-form__status { margin-top: 12px; }

/* RESPONSIVE */
@media (min-width: 1800px) { .spf__main { padding-top: 38px; } .spf__header { margin-bottom: 36px; } }
@media (max-width: 1570px) {
  .spf__handwriting { display: none; }
  .spf-card__body { padding-inline: 20px; }
  .spf-card__badge { gap: 7px; padding-inline: 10px; }
  .spf-card__benefit { gap: 6px; padding-inline: 9px; }
  .spf-card__benefit .spf-icon { width: 19px; height: 19px; }
  .spf__bottom-inner { width: calc(100% - 70px); gap: 22px; }
  .spf-benefit { padding-inline: 20px; gap: 17px; font-size: 13px; }
  .spf-benefit .spf-icon { width: 33px; height: 33px; }
  .spf-button--main { flex-basis: 238px; }
}
@media (max-width: 1399px) {
  .spf__container { width: calc(100% - 112px); }
  .spf-carousel__arrow { top: calc(42% - 38px); width: 44px; height: 44px; }
  .spf-carousel__arrow--prev { left: -48px; }
  .spf-carousel__arrow--next { right: -48px; }
  .spf-card__body { padding-inline: 17px; }
  .spf-card__benefit { padding-inline: 8px; font-size: 10px; gap: 5px; }
  .spf-card__more { width: 39px; height: 39px; flex-basis: 39px; }
  .spf-card__footer { gap: 7px; }
  .spf-card__badge .spf-icon { width: 20px; height: 20px; }
  .spf-card__badge { min-height: 40px; font-size: 11.5px; }
  .spf-benefit { gap: 13px; padding-inline: 15px; font-size: 12px; }
  .spf__bottom-inner { gap: 16px; }
  .spf-button--main { flex-basis: 211px; font-size: 15px; }
}
@media (max-width: 1199px) {
  .spf { --spf-per-view: 3; --spf-gap: 18px; }
  .spf__main { padding-top: 34px; }
  .spf .spf__heading { font-size: 52px; }
  .spf .spf__intro { max-width: 850px; font-size: 18px; }
  .spf__desktop-break { display: none; }
  .spf__header { margin-bottom: 30px; }
  .spf-card__body { padding: 20px; }
  .spf .spf-card__title { font-size: 24px; }
  .spf .spf-card__text { font-size: 16px; line-height: 1.45; }
  .spf-card__badge { font-size: 12px; }
  .spf__bottom-inner { flex-wrap: wrap; padding-block: 22px; gap: 24px; }
  .spf-benefits { flex-basis: calc(100% - 254px); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 0; }
  .spf-benefit { padding-inline: 20px; font-size: 13px; }
  .spf-benefit:first-child { padding-left: 20px; }
  .spf-benefit:nth-child(3) { border-left: 0; }
  .spf-button--main { flex-basis: 230px; }
}
@media (max-width: 1023px) {
  .spf { --spf-per-view: 2; --spf-gap: 20px; }
  .spf__container { width: calc(100% - 112px); }
  .spf__eyebrow { font-size: 10px; letter-spacing: 4px; }
  .spf .spf__heading { max-width: 760px; margin-inline: auto; font-size: 50px; }
  .spf .spf__intro { max-width: 720px; font-size: 17px; }
  .spf-card__body { padding-inline: 23px; }
  .spf .spf-card__title { font-size: 28px; }
  .spf-card__badge { min-height: 44px; font-size: 13px; }
  .spf-card__badge .spf-icon { width: 22px; height: 22px; }
  .spf-card__more { width: 44px; height: 44px; flex-basis: 44px; }
  .spf-card__benefit { font-size: 11px; padding-inline: 9px; }
  .spf-card__footer { padding-top: 20px; }
  .spf__bottom-inner { width: calc(100% - 70px); }
}
@media (max-width: 767px) {
  .spf { --spf-per-view: 1.08; --spf-gap: 14px; }
  .spf__main { padding: 29px 0 9px; }
  .spf__container { width: calc(100% - 40px); }
  .spf__header { margin-bottom: 25px; }
  .spf__eyebrow { gap: 10px; margin-bottom: 15px; font-size: 9px; line-height: 1.5; letter-spacing: 2.6px; }
  .spf__eyebrow::before, .spf__eyebrow::after { width: 23px; }
  .spf .spf__heading { max-width: 570px; font-size: clamp(36px, 7.7vw, 49px); line-height: 1.05; letter-spacing: -1.2px; }
  .spf__heading span { display: block; }
  .spf .spf__intro { max-width: 570px; margin-top: 15px; font-size: 15px; line-height: 1.5; }
  .spf__shadow--left { top: -90px; left: -92px; opacity: .3; }
  .spf__shadow--right { right: -143px; bottom: 0; opacity: .25; }
  .spf-card { border-radius: 17px; }
  .spf-card__media { aspect-ratio: 1.2; }
  .spf-card__badge { top: 6%; min-height: 42px; font-size: 13px; }
  .spf-card__body { padding: 20px 22px; }
  .spf .spf-card__eyebrow { font-size: 10px; margin-bottom: 7px; }
  .spf .spf-card__title { font-size: clamp(26px, 5.3vw, 30px); letter-spacing: -.6px; margin-bottom: 12px; }
  .spf .spf-card__text { font-size: 16px; line-height: 1.45; }
  .spf-card__footer { padding-top: 20px; }
  .spf-card__benefit { padding: 9px 12px; font-size: 11.5px; gap: 8px; }
  .spf-card__benefit .spf-icon { width: 20px; height: 20px; }
  .spf-carousel__arrow { top: auto; bottom: -1px; width: 38px; height: 38px; background: #fff; }
  .spf-carousel__arrow--prev { left: 2px; }
  .spf-carousel__arrow--next { right: 2px; }
  .spf-carousel__arrow .spf-icon { width: 21px; height: 21px; }
  .spf-carousel__dots { padding-top: 14px; }
  .spf-carousel__dot { width: 28px; height: 36px; }
  .spf__bottom-inner { width: calc(100% - 40px); display: block; padding-block: 23px 26px; }
  .spf-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; }
  .spf-benefit, .spf-benefit:first-child { padding: 0; min-height: 48px; border-left: 0; gap: 10px; font-size: 12px; }
  .spf-benefit + .spf-benefit { border-left: 0; }
  .spf-benefit .spf-icon { width: 30px; height: 30px; }
  .spf-button--main { width: 100%; min-height: 58px; margin-top: 22px !important; font-size: 16px; }
  .spf-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .spf-detail { display: block; }
  .spf-detail__image { height: 240px; min-height: 0; }
  .spf-detail__body { padding: 28px 24px; }
  .spf .spf-dialog__title { font-size: 34px; }
  .spf-request { padding: 50px 24px 28px; }
}
@media (max-width: 389px) {
  .spf__container, .spf__bottom-inner { width: calc(100% - 32px); }
  .spf__eyebrow { font-size: 8px; letter-spacing: 2px; gap: 8px; }
  .spf__eyebrow::before, .spf__eyebrow::after { width: 16px; }
  .spf .spf__heading { font-size: 35px; }
  .spf .spf__intro { font-size: 14px; }
  .spf-card__body { padding-inline: 18px; }
  .spf .spf-card__title { font-size: 25px; }
  .spf .spf-card__text { font-size: 15px; }
  .spf-card__badge { font-size: 11.5px; gap: 6px; }
  .spf-card__benefit { font-size: 10px; padding-inline: 9px; gap: 5px; }
  .spf-benefit { font-size: 11px; }
  .spf-form { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .spf *, .spf *::before, .spf *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .spf { overflow: visible; }
  .spf__main { background: #fff; padding-top: 0; }
  .spf__container, .spf__bottom-inner { width: 100%; }
  .spf__heading { font-size: 36px !important; }
  .spf__shadow, .spf__handwriting, .spf-carousel__arrow, .spf-carousel__dots, .spf-card__more, .spf-button, .spf-dialog { display: none !important; }
  .spf-carousel__viewport { overflow: visible; }
  .spf-carousel__track { display: grid; grid-template-columns: repeat(2,1fr); transform: none !important; }
  .spf-card { break-inside: avoid; }
  .spf-card[data-clone] { display: none; }
}
