/* ================================================================
   ROOM GROUP — СТИЛИ САЙТА
   Все стили сайта собраны в этом одном файле, по секциям —
   именно в том порядке, в котором блоки идут на странице.
   Используй Ctrl+F / Cmd+F и ищи по русскому названию блока
   в комментариях, чтобы быстро найти нужное место.
================================================================ */

/* ---------- 1. ОБЩИЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ ---------- */

:root {
  --color-yellow: #FFD401;   /* акцентный жёлтый */
  --color-yellow-hover: #ffdf3a;
  --color-dark: #262626;     /* основной тёмный фон */
  --color-dark-2: #1a1a1a;   /* чуть темнее (калькулятор, полосы) */
  --color-dark-3: #1c1c1c;   /* карточки на тёмном фоне */
  --color-light: #FEFEFE;    /* почти белый текст */

  --container-max: 1280px;
  --side-padding: clamp(20px, 5vw, 40px);
  --section-padding: clamp(56px, 9vw, 96px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--color-dark);
  color: var(--color-light);
}

a {
  color: var(--color-light);
}
a:hover {
  color: var(--color-yellow);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

.section-label {
  color: var(--color-yellow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow);
  color: var(--color-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 19px 40px;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-yellow:hover {
  background: var(--color-yellow-hover);
}


/* ---------- 2. ШАПКА САЙТА (header, меню, телефон) ---------- */

.rg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 28, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px var(--side-padding);
}

.rg-header__logo {
  height: 28px;
  width: auto;
}

.rg-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.rg-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.rg-header__phone {
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .rg-nav { display: none; }
}


/* ---------- 3. ПЕРВЫЙ ЭКРАН (HERO) ---------- */
/* Фоновая картинка шапки задаётся ниже, в правиле .hero__bg     */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* <<< ФОНОВАЯ КАРТИНКА ШАПКИ (HERO) — путь к файлу указан здесь: */
  background: url('images/hero/hero-bg.jpg') center / cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20,20,20,0.94) 0%, rgba(28,28,28,0.8) 48%, rgba(28,28,28,0.55) 100%);
}

.hero__ring {
  position: absolute;
  left: -160px;
  top: 50%;
  width: 300px;
  height: 300px;
  border: 6px solid var(--color-yellow);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.9;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__text {
  max-width: 740px;
  padding: 76px 0 60px;
}

.hero__geo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 16px;
  font-weight: 500;
}

.hero__title {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.hero__title span {
  color: var(--color-yellow);
}

.hero__subtitle {
  color: rgba(254, 254, 254, 0.82);
  font-size: 19px;
  line-height: 1.62;
  max-width: 630px;
  margin-bottom: 38px;
}

/* Карточки типов помещений (Byty, Kancelárie, ...) */
.hero__rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding-bottom: 56px;
}

.room-card {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.room-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.room-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  color: var(--color-light);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  padding: 0 8px;
}


/* ---------- 4. TYPY PRÁC (виды работ) ---------- */

.vidy {
  background: var(--color-dark);
  padding: var(--section-padding) 0;
}

.vidy__head {
  text-align: center;
  margin-bottom: 56px;
}

.vidy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.vidy-card {
  background: var(--color-dark-3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px 32px;
}

.vidy-card__icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.vidy-card__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
}

.vidy-card__text {
  color: rgba(254, 254, 254, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.vidy__cta {
  text-align: center;
}


/* ---------- 5. PORTFÓLIO — ГАЛЕРЕЯ (40 фото) ---------- */
/* Все 40 фото галереи берутся из папки images/gallery/            */
/* (IMG_0001.jpg ... IMG_0040.jpg) — пути прописаны в script.js    */

.portfolio {
  background: var(--color-dark);
  padding: clamp(28px, 4.5vw, 48px) 0 var(--section-padding);
}

.portfolio__head {
  text-align: center;
  margin-bottom: 48px;
}

/* --- Десктоп: сетка 5 колонок х 3 строки + стрелки листания по рядам --- */
.gallery {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
}

.gallery__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-yellow);
  background: transparent;
  color: var(--color-yellow);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.gallery__arrow:hover:not(:disabled) {
  background: var(--color-yellow);
  color: var(--color-dark);
}
.gallery__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.gallery__tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-dark-3);
}
.gallery__tile:hover {
  outline: 2px solid var(--color-yellow);
}
.gallery__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Мобильная версия: слайдер по 1 фото со свайпом и стрелками --- */
/* На десктопе слайдер скрыт, на мобильном — наоборот (см. media-запросы) */
.gallery-mobile {
  display: none;
  position: relative;
  margin-bottom: 64px;
}

.gallery-mobile__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-mobile__track::-webkit-scrollbar {
  display: none;
}

.gallery-mobile__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-mobile__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-mobile__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.75);
  color: var(--color-light);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gallery-mobile__arrow--prev { left: 8px; }
.gallery-mobile__arrow--next { right: 8px; }

.gallery-mobile__counter {
  text-align: center;
  color: rgba(254, 254, 254, 0.5);
  font-size: 13px;
  margin-top: 10px;
}

@media (max-width: 780px) {
  .gallery { display: none; }
  .gallery-mobile { display: block; }
}

/* --- Лайтбокс (увеличенный просмотр фото) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-light);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  z-index: 1;
}
.lightbox__close:hover {
  color: var(--color-yellow);
}
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--color-light);
  font-size: 28px;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.lightbox__arrow:hover {
  background: var(--color-yellow);
  color: var(--color-dark);
}
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }
.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  user-select: none;
}
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(254, 254, 254, 0.5);
  font-size: 13px;
}


/* ---------- 6. PORTFÓLIO — PRED / PO (до/после) ---------- */
/* Фото "до/после" остаются встроенными в код (см. embedded-images.js) */

.beforeafter__head {
  text-align: center;
  margin-bottom: 18px;
}
.beforeafter__hint {
  text-align: center;
  color: rgba(254, 254, 254, 0.6);
  font-size: 15px;
  margin-bottom: 48px;
}

.beforeafter__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.ba-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  user-select: none;
}
.ba-card__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-card__before {
  clip-path: inset(0 50% 0 0); /* значение меняется через JS при движении ползунка */
}
.ba-card__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--color-yellow);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-card__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-yellow);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ba-card__badge {
  position: absolute;
  top: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.ba-card__badge--before {
  left: 12px;
  background: rgba(28, 28, 28, 0.8);
  color: var(--color-light);
}
.ba-card__badge--after {
  right: 12px;
  background: var(--color-yellow);
  color: var(--color-dark);
}
.ba-card__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-card__caption {
  padding-top: 18px;
}
.ba-card__caption h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.ba-card__caption p {
  color: rgba(254, 254, 254, 0.55);
  font-size: 13px;
}


/* ---------- 7. KALKULAČKA (калькулятор в iframe) ---------- */

.calc-section {
  background: var(--color-dark-2);
  padding: var(--section-padding) 0;
}
.calc-section__head {
  text-align: center;
  margin-bottom: 48px;
}
.calc-frame {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 700px;
  border: none;
  background: var(--color-dark-2);
  overflow: hidden;
}


/* ---------- 8. FÁZY (этапы работы) ---------- */

.etapy {
  background: var(--color-dark);
  padding: var(--section-padding) 0;
}
.etapy__head {
  text-align: center;
  margin-bottom: 64px;
}
.etapy__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.etapy__grid > * {
  grid-column: span 1;
}
.etapy-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: stretch;
  min-height: 150px;
}
.etapy-card--full {
  grid-column: 1 / -1;
  max-width: 468px;
  margin: 0 auto;
  width: 100%;
}
.etapy-card__number {
  font-size: 88px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  align-self: center;
  white-space: nowrap;
}
.etapy-card__box {
  border: 1.5px solid var(--color-yellow);
  padding: 22px 24px;
  margin-left: -40px;
}
.etapy-card__box h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.etapy-card__box p {
  color: rgba(254, 254, 254, 0.6);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .etapy__grid { grid-template-columns: 1fr; }
  .etapy-card--full { max-width: 100%; }
}


/* ---------- 9. FORMULÁR (форма заявки) ---------- */

.forma {
  background: var(--color-yellow);
  padding: 80px 0;
}
.forma__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.forma__label {
  color: rgba(38, 38, 38, 0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.forma__title {
  color: var(--color-dark);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.forma__text {
  color: rgba(38, 38, 38, 0.75);
  font-size: 16px;
  line-height: 1.6;
}
.forma__text a {
  color: var(--color-dark);
  font-weight: 700;
}

.forma__form {
  background: var(--color-dark);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.forma__form input[type="text"],
.forma__form input[type="tel"],
.forma__form select,
.forma__form textarea {
  background: var(--color-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-light);
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
}
.forma__form textarea {
  resize: vertical;
}
.forma__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(254, 254, 254, 0.75);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.forma__checkbox input {
  margin-top: 2px;
  accent-color: var(--color-yellow);
  flex-shrink: 0;
}
.forma__thanks {
  color: var(--color-yellow);
  font-size: 14px;
  text-align: center;
  margin-top: 4px;
  display: none;
}
.forma__thanks.is-visible {
  display: block;
}


/* ---------- 10. VÝHODY (преимущества) ---------- */
/* Фоновая картинка блока задаётся ниже, в правиле .vyhody__bg   */

.vyhody {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 0;
}
.vyhody__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* <<< ФОНОВАЯ КАРТИНКА БЛОКА VÝHODY — путь к файлу указан здесь: */
  background: url('images/hero/vyhody-bg.jpg') center / cover;
}
.vyhody__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 20, 20, 0.82);
}
.vyhody__ring {
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 280px;
  height: 280px;
  border: 6px solid var(--color-yellow);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.7;
}
.vyhody__content {
  position: relative;
  z-index: 2;
}
.vyhody__head {
  text-align: center;
  margin-bottom: 56px;
}
.vyhody__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .vyhody__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .vyhody__grid { grid-template-columns: repeat(2, 1fr); }
}
.vyhody-card {
  background: rgba(38, 38, 38, 0.85);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.vyhody-card span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}


/* ---------- 11. FAQ (вопросы и ответы) ---------- */

.faq {
  background: var(--color-light);
  padding: var(--section-padding) 0;
}
.faq__container {
  max-width: 860px;
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}
.faq__head {
  text-align: center;
  margin-bottom: 56px;
}
.faq__head .section-label {
  color: rgba(38, 38, 38, 0.55);
}
.faq__head .section-title {
  color: var(--color-dark);
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  border: 1px solid rgba(38, 38, 38, 0.12);
  background: #fff;
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  padding: 22px 24px;
  cursor: pointer;
}
.faq-item__question span:first-child {
  color: var(--color-dark);
  font-size: 17px;
  font-weight: 600;
}
.faq-item__sign {
  color: var(--color-yellow);
  font-size: 26px;
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item__answer {
  color: rgba(38, 38, 38, 0.7);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 24px 24px;
  display: none;
}
.faq-item.is-open .faq-item__answer {
  display: block;
}


/* ---------- 12. KONTAKTY + FOOTER ---------- */

.kontakty {
  background: var(--color-dark);
  padding: 80px 0 0;
}
.kontakty__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.kontakty__logo {
  height: 30px;
  width: auto;
  margin-bottom: 22px;
}
.kontakty__phone {
  display: block;
  color: var(--color-yellow);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}
.kontakty__note {
  color: rgba(254, 254, 254, 0.6);
  font-size: 14px;
}
.kontakty h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.kontakty__requisites {
  color: rgba(254, 254, 254, 0.6);
  font-size: 14px;
  line-height: 1.8;
}
.kontakty__social {
  display: flex;
  gap: 12px;
}
.kontakty__social a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kontakty__social a:hover {
  border-color: var(--color-yellow);
}
.kontakty__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  flex-wrap: wrap;
}
.kontakty__copyright {
  color: rgba(254, 254, 254, 0.4);
  font-size: 13px;
}

/* ---------- Дублирующие иконки соцсетей над первым экраном (только мобильная версия) ---------- */
.hero__social-mobile {
  display: none;
  justify-content: center;
  gap: 10px;
  padding: 0 0 0 0;
  position: relative;
  z-index: 3;
  background: #1c1c1c;
}

.hero__social-mobile a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__social-mobile svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 860px) {
  .hero__social-mobile {
    display: flex;
  }
}