/*
Theme Name: LS Group
Author URI: https://sylva.agency
Description: Custom WordPress theme for LS Group (classic, ACF)
Version: 1.0.0
Text Domain: ls-group
*/
:root {
  --site-max: 1600px; /* Ширина всего сайта */
  --container: 1600px; /* Внутренние контейнеры секций */
  --pad-in: 70px;
  --pad-bl: 80px; /* отступы блоков сверху/снизу */
  --c-light: #f9f3eb;
  --c-dark: #382e2b;
  --c-orange: #ec642d;
  --header-h: 115px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--c-light);
  color: var(--c-dark);
}
/* Заголовки и абзацы без дефолтных отступов */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
  font-weight: inherit;
}

/* Списки без внешних отступов, но без трогания маркеров */
ul,
ol {
  margin: 0;
  padding-left: 0;
  list-style-type: none;
}

/* Ссылки: по умолчанию без подчёркивания, цвет от родителя */
a {
  color: inherit;
  text-decoration: none;
}
/* a:hover,
a:focus-visible {
  text-decoration: underline;
} */

/* Кнопки и интерактивные элементы */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}
figure {
  margin: 0;
}
/* Кнопка по умолчанию — кликабельный курсор */
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

/* Убираем голубой outline к чертям, но оставляем управляемый */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

/* Картинки адаптивные по умолчанию */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ===== Local fonts (Forum Regular / Montserrat Regular) ===== */
/* Путь от style.css: /assets/fonts/...  */
@font-face {
  font-family: "Forum";
  src: url("assets/fonts/Forum-Regular.woff2") format("woff2"),
    url("assets/fonts/Forum-Regular.woff") format("woff");
  font-weight: 400;
  line-height: 1;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Regular.woff2") format("woff2"),
    url("assets/fonts/Montserrat-Regular.woff") format("woff");
  font-weight: 400;
  line-height: 1;
  font-style: normal;
  font-display: swap;
}
.ff-btn {
  font-family: "Forum", sans-serif;
  font-size: 22px;
}
.ff-90 {
  font-family: "Forum", sans-serif;
  font-size: 90px;
}
.ff-40 {
  font-family: "Forum", sans-serif;
  font-size: 40px;
}
.ff-35 {
  font-family: "Forum", sans-serif;
  font-size: 35px;
}
.ff-28 {
  font-family: "Forum", sans-serif;
  font-size: 28px;
}
.ff-22 {
  font-family: "Forum", sans-serif;
  font-size: 22px;
}
.ff-18 {
  font-family: "Forum", sans-serif;
  font-size: 18px;
}
.fm-28 {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
}
.fm-22 {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
}
.fm-18 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}
.fm-16 {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}

.site-boundary {
  max-width: var(--site-max);
  margin: 0 auto; /* центрируем «короб» */
  background: var(--c-light);
  min-height: 100dvh;
}

/* Внутренний контейнер для контента секций */
.container {
  margin: 0 auto;
  padding: 0 var(--pad-in);
}

/* ===== Header (sticky .7 → 1 on scroll, no shadow) ===== */
.site-header {
  --header-opacity: 0.7; /* дефолт прозрачности */
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-light, #fff);
  opacity: var(--header-opacity);
  transition: opacity 0.25s ease;
  pointer-events: none; /* не блокируем клики */
}
/* Увеличиваем непрозрачность после скролла */
.site-header[data-scrolled="true"] {
  --header-opacity: 1;
}

.site-header + .site-main .hero {
  /* margin-top: calc(-1 * var(--header-h)); */
}
/* Контентный ряд — выше фонового ::before */
.site-header__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  z-index: 1;
}

/* Desktop nav + dropdown (2-й уровень) */
.site-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0 10px;
}
.site-menu li {
  position: relative;
}
.site-menu a {
  text-decoration: none;
  color: var(--c-dark, #111);
  padding: 10px 0;
  display: inline-block;
}

/* маркер наличия подменю */
.site-menu li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

/* выпадающий слой поверх ::before */
.site-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  max-width: max-content;
  background: var(--c-light, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 8px;
  list-style: none;
  display: none;
  z-index: 2;
}
.site-menu li:hover > .sub-menu {
  display: block;
}
.site-menu .sub-menu li a {
  display: block;
  padding: 8px 10px;
}
.site-nav a {
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Hover для обычных пунктов */
.site-menu > li > a:hover {
  color: var(--c-orange);
}

/* Hover для пунктов с подменю */
.menu-item-has-children > a:hover {
  color: var(--c-orange);
}

/* Стили для подменю */
.sub-menu a {
  transition: all 0.3s ease;
}

.sub-menu a:hover {
  color: var(--c-orange);
}

/* Phone button */
.phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-light);
  background: var(--c-orange);
  border-radius: 50px;
  border: 1px solid var(--c-dark);
  transition: all 0.3s ease;
  height: 44px;
  width: 324px;
}
.phone-btn:hover,
.phone-btn:focus-visible {
  background: var(--c-dark);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 13px;
  width: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.burger__bar {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--c-dark, #111);
}

/* Mobile off-canvas */
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* начинаем под хедером */
    top: var(--header-h, 115px);
	z-index: 40;
}

/* фон под панелью */
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* панель на всю ширину */
.mobile-menu__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--c-dark, #15110f);
  color: var(--c-light, #f5f5f5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-menu__close {
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--c-orange, #ec642d);
  margin-inline: auto 10px;
}

/* список меню */
.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  text-align: center;
}

.mobile-menu__list a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--c-light, #f5f5f5);
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
  text-decoration: underline;
}

.mobile-menu__list .sub-menu {
  display: none;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu__list .is-open > .sub-menu {
  display: block;
}

/* Контакты внизу */
.mobile-contacts {
  margin: 37px auto 0;
  display: flex;
  flex-direction: column;
  gap: 37px;
}

.messengers {
  width: max-content;
  margin: 0 auto;
}
/* базовый стиль кнопок контакта */
.contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  text-decoration: none;
  color: var(--c-light, #f5f5f5);
  background: transparent;
}

.contact__icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

/* === HERO (FADE) === */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  color: #fff;
  overflow: hidden;
  min-height: 600px;
}

/* Слайды стопкой, анимируем прозрачность */
.hero__slider {
  height: 100%;
  position: relative;
  isolation: isolate; /* чтобы overlay не мешал */
}

/* Базовое состояние: скрыт (но в потоке для fade) */
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.7s;
  will-change: opacity;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Градиент накрывает фон */
.hero__overlay {
  position: absolute;
  inset: 0;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: calc(853px + 2 * var(--pad-in));
  margin-left: 0;
  color: var(--c-dark);
  padding-top: 27px;
}
.hero__title {
  margin: 0 0 16px;
}
.hero__subtitle {
  margin: 0 0 28px;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Навигация — 3 горизонтальные «черточки» */
.hero__nav {
  position: absolute;
  left: 50%;
  bottom: 57px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 3;
}
.hero__dot {
  width: 75px;
  height: 4px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--c-orange);
  opacity: 0.3;
  transition: opacity 0.25s ease;
}
.hero__dot.is-active {
  opacity: 1;
}

/* Пауза анимации при hover/focus на hero */
.hero:hover .hero__slide,
.hero:focus-within .hero__slide {
  transition-duration: 0.1s; /* чтобы не было «рывка» при резкой паузе */
}

.btn-o {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-orange);
  border-radius: 50px;
  color: var(--c-light);
  border: 1px solid var(--c-orange);
  transition: all 0.3s ease;
  width: 324px;
  height: 44px;
}
.btn-o:hover,
.btn-o:focus-visible {
  background-color: var(--c-dark);
  border-color: var(--c-dark);
}

.btn-l {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-light);
  border-radius: 50px;
  color: var(--c-dark);
  border: 1px solid var(--c-dark);
  transition: all 0.3s ease;
  width: 324px;
  height: 44px;
}
.btn-l:hover,
.btn-l:focus-visible {
  background-color: var(--c-dark);
  color: var(--c-light);
}
.about-intro,
.about-career,
.connect {
  scroll-margin-top: var(--header-h); /* подгони под реальную высоту шапки */
}

/* Reduce motion — отключаем переходы */
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

/* ================================
   1279px ↓
================================ */
@media (max-width: 1279px) {
  :root {
    --pad-in: 50px;
    --pad-bl: 50px;
  }
  .ff-90 {
    font-size: 75px;
  }
  .ff-22 {
    font-size: 18px;
  }
  .fm-28 {
    font-size: 22px;
  }
.hero__content {
  max-width: calc(670px + 2 * var(--pad-in));
  padding-top: 47px;
}

}

/* ================================
   1023px ↓
================================ */
@media (max-width: 1023px) {
  :root {
    --pad-in: 15px;
  }
  .site-nav {
    display: none;
  }
  .burger {
    display: flex;
    gap: 12 px;
  }
     .ff-90 {
    font-size: 55px;
  }
}

/* ================================
   767px ↓
================================ */
@media (max-width: 767px) {
  :root {
    --pad-bl: 25px;
  }
    .ff-90 {
    font-size: 48px;
  }
  .ff-40 {
    font-size: 32px;
  }
  .ff-35 {
    font-size: 28px;
  }
  .fm-28 {
    font-size: 18px;
  }
  .fm-18 {
    font-size: 16px;
  }
  .custom-logo {
    width: 90px;
    height: auto;
  }
  .phone-btn--desktop {
    display: none;
  }
  .hero__title {
   
 word-wrap: break-word; /* Старый вариант для совместимости */
  overflow-wrap: break-word; /* Современный стандарт */
}
.hero__content {
  max-width: 100%;
  padding-top: 0;
}
.hero__buttons {
  flex-direction: column;
  align-items: center;
}
}
/* ================================
   424px ↓
================================ */
@media (max-width: 424px) {
    .ff-90 {
    font-size: 35px;
  }
  .btn-l, .btn-o {
    width:290px
  }
}
