html { overflow-x: hidden; }
body { margin: 0; padding: 0; background: #F4EFE6; }
body { font-family: 'Golos Text', system-ui, sans-serif; color: #201A14; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: #A85336; text-decoration: none; }
a:hover { color: #7E3A22; }
img { max-width: 100%; }
input, select, button { font-family: inherit; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

section[id] { scroll-margin-top: 74px; }
html { scroll-behavior: smooth; }

/* заменяет нестандартный атрибут style-hover="..." из дизайн-макета */
.nav-link:hover { color: #F4EFE6; }
.hero-btn:hover { background: #8F4429; color: #F7F2EA; }
.hero-link:hover { color: #C97A50; border-color: #C97A50; }
.order-phone-link:hover { color: #C97A50; }
.vk-float-link:hover { border-color: #C97A50; color: #C97A50; }

/* ---------- плавающие кнопки ---------- */

.float-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
/* когда рядом появляется кнопка чат-виджета ВК — поднимаем блок над ней */
.float-actions--raised { bottom: 92px; }

.vk-float-link {
  background: #201A14;
  border: 1px solid rgba(201, 122, 80, .6);
  color: #E8DFD1;
  padding: 13px 20px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(23, 19, 16, .3);
}

.call-float {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #A85336;
  color: #F7F2EA;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(23, 19, 16, .35);
}
.call-float:hover { background: #8F4429; color: #F7F2EA; }
.call-float svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- бургер ---------- */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #EFE7DA;
  transition: transform .2s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- планшет ---------- */

@media (max-width: 900px) {
  .hero { height: 560px !important; }
  .tabs { gap: 20px !important; }
}

/* ---------- мобильные ---------- */

@media (max-width: 720px) {
  .header-inner { padding: 10px 18px !important; gap: 10px !important; }

  .burger { display: flex; }

  .main-nav {
    display: none !important;
    order: 10;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0 !important;
    margin: 6px -18px 0 !important;
    border-top: 1px solid rgba(201, 122, 80, .28);
  }
  .main-nav.is-open { display: flex !important; }
  .main-nav a {
    padding: 14px 18px;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(201, 122, 80, .14);
  }

  .header-phone { font-size: 16px !important; }

  .hero { height: auto !important; min-height: 520px; }
  .hero-content { padding: 190px 18px 40px !important; position: relative !important; }

  .section-pad { padding-left: 18px !important; padding-right: 18px !important; padding-top: 56px !important; padding-bottom: 52px !important; }
  .section-row { gap: 14px !important; }
  .eyebrow { flex: 0 0 auto !important; }

  .contacts-grid { gap: 30px !important; }

  /* на мобильных плавающие кнопки не должны закрывать контент */
  .float-actions { right: 14px; bottom: 14px; gap: 8px; }
  .float-actions--raised { bottom: 84px; }
  .vk-float-link { padding: 11px 15px; font-size: 13px; }
  .call-float { padding: 12px 17px; font-size: 14px; }

  footer { padding: 32px 18px 26px !important; }
}

/* очень узкие экраны — кнопка звонка только иконкой */
@media (max-width: 380px) {
  .call-float__text { display: none; }
  .call-float { padding: 13px; }
}

/* ---------- галерея / лайтбокс ---------- */

.gallery-thumb { transition: opacity .15s ease; }
.gallery-thumb:hover { opacity: .82; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 14, 11, .95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 26, 20, .7);
  border: 1px solid rgba(201, 122, 80, .35);
  color: #F4EFE6;
  cursor: pointer;
  padding: 0;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(168, 83, 54, .55); border-color: #C97A50; }

.lightbox-close { top: 18px; right: 18px; width: 42px; height: 42px; }
.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #CFC3B2;
  font-size: 14px;
  background: rgba(32, 26, 20, .6);
  padding: 5px 14px;
}

@media (max-width: 720px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav svg { width: 20px; height: 20px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
}
