/* Golfstrim — стили темы поверх исходных Craftum-стилей */
.cli-block h1, .cli-block h2, .cli-block h3, .cli-block-title,
.cli-block h4, .cli-block h5, .cli-block h6, .cli-block { font-family: var(--sans-serif); }

/* Горизонтальный скролл: clip вместо hidden, чтобы <body> не становился
   скролл-контейнером (иначе ломается position:sticky у шапки — см. баг меню) */
html, body { overflow-x: clip; }

/* Мобильное меню: панель и подложка фиксируются к вьюпорту,
   поэтому видны при любой позиции прокрутки */
.cli-header .cli-header__info.opened { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; }
.cli-header .cli-header__info.opened ~ .cli-header__backdrop { position: fixed; height: 100vh; height: 100dvh; }

/* Contact Form 7 в вёрстке cli-form */
.wpcf7 .cli-form { position: relative; flex-wrap: wrap; }
.wpcf7 .cli-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7 .cli-form .wpcf7-form-control-wrap .cli-input { width: 100%; }
@media (min-width: 1200px) {
  .wpcf7 .cli-form--inline .wpcf7-form-control-wrap { width: 260px; max-width: 260px; }
}
.wpcf7 .cli-form .cli-button { cursor: pointer; border: 0; }
.wpcf7 .cli-form .wpcf7-spinner { position: absolute; right: 0; bottom: -32px; margin: 0; }
.wpcf7 .cli-form .wpcf7-response-output { flex-basis: 100%; margin: 8px 0 0; text-align: center; }
.wpcf7 .cli-form .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.cli-form-block .wpcf7 { width: 100%; }

/* Внутренние страницы */
.gs-page { padding: 60px 0; }

/* ===== Шапка: меню на десктопе ===== */
.gs-desk-nav { display: none; }
@media (min-width: 1200px) {
  .cli-header .cli-block__header-content { display: flex; align-items: center; }
  .gs-desk-nav { display: flex; align-items: center; justify-content: center; gap: 36px; margin: 0 32px 0 auto; }
  .gs-desk-nav + .cli-header__info + .cli-header-toggler, .gs-desk-nav ~ .cli-header-toggler { margin-left: 0; }
  .gs-desk-nav__link { color: #fff; font-family: "Exo 2", var(--sans-serif); font-size: 17px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: color .2s; }
  .gs-desk-nav__link:hover, .gs-desk-nav__link:focus-visible { color: rgb(198, 8, 28); }
}

/* ===== Отзывы (репитер) ===== */
.gs-reviews-wrap { height: auto !important; }
.gs-reviews { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; padding: 20px 0 40px; }
.gs-review { border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 32px 28px; }
.gs-review .cli-review-card__image { width: 64px; height: 64px; }
.gs-review__text { color: #fff; font-family: Arial, var(--sans-serif); font-size: 18px; line-height: 28px; margin-bottom: 24px; }
.gs-review__name { color: rgba(255, 255, 255, .7); font-size: 18px; line-height: 23px; margin: 0; }
@media (max-width: 1023px) { .gs-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .gs-reviews { grid-template-columns: 1fr; gap: 16px; } .gs-review__text { font-size: 16px; line-height: 24px; } }

/* ===== Галереи: сетка / слайдер ===== */
.gs-gallery { position: relative; width: 100%; }
.gs-gallery--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gs-gallery__link { display: block; height: 100%; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gs-gallery__img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .3s; }
.gs-gallery__link:hover .gs-gallery__img { transform: scale(1.04); }
.gs-gallery--works .gs-gallery__img { aspect-ratio: 3 / 4; }
@media (max-width: 1023px) { .gs-gallery--grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.gs-swiper { width: 100%; padding-bottom: 36px !important; }
.gs-swiper .swiper-slide { height: auto; }
.gs-swiper__pagination.swiper-pagination { bottom: 0 !important; }
.gs-swiper__pagination .swiper-pagination-bullet { background: #fff; opacity: .4; }
.gs-swiper__pagination .swiper-pagination-bullet-active { background: rgb(198, 8, 28); opacity: 1; }
.gs-swiper__nav { position: absolute; top: calc(50% - 18px); z-index: 5; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(24, 24, 24, .75); cursor: pointer; transition: background .2s; }
.gs-swiper__nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateX(-2px) rotate(-45deg); }
.gs-swiper__prev { left: -8px; } .gs-swiper__prev::before { transform: translateX(2px) rotate(135deg); }
.gs-swiper__next { right: -8px; }
.gs-swiper__nav:hover { background: rgb(198, 8, 28); }
.gs-swiper__nav.swiper-button-disabled { opacity: .3; cursor: default; }
@media (min-width: 1200px) { .gs-swiper__prev { left: -56px; } .gs-swiper__next { right: -56px; } }

/* Фото под картой: занимают ту же область, что и 4 исходных фото */
.gs-place-gallery { position: absolute; z-index: 2; top: 460px; left: 17px; width: 1106px; height: 350px; }
.gs-place-gallery .gs-gallery, .gs-place-gallery .gs-gallery--grid { height: 100%; }
.gs-place-gallery .gs-gallery--grid { gap: 18px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.gs-place-gallery .gs-gallery__img { aspect-ratio: auto; }
.gs-place-gallery .gs-swiper { height: 100%; padding-bottom: 28px !important; }
.gs-place-gallery .gs-swiper__prev { left: -22px; } .gs-place-gallery .gs-swiper__next { right: -22px; }
@media (max-width: 1199px) { .gs-place-gallery { top: 436px; left: 42px; width: 942px; height: 153px; } }
@media (max-width: 1023px) { .gs-place-gallery { top: 15px; left: 422px; width: 306px; height: 610px; } .gs-place-gallery .gs-gallery--grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 767px) { .gs-place-gallery { top: 727px; left: 32px; width: calc(100% - 64px); height: 304px; } }
@media (max-width: 666px) { .gs-place-gallery { top: 503px; left: 33px; width: calc(100% - 66px); height: 624px; } .gs-place-gallery .gs-gallery--grid { gap: 14px; } }

/* ===== До / после ===== */
.gs-ba-section { padding: 0 0 60px; }
.gs-ba-list { position: relative; }
.gs-ba-list--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gs-ba { margin: 0; }
.gs-ba__frame { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 3; cursor: ew-resize; user-select: none; touch-action: pan-y; background: #222; }
.gs-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gs-ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.gs-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .5); outline: none; }
.gs-ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgb(198, 8, 28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.gs-ba__handle:focus-visible::after { outline: 3px solid #fff; outline-offset: 2px; }
.gs-ba__label { position: absolute; top: 12px; padding: 4px 10px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font: 600 13px/1.2 "Exo 2", var(--sans-serif); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.gs-ba__label--before { left: 12px; } .gs-ba__label--after { right: 12px; }
.gs-ba__caption { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 16px; line-height: 1.4; text-align: center; }
@media (max-width: 767px) { .gs-ba-list--grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===== Подвал: юр. строка ===== */
.gs-legal { background: rgb(24, 24, 24); color: rgba(255, 255, 255, .6); font-size: 14px; }
.gs-legal__inner { max-width: 1140px; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.gs-legal a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
.gs-legal a:hover { color: #fff; }

/* ===== Форма заявки (CF7) — как в оригинале ===== */
.cli-form-block .wpcf7 { width: 100%; }
.wpcf7 .cli-form { position: relative; flex-wrap: wrap; margin-bottom: 24px; }
.wpcf7 .cli-form .hidden-fields-container { display: none; }
.wpcf7 .cli-form > .wpcf7-form-control-wrap { display: block; width: 100%; position: relative; }
.wpcf7 .cli-form .wpcf7-form-control-wrap .cli-input { width: 100%; max-width: none; margin: 0; }
.wpcf7 .cli-form .cli-button { width: 100%; justify-content: center; cursor: pointer; border: 0; }
@media (min-width: 1200px) {
  .wpcf7 .cli-form--inline { flex-wrap: wrap; }
  .wpcf7 .cli-form--inline > .wpcf7-form-control-wrap:not(.gs-file) { width: 260px; flex: 0 0 260px; }
  .wpcf7 .cli-form--inline .cli-button { width: auto; flex: 0 0 auto; }
}
.wpcf7 .cli-form .wpcf7-not-valid-tip { position: absolute; left: 0; top: 100%; margin-top: 2px; font-size: 12px; line-height: 1.2; color: #ff6b6b; }
.wpcf7 .cli-form .wpcf7-spinner { position: absolute; right: -8px; top: 12px; margin: 0; }
@media (min-width: 1200px) { .wpcf7 .cli-form .wpcf7-spinner { right: -36px; } }
.wpcf7 .cli-form .wpcf7-response-output { flex: 0 0 100%; margin: 8px 0 0 !important; padding: 10px 14px !important; border-radius: 4px; color: #fff; font-size: 14px; text-align: center; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #46b450 !important; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: rgb(198, 8, 28) !important; }
/* Загрузка фото */
.wpcf7 .cli-form > .gs-file { flex: 0 0 100%; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 6px; }
.gs-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.gs-file__btn { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 48px; padding: 10px 20px; border: 1px dashed rgba(255, 255, 255, .45); border-radius: 4px; color: #fff; font-size: 15px; line-height: 1.3; cursor: pointer; transition: border-color .2s, background .2s; }
.gs-file__btn:hover, .gs-file input:focus-visible + .gs-file__btn { border-color: #fff; background: rgba(255, 255, 255, .06); }
.gs-file__btn svg { flex: 0 0 auto; color: rgb(198, 8, 28); }
.gs-file__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-file__hint { color: rgba(255, 255, 255, .5); font-size: 12px; line-height: 1.3; text-align: center; }
.gs-file .wpcf7-not-valid-tip { position: static !important; text-align: center; }
@media (max-width: 1199px) { .wpcf7 .cli-form > .gs-file { order: 0; } .gs-file__btn { width: 100%; justify-content: center; } }
.cli-form-block .cli-block-description a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Страница политики */
.gs-page .cli-block-description { color: inherit; font-size: 16px; line-height: 1.6; }
.gs-page .cli-block-description h2 { margin: 28px 0 10px; font-size: 22px; }
.gs-page .cli-block-description p, .gs-page .cli-block-description ul { margin: 0 0 12px; }
.gs-page .cli-block-description ul { padding-left: 22px; list-style: disc; }

/* Галерея работ теперь одна для всех ширин (раньше была отдельная мобильная копия) */
#n-a52faeff-c716-425d-84fc-6598c8d7d113 { display: block !important; }
.gs-gallery--works { padding: 0 8px; }

/* Правки: файл-контрол и пагинация */
.gs-file__btn { min-width: 300px; justify-content: center; }
.gs-file__text { white-space: normal; text-align: left; }
.gs-swiper .gs-swiper__pagination .swiper-pagination-bullet { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: rgba(255, 255, 255, .35) !important; opacity: 1 !important; }
.gs-swiper .gs-swiper__pagination .swiper-pagination-bullet-active { background: rgb(198, 8, 28) !important; }
@media (max-width: 1199px) { .gs-file__btn { min-width: 0; } }
@media (min-width: 1200px) { .wpcf7 .cli-form > .gs-file .gs-file__btn { width: auto; min-width: 340px; } .gs-file__text, .gs-file__hint { white-space: nowrap; } }
