/* Общие стили нового дизайна (порт из temp-design, общая часть <helmet>-блоков).
   Постраничные уникальные правила — в @push('styles') соответствующего шаблона. */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Manrope', sans-serif; background: #f2efe6; color: #26352b; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: #6a7d5f; }
img { display: block; max-width: 100%; }
::selection { background: #26352b; color: #f2efe6; }

@keyframes fadeUp { from { transform: translateY(24px); } to { transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulsering { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }

/* ── Утилити-классы (извлечённые повторяющиеся инлайн-стили) ──
   Инлайн-остатки на элементах (цвет, отступы) дополняют эти базовые правила. */
.om-eyebrow { font-size: 12.5px; letter-spacing: .34em; text-transform: uppercase; }
.f-serif { font-family: 'Cormorant Garamond', serif; }
.f-display { font-family: 'Cormorant Garamond', serif; font-weight: 400; }
.f-display-med { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
.om-line { display: flex; justify-content: space-between; align-items: baseline; }

/* ── Реквизиты продавца + логотипы платёжных систем в футере (partials/footer-legal, требование bePaid) ── */
.om-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; font-size: 12px; line-height: 1.75; font-weight: 300; }
.om-legal__text { display: flex; flex-direction: column; max-width: 64ch; opacity: .72; }
.om-legal__name { font-weight: 500; letter-spacing: .02em; }
.om-legal__contacts { display: flex; flex-wrap: wrap; gap: 0 8px; }
.om-legal__contacts > * + *::before { content: '·'; margin-right: 8px; opacity: .6; }
.om-legal__contacts a:hover { color: #f2efe6; opacity: 1; }
.om-paylogos { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px 22px; max-width: 560px; }
.om-paylogos img { height: 26px; width: auto; }
@media (max-width: 760px) {
  .om-legal { flex-direction: column; }
  .om-paylogos { justify-content: flex-start; gap: 12px 18px; }
  .om-paylogos img { height: 22px; }
}

/* reveal-анимации при скролле (класс .in ставит site.js) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── Шапка ─────────────────────────────────────────────────────────────
   .site-header--solid — сразу непрозрачная (о нас, проживание, дома, услуги);
   .site-header--overlay — прозрачная поверх hero, .is-solid ставит site.js при скролле. */
.site-header { transition: background .5s ease, color .5s ease, border-color .5s ease; background: transparent; border-bottom: 1px solid transparent; }
.site-header .site-logo { transition: filter .5s ease; }
.site-header--overlay { color: #f2efe6; }
.site-header--overlay .site-logo { filter: brightness(0) invert(1); }
.site-header--solid,
.site-header--overlay.is-solid { background: rgba(242,239,230,.92); color: #26352b; border-bottom: 1px solid rgba(38,53,43,.12); }
.site-header--overlay.is-solid .site-logo { filter: none; }

header nav a:not(:last-child) { position: relative; }
header nav a:not(:last-child)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.6,.2,1); }
header nav a:not(:last-child):hover { color: inherit; opacity: 1; }
header nav a:not(:last-child):hover::after { transform: scaleX(1); }
header nav a:last-child { transition: background .3s ease, color .3s ease, border-color .3s ease; }
header nav a:last-child:hover { background: #6a7d5f; color: #f2efe6; border-color: #6a7d5f; }

/* мобильное полноэкранное меню (открывает/закрывает site.js) */
.om-mmenu { transition: opacity .4s ease; opacity: 0; pointer-events: none; }
.om-mmenu.is-open { opacity: 1; pointer-events: auto; }
.om-mmenu a:hover { color: #cfd8c8; }

@media (max-width: 1080px) {
  header .om-wordmark { display: none !important; }
}
@media (max-width: 760px) {
  header { padding: 16px 22px !important; }
  header nav { display: none !important; }
  .om-burger { display: flex !important; }
}

/* ── Общие компоненты страниц ── */

/* карточки домов (главная, кросс-селл на страницах домов) */
.om-house .om-houseimg { will-change: transform; transition: transform 1.1s cubic-bezier(.2,.6,.2,1); }
.om-house:hover .om-houseimg { transform: scale(1.06); }

/* галереи домов: стрелки и тумбы (переключает site.js) */
.om-navbtn { transition: background .3s ease, opacity .3s ease; }
.om-navbtn:hover { background: rgba(38,53,43,.85) !important; }
.om-thumb { transition: opacity .3s ease; opacity: .55; }
.om-thumb:hover, .om-thumb.is-active { opacity: 1; }

/* hero-слайдер главной (слои и точки переключает site.js) */
.om-heroslide { opacity: 0; transition: opacity 1.4s ease; }
.om-heroslide.is-active { opacity: 1; }
.om-slidedot { opacity: .35; transition: opacity .3s ease; }
.om-slidedot.is-active { opacity: 1; }

/* формы заявок: сообщение об успехе (показывает site.js) и скрытое поле-ловушка для ботов */
[data-form-success] { opacity: 0; transition: opacity .4s ease; }
[data-form-success].is-visible { opacity: 1; }
.om-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.om-submit:disabled { opacity: .6; cursor: wait; }

/* тёмная CTA-кнопка (в прототипе — style-hover) */
.om-btn-dark { transition: background .35s ease; }
.om-btn-dark:hover { background: #6a7d5f !important; color: #f2efe6 !important; }

/* поля форм (kontakty / padel / banket) */
.om-field input, .om-field select, .om-field textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(242,239,230,.3); padding: 12px 0; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 300; color: #f2efe6; transition: border-color .35s ease; }
.om-field input:focus, .om-field select:focus, .om-field textarea:focus { outline: none; border-bottom-color: #f2efe6; }
.om-field textarea { resize: vertical; min-height: 90px; }
.om-field input::placeholder, .om-field textarea::placeholder { color: rgba(242,239,230,.4); }
