/* ПОТОЛ'ОК — лёгкий, премиальный, минималистичный стиль */

:root {
  /* палитра проекта */
  --bg-main: #e0d5c4;
  --text-main: #171717;
  --text-accent: #000000;
  --border-color: #e0e0e0;
  --font-main: 'TildaSans', 'Inter', Arial, sans-serif;

  /* прежние имена — указывают на палитру выше */
  --bg: var(--bg-main);
  --sand: var(--bg-main);
  --sand-soft: #f4f1ea;
  --ink: var(--text-main);
  --muted: #6f6a63;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 2px;
  --font: var(--font-main);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* якоря не должны уезжать под фиксированную шапку */
[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* <picture> не должно влиять на раскладку: вёрстка рассчитана на img */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.h1, .h2, h1, h2, h3 {
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.h1 { font-size: clamp(36px, 5vw, 62px); }
.h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 22px; }

.eyebrow {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 19px; }
.section-cta { margin-top: 40px; }
.center { text-align: center; }

/* ---------------- кнопки ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: opacity .3s ease-out, background-color .3s ease-out, color .3s ease-out, border-color .3s ease-out, transform .3s ease-out;
  white-space: nowrap;
}
.btn:hover { opacity: 0.86; transform: scale(1.03); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* главный CTA первого экрана */
.btn-cta {
  padding: 17px 34px;
  font-size: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  border-color: #fff;
}
.btn-cta:hover { background: #fff; color: var(--ink); opacity: 1; transform: translateY(-1px) scale(1.02); }
.btn-sm {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.btn-danger { color: #b33; border-color: #e5b8b8; background: #fdf6f6; }
.icon { vertical-align: middle; flex: 0 0 auto; }

/* ---------------- шапка ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--bg-main);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }
.header-inner { display: flex; align-items: center; height: 76px; gap: 28px; }

.logo { font-weight: 300; font-size: 30px; letter-spacing: 0.01em; }
.logo-apo { color: #b09a77; }

.main-nav { display: flex; gap: 22px; margin-left: auto; }
.nav-link {
  font-size: 17px;
  color: var(--ink);
  position: relative;
  transition: color .3s ease-out;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease-out;
}
.nav-link:hover, .nav-link.active { color: #8a7553; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; transition: color .3s ease-out; }
.header-phone:hover { color: #8a7553; }
.header-cta { padding: 11px 20px; }

.burger { display: none; background: none; border: 0; color: var(--ink); padding: 6px; margin-right: -6px; transition: color .3s ease-out; }
.burger:hover { color: #8a7553; }
.mobile-menu { display: none; position: fixed; inset: 76px 0 auto 0; background: var(--bg-main); border-bottom: 1px solid var(--line); padding: 20px; max-height: calc(100vh - 76px); overflow-y: auto; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a { font-size: 20px; padding: 6px 0; border-bottom: 1px solid var(--line); transition: color .3s ease-out, border-color .3s ease-out; }
.mobile-nav a:hover { color: #8a7553; border-color: #8a7553; }
.mobile-cta { color: #8a7553; font-weight: 600; }

/* ---------------- первый экран ---------------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0.6) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 80px; max-width: 860px; }
.hero-title { font-size: clamp(40px, 7vw, 72px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; margin-bottom: 22px; }
.hero-sub { font-size: clamp(19px, 2.4vw, 24px); max-width: 620px; opacity: 0.94; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 17px; opacity: 0.9; margin-bottom: 20px; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 22px; font-size: 16px; opacity: 0.85; }
.hero-perks span { position: relative; }
.hero-perks span + span::before { content: "|"; position: absolute; left: -12px; opacity: 0.5; }

/* ---------------- оффер ---------------- */
.offer { background: var(--sand-soft); }
.offer .h2 { max-width: 820px; margin-bottom: 18px; }
.offer-sub { max-width: 640px; color: var(--muted); font-size: 20px; margin-bottom: 30px; }

/* ---------------- услуги ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { border: 1px solid var(--line); padding: 30px; border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.service-num { font-size: 15px; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 18px; }
.service-title { margin-bottom: 10px; }
.service-desc { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.service-link { margin-top: auto; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: #8a7553; }

/* ---------------- работы ---------------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; }
.project-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand-soft); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-arrow { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.project-body { padding: 20px; }
.project-title { margin-bottom: 6px; }
.project-meta { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.project-link { font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; color: #8a7553; }

/* ---------------- почему мы ---------------- */
.why { background: var(--sand); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-item { background: #fff; padding: 28px; border-radius: var(--radius); }
.why-icon { display: inline-flex; margin-bottom: 16px; color: #8a7553; }
.why-item h3 { margin-bottom: 8px; font-size: 20px; }
.why-item p { color: var(--muted); font-size: 17px; }
.guarantee { margin-top: 30px; display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 600; }
.guarantee-icon { color: #8a7553; }

/* ---------------- шаги ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-num { font-size: 15px; color: var(--muted); letter-spacing: 0.1em; }
.step h3 { margin: 10px 0 8px; font-size: 19px; }
.step p { color: var(--muted); font-size: 16px; }
.steps-final { margin-top: 40px; font-size: 20px; font-weight: 600; max-width: 640px; }

/* ---------------- калькулятор ---------------- */
.calc-section { background: var(--sand-soft); }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.calc-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.calc-step-body { min-width: 0; }
.calc-step:last-child { border-bottom: 0; }
.calc-step-n { width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.calc-label { font-weight: 600; font-size: 20px; margin-bottom: 12px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 11px 18px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 18px; color: var(--ink); transition: border-color .3s ease-out, background-color .3s ease-out, color .3s ease-out, transform .3s ease-out; }
.chip:hover { border-color: var(--ink); transform: scale(1.03); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-area { display: flex; align-items: center; gap: 10px; }
.calc-area input { width: 110px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 18px; font-family: inherit; }
.calc-unit { color: var(--muted); }
.calc-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.check input { width: 16px; height: 16px; }

/* помещения */
.calc-hint { color: var(--muted); font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.calc-rooms { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.calc-room { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; min-width: 0; }
.calc-room-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.calc-room-title { font-size: 18px; color: var(--ink); }
.room-remove { background: none; border: 0; padding: 0; font-size: 16px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.room-remove:hover { color: #b33; }
.calc-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; min-width: 0; align-items: end; }
.calc-room-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc-field[hidden] { display: none; }
.calc-field span { font-size: 16px; color: var(--muted); }
.calc-field input, .calc-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 19px; font-family: inherit; background: #fff; color: var(--ink); }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--ink); }
.room-add { margin-top: 14px; align-self: flex-start; background: none; border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 18px; font-size: 18px; font-family: inherit; color: var(--ink); cursor: pointer; }
.room-add:hover { border-color: var(--ink); }

/* детализация сметы */
.calc-breakdown { margin: 6px 0 18px; font-size: 18px; }
.calc-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.12); }
.calc-row:last-child { border-bottom: 0; }
.calc-row span:first-child { color: var(--muted); }
.calc-row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 10px; font-size: 16px; color: var(--muted); }
.calc-result { margin-top: 24px; padding: 24px; background: var(--sand); border-radius: var(--radius); }
.calc-total { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-bottom: 8px; }
.calc-disclaimer { color: var(--muted); font-size: 16px; margin-bottom: 18px; }

/* ---------------- цены ---------------- */
.prices-light { background: var(--bg-main); }
.prices-list { border-top: 1px solid var(--line); }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.price-row:hover { background: var(--sand-soft); padding-left: 10px; }
.price-val { font-size: 22px; font-weight: 600; white-space: nowrap; }

/* ---------------- отзывы ---------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-card { border: 1px solid var(--line); padding: 26px; border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: 16px; }
.review-top { display: flex; justify-content: space-between; align-items: center; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.review-name { font-weight: 600; }
.review-source { color: var(--muted); font-size: 15px; }
.review-text { color: var(--ink); font-size: 17px; }
.review-img { border-radius: var(--radius); margin-top: auto; }
/* Честная заглушка: отзывов нет, пока их не написали клиенты */
.reviews-none {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.6);
}
.reviews-none-title { font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.reviews-none-text { color: var(--muted); font-size: 17px; max-width: 62ch; }
.reviews-more { margin-top: 26px; }
.reviews-more-title { font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.reviews-more-text { color: var(--muted); font-size: 16px; max-width: 70ch; margin-bottom: 14px; }
.reviews-more-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- статьи ---------------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.article-media { display: block; aspect-ratio: 16 / 10; background: var(--sand-soft); overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-media img { transform: scale(1.05); }
.article-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.article-title { margin-bottom: 8px; }
.article-title a:hover { color: #8a7553; }
.article-excerpt { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.article-more { margin-top: auto; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; color: #8a7553; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; background: none; border: 0; text-align: left; font-size: 19px; font-weight: 600; font-family: inherit; color: var(--ink); transition: color .3s ease-out; }
.faq-q:hover { color: #8a7553; }
.faq-plus { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--ink); }
.faq-plus::before { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-plus::after { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-item.open .faq-plus::before { display: none; }
.faq-a { padding: 0 0 22px; }
.faq-a p { color: var(--muted); }
.faq-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #8a7553; font-size: 16px; font-weight: 600; }
.faq-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-more .icon { flex: 0 0 auto; }

/* ---------------- формы ---------------- */
.lead-section {
  position: relative;
  padding: 88px 0;
  color: #fff;
  background: var(--ink) url("/static/img/photos/bg-lead.webp") center / cover no-repeat;
}

/* затемнение поверх фото: белый текст и форма читаются при любом кадре */
.lead-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.8);
}

.lead-section > .container { position: relative; z-index: 1; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lead-info .h2 { margin-bottom: 16px; }
.lead-sub { color: rgba(255, 255, 255, 0.75); margin-bottom: 24px; }
.lead-points li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lead-points .icon { color: var(--sand); }
.lead-form, .contact-form { background: #fff; color: var(--ink); padding: 30px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 15px; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 17px; font-family: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form-note { font-size: 14px; color: var(--muted); }

/* блок мессенджеров под формой */
.lead-form-wrap { display: flex; flex-direction: column; gap: 14px; }
.lead-messengers {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.lead-messengers-title { color: rgba(255, 255, 255, 0.75); font-size: 16px; margin-bottom: 12px; }
.lead-messengers-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-messenger { padding: 11px 18px; font-size: 16px; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-messenger:hover { opacity: 1; transform: none; }
.btn-messenger-wa:hover { background: #25d366; border-color: #25d366; color: #0b2e17; }
.btn-messenger-max:hover { background: #6b8cff; border-color: #6b8cff; color: #0a1230; }
.btn-messenger-tg:hover { background: #2aabee; border-color: #2aabee; color: #06202e; }
.btn-messenger-vk:hover { background: #0077ff; border-color: #0077ff; color: #fff; }

/* ---------------- хлебные крошки / внутренние страницы ---------------- */
.page-hero {
  position: relative;
  padding: 150px 0 60px;
  background: var(--sand-soft) url("/static/img/photos/bg-page-hero.webp") center / cover no-repeat;
}

/* светлая вуаль: фото остаётся тёплой подложкой, но не мешает тексту */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 241, 234, 0.92) 0%, rgba(244, 241, 234, 0.86) 40%, rgba(244, 241, 234, 0.42) 100%);
}

/* крошки и лид заголовка на фото-подложке чуть темнее ради контраста */
.page-hero .breadcrumbs,
.page-hero .page-lead { color: #5d5852; }

.page-hero > .container { position: relative; z-index: 1; }
.breadcrumbs { font-size: 16px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a:hover { color: #8a7553; }
.page-lead { color: var(--muted); font-size: 20px; max-width: 720px; margin-top: 16px; }

/* ---------------- сервисные страницы ---------------- */
.service-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 50px; }
.feature-list { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 10px; }
.feature-list .icon { color: #8a7553; }
.service-note { color: var(--muted); margin-bottom: 26px; }
.service-aside { border: 1px solid var(--line); padding: 26px; border-radius: var(--radius); }
.service-aside-media { margin-bottom: 24px; aspect-ratio: 4 / 3; background: var(--sand-soft); border-radius: var(--radius); overflow: hidden; }
.service-aside-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-aside-media:hover img { transform: scale(1.05); }
.service-aside h3 { margin-bottom: 14px; }
.related { display: flex; flex-direction: column; gap: 10px; }
.related-link { font-size: 17px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.related-link:hover { color: #8a7553; }

/* ---------------- портфолио / фильтры ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter-btn { padding: 9px 16px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 16px; color: var(--ink); transition: border-color .3s ease-out, background-color .3s ease-out, color .3s ease-out, transform .3s ease-out; }
.filter-btn:hover { border-color: var(--ink); transform: scale(1.03); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------- страница проекта ---------------- */
.project-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { padding: 6px 12px; background: var(--sand-soft); border-radius: 999px; font-size: 15px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 40px; }
.gallery-item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--sand-soft); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.project-content { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.project-specs { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px; height: fit-content; }
.spec { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec:last-child { border-bottom: 0; }
.spec span { color: var(--muted); font-size: 16px; }
.spec strong { text-align: right; font-weight: 600; }
.project-desc p { color: var(--muted); margin-top: 14px; }
.project-cta { background: var(--sand); border-radius: var(--radius); padding: 40px; text-align: center; }
.project-cta p { color: var(--muted); margin: 12px 0 24px; }

/* ---------------- статья ---------------- */
.article-inner { max-width: 800px; }
.article-cover { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin: 30px 0; background: var(--sand-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-content { font-size: 19px; line-height: 1.75; }
.article-content h2 { font-size: 28px; margin: 34px 0 12px; }
.article-content p { margin-bottom: 18px; color: var(--text-main); }
.article-cta { margin-top: 40px; background: var(--sand-soft); border-radius: var(--radius); padding: 32px; text-align: center; }
.article-cta p { color: var(--muted); margin: 10px 0 20px; }

/* ---------------- о компании / контакты ---------------- */
.about-grid, .contacts-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; }
.about-text .h2 { margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand-soft); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-block .h2 { margin: 26px 0 10px; }
.contact-block .h2:first-child { margin-top: 0; }
.contact-phone { font-size: 28px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.contact-socials { display: flex; flex-direction: column; gap: 10px; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.contact-note { color: var(--muted); font-size: 16px; margin-top: -6px; }
.contact-link:hover { color: #8a7553; }
.contact-form-wrap { border: 1px solid var(--line); padding: 30px; border-radius: var(--radius); }

/* ---------------- SEO лендинг ---------------- */
.seo-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; }
.seo-text .h2 { margin-bottom: 20px; }
.seo-text p { color: var(--muted); margin: 20px 0 26px; }
.seo-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand-soft); }
.seo-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- футер ---------------- */
.site-footer { background: #111; color: #fff; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: #fff; display: inline-block; margin-bottom: 14px; }
.footer-tagline, .footer-hours, .footer-col p { color: rgba(255, 255, 255, 0.65); font-size: 16px; margin-bottom: 8px; }
.footer-title { color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; margin-bottom: 18px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #fff; font-size: 17px; transition: color .3s ease-out; }
.footer-nav a:hover { color: var(--sand); }
.footer-phone { font-size: 22px; font-weight: 600; display: block; margin-bottom: 10px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a.social-btn { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: border-color .3s ease-out, color .3s ease-out, background-color .3s ease-out; }
.socials a.social-btn:hover { border-color: var(--sand); color: var(--sand); }

/* ссылка на группу ВК в футере */
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 60px; padding: 22px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { color: rgba(255, 255, 255, 0.45); font-size: 15px; }
.footer-legal a { color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--sand); }

/* ---------------- юридические страницы ---------------- */
.legal { max-width: 78ch; overflow-wrap: break-word; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); font-size: 17px; line-height: 1.65; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal li { list-style: disc; }
.legal-date { color: var(--muted) !important; font-size: 15px !important; margin-top: 30px; }
.form-consent { font-size: 15px; color: rgba(255, 255, 255, 0.7); line-height: 1.5; }
.form-consent a { color: var(--sand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- лайтбокс ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 10, 0.92); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox img { max-width: 100%; max-height: 88vh; }
.lightbox-close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 36px; line-height: 1; }

/* ---------------- утилиты ---------------- */
.empty { color: var(--muted); }

/* ---------------- адаптив ---------------- */
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu.open { display: block; }
}

@media (max-width: 1024px) {
  .services-grid, .works-grid, .why-grid, .reviews-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .calc { padding: 20px 18px; }
  .calc-step { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .calc-step-n { width: 28px; height: 28px; font-size: 15px; }
  .calc-room { padding: 14px; }
  .lead-section { padding: 60px 0; }
  .services-grid, .works-grid, .why-grid, .reviews-grid, .articles-grid,
  .steps-grid, .calc-checks, .project-gallery { grid-template-columns: 1fr; }
  .calc-room-grid, .calc-room-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lead-grid, .service-layout, .project-content, .about-grid, .contacts-grid, .seo-layout { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero-content { padding-top: 110px; padding-bottom: 60px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .project-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-phone { font-size: 0; }
  .header-phone .icon { width: 22px; height: 22px; }
  .page-hero { padding-top: 130px; }
}

/* очень узкие экраны: поля в одну колонку, иначе они становятся нечитаемо тесными */
@media (max-width: 400px) {
  .calc-room-grid, .calc-room-grid-3 { grid-template-columns: 1fr; }
}

/* ---------------- появление страницы ---------------- */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: page-enter 0.5s ease-out backwards;
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

/* ---------------- появление блоков при прокрутке ---------------- */
html.reveal-enabled main .container > :not(:where(.services-grid, .works-grid, .why-grid, .steps-grid, .reviews-grid, .articles-grid, .project-gallery, .contacts-grid, .about-grid, .service-layout, .seo-layout, .faq, .prices-list)),
html.reveal-enabled main :where(.services-grid, .works-grid, .why-grid, .steps-grid, .reviews-grid, .articles-grid, .project-gallery, .contacts-grid, .about-grid, .service-layout, .seo-layout, .faq, .prices-list) > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

html.reveal-enabled main .reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- переход между страницами ---------------- */
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.page-transition body {
  animation: page-fade-in .3s ease-out backwards;
}

html.page-leaving body {
  animation: none;
  opacity: 0;
  transition: opacity .3s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  html.page-transition body { animation: none; }
  html.page-leaving body { transition: none; }
  .btn:hover, .chip:hover, .filter-btn:hover { transform: none; }
  .nav-link::after { transition: none; }
  .project-card:hover .project-media img,
  .article-card:hover .article-media img,
  .gallery-item:hover img,
  .service-aside-media:hover img { transform: none; }
}
