/* ═══════════════════════════════════════════════════════════════
   BRANDNAME — Ремонт квартир под ключ
   Премиальный минималистичный лендинг (Editorial Luxury)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --white: #ffffff;
  --cream: #f5f1eb;       /* основной тёплый фон секций */
  --line: #d8d1c8;        /* тонкие разделители, рамки */
  --text: #171716;        /* почти чёрный текст */
  --muted: #6d665f;       /* вторичный текст */
  --accent: #b9aa97;      /* тёплый бежевый/taupe — номера, кружки, линии */
  
  --card-guarantee-bg: #f7f2ec;
  --card-guarantee-border: #eee7de;
  --card-hover-bg: #f3ece3;
  --service-overlay: rgba(235, 228, 217, 0.9);
  --header-bg: rgba(255, 255, 255, 0.97);
  --header-border: rgba(0, 0, 0, 0.05);
  
  --font-heading: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--white);
}

body.lock-scroll {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ═══════════════════════════════════
   ТИПОГРАФИКА И БАЗОВЫЕ ЭЛЕМЕНТЫ
   ═══════════════════════════════════ */
h1, h2, h3, .heading-font {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.container {
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
}

/* Кнопки (.btn) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #171716;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  min-height: 46px;
  padding: 0 22px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background-color: #2b2a28;
}

.btn:active {
  background-color: #0d0d0c;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--compact {
  min-height: 40px;
  padding: 0 18px;
}

/* ═══════════════════════════════════
   HEADER (sticky, z-index 30)
   ═══════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 72px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.115em;
  color: #171614;
  text-transform: uppercase;
}

.brand__subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.09em;
  color: #746d66;
  margin-top: 8px;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
}

.nav-desktop a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}

.burger-btn span {
  display: block;
  width: 23px;
  height: 1px;
  background-color: #171716;
  transition: transform 0.2s ease;
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
.hero {
  background-color: var(--white);
  min-height: 560px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  min-height: 560px;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 52px 60px 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(50px, 5vw, 76px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #171716;
  margin-bottom: 24px;
}

.hero-title__muted {
  display: block;
  color: #978f86;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.75;
  color: #5f5952;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-media {
  position: relative;
  height: 560px;
  overflow: hidden;
}

/* ═══════════════════════════════════
   PRESENCE (cream)
   ═══════════════════════════════════ */
.presence {
  background-color: var(--cream);
  padding: 42px 0 36px;
}

.presence-top {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 36px;
}

.presence-title {
  font-size: 34px;
  font-weight: 300;
  line-height: 1.18;
  color: var(--text);
}

.presence-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #605a54;
}

.presence-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.presence-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.presence-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: #8e8274;
  font-size: 13px;
  line-height: 1;
}

.presence-item__text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════
   УСЛУГИ (белый, padding 46px 0)
   ═══════════════════════════════════ */
.services-section {
  background-color: var(--white);
  padding: 46px 0;
}

.section-head {
  margin-bottom: 24px;
}

.services-title {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 0.75fr;
  gap: 12px;
}

.service-card {
  position: relative;
  border: 1px solid #e4ddd4;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card--primary {
  height: 315px;
}

.service-card--primary .service-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-card__overlay {
  position: relative;
  z-index: 2;
  width: 52%;
  height: 100%;
  background: var(--service-overlay);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card__overlay h3 {
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 300;
  line-height: 1.15;
  color: #171614;
  margin-bottom: 14px;
}

.service-card__overlay p {
  font-size: 12px;
  line-height: 1.6;
  color: #554f49;
}

.service-card--standard {
  height: 315px;
}

.service-card__thumb {
  height: 160px;
  width: 100%;
  overflow: hidden;
}

.service-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.service-card__body h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 8px;
}

.service-card__body p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* ═══════════════════════════════════
   ДЕМОНТАЖ (подготовка объекта)
   ═══════════════════════════════════ */
.demolition-section {
  background-color: var(--white);
  padding: 56px 0 64px;
  border-top: 1px solid var(--header-border);
}

.demolition-header {
  margin-bottom: 34px;
}

.demolition-title {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.demolition-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #5f5952;
  max-width: 680px;
}

.demolition-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.demolition-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.demolition-card {
  background-color: var(--card-guarantee-bg);
  border: 1px solid var(--card-guarantee-border);
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.demolition-card:hover {
  background-color: var(--card-hover-bg);
  transform: translateY(-2px);
}

.demolition-card__num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.demolition-card__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}

.demolition-card__text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.demolition-media-block {
  position: relative;
  border: 1px solid #e4ddd4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
}

.demolition-media-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demolition-media-overlay {
  position: relative;
  z-index: 2;
  background: rgba(23, 23, 22, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demolition-media-overlay h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.3;
}

.demolition-media-overlay p {
  font-size: 12px;
  line-height: 1.55;
  color: #d8d1c8;
}

/* ═══════════════════════════════════
   СТОИМОСТЬ / КАЛЬКУЛЯТОР (cream)
   ═══════════════════════════════════ */
.cost-section {
  background-color: var(--cream);
  padding: 68px 0 74px;
}

.cost-header {
  margin-bottom: 36px;
}

.cost-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.cost-lead {
  font-size: 14px;
  line-height: 1.6;
  color: #5f5952;
  max-width: 640px;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.calc-controls {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.calc-group {
  display: flex;
  flex-direction: column;
}

.calc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calc-label-row .calc-label {
  margin-bottom: 0;
}

.calc-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.calc-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 14px 16px;
  background-color: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border-radius: 0;
}

.calc-type-btn:hover {
  background-color: #eee7de;
  border-color: var(--accent);
}

.calc-type-btn.is-active {
  background-color: #171716;
  border-color: #171716;
  color: #ffffff;
}

.calc-type-btn__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.calc-type-btn__rate {
  font-size: 11px;
  color: #746d66;
}

.calc-type-btn.is-active .calc-type-btn__rate {
  color: #c9bea9;
}

/* Area input & range slider */
.calc-area-badge {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 4px 12px;
  gap: 6px;
}

.calc-area-input {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  border: none;
  background: transparent;
  width: 60px;
  text-align: right;
  outline: none;
}

.calc-area-badge span {
  font-size: 13px;
  color: var(--muted);
}

.calc-slider-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  outline: none;
  border-radius: 0;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #171716;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #171716;
  border: 2px solid var(--accent);
  cursor: pointer;
  border-radius: 0;
}

.calc-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8c847b;
  letter-spacing: 0.04em;
}

/* Options */
.calc-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-option-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calc-option-check:hover {
  background-color: #eee7de;
}

.calc-option-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #171716;
  margin-right: 12px;
  cursor: pointer;
}

.calc-option-check__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.calc-option-check__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.calc-option-check__price {
  font-size: 12px;
  font-weight: 600;
  color: #8e8274;
  white-space: nowrap;
}

/* Правая карточка summary */
.calc-summary-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.calc-summary-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-summary-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.calc-summary-scope {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.calc-total-box {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calc-total-price {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.calc-total-price small {
  font-size: 0.45em;
  font-weight: 300;
}

.calc-rate-line {
  font-size: 12px;
  color: var(--muted);
}

.calc-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
}

.calc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calc-detail-item__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c847b;
}

.calc-detail-item__val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.calc-disclaimer {
  font-size: 10.5px;
  line-height: 1.5;
  color: #8e857c;
}

/* ═══════════════════════════════════
   КАК МЫ РАБОТАЕМ (белый)
   ═══════════════════════════════════ */
.process-section {
  background-color: var(--white);
  padding: 64px 0;
}

.process-title {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 42px;
  color: var(--text);
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.process-timeline__line {
  position: absolute;
  top: 17px;
  left: 17px;
  right: 17px;
  height: 1px;
  background-color: var(--line);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.process-step__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background-color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}

.process-step__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.process-step__desc {
  font-size: 10px;
  line-height: 1.5;
  color: #655f58;
}

/* ═══════════════════════════════════
   ПРОЕКТЫ (cream, padding 72px 0 82px)
   ═══════════════════════════════════ */
.projects-section {
  background-color: var(--cream);
  padding: 72px 0 82px;
}

.projects-title {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 28px;
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  height: 470px;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
  display: block;
  background-color: #222;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card__img {
  transform: scale(1.018);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 17, 15, 0.65) 0%, rgba(18, 17, 15, 0.15) 45%, transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
}

.project-card__name {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}

.project-card__area {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 12px;
}

/* ═══════════════════════════════════
   КЛЮЧЕВЫЕ ГАРАНТИИ (белый, padding 54px 0 62px)
   ═══════════════════════════════════ */
.guarantees-section {
  background-color: var(--white);
  padding: 54px 0 62px;
}

.guarantees-title {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 28px;
  color: var(--text);
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.guarantee-card {
  background-color: var(--card-guarantee-bg);
  border: 1px solid var(--card-guarantee-border);
  border-radius: 6px;
  min-height: 185px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.guarantee-card:hover {
  background-color: var(--card-hover-bg);
  transform: translateY(-2px);
}

.guarantee-num {
  font-family: var(--font-heading);
  font-size: 29px;
  font-weight: 300;
  color: #b7a894;
  line-height: 1;
  margin-bottom: 12px;
}

.guarantee-line {
  width: 48px;
  height: 1px;
  background-color: #b7a894;
  margin-bottom: 18px;
}

.guarantee-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

/* ═══════════════════════════════════
   FAQ АККОРДЕОН (белый фон, cream карточки)
   ═══════════════════════════════════ */
.faq-section {
  background-color: var(--white);
  padding: 64px 0 74px;
}

.faq-title {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 32px;
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.faq-item {
  background-color: var(--card-guarantee-bg);
  border: 1px solid var(--card-guarantee-border);
  border-radius: 6px;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  background-color: var(--card-hover-bg);
}

.faq-item.is-open {
  background-color: #ffffff;
  border-color: var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 20px;
}

.faq-question__text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: #8e8274;
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background-color: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  overflow: hidden;
}

.faq-answer__text {
  padding: 0 28px 24px;
  font-size: 14px;
  line-height: 1.68;
  color: #5f5952;
}

/* ═══════════════════════════════════
   ФИНАЛЬНЫЙ CTA (cream, padding 48px 0)
   ═══════════════════════════════════ */
.cta-section {
  background-color: var(--cream);
  padding: 48px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-title {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #5f5952;
  margin-bottom: 28px;
}

.cta-media {
  height: 360px;
  overflow: hidden;
}

/* ═══════════════════════════════════
   FOOTER (белый, id="contacts")
   ═══════════════════════════════════ */
.site-footer {
  background-color: var(--white);
  border-top: 1px solid var(--line);
  padding: 48px 0 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .brand__title {
  font-size: 30px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--muted);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.footer-phone {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-hours {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.footer-socials a:hover {
  color: var(--muted);
}

/* ═══════════════════════════════════
   МОДАЛКА «РАССЧИТАТЬ СТОИМОСТЬ»
   ═══════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(520px, 100%);
  height: 100%;
  background: var(--white);
  padding: 48px 36px;
  position: relative;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.06);
}

.modal-overlay.is-open .modal-panel {
  transform: translateX(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #171716;
  font-weight: 300;
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.6;
}

.modal-title {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 28px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background-color: var(--cream);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #171716;
  background-color: #ffffff;
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

/* Honeypot field (hidden from genuine users) */
.honeypot-field {
  display: none !important;
  visibility: hidden;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
  margin: 6px 0 10px;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: #171716;
  cursor: pointer;
  border-radius: 0;
}

.form-checkbox-label a {
  text-decoration: underline;
  color: var(--text);
}

/* ═══════════════════════════════════
   ЛАЙТБОКС ПРОЕКТА (PROJECT VIEWER)
   ═══════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(18, 17, 15, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  position: relative;
  width: 100%;
  max-width: 1420px;
  background-color: #f7f3ed;
  padding: 26px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-right: 42px;
}

.lightbox-eyebrow {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}

.lightbox-title {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.15;
  color: #171614;
}

.lightbox-area {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 10px;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 32px;
  line-height: 1;
  color: #171716;
  cursor: pointer;
  border: 0;
  background: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.6;
}

.lightbox-scene {
  position: relative;
  width: 100%;
  height: min(68vh, 760px);
  background-color: #0e0d0c;
  overflow: hidden;
  margin-bottom: 16px;
}

.lightbox-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: rgba(23, 23, 22, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: 0;
  z-index: 5;
}

.lightbox-arrow:hover {
  background-color: rgba(23, 23, 22, 0.85);
}

.lightbox-arrow--prev {
  left: 16px;
}

.lightbox-arrow--next {
  right: 16px;
}

.lightbox-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.lightbox-thumb {
  height: 64px;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  background: #000;
  overflow: hidden;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.lightbox-thumb img {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-thumb.is-active {
  border-color: #171716;
}

.lightbox-thumb.is-active img,
.lightbox-thumb:hover img {
  opacity: 1;
}

/* ═══════════════════════════════════
   MOBILE MENU (полноэкранное, cream)
   ═══════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: var(--cream);
  padding: 24px 28px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-close {
  font-size: 36px;
  line-height: 1;
  color: #171716;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 6px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 40px 0;
}

.mobile-menu-nav a {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 300;
  color: #171614;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.mobile-menu-nav a:hover {
  color: #746d66;
}

.mobile-menu-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Floating bottom button on mobile <=640px */
.mobile-fixed-cta {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
}

/* ═══════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════ */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background-color: #171716;
  color: #ffffff;
  padding: 16px 26px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  text-align: center;
  max-width: 90vw;
}

.toast-msg.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ (≤980px)
   ═══════════════════════════════════ */
@media (max-width: 980px) {
  .nav-desktop,
  .header-actions .btn {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0 36px;
  }

  .hero-media {
    height: 420px;
  }

  .presence-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--primary {
    grid-column: 1 / -1;
  }

  .cost-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .process-timeline__line {
    display: none;
  }

  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guarantees-grid .guarantee-card:last-child {
    grid-column: 1 / -1;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .footer-brand {
    align-items: center;
  }

  .demolition-grid {
    grid-template-columns: 1fr;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ═══════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ (≤640px)
   ═══════════════════════════════════ */
@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 64px;
  }

  .brand__title {
    font-size: 26px;
  }

  .brand__subtitle {
    font-size: 6.5px;
    margin-top: 5px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-media {
    height: 340px;
  }

  /* ГОРИЗОНТАЛЬНЫЕ СВАЙП-КАРТОЧКИ */
  .presence-items {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .presence-items::-webkit-scrollbar {
    display: none;
  }

  .presence-item {
    flex: 0 0 78%;
    scroll-snap-align: start;
    background-color: #f7f2ec;
    border-radius: 6px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .presence-item .presence-check {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .presence-item__text {
    font-size: 18px;
    font-weight: 600;
  }

  /* Services 1 колонка */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card__overlay {
    width: 68%;
  }

  /* Demolition 1 колонка */
  .demolition-cards {
    grid-template-columns: 1fr;
  }

  /* Calculator 1 колонка и мобильные паддинги */
  .calc-types-grid {
    grid-template-columns: 1fr;
  }

  .calc-controls,
  .calc-summary-card {
    padding: 22px 18px;
  }

  .calc-details-grid {
    grid-template-columns: 1fr;
  }

  /* Process свайп-карточки */
  .process-timeline {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .process-timeline::-webkit-scrollbar {
    display: none;
  }

  .process-step {
    flex: 0 0 78%;
    scroll-snap-align: start;
    background-color: #f7f2ec;
    border-radius: 6px;
    padding: 22px 18px;
  }

  .process-step__circle {
    width: 48px;
    height: 48px;
    font-size: 20px;
    color: #9e907d;
  }

  .process-step__title {
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .process-step__desc {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Projects 1 колонка */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    height: 430px;
  }

  /* Guarantees свайп-карточки */
  .guarantees-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .guarantees-grid::-webkit-scrollbar {
    display: none;
  }

  .guarantee-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  /* Footer */
  .footer-brand .brand__title {
    font-size: 42px;
  }

  .footer-nav a {
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  .footer-phone {
    font-size: 17px;
  }

  .footer-socials {
    font-size: 16px;
    gap: 48px;
  }

  /* Fixed CTA button */
  .mobile-fixed-cta {
    display: block;
  }

  body {
    padding-bottom: 74px; /* to not obscure content behind floating button */
  }

  .lightbox-panel {
    padding: 18px 14px;
  }

  .lightbox-header {
    flex-direction: column;
    padding-right: 32px;
  }

  .lightbox-scene {
    height: 48vh;
  }

  /* FAQ на мобильных */
  .faq-question {
    padding: 18px 20px;
    gap: 14px;
  }

  .faq-question__text {
    font-size: 15px;
  }

  .faq-icon {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .faq-answer__text {
    padding: 0 20px 20px;
    font-size: 13.5px;
  }

  .lightbox-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}
