
.flexible-content {
    --fc-gap: 0;
    --fc-radius: 16px;
    --fc-accent: #6f3e3c;
    --fc-secondary: #616a3f;
    --fc-text: #022027;
    --fc-muted: #667477;
    --fc-surface: #f4f5ef;
    --fc-panel: #ece9e4;
    --fc-fade: #fff;
    display: flex;
    flex-direction: column;
    gap: var(--fc-gap);
    position: relative;
    color: var(--fc-text);
}

/* Пока видимые изображения, шрифты и слайдеры занимают окончательные размеры,
   корень остаётся в потоке страницы, но не показывает промежуточную отрисовку. */
html.fc-content-preload .flexible-content {
    transition: opacity .32s ease;
}

html.fc-content-preload .flexible-content:not(.fc-content-ready) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Отложенная крошка сначала находится вне .flexible-content. Скрываем только
   экземпляр, связанный с маркером блока, пока JS переносит его в контейнер. */
html.fc-content-preload .bx-breadcrumb.fc-breadcrumbs-pending {
    opacity: 0;
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html.fc-content-preload .flexible-content {
        transition: none;
    }
}

.flexible-content *,
.flexible-content *::before,
.flexible-content *::after {
    box-sizing: border-box;
}

.flexible-content .fc-quick-edit {
    position: fixed;
    z-index: 30;
    bottom: 105px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 1px solid #616a3f;
    border-radius: 50%;
    background: #fff;
    color: #616a3f;
    box-shadow: 0 6px 22px rgba(2, 32, 39, .16);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.flexible-content .fc-quick-edit:hover,
.flexible-content .fc-quick-edit:focus-visible {
    background: var(--fc-surface);
    color: #616a3f;
    box-shadow: 0 8px 28px rgba(2, 32, 39, .22);
    transform: translateY(-2px);
}

.flexible-content .fc-quick-edit svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.flexible-content .fc-quick-edit span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Единый вертикальный ритм: внешний margin и внутренний padding управляются
   независимо. Базовый margin есть у каждого блока; padding включается настройкой
   или сохраняет штатное значение цветной full-bleed секции. */
.flexible-content-block {
    margin: 120px 0 0;
}

/* Совместимость со старыми данными: прежний fc-no-spacing отключает оба отступа. */
.flexible-content .flexible-content-block.fc-no-spacing {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Новые независимые модификаторы. */
.flexible-content .flexible-content-block.fc-no-margin {
    margin-top: 0;
    margin-bottom: 0;
}

/* Низкая специфичность намеренна: штатные padding цветных секций (140px / адаптив)
   объявлены ниже и сохраняют собственные размеры. Для прозрачных секций это
   добавляет стандартный внутренний отступ. */
.fc-with-padding {
    padding-top: 120px;
    padding-bottom: 120px;
}

.fc-padding-top {
    padding-top: 120px;
    padding-bottom: 0;
}

.fc-padding-bottom {
    padding-top: 0;
    padding-bottom: 120px;
}

/* У блоков-копий темы padding находится внутри корневой секции — второй padding
   на flexible-content-block им не нужен. */
.fc-photo-gallery.fc-with-padding,
.fc-vk-hero.fc-with-padding,
.fc-corporate-contact.fc-with-padding,
.fc-home-contacts.fc-with-padding,
.fc-home-gallery.fc-with-padding,
.fc-photo-gallery.fc-padding-top,
.fc-vk-hero.fc-padding-top,
.fc-corporate-contact.fc-padding-top,
.fc-home-contacts.fc-padding-top,
.fc-home-gallery.fc-padding-top,
.fc-photo-gallery.fc-padding-bottom,
.fc-vk-hero.fc-padding-bottom,
.fc-corporate-contact.fc-padding-bottom,
.fc-home-contacts.fc-padding-bottom,
.fc-home-gallery.fc-padding-bottom {
    padding-top: 0;
    padding-bottom: 0;
}

/* «Главная: Фотогалерея»: штатный padding живёт на вложенной .photo-gallery
   (тема: 120px / 140px), поэтому настройка отступа управляет именно им.
   Специфичности хватает, чтобы перекрыть адаптив темы. */
.flexible-content .fc-home-gallery.fc-no-padding .photo-gallery {
    padding-top: 0;
    padding-bottom: 0;
}

.flexible-content .fc-home-gallery.fc-padding-top .photo-gallery {
    padding-bottom: 0;
}

.flexible-content .fc-home-gallery.fc-padding-bottom .photo-gallery {
    padding-top: 0;
}

/* Отключаем только секционный padding, не затрагивая внутренние поля карточек,
   панелей и других дочерних элементов. Высокая специфичность перекрывает адаптив. */
.flexible-content .fc-no-padding.ranch-circles,
.flexible-content .fc-no-padding.fc-steps,
.flexible-content .fc-no-padding.fc-tagcards,
.flexible-content .fc-no-padding.ranch-dsteps,
.flexible-content .fc-no-padding.fc-media-rows,
.flexible-content .fc-no-padding.fc-photo-cards,
.flexible-content .fc-no-padding.fc-pricing,
.flexible-content .fc-no-padding.ranch-checklist {
    padding-top: 0;
    padding-bottom: 0;
}

/* Односторонний padding: цветная секция сохраняет свой штатный размер с нужной
   стороны, а противоположная сторона обнуляется даже внутри медиазапросов. */
.flexible-content .fc-padding-top.ranch-circles,
.flexible-content .fc-padding-top.fc-steps,
.flexible-content .fc-padding-top.fc-tagcards,
.flexible-content .fc-padding-top.ranch-dsteps,
.flexible-content .fc-padding-top.fc-media-rows,
.flexible-content .fc-padding-top.fc-photo-cards,
.flexible-content .fc-padding-top.fc-pricing,
.flexible-content .fc-padding-top.ranch-checklist {
    padding-bottom: 0;
}

.flexible-content .fc-padding-bottom.ranch-circles,
.flexible-content .fc-padding-bottom.fc-steps,
.flexible-content .fc-padding-bottom.fc-tagcards,
.flexible-content .fc-padding-bottom.ranch-dsteps,
.flexible-content .fc-padding-bottom.fc-media-rows,
.flexible-content .fc-padding-bottom.fc-photo-cards,
.flexible-content .fc-padding-bottom.fc-pricing,
.flexible-content .fc-padding-bottom.ranch-checklist {
    padding-top: 0;
}

/* Совместимость со старым pad=Y до нормализации сохранённых данных. */
.flexible-content .flexible-content-block.fc-pad {
    margin-top: 0;
    padding-top: 120px;
    padding-bottom: 120px;
}

/* Мультицветной фон (настройка «Фон» блоков zigzag / service_cards):
   fc-bg-beige = #ECE9E4, fc-bg-olive = #616A3F. */
.fc-zigzag.fc-bg-beige,
.fc-service-cards.fc-bg-beige {
    background: #ece9e4;
}

.fc-zigzag.fc-bg-olive,
.fc-service-cards.fc-bg-olive {
    background: #616a3f;
}

/* zigzag: при цветной секции сама контент-панель становится белой */
.fc-zigzag.fc-bg-beige .fc-zigzag__panel,
.fc-zigzag.fc-bg-olive .fc-zigzag__panel {
    background: #fff;
}

/* service_cards: заголовок на оливковом фоне — белый (контраст) */
.fc-service-cards.fc-bg-olive .fc-service-cards__title {
    color: #fff;
}

/* Блоки-копии темы держат вертикальный padding на внутренних элементах. */
.flexible-content .flexible-content-block.fc-no-spacing > .photo-gallery,
.flexible-content .flexible-content-block.fc-no-spacing .vk-hero__container,
.flexible-content .flexible-content-block.fc-no-spacing .corporate-events__contact-section,
.flexible-content .flexible-content-block.fc-no-padding > .photo-gallery,
.flexible-content .flexible-content-block.fc-no-padding .vk-hero__container,
.flexible-content .flexible-content-block.fc-no-padding .corporate-events__contact-section,
.flexible-content .flexible-content-block.fc-no-padding > .contact-section {
    padding-top: 0;
    padding-bottom: 0;
}

.flexible-content .flexible-content-block.fc-padding-top > .photo-gallery,
.flexible-content .flexible-content-block.fc-padding-top .vk-hero__container,
.flexible-content .flexible-content-block.fc-padding-top .corporate-events__contact-section,
.flexible-content .flexible-content-block.fc-padding-top > .contact-section {
    padding-bottom: 0;
}

.flexible-content .flexible-content-block.fc-padding-bottom > .photo-gallery,
.flexible-content .flexible-content-block.fc-padding-bottom .vk-hero__container,
.flexible-content .flexible-content-block.fc-padding-bottom .corporate-events__contact-section,
.flexible-content .flexible-content-block.fc-padding-bottom > .contact-section {
    padding-top: 0;
}

.flexible-content-title {
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    font-weight: 700;
}

.flexible-content-content,
.flexible-content-repeat-content {
    font-size: 16px;
    line-height: 1.7;
}

.flexible-content-content > *:first-child,
.flexible-content-repeat-content > *:first-child {
    margin-top: 0;
}

.flexible-content-content > *:last-child,
.flexible-content-repeat-content > *:last-child {
    margin-bottom: 0;
}

.flexible-content-content img,
.flexible-content-repeat-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--fc-radius);
}

.flexible-content-content ul,
.flexible-content-content ol,
.flexible-content-repeat-content ul,
.flexible-content-repeat-content ol {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.flexible-content-content li,
.flexible-content-repeat-content li {
    position: relative;
    margin: 0;
    padding-left: 30px;
    list-style: none;
    line-height: 1.55;
}

.flexible-content-content ul > li::before,
.flexible-content-repeat-content ul > li::before {
    content: '';
    position: absolute;
    top: 0.68em;
    left: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--fc-secondary);
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
}

.flexible-content-content ol,
.flexible-content-repeat-content ol {
    counter-reset: fc-list;
}

.flexible-content-content ol > li,
.flexible-content-repeat-content ol > li {
    counter-increment: fc-list;
    padding-left: 38px;
}

.flexible-content-content ol > li::before,
.flexible-content-repeat-content ol > li::before {
    content: counter(fc-list);
    position: absolute;
    top: 0.05em;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--fc-surface);
    color: var(--fc-secondary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.flexible-content-content li > ul,
.flexible-content-content li > ol,
.flexible-content-repeat-content li > ul,
.flexible-content-repeat-content li > ol {
    margin-top: 10px;
    margin-bottom: 4px;
}

.flexible-content-content ul ul > li::before,
.flexible-content-repeat-content ul ul > li::before {
    width: 6px;
    height: 6px;
    border-width: 0;
    background: var(--fc-accent);
}

.flexible-content-content.fc-collapsible {
    position: relative;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.flexible-content-content.fc-collapsible::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--fc-fade));
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.flexible-content-content.fc-collapsible.fc-open::after {
    opacity: 0;
}

.flexible-content-more-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 18px;
    border: 1px solid var(--fc-accent);
    border-radius: 999px;
    background: transparent;
    color: var(--fc-accent);
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.flexible-content-more-btn:hover {
    background: var(--fc-accent);
    color: #fff;
}

.flexible-content-reference-list {
    display: grid;
    gap: 28px;
}

.flexible-content-reference-item {
    min-width: 0;
}

.flexible-content-reference-item + .flexible-content-reference-item {
    padding-top: 28px;
    border-top: 1px solid rgba(2, 32, 39, 0.12);
}

.flexible-content-block-text-repeat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.flexible-content-block-text-repeat.fc-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.flexible-content-block-text-repeat.fc-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.flexible-content-block-text-repeat.fc-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flexible-content-block-text-repeat.fc-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.flexible-content-repeat-head {
    grid-column: 1 / -1;
}

.flexible-content-repeat-heading {
    margin: 0;
    font-size: clamp(28px, 3vw, 45px);
    line-height: 1.2;
    color: var(--fc-text);
}

.flexible-content-repeat-subtitle {
    margin: 16px 0 0;
    max-width: 740px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--fc-muted);
}

/* Заголовок блока + кнопка-действие в одну строку (кнопка возле заголовка) */
.flexible-content-repeat-head-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.flexible-content-repeat-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 90px;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 24px;
    border: 1px solid var(--fc-text);
    border-radius: 8px;
    background: transparent;
    color: var(--fc-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.flexible-content-block-text-repeat .flexible-content-repeat-head {
    margin-bottom: 30px;
}

.flexible-content-repeat-btn::after {
    content: "\2192";
    font-size: 16px;
    line-height: 1;
}

.flexible-content-repeat-btn:hover {
    background: #616a3f;
    color: #fff;
}

@media (max-width: 600px) {
    .flexible-content-repeat-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
}

.flexible-content-repeat-item {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    color: #022027;
}

.fc-layout-top .flexible-content-repeat-item {
    flex-direction: column;
}

.fc-layout-left .flexible-content-repeat-item {
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.flexible-content-repeat-icon-wrap {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
}

.fc-layout-top .flexible-content-repeat-icon-wrap {
    margin-bottom: 15px;
}

.flexible-content-repeat-icon {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.flexible-content-repeat-text {
    flex: 1 1 auto;
    min-width: 0;
}

.flexible-content-repeat-title {
    margin: 0 0 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
}

.fc-layout-left .flexible-content-repeat-title {
    margin-bottom: 4px;
}

.flexible-content-repeat-content {
    color: #022027;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.flexible-content-repeat-content p {
    margin-top: 0;
    margin-bottom: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.flexible-content-block-text-repeat.fc-style-bordered {
    --fc-repeat-border: #91bad2;
    --fc-repeat-surface: #fff;
}

.fc-style-bordered .flexible-content-repeat-item {
    height: 100%;
    border: 2px dashed var(--fc-repeat-border);
    border-radius: 18px;
    background: var(--fc-repeat-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fc-style-bordered.fc-layout-top {
    padding-top: 30px;
    row-gap: 56px;
}

.fc-style-bordered.fc-layout-top .flexible-content-repeat-item {
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 154px;
    padding: 42px 24px 26px;
    text-align: center;
}

.fc-style-bordered.fc-layout-top .flexible-content-repeat-item.fc-no-icon {
    padding-top: 26px;
}

.fc-style-bordered.fc-layout-top .flexible-content-repeat-icon-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 64px;
    margin: 0;
    padding: 4px 14px;
    background: var(--fc-repeat-surface);
    transform: translate(-50%, -50%);
}

.fc-style-bordered.fc-layout-top .flexible-content-repeat-icon {
    width: 56px;
    height: 56px;
}

.fc-style-bordered.fc-layout-left .flexible-content-repeat-item {
    min-height: 126px;
    padding: 22px;
    gap: 20px;
    align-items: center;
}

.fc-style-bordered.fc-layout-left .flexible-content-repeat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.fc-style-bordered.fc-layout-left .flexible-content-repeat-icon {
    width: 56px;
    height: 56px;
}

.fc-style-bordered .flexible-content-repeat-title {
    margin-bottom: 8px;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.3;
}

.fc-style-bordered .flexible-content-repeat-content {
    font-size: 15px;
    line-height: 1.55;
}

@media (hover: hover) {
    .fc-style-bordered .flexible-content-repeat-item:hover {
        border-color: #6f9fbb;
        box-shadow: 0 12px 28px rgba(53, 100, 126, 0.12);
        transform: translateY(-2px);
    }
}

.flexible-content-block-image-slider {
    position: relative;
    min-width: 0;
}

.flexible-content-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--fc-radius);
    background: transparent;
    isolation: isolate;
}

.flexible-content-slider[data-fc-pagination="Y"]:not([data-fc-count="1"]) {
    padding-bottom: 38px;
}

.flexible-content-slider .swiper-wrapper {
    align-items: stretch;
}

.flexible-content-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    border: 1px solid rgba(2, 32, 39, 0.1);
    border-radius: var(--fc-radius);
    background: var(--fc-surface);
    box-shadow: 0 12px 32px rgba(2, 32, 39, 0.09);
}

.flexible-content-slide-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.flexible-content-slider[data-fc-per-view="2"] .flexible-content-slide-image,
.flexible-content-slider[data-fc-per-view="3"] .flexible-content-slide-image {
    aspect-ratio: 4 / 3;
}

@media (hover: hover) {
    .flexible-content-slide:hover .flexible-content-slide-image {
        transform: scale(1.025);
    }
}

.flexible-content-slide-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    margin: 0;
    padding: 52px 20px 18px;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 32, 39, 0) 0%, rgba(2, 32, 39, 0.78) 100%);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.flexible-content-slider .swiper-button-prev,
.flexible-content-slider .swiper-button-next {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    border: 1px solid rgba(2, 32, 39, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(2, 32, 39, 0.16);
    color: var(--fc-text);
    font: inherit;
    cursor: pointer;
    appearance: none;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.flexible-content-slider[data-fc-pagination="Y"]:not([data-fc-count="1"]) .swiper-button-prev,
.flexible-content-slider[data-fc-pagination="Y"]:not([data-fc-count="1"]) .swiper-button-next {
    top: calc((100% - 38px) / 2);
}

.flexible-content-slider .swiper-button-prev {
    right: auto;
    left: 18px;
}

.flexible-content-slider .swiper-button-next {
    right: 18px;
    left: auto;
}

.flexible-content-slider .swiper-button-prev:hover,
.flexible-content-slider .swiper-button-next:hover {
    background: #fff;
    color: var(--fc-accent);
    transform: translateY(-50%) scale(1.06);
}

.flexible-content-slider .swiper-button-prev::after,
.flexible-content-slider .swiper-button-next::after {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    font-size: 0;
}

.flexible-content-slider .swiper-button-prev::after {
    margin-left: 4px;
    transform: rotate(-135deg);
}

.flexible-content-slider .swiper-button-next::after {
    margin-right: 4px;
    transform: rotate(45deg);
}

.flexible-content-slider .swiper-button-prev:focus-visible,
.flexible-content-slider .swiper-button-next:focus-visible {
    outline: 3px solid rgba(111, 62, 60, 0.3);
    outline-offset: 3px;
}

.flexible-content-slider .swiper-button-disabled {
    opacity: 0.38;
    pointer-events: none;
}

.flexible-content-slider .flexible-content-slider-pagination {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 30px;
    line-height: 1;
    transform: none;
}

.flexible-content-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(97, 106, 63, 0.3);
    opacity: 1;
    transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.flexible-content-slider .swiper-pagination-bullet-active {
    width: 26px;
    background: var(--fc-accent);
}

.flexible-content-slider .swiper-pagination-bullet:focus-visible {
    outline: 2px solid rgba(111, 62, 60, 0.35);
    outline-offset: 3px;
}

.flexible-content-slider .swiper-button-lock,
.flexible-content-slider .swiper-pagination-lock {
    display: none !important;
}

.flexible-content-slider:not(.swiper-initialized) .swiper-button-prev,
.flexible-content-slider:not(.swiper-initialized) .swiper-button-next,
.flexible-content-slider:not(.swiper-initialized) .swiper-pagination {
    display: none;
}

.flexible-content-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

@media (max-width: 991px) {
    .flexible-content-block-text-repeat.fc-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flexible-content-block-text-repeat.fc-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flexible-content-block-text-repeat.fc-cols-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .flexible-content-block-text-repeat.fc-style-bordered.fc-layout-top {
        row-gap: 52px;
    }
}

.flexible-content-block-custom {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.flexible-content-custom-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    background: #f6f8fb;
    border: 1px solid #e6ebf1;
    border-radius: var(--fc-radius);
}

.flexible-content-custom-field {
    font-size: 16px;
    line-height: 1.7;
}

.flexible-content-custom-field > *:first-child {
    margin-top: 0;
}

.flexible-content-custom-field > *:last-child {
    margin-bottom: 0;
}

.flexible-content-custom-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--fc-radius);
}

.flexible-content-content-review {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flexible-content-content-review__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
    background: #eef6ff;
    border: 1px solid #cfe2f5;
    border-radius: var(--fc-radius);
}

.flexible-content-content-review__image {
    max-width: 220px;
    height: auto;
    border-radius: var(--fc-radius);
}

.flexible-content-content-review__text {
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 640px) {

    .flexible-content-block .contact-section {
        padding: 80px 20px;
    }

    .flexible-content-block-text-repeat.fc-cols-2,
    .flexible-content-block-text-repeat.fc-cols-3,
    .flexible-content-block-text-repeat.fc-cols-4 {
        grid-template-columns: 1fr;
    }

    .flexible-content-block-text-repeat.fc-cols-3 {
        gap: 24px;
    }

    .flexible-content-block-text-repeat.fc-style-bordered.fc-layout-top {
        padding-top: 28px;
        row-gap: 48px;
    }

    .fc-style-bordered.fc-layout-top .flexible-content-repeat-item {
        min-height: 138px;
        padding: 38px 18px 22px;
    }

    .fc-style-bordered.fc-layout-left .flexible-content-repeat-item {
        min-height: 112px;
        padding: 18px;
        gap: 16px;
    }

    .fc-style-bordered.fc-layout-left .flexible-content-repeat-icon-wrap,
    .fc-style-bordered.fc-layout-left .flexible-content-repeat-icon {
        width: 52px;
        height: 52px;
    }

    .flexible-content-content ul,
    .flexible-content-content ol,
    .flexible-content-repeat-content ul,
    .flexible-content-repeat-content ol {
        gap: 8px;
        margin: 14px 0;
    }

    .flexible-content-reference-list {
        gap: 22px;
    }

    .flexible-content-reference-item + .flexible-content-reference-item {
        padding-top: 22px;
    }

    .flexible-content-slider[data-fc-pagination="Y"]:not([data-fc-count="1"]) {
        padding-bottom: 34px;
    }

    .flexible-content-slider[data-fc-pagination="Y"]:not([data-fc-count="1"]) .swiper-button-prev,
    .flexible-content-slider[data-fc-pagination="Y"]:not([data-fc-count="1"]) .swiper-button-next {
        top: calc((100% - 34px) / 2);
    }

    .flexible-content-slider .swiper-button-prev,
    .flexible-content-slider .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .flexible-content-slider .swiper-button-prev {
        left: 10px;
    }

    .flexible-content-slider .swiper-button-next {
        right: 10px;
    }

    .flexible-content-slider .swiper-button-prev::after,
    .flexible-content-slider .swiper-button-next::after {
        width: 9px;
        height: 9px;
    }

    .flexible-content-slide-title {
        padding: 44px 14px 14px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Повторитель, стиль «Карточки» (fc-style-cards) — фото + подпись, 4–5 в ряд
   ========================================================================== */

.fc-style-cards .flexible-content-repeat-item {
    flex-direction: column;
    transition: transform .35s ease;
}

.fc-style-cards .flexible-content-repeat-icon-wrap {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 14px;
}

.fc-style-cards .flexible-content-repeat-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 282 / 264;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .55s ease;
}

.fc-style-cards .flexible-content-repeat-title {
    margin: 0;
    font-size: clamp(17px, 1.6vw, 24px);
    line-height: 1.3;
    color: var(--fc-text);
    transition: color .3s ease;
}

.fc-style-cards .flexible-content-repeat-content {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--fc-muted);
}

@media (hover: hover) {
    .fc-style-cards .flexible-content-repeat-item:hover {
        transform: translateY(-6px);
    }

    .fc-style-cards .flexible-content-repeat-item:hover .flexible-content-repeat-icon {
        transform: scale(1.06);
    }

    .fc-style-cards .flexible-content-repeat-item:hover .flexible-content-repeat-title {
        color: var(--fc-secondary);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-style-cards .flexible-content-repeat-item,
    .fc-style-cards .flexible-content-repeat-icon {
        transition: none;
    }

    .fc-style-cards .flexible-content-repeat-item:hover,
    .fc-style-cards .flexible-content-repeat-item:hover .flexible-content-repeat-icon {
        transform: none;
    }
}

@media (max-width: 1200px) {
    .flexible-content-block-text-repeat.fc-cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .flexible-content-block-text-repeat.fc-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .flexible-content-repeat-subtitle {
        margin-top: 10px;
        font-size: 15px;
    }
    .flexible-content-block {
        margin: 50px 0 0;
    }

    .fc-with-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .fc-padding-top {
        padding-top: 50px;
    }

    .fc-padding-bottom {
        padding-bottom: 50px;
    }

    .flexible-content .flexible-content-block.fc-pad {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

/* ==========================================================================
   Баннер (2 колонки): надзаголовок, заголовок, лейблы, описание, кнопка / фото
   ========================================================================== */

.fc-banner__inner {
    display: flex;
    gap: 24px;
    min-height: 530px;
}

.fc-banner__col {
    position: relative;
    flex: 0 1 740px;
    min-width: 0;
}

.fc-banner__eyebrow {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fc-accent);
}

.fc-banner__title {
    margin: 0;
    font-size: clamp(30px, 4vw, 60px);
    line-height: 1.1;
    color: var(--fc-secondary);
}

.fc-banner__labels {
    margin: 50px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 6px;
}

.fc-banner__label {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 20px;
    border-radius: 8px;
    background: var(--fc-surface);
    color: var(--fc-accent);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.fc-banner__text {
    margin: 32px 0 0;
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.27;
    color: var(--fc-text);
}

.fc-banner__actions {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    margin-top: 30px;
}

.fc-banner__btn {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 278px;
    min-height: 68px;
    padding: 12px 28px;
    border-radius: 8px;
    background: var(--fc-secondary);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s ease;
}

.fc-banner__actions--double {
    width: 100%;
}

.fc-banner__actions--double .fc-banner__btn {
    flex: 0 1 278px;
    min-width: 210px;
}

.fc-banner__btn--secondary {
    background: var(--fc-text);
}

.fc-banner__btn:hover {
    opacity: .88;
    color: #fff;
}

.fc-banner__media {
    flex: 1 1 auto;
    min-width: 0;
}

.fc-banner__media img {
    width: 100%;
    height: clamp(320px, 33vw, 500px);
    object-fit: cover;
    border-radius: 20px;
}

.fc-banner__media-stub {
    width: 100%;
    height: clamp(320px, 33vw, 500px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--fc-surface), rgba(2, 32, 39, .08));
}

@media (max-width: 900px) {
    .fc-banner__inner {
        flex-direction: column;
        gap: 28px;
        min-height: auto;
    }

    .fc-banner__col {
        flex: 0 0 auto;
        width: 100%;
    }

    .fc-banner__labels,
    .fc-banner__text {
        margin-top: 24px;
        margin-bottom: 0;
    }

    .fc-banner__label {
        min-height: 36px;
        padding: 5px 14px;
        font-size: 14px;
    }

    .fc-banner__actions {
        position: relative;
        bottom: auto;
        left: auto;
        flex-direction: column;
        align-items: stretch;
        margin-top: 28px;
        width: 100%;
        max-width: 340px;
    }

    .fc-banner__btn,
    .fc-banner__actions--double .fc-banner__btn {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
        min-height: 56px;
        font-size: 17px;
    }

    .fc-banner__media img,
    .fc-banner__media-stub {
        height: 300px;
        border-radius: 14px;
    }
}

/* ==========================================================================
   Ранчо: «Кому подойдёт подарок» — круглые фото со смещением (home_circles)
   Контент фиксированный, настраивается только фон (dark по умолчанию / light).
   ========================================================================== */

.ranch-circles {
    padding: 140px 0;
    overflow: hidden;
}

.ranch-circles--dark {
    background: #022027;
    --rc-text: #fff;
    --rc-hover: #ebf4d1;
}

.ranch-circles--light {
    background: transparent;
    --rc-text: #022027;
    --rc-hover: #616a3f;
}

.ranch-circles__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.ranch-circles__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 45px);
    line-height: 1.3;
    color: var(--rc-text);
}

.ranch-circles__stage {
    position: relative;
    container-type: inline-size;
    width: 100%;
    max-width: 1464px;
    aspect-ratio: 1464 / 662;
    margin-top: clamp(-59px, -4vw, -20px);
}

/* слой 1 — параллакс за курсором/скроллом (переменные задаёт скрипт секции) */
.ranch-circles__item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate3d(var(--rc-px, 0px), calc(var(--rc-py, 0px) + var(--rc-sy, 0px)), 0);
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

/* слой 2 — постоянное «дыхание» вверх-вниз, у каждого круга своя частота */
.ranch-circles__float {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: ranch-circles-float var(--rc-dur, 6s) ease-in-out var(--rc-delay, 0s) infinite;
    will-change: transform;
}

@keyframes ranch-circles-float {
    0%, 100% { transform: translateY(calc(var(--rc-amp, 12px) * -1)); }
    50%      { transform: translateY(var(--rc-amp, 12px)); }
}

.ranch-circles__img {
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .45s ease, box-shadow .45s ease;
}

.ranch-circles__caption {
    margin: 1.639cqw 0 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 1.639cqw;
    line-height: 1.3;
    color: var(--rc-text);
    text-align: center;
    transition: color .3s ease;
}

/* координаты и пропорции кругов из макета (сцена 1464×662) */
.ranch-circles__item--1 { left: 0.07%;  top: 21.60%; width: 12.30%; }
.ranch-circles__item--2 { left: 13.93%; top: 42.15%; width: 13.66%; }
.ranch-circles__item--3 { left: 32.04%; top: 21.60%; width: 16.39%; }
.ranch-circles__item--4 { left: 48.22%; top: 59.82%; width: 12.30%; }
.ranch-circles__item--5 { left: 62.43%; top: 21.60%; width: 13.66%; }
.ranch-circles__item--6 { left: 81.01%; top: 0;      width: 10.93%; }
.ranch-circles__item--7 { left: 86.34%; top: 42.60%; width: 16.39%; }

.ranch-circles__item--1 .ranch-circles__img { aspect-ratio: 180 / 178; }
.ranch-circles__item--2 .ranch-circles__img { aspect-ratio: 200 / 200; }
.ranch-circles__item--3 .ranch-circles__img { aspect-ratio: 240 / 237; }
.ranch-circles__item--4 .ranch-circles__img { aspect-ratio: 180 / 180; }
.ranch-circles__item--5 .ranch-circles__img { aspect-ratio: 200 / 197; }
.ranch-circles__item--6 .ranch-circles__img { aspect-ratio: 160 / 158; }
.ranch-circles__item--7 .ranch-circles__img { aspect-ratio: 240 / 240; }

.ranch-circles__item--2 .ranch-circles__caption { width: 172%; }
.ranch-circles__item--5 .ranch-circles__caption { width: 116%; }
.ranch-circles__item--7 .ranch-circles__caption { width: 112%; }

.ranch-circles__item--1 .ranch-circles__float { --rc-dur: 6.4s; --rc-delay: 0s;    --rc-amp: 10px; }
.ranch-circles__item--2 .ranch-circles__float { --rc-dur: 5.2s; --rc-delay: -1.6s; --rc-amp: 14px; }
.ranch-circles__item--3 .ranch-circles__float { --rc-dur: 7.6s; --rc-delay: -0.8s; --rc-amp: 9px; }
.ranch-circles__item--4 .ranch-circles__float { --rc-dur: 5.8s; --rc-delay: -2.4s; --rc-amp: 13px; }
.ranch-circles__item--5 .ranch-circles__float { --rc-dur: 6.9s; --rc-delay: -3.1s; --rc-amp: 11px; }
.ranch-circles__item--6 .ranch-circles__float { --rc-dur: 4.8s; --rc-delay: -1.1s; --rc-amp: 15px; }
.ranch-circles__item--7 .ranch-circles__float { --rc-dur: 8.2s; --rc-delay: -2.9s; --rc-amp: 8px; }

@media (hover: hover) {
    .ranch-circles__item:hover { z-index: 3; }

    .ranch-circles__item:hover .ranch-circles__img {
        transform: scale(1.08);
        box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
    }

    .ranch-circles__item:hover .ranch-circles__caption { color: var(--rc-hover); }
}

@media (max-width: 1500px) {
    .ranch-circles { padding: clamp(56px, 7vw, 140px) 0; }
}

/* мобильная версия: обычные статические карточки — анимации выключены */
@media (max-width: 900px) {
    .ranch-circles { padding: 40px 0; }

    .ranch-circles__stage {
        position: static;
        aspect-ratio: auto;
        margin-top: 28px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }

    .ranch-circles__item {
        position: static;
        width: auto !important;
        transform: none;
        transition: none;
        will-change: auto;
    }

    .ranch-circles__float {
        animation: none;
        transform: none;
        will-change: auto;
    }

    .ranch-circles__caption {
        margin-top: 12px;
        font-size: 15px;
        width: auto !important;
    }
}

@media (max-width: 520px) {
    .ranch-circles__stage { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .ranch-circles__item { transform: none; transition: none; }
    .ranch-circles__float { animation: none; }
    .ranch-circles__img { transition: none; }
    .ranch-circles__item:hover .ranch-circles__img { transform: none; }
}

/* ==========================================================================
   Шаги (steps) — карточки с номерами на оливковом фоне.
   Номер проставляется автоматически, стрелка — у всех карточек, кроме последней.
   Размеры и отступы 1:1 с макетом (design-preview, блок 4).
   ========================================================================== */

.fc-steps {
    padding: 140px 0;
    background: var(--fc-secondary);
}

.fc-steps__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-steps__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 1.4;
    color: #fff;
}

.fc-steps__grid {
    margin-top: 75px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 26px;
}

/* нижний паддинг — страховка: контент карточки задаёт админ, длина не фиксирована */
.fc-steps__card {
    position: relative;
    min-height: 264px;
    padding: 0 29px 24px;
    border-radius: 14px;
    background: #fffbfb;
    overflow: hidden;
}

.fc-steps__num {
    margin: 0;
    padding-right: 60px;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 400;
    font-size: 72px;
    line-height: 1.3;
    color: var(--fc-text);
}

.fc-steps__name {
    margin: 16px 0 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: var(--fc-text);
}

.fc-steps__text {
    margin: 38px 0 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.25;
    color: var(--fc-text);
}

.fc-steps__arrow {
    position: absolute;
    top: 25px;
    right: 34px;
    width: 52px;
    height: 44px;
}

.fc-steps__arrow path {
    stroke: var(--fc-text);
    stroke-width: 1.5;
    fill: none;
}

@media (max-width: 1500px) {
    .fc-steps { padding: clamp(56px, 7vw, 140px) 0; }
    .fc-steps__title { font-size: clamp(28px, 3vw, 45px); }
    .fc-steps__grid { margin-top: clamp(36px, 5vw, 75px); gap: 20px; }
    .fc-steps__num { font-size: clamp(48px, 4.8vw, 72px); }
    .fc-steps__name { font-size: clamp(19px, 1.6vw, 24px); }
    .fc-steps__text { margin-top: clamp(18px, 2.5vw, 38px); }
}

@media (max-width: 900px) {
    .fc-steps { padding: 40px 0; }
    .fc-steps__title { font-size: 26px; }
    .fc-steps__grid { grid-template-columns: 1fr; gap: 16px; }
    .fc-steps__card { min-height: 0; padding: 20px 20px 24px; }
    .fc-steps__num { padding-right: 50px; font-size: 44px; line-height: 1.1; }
    .fc-steps__name { margin-top: 10px; font-size: 19px; }
    .fc-steps__text { margin-top: 12px; }
    .fc-steps__arrow { top: 20px; right: 20px; width: 38px; height: 32px; }
}

/* ==========================================================================
   Зигзаг (zigzag) — ряды «текст ↔ фото» на бежевой панели, стороны чередуются
   Размеры и отступы 1:1 с макетом (design-preview, блок 5).
   ========================================================================== */


.fc-zigzag__panel {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
    padding: 70px 54px;
    border-radius: 18px;
    background: #ece9e4;
}

.fc-zigzag__title {
    margin: 0 0 129px;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 45px;
    line-height: 1.31;
    color: var(--fc-text);
}

.fc-zigzag__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.fc-zigzag__row + .fc-zigzag__row {
    margin-top: 70px;
}

.fc-zigzag__row--reverse {
    flex-direction: row-reverse;
}

.fc-zigzag__text {
    flex: 0 1 621px;
    min-width: 0;
}

.fc-zigzag__name {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.29;
    color: var(--fc-text);
}

.fc-zigzag__desc {
    margin: 20px 0 0;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.27;
    color: var(--fc-text);
}

.fc-zigzag__media {
    flex: 0 0 650px;
    min-width: 0;
}

.fc-zigzag__media img,
.fc-zigzag__media-stub {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.fc-zigzag__media-stub {
    background: linear-gradient(135deg, #fff, rgba(2, 32, 39, .08));
}

@media (max-width: 1500px) {
    .fc-zigzag__panel { padding: clamp(32px, 4vw, 70px) clamp(20px, 3.6vw, 54px); }
    .fc-zigzag__title { margin-bottom: clamp(40px, 8vw, 129px); font-size: clamp(28px, 3vw, 45px); }
    .fc-zigzag__row { gap: clamp(24px, 4vw, 60px); }
    .fc-zigzag__row + .fc-zigzag__row { margin-top: clamp(32px, 4.6vw, 70px); }
    .fc-zigzag__media { flex: 0 1 650px; }
    .fc-zigzag__name { font-size: clamp(22px, 2.3vw, 34px); }
    .fc-zigzag__desc { font-size: clamp(16px, 1.5vw, 22px); }

    .fc-zigzag__media img,
    .fc-zigzag__media-stub { height: clamp(240px, 26vw, 400px); }
}

@media (max-width: 860px) {
        .fc-zigzag__panel { padding: 28px 20px; border-radius: 14px; }
    .fc-zigzag__title { margin-bottom: 28px; font-size: 26px; }

    /* в колонке flex-basis стал бы ВЫСОТОЙ (650px) — сбрасываем на auto */
    .fc-zigzag__row,
    .fc-zigzag__row--reverse { flex-direction: column; align-items: stretch; gap: 16px; }

    .fc-zigzag__row + .fc-zigzag__row { margin-top: 32px; }
    .fc-zigzag__text { flex: 0 0 auto; order: 2; }
    .fc-zigzag__media { flex: 0 0 auto; order: 1; }
    .fc-zigzag__name { font-size: 22px; }
    .fc-zigzag__desc { margin-top: 12px; font-size: 16px; }

    .fc-zigzag__media img,
    .fc-zigzag__media-stub { height: auto; aspect-ratio: 650 / 400; }
}

@media (max-width: 520px) {
    .fc-zigzag__panel { padding: 22px 16px; }
    .fc-zigzag__title { margin-bottom: 22px; font-size: 23px; }
    .fc-zigzag__row + .fc-zigzag__row { margin-top: 26px; }
    .fc-zigzag__name { font-size: 20px; }
    .fc-zigzag__desc { margin-top: 10px; font-size: 15px; }

    .fc-zigzag__media img,
    .fc-zigzag__media-stub { aspect-ratio: 4 / 3; border-radius: 10px; }
}

/* ==========================================================================
   Карточки с тегами (tagcards) — фото с тегами + подпись на оливковом футере
   Размеры и отступы 1:1 с макетом (design-preview, блок 7).
   ========================================================================== */

.fc-tagcards {
    padding: 140px 0;
    background: var(--fc-text);
}

.fc-tagcards__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-tagcards__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 1.4;
    color: #fff;
}

.fc-tagcards__subtitle {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.25;
    color: #fff;
}

.fc-tagcards__grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fc-tagcards__card {
    position: relative;
}

.fc-tagcards__media {
    position: relative;
    z-index: 1;
}

.fc-tagcards__media img,
.fc-tagcards__media-stub {
    display: block;
    width: 100%;
    aspect-ratio: 740 / 484;
    object-fit: cover;
    border-radius: 14px;
}

.fc-tagcards__media-stub {
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
}

.fc-tagcards__tags {
    position: absolute;
    left: 34px;
    top: 28px;
    right: 34px;
    z-index: 2;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fc-tagcards__tag {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--fc-text);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.fc-tagcards__footer {
    position: relative;
    z-index: 0;
    margin-top: -42px;
    padding: 72px 34px 34px;
    border-radius: 14px;
    background: var(--fc-secondary);
}

.fc-tagcards__name {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.29;
    color: #fff;
}

@media (max-width: 1500px) {
    .fc-tagcards { padding: clamp(56px, 7vw, 140px) 0; }
    .fc-tagcards__title { font-size: clamp(28px, 3vw, 45px); }
    .fc-tagcards__grid { margin-top: clamp(36px, 5vw, 80px); gap: 20px; }

    .fc-tagcards__footer {
        min-height: 0;
        padding: clamp(52px, 5vw, 72px) clamp(20px, 2.3vw, 34px) clamp(20px, 2.3vw, 34px);
    }

    .fc-tagcards__name { font-size: clamp(20px, 2.3vw, 34px); }

    .fc-tagcards__tags {
        left: clamp(14px, 2.3vw, 34px);
        top: clamp(14px, 1.9vw, 28px);
        right: clamp(14px, 2.3vw, 34px);
        gap: 8px;
    }
}

@media (max-width: 860px) {
    .fc-tagcards { padding: 40px 0; }
    .fc-tagcards__title { font-size: 26px; }
    .fc-tagcards__grid { grid-template-columns: 1fr; gap: 16px; }
    .fc-tagcards__tag { height: 28px; padding: 0 8px; font-size: 12px; }
    .fc-tagcards__footer { margin-top: -24px; padding: 38px 18px 20px; }
    .fc-tagcards__name { font-size: 20px; }
}

.fc-style-cards .flexible-content-repeat-head {
    margin-bottom: 30px;
}

.flexible-content-block .vk-hero.fc-init {
    padding: 100px 0;
}

/* ==========================================================================
   Ранчо: «Как воспользоваться сертификатом» — 4 шага на тёмном (home_dsteps)
   Контент фиксированный (1:1 с макетом, блок 6), настраиваются только отступы.
   ========================================================================== */

.ranch-dsteps {
    padding: 140px 0;
    background: #022027;
}

.ranch-dsteps__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.ranch-dsteps__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 1.4;
    color: #fff;
}

.ranch-dsteps__grid {
    margin-top: 132px;
    display: grid;
    grid-template-columns: 283fr 283fr 283fr 588fr;
    gap: 22px;
}

.ranch-dsteps__card {
    position: relative;
    min-height: 264px;
    padding: 0 29px;
    border-radius: 14px;
    color: #ebf4d1;
}

.ranch-dsteps__card--1 { background: #0a3a45; }
.ranch-dsteps__card--2 { background: #0c4a58; }
.ranch-dsteps__card--3 { background: #1f5b69; }

.ranch-dsteps__card--wide {
    background: #022027;
    border: 1.5px solid #ebf4d1;
}

.ranch-dsteps__num {
    margin: 0;
    padding-right: 70px;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 400;
    font-size: 72px;
    line-height: 1.3;
}

.ranch-dsteps__name {
    margin: 16px 0 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
}

.ranch-dsteps__note {
    margin: 40px 0 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.25;
}

.ranch-dsteps__arrow {
    position: absolute;
    top: 26px;
    right: 33px;
    width: 52px;
    height: 44px;
}

.ranch-dsteps__arrow path {
    stroke: #ebf4d1;
    stroke-width: 1.5;
    fill: none;
}

.ranch-dsteps__icon {
    position: absolute;
    top: 14px;
    right: 21px;
    width: 63px;
    height: 63px;
}

@media (max-width: 1500px) {
    .ranch-dsteps { padding: clamp(56px, 7vw, 140px) 0; }
    .ranch-dsteps__title { font-size: clamp(28px, 3vw, 45px); }
    .ranch-dsteps__grid { margin-top: clamp(40px, 8vw, 132px); gap: 18px; }
    .ranch-dsteps__num { font-size: clamp(48px, 4.8vw, 72px); }
    .ranch-dsteps__name { font-size: clamp(18px, 1.6vw, 24px); }
    .ranch-dsteps__note { margin-top: clamp(16px, 2.6vw, 40px); }
    .ranch-dsteps__icon { width: clamp(40px, 4vw, 63px); height: clamp(40px, 4vw, 63px); }
}

@media (max-width: 1100px) {
    .ranch-dsteps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ranch-dsteps__card--wide { grid-column: span 2; }
}

@media (max-width: 680px) {
    .flexible-content-block .vk-hero.fc-init {
        padding: 50px 0;
    }
    .ranch-dsteps { padding: 40px 0; }
    .ranch-dsteps__title { font-size: 26px; }
    .ranch-dsteps__grid { grid-template-columns: 1fr; gap: 14px; }
    .ranch-dsteps__card { min-height: 0; padding: 20px 20px 24px; }
    .ranch-dsteps__card--wide { grid-column: auto; }
    .ranch-dsteps__num { padding-right: 50px; font-size: 44px; line-height: 1.1; }
    .ranch-dsteps__name { margin-top: 10px; font-size: 19px; }
    .ranch-dsteps__note { margin-top: 12px; }
    .ranch-dsteps__arrow { top: 18px; right: 18px; width: 38px; height: 32px; }
    .ranch-dsteps__icon { top: 16px; right: 16px; width: 40px; height: 40px; }
}

/* ==========================================================================
   Ряды: текст и изображение (media_rows). Размеры 1:1 с макетом (блок 8).
   Второе фото проявляется при наведении на ряд, если оно загружено.
   ========================================================================== */

.fc-media-rows {
    padding: 140px 0;
    background: #ECE9E4;
}

.fc-media-rows__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-media-rows__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 440px;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.fc-media-rows__row + .fc-media-rows__row {
    margin-top: 70px;
}

.fc-media-rows__text {
    flex: 0 1 650px;
    min-width: 0;
    padding: 0 20px 0 54px;
}

.fc-media-rows__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 45px;
    line-height: 1.31;
    color: var(--fc-text);
}

.fc-media-rows__content {
    margin: 40px 0 0;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--fc-text);
}

.fc-media-rows__content ul,
.fc-media-rows__content ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fc-media-rows__content li + li {
    margin-top: 8px;
}

.fc-media-rows__media {
    position: relative;
    flex: 0 0 740px;
    align-self: stretch;
    overflow: hidden;
    border-radius: 0 18px 18px 0;
}

.fc-media-rows__media img,
.fc-media-rows__media-stub {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    transition: opacity .45s ease, transform .6s ease;
}

.fc-media-rows__media-stub {
    background: linear-gradient(135deg, var(--fc-surface), rgba(2, 32, 39, .08));
}

/* вторая картинка лежит поверх первой и проявляется при наведении на ряд */
.fc-media-rows__img--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

@media (hover: hover) {
    .fc-media-rows__row:hover .fc-media-rows__img--hover {
        opacity: 1;
    }

    .fc-media-rows__row:hover .fc-media-rows__media img {
        transform: scale(1.04);
    }
}

@media (max-width: 1500px) {
    .fc-media-rows { padding: clamp(56px, 7vw, 140px) 0 !important; }
    .fc-media-rows__row { min-height: 0; }
    .fc-media-rows__row + .fc-media-rows__row { margin-top: clamp(24px, 4.6vw, 70px); }
    .fc-media-rows__text { padding-left: clamp(20px, 3.6vw, 54px); }
    .fc-media-rows__title { font-size: clamp(26px, 3vw, 45px); }
    .fc-media-rows__content { margin-top: clamp(16px, 2.6vw, 40px); font-size: clamp(16px, 1.5vw, 22px); }
    .fc-media-rows__media { flex: 0 1 740px; }

    .fc-media-rows__media img,
    .fc-media-rows__media-stub { min-height: clamp(260px, 29vw, 440px); }
}

@media (max-width: 860px) {
    .fc-media-rows { padding: 32px 0 !important; }
    .fc-media-rows__row { flex-direction: column; align-items: stretch; border-radius: 14px; }
    .fc-media-rows__row + .fc-media-rows__row { margin-top: 20px; }
    /* в колонке flex-basis стал бы ВЫСОТОЙ (740px) — сбрасываем на auto */
    .fc-media-rows__text { flex: 0 0 auto; order: 2; padding: 22px 20px 24px; }
    .fc-media-rows__title { font-size: 24px; }
    .fc-media-rows__content { margin-top: 14px; font-size: 16px; }
    .fc-media-rows__media { flex: 0 0 auto; order: 1; border-radius: 14px 14px 0 0; }

    .fc-media-rows__media img,
    .fc-media-rows__media-stub { min-height: 0; height: auto; aspect-ratio: 740 / 440; }
}

@media (max-width: 520px) {
    .fc-media-rows__row + .fc-media-rows__row { margin-top: 16px; }
    .fc-media-rows__text { padding: 18px 16px 20px; }
    .fc-media-rows__title { font-size: 21px; }
    .fc-media-rows__content { margin-top: 12px; font-size: 15px; }

    .fc-media-rows__media img,
    .fc-media-rows__media-stub { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Карточки предложений (offer_cards). Размеры 1:1 с макетом (блок 9).
   Фото + приподнятая панель, лейбл на фото, цена и две кнопки.
   ========================================================================== */


.fc-offer-cards__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-offer-cards__title {
    margin: 0 0 75px;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 1.4;
    color: var(--fc-text);
}

.fc-offer-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fc-offer-cards__card {
    display: flex;
    flex-direction: column;
}

.fc-offer-cards__media {
    position: relative;
    z-index: 1;
}

.fc-offer-cards__media img,
.fc-offer-cards__media-stub {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.fc-offer-cards__media-stub {
    background: linear-gradient(135deg, var(--fc-surface), rgba(2, 32, 39, .08));
}

.fc-offer-cards__badge {
    position: absolute;
    left: 21px;
    top: 24px;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--fc-text);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.fc-offer-cards__panel {
    position: relative;
    z-index: 0;
    flex: 1 1 auto;
    margin-top: -38px;
    min-height: 315px;
    padding: 69px 27px 28px 21px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f5f5f5;
    border-radius: 14px;
    background: var(--fc-panel);
}

.fc-offer-cards__name {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: var(--fc-text);
}

.fc-offer-cards__desc {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.4;
    color: #022027;
    font-weight: 300;
}

.fc-offer-cards__desc p {
    margin: 0 0 8px;
}

.fc-offer-cards__desc p:last-child {
    margin-bottom: 0;
}

.fc-offer-cards__desc ul,
.fc-offer-cards__desc ol {
    margin: 8px 0 0;
    padding-left: 18px;
}

.fc-offer-cards__media-icon {
    position: absolute;
    top: 23px;
    right: 20px;
}

.fc-offer-cards__card:hover .fc-offer-cards__media-icon rect {
    fill-opacity: 1;
}

.fc-offer-cards__price {
    margin: 20px 0 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--fc-secondary);
}

.fc-offer-cards__actions {
    margin-top: auto;
    padding-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
}

.fc-offer-cards__btn {
    flex: 1 1 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s;
}

.fc-offer-cards__btn:hover {
    opacity: .85;
}

.fc-offer-cards__btn--buy {
    border: 0;
    background: var(--fc-secondary);
    color: #fff;
    font-family: inherit;
}

.fc-offer-cards__btn--more {
    border: 1px solid var(--fc-text);
    color: var(--fc-text);
    background: transparent;
}

.fc-offer-cards__btn--more svg {
    width: 11px;
    height: 9px;
    fill: none;
    stroke: var(--fc-text);
    stroke-width: 1.5;
}

@media (max-width: 1500px) {
    .fc-offer-cards__title { margin-bottom: clamp(32px, 5vw, 75px); font-size: clamp(28px, 3vw, 45px); }
    .fc-offer-cards__grid { gap: 20px; }
    .fc-offer-cards__panel {
        min-height: 0;
        padding: clamp(46px, 4.6vw, 69px) clamp(16px, 1.8vw, 27px) clamp(18px, 1.9vw, 28px) clamp(16px, 1.4vw, 21px);
    }
    .fc-offer-cards__name { font-size: clamp(19px, 1.6vw, 24px); }
    .fc-offer-cards__desc { font-size: clamp(14px, 1.1vw, 16px); }
    .fc-offer-cards__price { font-size: clamp(18px, 1.5vw, 22px); }
    .fc-offer-cards__actions { padding-top: clamp(20px, 3.3vw, 50px); gap: 12px; }
}

@media (max-width: 900px) {
    .fc-offer-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
        .fc-offer-cards__title { font-size: 26px; }
    .fc-offer-cards__grid { grid-template-columns: 1fr; gap: 16px; }
    .fc-offer-cards__panel { margin-top: -24px; padding: 34px 16px 18px; }
    .fc-offer-cards__badge { left: 14px; top: 14px; height: 28px; font-size: 12px; }
}

/* ==========================================================================
   Фото-карточки (photo_cards). Размеры 1:1 с макетом (блок 11).
   Заголовок, подзаголовок и сетка «изображение + подпись».
   ========================================================================== */

.fc-photo-cards {
    padding: 140px 0;
    background: var(--fc-secondary);
}

.fc-photo-cards__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-photo-cards__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 1.4;
    color: #fff;
}

.fc-photo-cards__subtitle {
    margin: 10px 0 0;
    max-width: 740px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.25;
    color: #fff;
}

.fc-photo-cards__grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.fc-photo-cards__img {
    display: block;
    width: 100%;
    aspect-ratio: 485 / 264;
    object-fit: cover;
    border-radius: 14px;
}

.fc-photo-cards__img--stub {
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
}

.fc-photo-cards__caption {
    margin: 16px 0 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.29;
    color: #fff;
}

@media (max-width: 1500px) {
    .fc-photo-cards { padding: clamp(56px, 7vw, 140px) 0; }
    .fc-photo-cards__title { font-size: clamp(28px, 3vw, 45px); }
    .fc-photo-cards__grid { margin-top: clamp(28px, 3.3vw, 50px); gap: 20px; }
    .fc-photo-cards__caption { font-size: clamp(18px, 1.6vw, 24px); }
}

@media (max-width: 860px) {
    .fc-photo-cards { padding: 40px 0; }
    .fc-photo-cards__title { font-size: 26px; }
    .fc-photo-cards__grid { grid-template-columns: 1fr; gap: 18px; }
    .fc-photo-cards__caption { margin-top: 12px; font-size: 20px; }
}

/* ==========================================================================
   Тарифные карточки (pricing). Размеры 1:1 с макетом (блок 12).
   Фото, название, список пунктов (галочка/плюс) и стоимость.
   ========================================================================== */

.fc-pricing {
    padding: 140px 0;
    background: var(--fc-secondary);
}

.fc-pricing__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-pricing__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 45px;
    line-height: 1.2;
    color: #fff;
}

.fc-pricing__subtitle {
    margin: 20px 0 0;
    max-width: 740px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.25;
    color: #fff;
}

.fc-pricing__grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fc-pricing__card {
    display: flex;
    flex-direction: column;
}

.fc-pricing__img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 485 / 256;
    object-fit: cover;
    border-radius: 14px;
}

.fc-pricing__img--stub {
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
}

.fc-pricing__panel {
    position: relative;
    z-index: 0;
    flex: 1 1 auto;
    margin-top: -42px;
    min-height: 513px;
    padding: 69px 29px 32px;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #fff;
}

.fc-pricing__name {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: var(--fc-text);
}

.fc-pricing__list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.fc-pricing__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fc-pricing__item + .fc-pricing__item {
    margin-top: 23px;
}

.fc-pricing__ico {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: -3px;
}

.fc-pricing__label {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--fc-text);
}

.fc-pricing__value {
    margin: auto 0 0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: #000;
}

.fc-pricing__amount {
    display: block;
}

.fc-pricing__period {
    display: block;
    margin-top: 1px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--fc-text);
}

@media (max-width: 1500px) {
    .fc-pricing { padding: clamp(56px, 7vw, 140px) 0; }
    .fc-pricing__title { font-size: clamp(28px, 3vw, 45px); }
    .fc-pricing__grid { margin-top: clamp(28px, 3.3vw, 50px); gap: 20px; }
    .fc-pricing__panel { min-height: 0; padding: clamp(46px, 4.6vw, 69px) clamp(18px, 1.9vw, 29px) clamp(20px, 2.1vw, 32px); }
    .fc-pricing__name { font-size: clamp(19px, 1.6vw, 24px); }
    .fc-pricing__item + .fc-pricing__item { margin-top: clamp(14px, 1.5vw, 23px); }
    .fc-pricing__value { font-size: clamp(18px, 1.5vw, 22px); }
}

@media (max-width: 900px) {
    .fc-pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .fc-pricing { padding: 40px 0; }
    .fc-pricing__title { font-size: 26px; }
    .fc-pricing__grid { grid-template-columns: 1fr; gap: 16px; }
    .fc-pricing__panel { margin-top: -24px; padding: 34px 18px 20px; }
    .fc-pricing__value { margin-top: 24px; }
}

/* ==========================================================================
   Ранчо: «Условия содержания» — чек-лист с иконками (home_checklist).
   Контент фиксированный (1:1 с макетом, блок 10), настройка только отступов.
   ========================================================================== */

.ranch-checklist {
    padding: 140px 0;
    background: #616a3f;
}

.ranch-checklist__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.ranch-checklist__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 45px;
    line-height: 1.31;
    color: #fff;
}

.ranch-checklist__subtitle {
    margin: 20px 0 0;
    max-width: 740px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    color: #fff;
}

.ranch-checklist__grid {
    margin-top: 51px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 50px;
    row-gap: 50px;
}

.ranch-checklist__icon {
    display: block;
    width: 90px;
    height: 90px;
}

.ranch-checklist__icon path {
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ranch-checklist__caption {
    margin: 25px 0 0;
    min-height: 62px;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.29;
    color: #fff;
}

@media (max-width: 1500px) {
    .ranch-checklist { padding: clamp(56px, 7vw, 140px) 0; }
    .ranch-checklist__title { font-size: clamp(28px, 3vw, 45px); }
    .ranch-checklist__grid { margin-top: clamp(32px, 3.4vw, 51px); column-gap: clamp(20px, 3.3vw, 50px); row-gap: clamp(32px, 4.1vw, 62px); }
    .ranch-checklist__icon { width: clamp(56px, 6vw, 90px); height: clamp(56px, 6vw, 90px); }
    .ranch-checklist__caption { margin-top: clamp(14px, 1.7vw, 25px); font-size: clamp(18px, 1.6vw, 24px); }
}

@media (max-width: 760px) {
    .ranch-checklist { padding: 40px 0; }
    .ranch-checklist__title { font-size: 26px; }
    .ranch-checklist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 28px; }
    .ranch-checklist__icon { width: 52px; height: 52px; }
    .ranch-checklist__caption { margin-top: 12px; min-height: 0; font-size: 18px; }
}

@media (max-width: 440px) {
    .ranch-checklist__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Лайтбокс фотогалереи (photo_gallery) — открывает iframe-видео по клику.
   Самодостаточный (без сторонних библиотек), стили не зависят от темы.
   ========================================================================== */

.fc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fc-lightbox--open {
    display: flex;
}

.fc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 32, 39, .82);
}

.fc-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(960px, 92vw);
    /* 100% — это высота .fc-lightbox за вычетом её padding, поэтому окно
       всегда влезает в экран, а длинное содержимое прокручивается внутри. */
    max-height: 100%;
    min-height: 0;
}

/*
 * Кнопка закрытия прибита к углу экрана, а не к окну: окно теперь может
 * занимать всю высоту и прокручиваться, и кнопка над ним уезжала бы за экран.
 */
.fc-lightbox__close {
    position: fixed;
    z-index: 2;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.fc-lightbox__close:hover {
    background: rgba(255, 255, 255, .3);
}

.fc-lightbox__body {
    border-radius: 14px;
    /* Высокий лист прайса не помещается в экран — прокручиваем его здесь,
       а не страницу под лайтбоксом. */
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    background: #000;
}

.fc-lightbox__body img {
    display: block;
    width: 100%;
    height: auto;
}

.fc-lightbox__body iframe,
.fc-lightbox__body video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 85vh;
    border: 0;
}

/* ==========================================================================
   Коллаж двух изображений в блоке «Блок с формой и изображениями»
   (corporate_contact). Одно изображение — как в теме; два — со смещением.
   ========================================================================== */

.fc-corp-collage {
    position: relative;
}

.fc-corp-collage__img {
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

.fc-corp-collage--pair {
    padding-bottom: 22%;
}

.fc-corp-collage--pair .fc-corp-collage__img--1 {
    width: 70%;
    aspect-ratio: 16 / 11;
    margin-top: 0;
}

.fc-corp-collage--pair .fc-corp-collage__img--2 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58%;
    aspect-ratio: 16 / 11;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.fc-banner__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.flexible-content-block-text-repeat {
    width: min(1504px, 100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

.flexible-content-block .photo-gallery {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.flexible-content-block .vk-hero__container {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

@media (max-width: 767px) {
    .fc-corp-collage--pair {
        padding-bottom: 26%;
    }
}

/* ==========================================================================
   Карточки услуг (service_cards) — фото + название + описание + цена + кнопка
   1:1 c макетом (Figma 436:64).
   ========================================================================== */

.fc-service-cards__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-service-cards__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 1.4;
    color: #022027;
}

.fc-service-cards__grid {
    margin-top: 75px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fc-service-cards__card {
    display: flex;
    flex-direction: column;
    min-height: 558px;
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .05);
    overflow: hidden;
}

.fc-service-cards__media img,
.fc-service-cards__media-stub {
    display: block;
    width: 100%;
    aspect-ratio: 485 / 264;
    object-fit: cover;
}

.fc-service-cards__media-stub {
    background: linear-gradient(135deg, #eef0ea, rgba(2, 32, 39, .08));
}

.fc-service-cards__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 27px 24px 21px;
}

.fc-service-cards__name {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: #022027;
}

.fc-service-cards__desc {
    margin: 10px 0 0;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.3;
    color: #022027;
}

.fc-service-cards__foot {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.fc-service-cards__price {
    margin: 0;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    color: #022027;
    white-space: nowrap;
}

.fc-service-cards__dur {
    margin: 1px 0 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #525252;
}

.fc-service-cards__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: none;
    min-width: 180px;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    background: #616a3f;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: opacity .2s ease;
}

.fc-service-cards__btn:hover {
    opacity: .9;
    color: #fff;
}

.fc-service-cards__btn svg {
    width: 12px;
    height: 10px;
    flex: none;
}

/* Кнопка в карточках скрыта тумблером — цена остаётся единственным элементом подвала. */
.fc-service-cards--no-btn .fc-service-cards__foot {
    justify-content: flex-start;
}

/*
 * Вариант «4 карточки в ряд». Правила заданы только для широких экранов:
 * ниже 1200px работает общая адаптивная сетка блока (3 → 2 → 1), и это
 * важно — медиазапросы не повышают специфичность, поэтому незакрытое
 * `.fc-service-cards--cols-4 .fc-service-cards__grid` перебило бы их.
 */
@media (min-width: 1201px) {
    .fc-service-cards--cols-4 .fc-service-cards__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .fc-service-cards--cols-4 .fc-service-cards__card { min-height: 0; }
    .fc-service-cards--cols-4 .fc-service-cards__body { padding: 26px 20px 22px; }
    .fc-service-cards--cols-4 .fc-service-cards__name { font-size: 21px; }
    .fc-service-cards--cols-4 .fc-service-cards__price { font-size: 20px; }
    .fc-service-cards--cols-4 .fc-service-cards__foot { gap: 12px; }

    .fc-service-cards--cols-4 .fc-service-cards__btn {
        min-width: 0;
        padding: 0 16px;
    }
}

@media (max-width: 1200px) {
    .fc-service-cards__title { font-size: clamp(28px, 3.4vw, 45px); }
    .fc-service-cards__grid { margin-top: clamp(32px, 5vw, 75px); gap: 20px; }
    .fc-service-cards__card { min-height: 0; }
}

@media (max-width: 820px) {
    .fc-service-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .fc-service-cards__title { font-size: 26px; }
    .fc-service-cards__grid { grid-template-columns: 1fr; gap: 16px; max-width: 420px; }
    .fc-service-cards__body { padding: 22px 20px; }
    .fc-service-cards__name { font-size: 21px; }
    .fc-service-cards__foot { padding-top: 20px; flex-wrap: wrap; }
    .fc-service-cards__btn { width: 100%; }
}

/* ==========================================================================
   Карточки со сплит-панелью (panel_cards) — фото + цветная панель (тёмная/оливковая)
   1:1 c макетом (Figma 436:150).
   ========================================================================== */


.fc-panel-cards__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-panel-cards__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 45px;
    line-height: 1.2;
    color: #022027;
}

.fc-panel-cards__subtitle {
    margin: 19px 0 0;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.3;
    color: #022027;
}

.fc-panel-cards__grid {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fc-panel-cards__card {
    display: flex;
    min-height: 320px;
    border: 1px solid #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, .05);
}

.fc-panel-cards__card--dark { background: #022027; --cc-text: #fff; }
.fc-panel-cards__card--olive { background: #616a3f; --cc-text: #f5f5f5; }

/* абсолютное фото — карточка фикс. высоты 320px, портретное фото её не распирает */
.fc-panel-cards__media {
    flex: 0 0 262px;
    position: relative;
}

.fc-panel-cards__media img,
.fc-panel-cards__media-stub {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.fc-panel-cards__media-stub {
    background: linear-gradient(135deg, #eef0ea, rgba(2, 32, 39, .12));
}

.fc-panel-cards__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 24px 29px 21px;
    color: var(--cc-text);
}

.fc-panel-cards__name {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: var(--cc-text);
}

.fc-panel-cards__price {
    margin: 24px 0 0;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.3;
    color: var(--cc-text);
}

.fc-panel-cards__link {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 16px;
    color: var(--cc-text);
    text-decoration: none;
}

.fc-panel-cards__link svg {
    width: 11px;
    height: 9px;
    flex: none;
}

@media (max-width: 1100px) {
        .fc-panel-cards__title { font-size: clamp(28px, 3.4vw, 45px); }
    .fc-panel-cards__grid { margin-top: clamp(32px, 5vw, 70px); gap: 20px; }
}

@media (max-width: 1000px) {
    .fc-panel-cards__grid { grid-template-columns: 1fr; max-width: 740px; }
}

@media (max-width: 560px) {
        .fc-panel-cards__title { font-size: 26px; }
    .fc-panel-cards__card { flex-direction: column; min-height: 0; }
    .fc-panel-cards__media { flex: 0 0 auto; position: static; }
    .fc-panel-cards__media img,
    .fc-panel-cards__media-stub { position: static; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; }
    .fc-panel-cards__body { padding: 20px 20px 22px; }
    .fc-panel-cards__name { font-size: 21px; }
    .fc-panel-cards__price { margin-top: 14px; }
    .fc-panel-cards__link { margin-top: 22px; }
}

/* ==========================================================================
   Фото-баннер + пункты (hero_features) — широкое фото + заголовок + колонки печатей
   1:1 c макетом (Figma 436:133). Зона иконки фикс. высоты — тексты по одной линии.
   ========================================================================== */

.fc-hero-features__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

/* заголовок первым, фото под ним */
.fc-hero-features__hero {
    margin-top: 40px;
    aspect-ratio: 1504 / 500;
    border-radius: 12px;
    overflow: hidden;
}

.fc-hero-features__hero img,
.fc-hero-features__hero-stub {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-hero-features__hero-stub {
    background: linear-gradient(135deg, #eef0ea, rgba(2, 32, 39, .1));
}

.fc-hero-features__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 1.4;
    color: #022027;
}

.fc-hero-features__grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.fc-hero-features__item {
    display: flex;
    flex-direction: column;
}

.fc-hero-features__ico img {
    width: 100px;
    height: 100px;
    position: relative;
    left: -23px;
}

.fc-hero-features__text {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: #022027;
}

@media (max-width: 1100px) {
    .fc-hero-features__title { font-size: clamp(28px, 3.4vw, 45px); }
    .fc-hero-features__hero { margin-top: clamp(24px, 3vw, 40px); }
    .fc-hero-features__grid { margin-top: clamp(28px, 4vw, 50px); gap: 20px; }
    .fc-hero-features__ico img { width: clamp(48px, 5vw, 60px); height: clamp(48px, 5vw, 60px); }
    .fc-hero-features__text { font-size: clamp(18px, 2.1vw, 24px); }
}

@media (max-width: 900px) {
    .fc-hero-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
    .fc-hero-features__ico { margin-bottom: 16px; }
    .fc-hero-features__hero { aspect-ratio: 16 / 9; }
}

@media (max-width: 520px) {
    .fc-hero-features__title { font-size: 24px; }
    .fc-hero-features__grid { grid-template-columns: 1fr; gap: 22px; }
    .fc-hero-features__hero { aspect-ratio: 4 / 3; }
    .fc-hero-features__ico img { width: 52px; height: 52px; }
    .fc-hero-features__text { font-size: 20px; }
}

/* ==========================================================================
   Текст и фото на панели (info_panel) — бежевая панель: текст слева, фото справа
   1:1 c макетом (Figma 436:182).
   ========================================================================== */


.fc-info-panel__box {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding: 45px 60px 37px 54px;
    border-radius: 18px;
    background: #ece9e4;
}

.fc-info-panel__text {
    flex: 0 1 624px;
    padding-top: 38px;
}

.fc-info-panel__title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 45px;
    line-height: 1.1;
    color: #022027;
}

.fc-info-panel__desc {
    margin: 41px 0 0;
}

.fc-info-panel__desc p {
    margin: 0 0 10px;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.2;
    color: #022027;
}

.fc-info-panel__desc p:last-child {
    margin-bottom: 0;
}

.fc-info-panel__media {
    flex: 0 0 650px;
}

.fc-info-panel__media img,
.fc-info-panel__media-stub {
    display: block;
    width: 100%;
    aspect-ratio: 650 / 495;
    object-fit: cover;
    border-radius: 12px;
}

.fc-info-panel__media-stub {
    background: linear-gradient(135deg, #fff, rgba(2, 32, 39, .08));
}

@media (max-width: 1300px) {
        .fc-info-panel__box { gap: clamp(28px, 3.6vw, 60px);
        padding: clamp(28px, 3.6vw, 45px) clamp(24px, 4vw, 60px) clamp(24px, 3vw, 37px) clamp(24px, 3.6vw, 54px); }
    .fc-info-panel__text { flex: 0 1 560px; padding-top: clamp(0px, 2.5vw, 38px); }
    .fc-info-panel__title { font-size: clamp(28px, 3.4vw, 45px); }
    .fc-info-panel__desc { margin-top: clamp(20px, 3vw, 41px); }
    .fc-info-panel__desc p { font-size: clamp(16px, 1.7vw, 22px); }
    .fc-info-panel__media { flex: 0 1 650px; }
}

@media (max-width: 860px) {
    .fc-info-panel__box { flex-direction: column; align-items: stretch; gap: 24px; border-radius: 14px; }
    .fc-info-panel__text { flex: 0 0 auto; order: 2; padding-top: 0; }
    .fc-info-panel__media { flex: 0 0 auto; order: 1; }
    .fc-info-panel__media img,
    .fc-info-panel__media-stub { aspect-ratio: 650 / 440; }
}

@media (max-width: 520px) {
        .fc-info-panel__box { padding: 20px 16px 24px; }
    .fc-info-panel__title { font-size: 26px; }
    .fc-info-panel__desc { margin-top: 16px; }
    .fc-info-panel__desc p { font-size: 16px; }
    .fc-info-panel__media img,
    .fc-info-panel__media-stub { aspect-ratio: 4 / 3; border-radius: 10px; }
}

/* ==========================================================================
   Фотогалерея — стиль «с подписью» (настройка «Вид карточки» = «Фото + подпись»):
   под фото/видео карточки выводятся заголовок и краткое описание.
   ========================================================================== */

.photo-gallery--caption .photo-gallery__caption {
    padding: 16px 0 0;
}

/* В теме слайд имеет height: 414px + overflow: hidden, а фото занимает 100%
   этой высоты. В режиме с подписью снимаем ограничение со всей карточки и
   переносим пропорции на медиаблок — иначе текст рендерится, но обрезается. */
.photo-gallery--caption .photo-gallery__grid {
    align-items: flex-start;
}

.photo-gallery--caption .photo-gallery__column--large,
.photo-gallery--caption .photo-gallery__column--small {
    height: auto;
    overflow: visible;
    border-radius: 0;
}

.photo-gallery--caption .photo-gallery__column--large > .photo-gallery__card-link,
.photo-gallery--caption .photo-gallery__column--large > .photo-gallery__image-wrapper {
    height: auto;
    aspect-ratio: 263 / 207;
}

.photo-gallery--caption .photo-gallery__column--small > .photo-gallery__card-link,
.photo-gallery--caption .photo-gallery__column--small > .photo-gallery__image-wrapper {
    height: auto;
    aspect-ratio: 46 / 49;
}

.photo-gallery--caption .photo-gallery__image,
.photo-gallery--caption .photo-gallery__background-image {
    display: block;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
}

.photo-gallery--caption .photo-gallery__overlay-container {
    height: 100%;
    min-height: 0;
}

.photo-gallery--caption .photo-gallery__card-title {
    margin: 0;
    font-family: 'IBMPlexSerif', Georgia, serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: #022027;
}

.photo-gallery--caption .photo-gallery__card-text {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.35;
    color: #022027;
}

.photo-gallery--caption .photo-gallery__card-text > :first-child {
    margin-top: 0;
}

.photo-gallery--caption .photo-gallery__card-text > :last-child {
    margin-bottom: 0;
}

.photo-gallery {
    max-width: 1488px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-contact {
    width: 100%;
    max-width: 1488px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .photo-gallery--caption .photo-gallery__column--large > .photo-gallery__card-link,
    .photo-gallery--caption .photo-gallery__column--large > .photo-gallery__image-wrapper,
    .photo-gallery--caption .photo-gallery__column--small > .photo-gallery__card-link,
    .photo-gallery--caption .photo-gallery__column--small > .photo-gallery__image-wrapper {
        height: 256px;
        aspect-ratio: auto;
    }
}

/* Стабильный ID CTA-якоря. Координата берётся с идущего следом визуального блока,
   поэтому его штатный margin учитывается без изменения раскладки. */
.flexible-content > .fc-block-anchor {
    display: block;
    flex: 0 0 0;
    width: 100%;
    height: 0;
    min-height: 0;
    overflow: hidden;
    pointer-events: none;
    scroll-margin-top: 125px;
}

/*
 * Блокировка прокрутки под модальным окном.
 * Тема выставляет `html { overflow-x: hidden }`, а при непрозрачном overflow
 * у html значение с body вьюпорту уже не передаётся — поэтому скролл
 * отключается на самом html. Фиксация body добивает мобильный Safari,
 * где одного overflow: hidden недостаточно; смещение top и возврат позиции
 * берёт на себя frontend.js.
 */
html.fc-feedback-open {
    overflow: hidden !important;
}

body.fc-feedback-open {
    position: fixed;
    left: 0;
    right: 0;
    overflow: hidden;
    overscroll-behavior: contain;
}

.fc-feedback-modal[hidden] {
    display: none !important;
}

.fc-feedback-modal {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.fc-feedback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 32, 39, .72);
    opacity: 0;
    transition: opacity .22s ease;
}

.fc-feedback-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding: 42px 44px 36px;
    border-radius: 18px;
    background: #fff;
    color: #022027;
    box-shadow: 0 24px 70px rgba(2, 32, 39, .28);
    opacity: 0;
    transform: translateY(14px) scale(.985);
    transition: opacity .22s ease, transform .22s ease;
}

.fc-feedback-modal.fc-feedback-modal--open .fc-feedback-modal__backdrop,
.fc-feedback-modal.fc-feedback-modal--open .fc-feedback-modal__dialog {
    opacity: 1;
}

.fc-feedback-modal.fc-feedback-modal--open .fc-feedback-modal__dialog {
    transform: translateY(0) scale(1);
}

.fc-feedback-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(97, 106, 63, .35);
    border-radius: 50%;
    background: #fff;
    color: #616a3f;
    cursor: pointer;
}

.fc-feedback-modal__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.fc-feedback-modal__title {
    margin: 0 44px 10px 0;
    color: #022027;
    font: inherit;
    font-family: inherit;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.08;
}

.fc-feedback-modal__description {
    margin: 0 0 22px;
    color: #526267;
    font-size: 16px;
    line-height: 1.5;
}

.fc-feedback-modal__form {
    display: grid;
    gap: 14px;
}

.fc-feedback-modal__field {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #022027;
    font-size: 14px;
    font-weight: 600;
}

.fc-feedback-modal__field input {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1px solid #ccd2d0;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #022027;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.fc-feedback-modal__field input:focus {
    border-color: #616a3f;
    box-shadow: 0 0 0 3px rgba(97, 106, 63, .14);
}

.fc-feedback-modal__field.fc-field-error input {
    border-color: #a43c35;
}

.fc-feedback-modal__field-error {
    min-height: 0;
    color: #a43c35;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.fc-feedback-modal__field-error:empty {
    display: none;
}

.fc-feedback-modal__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.fc-feedback-modal__status {
    min-height: 0;
    font-size: 14px;
    line-height: 1.4;
}

.fc-feedback-modal__status:empty {
    display: none;
}

.fc-feedback-modal__status.fc-status-error {
    color: #a43c35;
}

.fc-feedback-modal__status.fc-status-success {
    padding: 10px 12px;
    border-radius: 7px;
    background: #eef4e8;
    color: #465125;
}

.fc-feedback-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 24px;
    border: 1px solid #616a3f;
    border-radius: 8px;
    background: #616a3f;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}

.fc-feedback-modal__submit:hover,
.fc-feedback-modal__submit:focus-visible {
    background: #505834;
}

.fc-feedback-modal__submit:disabled {
    cursor: wait;
    opacity: .7;
}

.fc-feedback-modal__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fc-feedback-spin .7s linear infinite;
}

.fc-feedback-modal__form.fc-form-loading .fc-feedback-modal__spinner {
    display: block;
}

/* Согласие на обработку данных — обязательный чекбокс перед отправкой. */
.fc-feedback-modal__consent-wrap {
    display: grid;
    gap: 6px;
}

.fc-feedback-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #788487;
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
}

.fc-feedback-modal__consent-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.fc-feedback-modal__consent-box {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    box-sizing: border-box;
    border: 1px solid #ccd2d0;
    border-radius: 4px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease;
}

.fc-feedback-modal__consent-box svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity .15s ease;
}

.fc-feedback-modal__consent-input:checked ~ .fc-feedback-modal__consent-box {
    border-color: #616a3f;
    background: #616a3f;
}

.fc-feedback-modal__consent-input:checked ~ .fc-feedback-modal__consent-box svg {
    opacity: 1;
}

.fc-feedback-modal__consent-input:focus-visible ~ .fc-feedback-modal__consent-box {
    border-color: #616a3f;
    box-shadow: 0 0 0 3px rgba(97, 106, 63, .18);
}

.fc-feedback-modal__consent-text a {
    color: inherit;
    text-decoration: underline;
}

.fc-feedback-modal__consent-text a:hover,
.fc-feedback-modal__consent-text a:focus-visible {
    color: #616a3f;
}

.fc-feedback-modal__consent-wrap.fc-field-error .fc-feedback-modal__consent-box {
    border-color: #a43c35;
}

/* Ошибка согласия — с предупреждающей иконкой, как в макете. */
.fc-feedback-modal__consent-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fc-feedback-modal__consent-error:empty {
    display: none;
}

.fc-feedback-modal__consent-error::before {
    content: "";
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a43c35' stroke-width='1.6'%3E%3Ccircle cx='10' cy='10' r='8.4'/%3E%3Cpath d='M10 5.6v5.2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.1' r='.95' fill='%23a43c35' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Экран успеха: показывается вместо формы в том же окне. */
.fc-feedback-modal--success .fc-feedback-modal__title,
.fc-feedback-modal--success .fc-feedback-modal__description,
.fc-feedback-modal--success .fc-feedback-modal__form {
    display: none;
}

.fc-feedback-modal__success {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 12px 0 4px;
    text-align: center;
    animation: fc-feedback-success-in .24s ease;
}

.fc-feedback-modal__success[hidden] {
    display: none !important;
}

.fc-feedback-modal__success-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #eef4e8;
}

.fc-feedback-modal__success-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: #616a3f;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fc-feedback-modal__success-icon svg circle {
    stroke-width: 2;
    opacity: .32;
}

.fc-feedback-modal__success-title {
    margin: 0;
    color: #022027;
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 600;
    line-height: 1.12;
}

.fc-feedback-modal__success-text {
    margin: 0;
    max-width: 380px;
    color: #526267;
    font-size: 16px;
    line-height: 1.5;
}

.fc-feedback-modal__success-text:empty {
    display: none;
}

.fc-feedback-modal__success-close {
    min-height: 48px;
    margin-top: 4px;
    padding: 12px 34px;
    border: 1px solid #616a3f;
    border-radius: 8px;
    background: #616a3f;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease;
}

.fc-feedback-modal__success-close:hover,
.fc-feedback-modal__success-close:focus-visible {
    background: #505834;
}

@keyframes fc-feedback-success-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes fc-feedback-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .fc-feedback-modal {
        align-items: end;
        padding: 12px;
    }

    .fc-feedback-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 36px 22px 24px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-feedback-modal__backdrop,
    .fc-feedback-modal__dialog {
        transition: none;
    }

    .fc-feedback-modal__success {
        animation: none;
    }
}

/* ==========================================================================
   Навигационные крошки (breadcrumbs) — обёртка вокруг штатного
   bitrix:breadcrumb/.default. Стандартная HTML-разметка получает оформление
   Salvador без отдельного шаблона компонента.
   ========================================================================== */

/*
 * У остальных блоков базовый margin-top — 120px, над крошками он не нужен.
 * Специфичность (0-2-0) намеренно ниже, чем у
 * `.flexible-content .flexible-content-block.fc-no-spacing` (0-3-0),
 * поэтому настройка «Внешний отступ = Нет» продолжает обнулять отступ.
 */
.flexible-content .fc-breadcrumbs {
    margin-top: 120px;
    color: var(--fc-muted);
}

.fc-breadcrumbs__inner {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
    padding: 11px 0;
}

.fc-breadcrumbs__inner .bx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: .01em;
}

.fc-breadcrumbs__inner .bx-breadcrumb > div:not(.bx-breadcrumb-item) {
    display: none;
}

.fc-breadcrumbs__inner .bx-breadcrumb-item {
    display: inline-flex;
    float: none;
    align-items: center;
    min-width: 0;
    min-height: 24px;
    margin: 0;
    padding: 0;
    color: var(--fc-muted);
    white-space: normal;
}

.fc-breadcrumbs__inner .bx-breadcrumb-item + .bx-breadcrumb-item::before {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin: 0 12px 0 10px;
    border-top: 1px solid rgba(97, 106, 63, .58);
    border-right: 1px solid rgba(97, 106, 63, .58);
    transform: rotate(45deg);
}

.fc-breadcrumbs__inner .bx-breadcrumb-item i {
    display: none;
}

.fc-breadcrumbs__inner .bx-breadcrumb-item a,
.fc-breadcrumbs__inner .bx-breadcrumb-item a span {
    color: var(--fc-secondary);
    border-bottom: 0;
    text-decoration: none;
    transition: color .18s ease;
}

.fc-breadcrumbs__inner .bx-breadcrumb-item a:hover,
.fc-breadcrumbs__inner .bx-breadcrumb-item a:hover span,
.fc-breadcrumbs__inner .bx-breadcrumb-item a:focus-visible,
.fc-breadcrumbs__inner .bx-breadcrumb-item a:focus-visible span {
    color: var(--fc-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.fc-breadcrumbs__inner .bx-breadcrumb-item > span {
    color: var(--fc-muted);
    overflow-wrap: anywhere;
}

.flexible-content .fc-breadcrumbs.fc-with-padding {
    padding-top: 28px;
    padding-bottom: 28px;
}

.flexible-content .fc-breadcrumbs.fc-padding-top {
    padding-top: 28px;
    padding-bottom: 0;
}

.flexible-content .fc-breadcrumbs.fc-padding-bottom {
    padding-top: 0;
    padding-bottom: 28px;
}

.fc-breadcrumbs__inner .bx-breadcrumb-item a, .fc-breadcrumbs__inner .bx-breadcrumb-item a span {
    text-transform: capitalize;
}

.fc-contacts__consent-text, .fc-contacts__consent-text p {
    font-size: 14px;
    line-height: 20px;
}


@media (max-width: 768px) {
    .fc-breadcrumbs__inner {
        padding: 8px 0;
    }

    .fc-breadcrumbs__inner .bx-breadcrumb {
        font-size: 12px;
    }

    .fc-contacts__inner {
        gap: 22px;
    }

    .fc-breadcrumbs__inner .bx-breadcrumb-item + .bx-breadcrumb-item::before {
        width: 5px;
        height: 5px;
        margin: 0 9px 0 7px;
    }

    .flexible-content .fc-breadcrumbs.fc-with-padding {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .flexible-content .fc-breadcrumbs.fc-padding-top {
        padding-top: 20px;
    }

    .flexible-content .fc-breadcrumbs.fc-padding-bottom {
        padding-bottom: 20px;
    }

    .flexible-content .fc-breadcrumbs {
        margin-top: 50px;
    }

    .fc-breadcrumbs__inner .bx-breadcrumb {
        flex-wrap: nowrap;
        width: max-content;
        padding-right: 20px;
    }
    .fc-breadcrumbs__inner {
        overflow-x: scroll;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   Заголовок страницы (page_title) — строка H1/H2 в обёртке темы `.main-title`.
   ========================================================================== */

.flexible-content .fc-page-title {
    margin-top: 40px;
}

.fc-page-title .main-title {
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
    display: block;
}

.fc-page-title__text {
    margin: 0 0 50px;
    color: #616a3f;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 500;
    line-height: 1.1;
}

h2.fc-page-title__text {
    font-size: clamp(24px, 3.6vw, 38px);
}

/* Есть описание — нижний отступ отдаётся ему, иначе заголовок оторвётся от текста. */
.fc-page-title--with-description .fc-page-title__text {
    margin-bottom: 10px;
}

/*
 * Описание под заголовком. Редактор может вставить готовый HTML со своими
 * инлайновыми стилями — они перебьют эти правила, поэтому здесь только дефолт
 * для ссылок без собственного оформления.
 */
.fc-page-title__description {
    margin: 0;
    color: var(--fc-text);
    font-size: 16px;
    line-height: 1.5;
}

.fc-page-title__description a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color .18s ease, border-color .18s ease;
}

.fc-page-title__description a:hover,
.fc-page-title__description a:focus-visible {
    color: var(--fc-secondary);
    border-color: var(--fc-secondary);
}

.fc-page-title__description p {
    margin: 0 0 8px;
}

.fc-page-title__description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Контакты с формой (contacts) — карточки слева, статичная форма справа.
   ========================================================================== */

.fc-contacts__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 60px;
    width: min(1504px, 100% - 40px);
    margin: 0 auto;
}

.fc-contacts__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-content: start;
}

.fc-contacts__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 28px;
    border-radius: 12px;
    background: var(--fc-panel);
}

.fc-contacts__card--accent {
    border-left: 4px solid var(--fc-secondary);
}

.fc-contacts__card-label {
    color: var(--fc-secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fc-contacts__card-value {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    color: var(--fc-text);
    font-size: 18px;
    line-height: 1.4;
}

.fc-contacts__link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(2, 32, 39, .25);
    transition: color .18s ease, border-color .18s ease;
}

.fc-contacts__link:hover,
.fc-contacts__link:focus-visible {
    color: var(--fc-secondary);
    border-color: var(--fc-secondary);
}

.fc-contacts__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 5px;
    min-height: 48px;
    padding: 10px 22px;
    border: 1px solid rgba(2, 32, 39, .28);
    border-radius: 999px;
    background: #fff;
    color: var(--fc-text);
    font-size: 14px;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease;
}

.fc-contacts__button svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.fc-contacts__button:hover,
.fc-contacts__button:focus-visible {
    border-color: var(--fc-secondary);
    color: var(--fc-secondary);
}

/* --- правая колонка: форма --- */

.fc-contacts__form-section {
    padding: 40px 44px 44px;
    border-radius: 12px;
    background: var(--fc-panel);
}

.fc-contacts__form-title {
    margin: 0 0 22px;
    color: var(--fc-text);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 600;
    line-height: 1.1;
}

.fc-contacts__form-description {
    margin: -12px 0 22px;
    color: var(--fc-muted);
    font-size: 16px;
    line-height: 1.5;
}

.fc-contacts__form {
    display: grid;
    gap: 14px;
}

.fc-contacts__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fc-contacts__field {
    display: grid;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

/* Подписи полей заменены плейсхолдерами — оставлены для скринридеров. */
.fc-contacts__field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.fc-contacts__field input,
.fc-contacts__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--fc-text);
    font: inherit;
    font-size: 16px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.fc-contacts__field input {
    height: 56px;
    padding: 0 20px;
}

.fc-contacts__field textarea {
    min-height: 104px;
    resize: vertical;
}

.fc-contacts__field input::placeholder,
.fc-contacts__field textarea::placeholder {
    color: #9aa5a8;
}

.fc-contacts__field input:focus,
.fc-contacts__field textarea:focus {
    border-color: var(--fc-secondary);
    box-shadow: 0 0 0 3px rgba(97, 106, 63, .14);
}

.fc-contacts__field.fc-field-error input,
.fc-contacts__field.fc-field-error textarea {
    border-color: #a43c35;
}

.fc-contacts__field-error {
    color: #a43c35;
    font-size: 12px;
    line-height: 1.35;
}

.fc-contacts__field-error:empty {
    display: none;
}

.fc-contacts__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.fc-contacts__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 76px;
    margin-top: 6px;
    padding: 12px 24px;
    border: 1px solid var(--fc-secondary);
    border-radius: 8px;
    background: var(--fc-secondary);
    color: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}

.fc-contacts__submit:hover,
.fc-contacts__submit:focus-visible {
    background: #505834;
}

.fc-contacts__submit:disabled {
    cursor: wait;
    opacity: .7;
}

.fc-contacts__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fc-feedback-spin .7s linear infinite;
}

.fc-contacts__form.fc-form-loading .fc-contacts__spinner {
    display: block;
}

.fc-contacts__consent-wrap {
    display: grid;
    gap: 6px;
}

.fc-contacts__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--fc-muted);
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.fc-contacts__consent-input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.fc-contacts__consent-box {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    box-sizing: border-box;
    border: 1px solid #ccd2d0;
    border-radius: 4px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease;
}

.fc-contacts__consent-box svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity .15s ease;
}

.fc-contacts__consent-input:checked ~ .fc-contacts__consent-box {
    border-color: var(--fc-secondary);
    background: var(--fc-secondary);
}

.fc-contacts__consent-input:checked ~ .fc-contacts__consent-box svg {
    opacity: 1;
}

.fc-contacts__consent-input:focus-visible ~ .fc-contacts__consent-box {
    border-color: var(--fc-secondary);
    box-shadow: 0 0 0 3px rgba(97, 106, 63, .18);
}

.fc-contacts__consent-text a {
    color: inherit;
    text-decoration: underline;
}

.fc-contacts__consent-text a:hover,
.fc-contacts__consent-text a:focus-visible {
    color: var(--fc-secondary);
}

.fc-contacts__consent-wrap.fc-field-error .fc-contacts__consent-box {
    border-color: #a43c35;
}

.fc-contacts__consent-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fc-contacts__consent-error:empty {
    display: none;
}

.fc-contacts__consent-error::before {
    content: "";
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a43c35' stroke-width='1.6'%3E%3Ccircle cx='10' cy='10' r='8.4'/%3E%3Cpath d='M10 5.6v5.2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.1' r='.95' fill='%23a43c35' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain;
}

.fc-contacts__status {
    font-size: 14px;
    line-height: 1.4;
}

.fc-contacts__status:empty {
    display: none;
}

.fc-contacts__status.fc-status-error {
    color: #a43c35;
}

/* Экран успеха занимает место формы. */
.fc-contacts__form-section.fc-feedback-success-shown .fc-contacts__form,
.fc-contacts__form-section.fc-feedback-success-shown .fc-contacts__form-title,
.fc-contacts__form-section.fc-feedback-success-shown .fc-contacts__form-description {
    display: none;
}

.fc-contacts__success {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 24px 0;
    text-align: center;
    animation: fc-feedback-success-in .24s ease;
}

.fc-contacts__success[hidden] {
    display: none !important;
}

.fc-contacts__success-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #eef4e8;
}

.fc-contacts__success-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--fc-secondary);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fc-contacts__success-icon svg circle {
    stroke-width: 2;
    opacity: .32;
}

.fc-contacts__success-title {
    margin: 0;
    color: var(--fc-text);
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 600;
    line-height: 1.12;
}

.fc-contacts__success-text {
    margin: 0;
    max-width: 380px;
    color: var(--fc-muted);
    font-size: 16px;
    line-height: 1.5;
}

.fc-contacts__success-text:empty {
    display: none;
}

@media (max-width: 1100px) {
    .fc-contacts__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .fc-contacts__cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .fc-contacts__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .fc-contacts__form-section {
        padding: 28px 20px 32px;
    }

    .fc-contacts__card {
        padding: 20px 22px;
    }
}

/* ==========================================================================
   Слайдер крупных изображений (price_slider).
   ========================================================================== */

/*
 * Ширина центрального контейнера блока. Ей подчиняется только описание
 * и положение стрелок — сама лента идёт во всю ширину секции, иначе
 * крайние карточки обрезались бы по краю контейнера, а между срезом
 * и краем экрана оставалась пустая полоса.
 */
.fc-price-slider {
    --fc-price-container: 1504px;
}

.fc-price-slider__inner {
    width: min(var(--fc-price-container), 100% - 40px);
    margin: 0 auto;
}

.fc-price-slider__description {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--fc-muted);
    font-size: 16px;
    line-height: 1.5;
}

.fc-price-slider__description a {
    color: var(--fc-text);
    text-decoration: none;
    border-bottom: 1px solid var(--fc-text);
}

.fc-price-slider__hint {
    display: none;
    flex: 0 0 auto;
}

.fc-price-slider__hint-card {
    fill: rgba(190, 190, 190, .3);
    animation: fc-price-hint-card 2s infinite;
}

.fc-price-slider__hint-hand {
    fill: rgba(190, 190, 190, 1);
    animation: fc-price-hint-hand 2s infinite;
}

@keyframes fc-price-hint-hand {
    0% { transform: translateX(80px) scale(1); opacity: 0; }
    10% { transform: translateX(80px) scale(1); opacity: 1; }
    20%, 60% { transform: translateX(175px) scale(.6); opacity: 1; }
    80% { transform: translateX(5px) scale(.6); opacity: 1; }
    to { transform: translateX(5px) scale(.6); opacity: 0; }
}

@keyframes fc-price-hint-card {
    0%, 60% { transform: translateX(0); }
    80%, to { transform: translateX(-240px); }
}

/* Лента на всю ширину секции: обрезка происходит по краю экрана. */
.fc-price-slider__wrap {
    position: relative;
    width: 100%;
}

.fc-price-slider__swiper {
    overflow: hidden;
}

/*
 * CSS Swiper подгружается с CDN уже ПОСЛЕ стилей модуля, а его
 * `.swiper-slide { width: 100% }` имеет ту же специфичность (0-1-0) и потому
 * побеждает в каскаде. Поэтому ширина слайда задаётся двумя классами (0-2-0).
 */
.fc-price-slider__slide.swiper-slide {
    width: 424px;
    max-width: 82%;
    height: auto;
}

.fc-price-slider__card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: var(--fc-surface);
    line-height: 0;
}

.fc-price-slider__card img {
    display: block;
    width: 100%;
    height: auto;
}

.fc-price-slider__card-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(2, 32, 39, .55);
    opacity: 0;
    transition: opacity .2s ease;
}

.fc-price-slider__card-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.fc-price-slider__card:hover .fc-price-slider__card-icon,
.fc-price-slider__card:focus-visible .fc-price-slider__card-icon {
    opacity: 1;
}

.fc-price-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--fc-secondary);
    color: #fff;
    cursor: pointer;
    transition: opacity .2s ease, background .2s ease;
}

/*
 * Стрелки стоят по краям центрального контейнера (как в прежней вёрстке),
 * а не по краям экрана: на широких мониторах у края они висели бы в пустоте.
 */
.fc-price-slider__nav--prev {
    left: max(20px, calc((100% - var(--fc-price-container)) / 2 + 10px));
}

.fc-price-slider__nav--next {
    right: max(20px, calc((100% - var(--fc-price-container)) / 2 + 10px));
}

.fc-price-slider__nav:hover {
    background: #505834;
}

.fc-price-slider__nav.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 860px) {
    .fc-price-slider__hint {
        display: block;
    }

    .fc-price-slider__nav {
        display: none;
    }

    .fc-price-slider__slide.swiper-slide {
        width: 300px;
    }
    .fc-page-title__text {
        margin: 0 0 30px;
    }

    .fc-page-title--with-description .fc-page-title__text {
        margin-bottom: 8px;
    }

    .fc-page-title__description {
        margin-bottom: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-price-slider__hint-card,
    .fc-price-slider__hint-hand {
        animation: none;
    }

    .fc-contacts__success {
        animation: none;
    }
}
