
/* Переменные — синяя цветовая гамма */
:root {
  /* Bitum: одна семья, переключение по font-weight (300 = light, 700 = bold) */
  --font-title: 'bitum', sans-serif;
  --font-text: 'bitum', sans-serif;
  /* Фон: светлый голубовато-серый, гармонирует с синим */
  --color-baby-powder: #EDF1F8;
  --color-white: #FFFFFF;
  /* Акцент: основной синий rgb(0, 57, 166) */
  --color-blue: #0039A6;
  /* Нейтральный холодный серый */
  --color-gray: #5C6B7A;
  /* Текст: тёмно-синий/уголь */
  --color-jet: #1A2332;
  /* Оранжевый */ 
  --color-orange: #ff754f ;  /* #FF5733; */ 

  /* Зелёный */
  --color-green: #92d400;

  


  --padding-section-large: 126px 0 126px;
  --padding-section-small: 48px 0 48px;
  --padding-section-medium: 64px 0 64px;


  --text-light-16: 16px;
  --text-regular: 22px;
  --text-regular-small: 16px;
  --text-regular-medium: 18px;
  --text-medium-large: 48px;
  --text-medium: 30px;
  --text-medium-small: 14px;
  --text-medium-medium: 15px;
  --border-radius-small: 1px;
  --border-radius-medium: 8px;
  --border-radius-large: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-regular);
  line-height: 1.5;
  color: var(--color-jet);
  background: var(--color-baby-powder);
}

/* Нейтрализуем базовые стили Tilda внутри наших секций */
.section {
  font-family: var(--font-text);
  color: var(--color-jet);
}

/* Ссылки внутри наших блоков — без тильдовского оранжевого по умолчанию */
.section a {
  color: inherit;
  text-decoration: none;
}
.section a:hover {
  color: var(--color-blue);
}

/* Если наши секции рендерятся внутри tilda-обёрток */
#allrecords .section a,
.t-records .section a {
  color: inherit;
}

 .section-title-accent {
  color: var(--color-orange);
}

/* Контейнер: узкий по центру, как у modular-house.by */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 0 90px;
}

/* Шапка: минималистичная, фиксируется сверху при прокрутке */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  padding: 20px 0;
  border-bottom: 1px solid var(--color-baby-powder);
  box-shadow: 0 2px 8px rgba(46, 46, 46, 0.04);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0;
}

.logo {
  font-weight: 500;
  font-size: var(--text-medium);
  color: var(--color-jet);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}



/* Hero: фиксированная высота, фон на всю ширину, слайдер привязан к низу */
.hero {
  position: relative;
  height: 660px;
  display: flex;
  align-items: stretch;
  padding: 48px 0 0;
  background-color: var(--color-baby-powder);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-bg.is-visible {
  opacity: 1;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-content {
  margin-bottom: 24px;
  max-width: 420px;
}

.hero-title {
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  font-weight: 500;
  font-size: clamp(24px, 3.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-jet);
  opacity: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

@media (max-width: 900px) {
  .hero-title {
    white-space: normal;
  }
}

.hero-desc {
  margin: 36px 0 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--border-radius-medium);
  font-weight: 400;
  font-size: var(--text-regular);
  line-height: 1.6;
  color: var(--color-jet);
  max-width: 100%;
}

/* Навигация по слайдам: привязана к нижнему краю блока, с отступом и фоном */
.hero-nav {
  margin-top: auto;
  padding: 18px 24px 24px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px 8px 0 0;
}

.hero-nav-line {
  position: relative;
  height: 2px;
  background: rgba(46, 46, 46, 0.15);
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-nav-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--color-blue);
}

.hero-nav-numbers {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-nav-btn {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--text-regular-small);
  color: var(--color-jet);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
}

.hero-nav-btn:hover {
  opacity: 0.9;
}

.hero-nav-btn.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-nav-sep {
  width: 1px;
  height: 14px;
  background: var(--color-gray);
  opacity: 0.5;
}

.hero-nav-arrow {
  font-size: var(--text-regular-small);
  color: var(--color-jet);
  opacity: 0.6;
  margin-left: 4px;
}


/* Кнопка CTA */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-text);
  font-size: var(--text-regular-small);
  font-weight: 600;
  text-align: center;
  color: var(--color-white) !important;
  background: var(--color-blue);
  border: none;
  border-radius: var(--border-radius-small);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn:hover {
  opacity: 0.9;
}
.btn-md {
  max-width: 300px;
  width: 100%;
  padding: 14px 24px;

}
.btn-orange {
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-small);
  padding: 14px 32px;
  font-size: var(--text-regular-small);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-text)
}

/* Секция с заголовком: как на modular-house.by — заголовок + линия */
.section {
  padding: 30px 0;
  background: var(--color-baby-powder);
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: var(--text-medium);
  color: var(--color-blue) !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
  padding-right: 24px;
}

.section-title-line {
  display: inline-block;
  vertical-align: middle;
  width: 80px;
  height: 1px;
  background: var(--color-jet);
  margin-left: -4px;
}

/* Страница проекта: hero-блок для отдельного дома */
.section-project-hero {
  background: var(--color-white);
}

.section-project-hero .container {
  max-width: 1100px;
}

.project-hero-top {
  margin-bottom: 16px;
}

.project-hero-breadcrumb {
  margin: 0;
  font-size: var(--text-regular-small);
  color: var(--color-gray);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: flex-start;
}

.project-hero-title {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-jet);
}

.project-hero-lead {
  margin: 0 0 28px;
  font-size: var(--text-regular);
  line-height: 1.6;
  color: var(--color-gray);
}

.project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.btn-link {
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-text);
  font-size: var(--text-regular-small);
  color: var(--color-jet);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--color-blue);
}

.project-hero-specs {
  background: var(--color-baby-powder);
  border-radius: var(--border-radius-medium);
  padding: 20px 24px;
}

.project-specs-list {
  margin: 0;
  padding: 0;
}

.project-specs-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-regular-small);
  padding: 8px 0;
  border-bottom: 1px solid rgba(46, 46, 46, 0.08);
}

.project-specs-item:last-child {
  border-bottom: none;
}

.project-specs-item dt {
  margin: 0;
  color: var(--color-gray);
}

.project-specs-item dd {
  margin: 0;
  font-weight: 500;
  color: var(--color-jet);
}

@media (max-width: 800px) {
  .project-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Страница проекта: галерея */
.section-project-gallery {
  background: var(--color-baby-powder);
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 32px;
}

.project-gallery-main {
  margin: 0;
}

.project-gallery-main-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-medium);
  background: linear-gradient(135deg, #f2f3ed 0%, rgba(139, 146, 109, 0.16) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: var(--text-regular-small);
}

.project-gallery-main figcaption {
  margin-top: 12px;
  font-size: var(--text-regular-small);
  color: var(--color-gray);
}

.project-gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.project-gallery-thumb {
  border-radius: var(--border-radius-medium);
  padding: 16px 18px;
  background: var(--color-white);
  font-size: var(--text-regular-small);
  color: var(--color-gray);
}

@media (max-width: 900px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Страница проекта: блок «что входит» */
.section-project-details {
  background: var(--color-white);
}

.project-details-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

.project-details-item h3 {
  margin: 0 0 6px;
  font-size: var(--text-regular);
  font-weight: 500;
  color: var(--color-jet);
}

.project-details-item p {
  margin: 0;
  font-size: var(--text-regular-small);
  color: var(--color-gray);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .project-details-list {
    grid-template-columns: 1fr;
  }
}

/* Страница проекта: шаги получения дома */
.section-project-steps {
  background: var(--color-baby-powder);
}

.project-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

.project-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.project-step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(46, 46, 46, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-medium-small);
  color: var(--color-jet);
}

.project-step-content h3 {
  margin: 0 0 4px;
  font-size: var(--text-regular);
  font-weight: 500;
  color: var(--color-jet);
}

.project-step-content p {
  margin: 0;
  font-size: var(--text-regular-small);
  color: var(--color-gray);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .project-steps-list {
    grid-template-columns: 1fr;
  }
}

/* Двухколоночная раскладка: слева титул, справа наполнение (как modular-house.by) */
.section-two-col {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.section-col-title {
  flex-shrink: 0;
  width: 300px;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 16px;
}


.section-col-title .section-title-line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--color-jet);
}

.section-col-content {
  flex: 1 1 0%;
  min-width: 0;
  overflow-x: hidden;
}

@media (max-width: 700px) {
  .section-two-col {
    flex-direction: column;
    gap: 32px;
  }
  .section-col-title {
    flex: none;
  }
}

/* Блок преимуществ: левая колонка — титул, правая — список с цифрами */
.section-advantages {
  background: var(--color-white);
}

.advantages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.advantages-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.advantages-num {
  flex: 0 0 48px;
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  color: var(--color-jet);
  opacity: 0.2;
}

.advantages-content {
  flex: 1;
  min-width: 0;
}

.advantages-title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: var(--text-regular);
  color: var(--color-jet);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.advantages-desc {
  margin: 0;
  font-size: var(--text-regular-small);
  line-height: 1.6;
  color: var(--color-gray);
}

@media (max-width: 600px) {
  .advantages-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .advantages-item {
    gap: 16px;
  }
  .advantages-num {
    flex: 0 0 40px;
    font-size: 32px;
  }
}

/* Блок ответов на вопросы: слева титул, справа аккордеон */
.section-faq {
  background: var(--color-baby-powder);
}

.section-faq .section-col-content {
  padding-left: 24px;
  border-left: 1px solid rgba(46, 46, 46, 0.08);
}

.faq-list {
  max-width: 100%;
  min-width: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(46, 46, 46, 0.12);
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.35s ease-out;
}

.faq-item[open] {
  grid-template-rows: auto 1fr;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  margin: 0;
  padding: 20px 40px 20px 0;
  font-weight: 500;
  font-size: var(--text-regular);
  color: var(--color-jet);
  cursor: pointer;
  list-style: none;
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--color-blue);
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: translateY(-50%);
}

.faq-answer {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 0 20px;
  font-size: var(--text-regular-small);
  line-height: 1.65;
  color: var(--color-gray);
}

/* Подвал: минимальный, светлый текст на тёмном фоне */
.footer {
  padding: 40px 0;
  background: var(--color-jet);
  font-size: var(--text-regular-small);
  color: rgba(255, 255, 255, 0.85);
}

.footer .container {
  text-align: center;
}

.footer a {
  color: var(--color-blue);
  text-decoration: none;
}

.footer p {
  margin: 0 0 8px;
}

.footer p:last-child {
  margin-bottom: 0;
}

/* Блок 5: шаги (Как это работает) */
.section-steps .steps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}

.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 40px;
  font-weight: 500;
  font-size: 28px;
  color: var(--color-jet);
  /* opacity: 0.5; */
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: var(--text-regular);
  color: var(--color-jet);
}

.step-desc {
  margin: 0;
  font-size: var(--text-regular-small);
  line-height: 1.6;
  color: var(--color-gray);
}

@media (max-width: 700px) {
  .section-steps .steps-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Блок 6: Почему More House */
.section-why .why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.why-item {
  background: var(--color-baby-powder);
  padding: 24px;
  border-radius: var(--border-radius-small);
}

.why-title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: var(--text-regular);
  color: var(--color-jet);
}

.why-text {
  margin: 0;
  font-size: var(--text-regular-small);
  line-height: 1.6;
  color: var(--color-gray);
}

@media (max-width: 900px) {
  .section-why .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .section-why .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Блок 7: пресса и отзывы */
.section-press .press-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.press-item {
  background: var(--color-baby-powder);
  padding: 24px;
  border-radius: var(--border-radius-small);
}

.press-source {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: var(--text-regular);
  color: var(--color-jet);
}

.press-text {
  margin: 0 0 8px;
  font-size: var(--text-regular-small);
  line-height: 1.6;
  color: var(--color-gray);
}

.press-meta {
  margin: 0;
  font-size: var(--text-medium-small);
  color: var(--color-gray);
  opacity: 0.8;
}

@media (max-width: 900px) {
  .section-press .press-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .section-press .press-grid {
    grid-template-columns: 1fr;
  }
}

/* Блок 8: контакты + CTA */
.section-contacts-cta .contacts-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 32px;
}

.contacts-main .contacts-phone {
  margin: 0 0 8px;
  font-size: var(--text-regular);
  color: var(--color-jet);
}

.contacts-main .contacts-phone a {
  color: var(--color-jet);
  text-decoration: none;
}

.contacts-main .contacts-phone a:hover {
  text-decoration: underline;
}

.contacts-text {
  margin: 0 0 16px;
  font-size: var(--text-regular-small);
  line-height: 1.6;
  color: var(--color-gray);
}

.contacts-label {
  margin: 0 0 8px;
  font-size: var(--text-regular-small);
  color: var(--color-jet);
}

.contacts-list {
  margin: 0;
  padding-left: 18px;
  font-size: var(--text-regular-small);
  color: var(--color-gray);
}

.contacts-list li {
  margin-bottom: 4px;
}

@media (max-width: 800px) {
  .section-contacts-cta .contacts-cta-grid {
    grid-template-columns: 1fr;
  }
}

