/* Фотостраницы санатория (page-px-landing-gallery.php) поверх program-etalon.css. 29.10.2026 */
.gp-hero { min-height: 520px; height: 66vh; max-height: 660px; }
.gp-hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.gp-hero .etl-hero__title { font-size: 44px; }
.gp-btn { display: inline-flex !important; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 999px; background: linear-gradient(135deg, #c13863, #f06d98) !important; color: #fff !important; font-family: Unbounded, sans-serif; font-size: 15px; text-decoration: none; border: 0; }
.gp-hero .gp-facts { grid-template-columns: repeat(4, 1fr); }
.etl-hero .gp-facts .gp-fact { display: block; font-family: Unbounded, sans-serif; font-weight: 500; font-size: 18px; color: #fff; line-height: 1.2; }
.gp-page .etl-eyebrow { font-family: Unbounded, sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #c13863; margin-bottom: 12px; }
.gp-page .etl-eyebrow--light { color: #f2a3bf; }

/* вступление */
.gp-intro { padding: 64px 0 24px; background: #fff; }
.gp-intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.gp-intro__grid::before, .gp-intro__grid::after, .gp-sec__top::before, .gp-sec__top::after { display: none !important; }
.gp-intro__title { margin: 0 !important; }
.gp-intro__text p { font-size: 17px; line-height: 1.65; color: rgba(5,38,22,.85); margin: 0 0 14px; }
.gp-intro__text a { color: #c13863; text-decoration: underline; text-underline-offset: 3px; }

/* навигация по разделам */
.gp-nav { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid rgba(5,38,22,.1); }
.gp-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.gp-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(5,38,22,.16); color: #052616; font-family: Unbounded, sans-serif; font-size: 13px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.gp-nav a span { font-family: 'Open Sans', Arial, sans-serif; font-size: 12px; color: #c13863; }

/* разделы с фото - один вид для всех страниц */
.gp-sec { padding: 56px 0; background: #fff; scroll-margin-top: 76px; }
.gp-sec--alt { background: #f4f6f2; }
.gp-sec__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 24px; }
.gp-sec__title { margin: 0 !important; }
.gp-sec__area { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(193,56,99,.1); color: #c13863; font-size: 14px; font-family: Unbounded, sans-serif; font-weight: 500; }
.gp-sec__lead { font-size: 16px; line-height: 1.6; color: rgba(5,38,22,.72); margin: 10px 0 0; max-width: 760px; }
.gp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gp-ph { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; background: #e6ece4; cursor: zoom-in; }
.gp-ph__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.22,.8,.26,1); }
.gp-ph:hover .gp-ph__img, .gp-ph:focus-visible .gp-ph__img { transform: scale(1.04); }
.gp-ph:focus-visible { outline: 3px solid #c13863; outline-offset: 3px; }

/* номер: оснащение и кнопки */
.gp-sec--room .gp-sec__top { display: grid; grid-template-columns: 5fr 7fr; align-items: start; gap: 48px; }
.gp-room { background: #fff; border: 1px solid rgba(5,38,22,.08); border-radius: 16px; padding: 22px 24px; }
.gp-sec--alt .gp-room { border-color: transparent; }
.gp-room__specs { list-style: none; margin: 0 0 18px; padding: 0; }
.gp-room__specs li { position: relative; padding: 0 0 8px 24px; font-size: 15px; line-height: 1.5; color: rgba(5,38,22,.85); }
.gp-room__specs li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #c13863; }
.gp-room__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gp-room__btns .gp-btn { padding: 12px 22px; font-size: 14px; }
.gp-btn-line { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; border: 1px solid #052616; color: #052616 !important; font-family: Unbounded, sans-serif; font-size: 13px; text-decoration: none; background: transparent; }

/* другие фото санатория */
.gp-more { padding: 64px 0; background: #fff; }
.gp-more__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gp-more__list li { margin: 0; }
.gp-more__card { display: flex; flex-direction: column; height: 100%; color: #052616; text-decoration: none; }
.gp-more__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: #e6ece4; }
.gp-more__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gp-more__card:hover .gp-more__img img { transform: scale(1.05); }
.gp-more__name { margin-top: 10px; font-family: Unbounded, sans-serif; font-weight: 500; font-size: 14px; line-height: 1.3; }
.gp-more__count { font-size: 13px; color: rgba(5,38,22,.75); margin-top: 2px; }

.gp-faq { padding: 64px 0; scroll-margin-top: 76px; }
.gp-form { padding: 80px 0; scroll-margin-top: 76px; }
.gp-form .form-r--bare { background: transparent; padding: 0; }

/* просмотр фото */
.gp-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(3,20,12,.94); display: flex; align-items: center; justify-content: center; }
.gp-lb[hidden] { display: none; }
.gp-lb-open, .gp-lb-open body { overflow: hidden; }
.gp-lb__fig { margin: 0; max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; }
.gp-lb__img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; display: block; }
.gp-lb__cap { margin-top: 12px; color: rgba(255,255,255,.85); font-size: 14px; text-align: center; }
.gp-lb__close, .gp-lb__nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background .2s; }
.gp-lb__close:hover, .gp-lb__nav:hover { background: #c13863; }
.gp-lb__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 30px; }
.gp-lb__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 38px; padding-bottom: 4px; }
.gp-lb__prev { left: 16px; }
.gp-lb__next { right: 16px; }

/* тема красит ссылки при наведении в зелёный - держим свои цвета */
.gp-nav a:hover, .gp-nav a:focus { background: #052616 !important; color: #fff !important; border-color: #052616 !important; }
.gp-nav a:hover span, .gp-nav a:focus span { color: #f2a3bf !important; }
.gp-more__card:hover, .gp-more__card:focus { color: #c13863 !important; }
.gp-intro__text a:hover { color: #052616 !important; }
.gp-btn:hover, .gp-btn:focus, .gp-page .etl-btn-ghost:hover, .gp-page .etl-btn-ghost:focus { color: #fff !important; }
.gp-btn-line:hover, .gp-btn-line:focus { background: #052616 !important; color: #fff !important; }

@media (max-width: 1100px) { .gp-more__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .gp-intro__grid, .gp-sec--room .gp-sec__top { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 767px) {
  .gp-hero { height: auto; min-height: 0; max-height: none; padding-top: 0 !important; }
  .gp-hero .etl-hero__inner { padding-top: 120px; }
  .gp-hero .etl-hero__title { font-size: 27px; }
  .gp-hero .gp-facts { grid-template-columns: repeat(2, 1fr); }
  .gp-hero .gp-facts li { border-left: 0 !important; padding: 12px 0 !important; }
  .gp-hero .etl-hero__btns { flex-direction: column; align-items: stretch; }
  .gp-hero .etl-hero__btns a { justify-content: center; }
  .gp-intro { padding: 44px 0 8px; }
  .gp-intro__text p { font-size: 16px; }
  .gp-sec, .gp-more, .gp-faq { padding: 44px 0; }
  .gp-sec__top { display: block; }
  .gp-room { margin-top: 16px; padding: 18px; }
  .gp-room__btns { flex-direction: column; align-items: stretch; }
  .gp-room__btns a { justify-content: center; }
  .gp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gp-ph { border-radius: 10px; }
  .gp-more__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gp-lb__fig { max-width: 100vw; }
  .gp-lb__img { border-radius: 0; }
  .gp-lb__nav { top: auto; bottom: 16px; transform: none; }
}
