/* Общие стили сайта РК «Брусника» — главная и статьи */
:root {
  --bg: #161314;
  --surface: #211c1e;
  --surface-2: #2a2427;
  --line: #3a3135;
  --text: #f6f2f3;
  --muted: #b9adb1;
  --accent: #fb003c;
  --accent-hover: #ff3363;
  --accent-ink: #d10032;
  --light-bg: #f7f2f3;
  --light-text: #221b1e;
  --light-muted: #6e6064;
  --radius: 18px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Montserrat, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.script { font-family: "Marck Script", cursive; color: var(--accent); font-weight: 400; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: background .2s, transform .2s, border-color .2s;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Шапка */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(22, 19, 20, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand b { display: block; font-size: 18px; letter-spacing: .08em; }
.brand small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
nav { display: flex; gap: 20px; margin-left: auto; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
nav a:hover { color: var(--text); }
.bar-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.bar .btn { padding: 10px 20px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1240px) {
  .bar-phone { display: none; }
}

/* Первый экран */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -200px; top: -150px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(251, 0, 60, .22), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.city { color: var(--muted); font-weight: 600; letter-spacing: .04em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.hero h1 .script { display: block; text-transform: none; font-size: 1.15em; line-height: 1; margin-top: 4px; }
.hero h1 small { display: block; font-size: .42em; text-transform: none; font-weight: 700; margin-top: 10px; letter-spacing: 0; }
.hero-lead { font-size: 19px; color: var(--muted); margin: 24px 0 32px; max-width: 560px; }
.hero-lead strong { color: var(--text); }
.hero-offer {
  display: inline-flex; align-items: flex-start; gap: 10px; margin: -8px 0 28px;
  padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(251, 0, 60, .45);
  background: rgba(251, 0, 60, .1); font-size: 16px; line-height: 1.4; color: var(--muted);
}
.hero-offer b { color: var(--text); font-weight: 700; }
.hero-offer svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-photo { position: relative; max-width: 400px; width: 100%; justify-self: end; }
.hero-photo img { border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; height: auto; }
.badge {
  display: none;
  position: absolute; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  font-size: 14px; line-height: 1.35; max-width: 220px;
}
.badge b { display: block; font-size: 22px; color: var(--accent); }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; position: relative; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-size: 30px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

/* Секции */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.light { background: var(--light-bg); color: var(--light-text); }
.light .section-head p { color: var(--light-muted); }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.why-card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(251, 0, 60, .14); color: var(--accent); margin-bottom: 18px;
}
.why-card .ico svg { width: 26px; height: 26px; }
.why-card h3 { margin: 0 0 8px; font-size: 20px; }
.why-card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.service {
  background: #fff; border-radius: var(--radius); padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  border: 1px solid #ece3e5;
}
.service h3 { margin: 0 0 4px; font-size: 18px; }
.service p { margin: 0; color: var(--light-muted); font-size: 15px; }
.price { white-space: nowrap; font-weight: 700; color: var(--accent-ink); font-size: 15px; padding-top: 2px; }
.price-banner {
  background: var(--bg); color: var(--text); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.price-banner-label { display: block; color: var(--muted); font-weight: 600; }
.price-banner b { display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 800; color: var(--accent); line-height: 1.15; }
.price-banner b small { font-size: .5em; color: var(--text); font-weight: 700; }
.price-in { color: #1f7a4d; }
.price-banner-note strong { color: var(--text); font-weight: 600; }
.price-banner-note { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.services-note { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--light-muted); }

/* Работы */
.works { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.work { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.work img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .5s; }
.work:hover img { transform: scale(1.04); }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-weight: 600; font-size: 15px;
}
.project { margin-top: 40px; }
.project-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.project-head h3 { margin: 0; font-size: 22px; }
.project-head span { color: var(--muted); font-size: 15px; }
.project-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.shot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); scroll-snap-align: start; color: var(--text); text-decoration: none; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.04); }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-weight: 600; font-size: 14px; }
.works-more { margin-top: 28px; }
.complexes { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.complexes span:first-child { color: var(--muted); margin-right: 6px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; }

/* Этапы */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid #ece3e5; border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 40px; font-weight: 800; color: var(--accent); opacity: .9; display: block; line-height: 1; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--light-muted); font-size: 15px; }

/* Директор */
.director { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.director > * { min-width: 0; }
.director img { width: 100%; max-width: 400px; justify-self: center; border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.director blockquote {
  margin: 0 0 24px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 600;
}
.director blockquote::before { content: "«"; color: var(--accent); }
.director blockquote::after { content: "»"; color: var(--accent); }
.director .name { font-weight: 700; font-size: 18px; }
.director .role { color: var(--muted); margin-bottom: 28px; }
.director ul { padding: 0; margin: 0 0 32px; list-style: none; display: grid; gap: 10px; }
.director li { padding-left: 30px; position: relative; color: var(--muted); }
.director li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--accent);
}

/* Отзывы */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.reviews .review { margin: 0; }
.review { background: #fff; border: 1px solid #ece3e5; border-radius: var(--radius); padding: 28px; }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-head b { display: block; font-size: 17px; }
.review-head span { color: var(--light-muted); font-size: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 20px;
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 18px; margin-bottom: 10px; }
.review-lead { font-size: 17px; line-height: 1.55; font-weight: 500; margin: 0 0 16px; }
.review details summary {
  cursor: pointer; font-weight: 700; color: var(--accent-ink); list-style: none; display: inline-block;
}
.review details summary::-webkit-details-marker { display: none; }
.review details summary::after { content: " ↓"; }
.review details[open] summary::after { content: " ↑"; }
.review details[open] summary { margin-bottom: 14px; }
.review-full p { margin: 0 0 12px; color: var(--light-muted); font-size: 15px; }
.reviews-more { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--light-muted); }

/* Финальный призыв */
.cta {
  background: linear-gradient(135deg, #2a1218, #161314 60%);
  border: 1px solid var(--line); border-radius: 32px; padding: 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0 0 16px; font-weight: 800; }
.cta p { color: var(--muted); margin: 0; font-size: 18px; }
.cta-actions { display: grid; gap: 14px; }
.cta-actions .btn { width: 100%; }

footer { border-top: 1px solid var(--line); padding: 36px 0 110px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; color: var(--text); font-size: 15px; }
.foot-grid p { margin: 0 0 6px; }
.foot-grid .brand small { max-width: 220px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.foot-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* Плавающая кнопка на телефоне */
.float-vk { display: none; }

@media (max-width: 960px) {
  nav, .bar-phone { display: none; }
  .bar .btn { margin-left: auto; }
  .hero { padding: 36px 0 56px; }
  .hero-grid, .director, .cta { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; justify-self: start; }
  .hero-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-photo img { grid-column: 1 / -1; }
  .badge { display: block; position: static; max-width: none; box-shadow: none; grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .why, .steps { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .works .work:first-child { grid-column: 1 / -1; }
  .works .work:first-child img { aspect-ratio: 4 / 3; }
  .director { gap: 32px; }
  .director img { max-width: 460px; justify-self: start; }
  .cta { padding: 36px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .project-strip { grid-auto-columns: 62%; margin-right: -16px; padding-right: 16px; }
  body { font-size: 16px; }
  .hero-lead { font-size: 17px; }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: top; }
  .director img { aspect-ratio: 1 / 1; }
  .stat { padding: 16px; }
  .stat b { font-size: 22px; }
  .wrap { padding: 0 16px; }
  .brand small { display: none; }
  .bar .btn { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid .brand small { display: block; }
  section { padding: 64px 0; }
  .hero-actions .btn { width: 100%; }
  .why, .steps { grid-template-columns: 1fr; }
  .service { flex-direction: column; gap: 6px; }
  .review { padding: 22px; }
  .badge { font-size: 13px; padding: 10px 14px; }
  .badge b { font-size: 18px; }
  .float-vk {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
    box-shadow: 0 10px 30px rgba(251, 0, 60, .45);
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .float-vk.show { opacity: 1; transform: none; pointer-events: auto; }
}

/* ===== Статьи ===== */

/* Карточки статей (главная и список) */
.article-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card-meta { color: var(--muted); font-size: 13px; }
.article-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.article-card p { margin: 0; color: var(--muted); font-size: 15px; }
.article-card-more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 700; font-size: 15px; }
.articles-empty { color: var(--muted); }

/* Шапка страниц блога */
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
.page-head p { color: var(--muted); margin: 0; font-size: 18px; max-width: 720px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* Страница статьи */
.article-hero { padding: 48px 0 0; }
.article-hero .wrap, .article-body .wrap { max-width: 820px; }
.article-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; margin: 0 0 16px; font-weight: 800; }
.article-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 28px; }
.article-cover { border-radius: 24px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { padding: 48px 0 72px; }

.prose { font-size: 18px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 48px 0 16px; font-weight: 800; }
.prose h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 12px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent-ink); font-weight: 700; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose blockquote {
  margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--accent);
  background: #fff; border-radius: 0 14px 14px 0; font-size: 19px; font-weight: 500;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; background: #fff; border-radius: 14px; overflow: hidden; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #ece3e5; vertical-align: top; }
.prose th { background: #efe6e8; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 8px 0 24px; }
.table-scroll table { margin: 0; }
.prose img { border-radius: 16px; margin: 8px 0 24px; }

.callout {
  background: #fff; border: 1px solid #ece3e5; border-radius: 16px; padding: 20px 24px; margin: 28px 0;
  font-size: 17px;
}
.callout b:first-child { display: block; color: var(--accent-ink); margin-bottom: 6px; }
.callout > p:first-child > strong:only-child { color: var(--accent-ink); }
.callout p:last-child { margin-bottom: 0; }

.faq { margin-top: 48px; }
.faq h2 { margin-top: 0; }
.faq details { background: #fff; border: 1px solid #ece3e5; border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--accent-ink); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--light-muted); font-size: 16px; }

.article-cta {
  margin-top: 48px; background: var(--bg); color: var(--text); border-radius: 24px; padding: 32px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.article-cta h3 { margin: 0 0 6px; font-size: 22px; }
.article-cta p { margin: 0; color: var(--muted); font-size: 16px; max-width: 460px; }

.related { padding: 64px 0 80px; }
.related h2 { font-size: 28px; margin: 0 0 24px; }

.draft-banner {
  background: #ffcc00; color: #1a1a1a; text-align: center; font-weight: 700; padding: 10px 16px; font-size: 14px;
}

@media (max-width: 960px) {
  .article-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .article-cards { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 10px 10px; }
  /* таблицы с длинным текстом — карточками */
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack { background: transparent; }
  .table-stack tr { background: #fff; border: 1px solid #ece3e5; border-radius: 14px; margin-bottom: 12px; padding: 6px 0; }
  .table-stack td { border: 0; padding: 6px 16px; font-size: 15px; }
  .table-stack td:first-child { font-weight: 700; font-size: 17px; }
  .table-stack td:not(:first-child)::before {
    content: attr(data-label); display: block; font-size: 12px; font-weight: 700;
    color: var(--accent-ink); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px;
  }
  .article-cta { padding: 24px; }
  .article-cta .btn { width: 100%; }
  .page-head { padding: 36px 0 28px; }
  .article-hero { padding-top: 32px; }
}

/* Светлая страница статьи */
.light .crumbs, .light .article-meta { color: var(--light-muted); }
.light .crumbs a:hover { color: var(--light-text); }

/* Фото с подписью в статье */
.prose figure { margin: 28px 0; }
.prose figure img { margin: 0; width: 100%; max-height: 640px; object-fit: contain; background: #ece3e5; }
.prose figcaption { margin-top: 10px; font-size: 15px; color: var(--light-muted); line-height: 1.5; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.figure-pair figure { margin: 0; }
.figure-pair figure img { height: auto; aspect-ratio: 4 / 3; max-height: 420px; object-fit: cover; }  /* height:100% выталкивал подпись на текст ниже */
@media (max-width: 620px) {
  .figure-pair { grid-template-columns: 1fr; }
}

/* Плашка про cookie */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 760px; margin: 0 auto;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; display: flex; gap: 16px; align-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.5;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; color: var(--muted); }
.cookie-bar a { color: var(--text); }
.cookie-bar .btn { padding: 10px 20px; font-size: 14px; flex: none; }
@media (max-width: 620px) {
  .cookie-bar { flex-direction: column; align-items: stretch; bottom: 12px; left: 12px; right: 12px; }
}
.foot-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Галерея объекта и вертикальное видео */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 32px; }
.gallery figure { margin: 0; }
.prose .gallery img { width: 100%; aspect-ratio: 3 / 4; max-height: none; object-fit: cover; background: none; border-radius: 14px; margin: 0; }
.gallery figcaption { font-size: 13px; color: var(--light-muted); margin-top: 6px; }
.video-vertical { max-width: 360px; margin: 16px 0 32px; }
.video-vertical iframe { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 16px; background: #000; display: block; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* Ссылка на отделку домов в разделе услуг */
.houses-link {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #ece3e5; border-radius: var(--radius); padding: 20px 24px; text-decoration: none;
}
.houses-link b { display: block; font-size: 18px; color: var(--light-text); }
.houses-link span { color: var(--light-muted); font-size: 15px; }
.houses-link em { font-style: normal; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.houses-link:hover { border-color: var(--accent); }

/* Частые вопросы на главной */
.faq-home { max-width: 860px; }
.faq-home details { background: #fff; border: 1px solid #ece3e5; border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.faq-home summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; padding-right: 28px; position: relative; color: var(--light-text); }
.faq-home summary::-webkit-details-marker { display: none; }
.faq-home summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--accent-ink); font-size: 22px; }
.faq-home details[open] summary::after { content: "–"; }
.faq-home details p { margin: 12px 0 0; color: var(--light-muted); font-size: 16px; line-height: 1.6; }
.faq-home details a { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
/* Объект в работе: метка и даты этапов */
.badge-live { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.project-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project-steps li { padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.project-steps b { color: var(--text); margin-right: 4px; }
.project-steps li.now { border-color: var(--accent); }
.price-banner-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* кнопки в конце статьи: расчёт + ВК */
.article-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .article-cta-btns { width: 100%; } .article-cta-btns .btn { width: 100%; } }
.hero-note a { color: inherit; font-weight: 700; white-space: nowrap; }
