/* ============================================================
   RemontPro — ремонтная студия. Геленджик · Новороссийск.
   Дизайн-система (DeWalt): жёлтый акцент, графит/чёрный, тёплый светлый фон.
   Чистый CSS, без сборщиков.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  /* Графитово-серые поверхности (вместо чёрного) */
  --ink: #2b2b2b;
  --graphite: #313131;
  --graphite-2: #3b3b3b;
  --concrete: #5a5a5a;

  /* Тёплый светлый фон */
  --bone: #f6f4ef;
  --bone-2: #ece7dd;
  --sand: #e6d6ad;
  --paper: #ffffff;

  --text: #1b1b1b;
  --muted: #585858;
  --muted-light: rgba(245, 243, 238, 0.72);

  /* DeWalt-жёлтый — основной акцент */
  --orange: #febd17;
  --orange-2: #ffcf45;
  --orange-soft: rgba(254, 189, 23, 0.16);

  /* Янтарно-жёлтый для текста-акцента на светлом (читаемый) */
  --amber-ink: #8a6500;

  /* Светло-жёлтый вспомогательный */
  --sage: #f0c34a;

  --line: rgba(27, 27, 27, 0.1);
  --line-light: rgba(245, 243, 238, 0.16);

  --r-sm: 8px;
  --r: 16px;
  --r-lg: 26px;
  --r-pill: 100px;

  --shadow: 0 24px 60px -24px rgba(21, 23, 28, 0.4);
  --shadow-sm: 0 8px 24px -12px rgba(21, 23, 28, 0.28);

  --wrap: 1240px;
  --gap: clamp(20px, 4vw, 56px);

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Бетонная текстура убрана — чистые тёплые поверхности */
  --concrete-tex: none;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Лейаут ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--flush { padding-top: 0; }

.dark { background: var(--graphite); color: var(--bone); position: relative; }
.dark::before {
  content: ""; position: absolute; inset: 0;
  background: var(--concrete-tex); opacity: 0.5; mix-blend-mode: overlay;
  pointer-events: none;
}
.dark > * { position: relative; z-index: 1; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--bone); }

/* Маркировка секций: 01 / Раздел */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 22px;
}
.kicker::before {
  content: attr(data-num);
  font-variant-numeric: tabular-nums;
  color: inherit; opacity: 0.9;
}
.kicker span { width: 38px; height: 1px; background: currentColor; opacity: 0.5; }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.dark .sec-head p { color: var(--muted-light); }

.lead-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); }
.lead-row .sec-head { margin-bottom: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--r-pill);
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-2); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: var(--graphite-2); }
.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1fbf5a; }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(254, 189, 23, 0.1); border-color: var(--orange); color: var(--orange); }
.btn--ghost-light { background: transparent; border-color: var(--line-light); color: var(--bone); }
.btn--ghost-light:hover { background: rgba(244,239,230,0.08); border-color: var(--bone); }
.btn--block { width: 100%; }
.btn--lg { padding: 19px 38px; font-size: 1.08rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; color: var(--ink);
}
.dark .arrow-link { color: var(--bone); }
.arrow-link::after { content: "→"; transition: transform 0.2s ease; color: var(--orange); }
.arrow-link:hover::after { transform: translateX(6px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--ink); color: var(--orange);
  display: grid; place-items: center; font-size: 1.1rem;
  position: relative; overflow: hidden;
}
.brand__mark::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--orange); }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav__list { display: flex; gap: 26px; }
.main-nav__list a { font-weight: 500; font-size: 0.96rem; color: var(--text); position: relative; }
.main-nav__list a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--orange); transition: width 0.2s ease; }
.main-nav__list a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-family: var(--display); font-weight: 600; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--orange); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: transparent; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--ink); color: var(--bone); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(254, 189, 23, 0.36), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(254, 189, 23, 0.16), transparent 60%),
    linear-gradient(180deg, #1c1c1c 0%, #111111 100%);
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--concrete-tex); opacity: 0.55; mix-blend-mode: overlay; }
/* крупный «оконный» паттерн-визуал */
.hero__frame {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: 46vw; max-width: 720px; aspect-ratio: 4/5; z-index: 0;
  border-radius: 30px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(254, 189, 23,0.5), rgba(40,44,54,0.2)),
    repeating-linear-gradient(115deg, #2a2a2a 0 2px, transparent 2px 46px),
    linear-gradient(160deg, #2a2a2a, #111111);
  box-shadow: var(--shadow);
  opacity: 0.9;
}
.hero__frame span { position: absolute; left: 22px; bottom: 22px; right: 22px; height: 4px; background: var(--orange); border-radius: 4px; }

.hero__inner { position: relative; z-index: 2; padding: clamp(70px, 12vw, 150px) 0 clamp(54px, 8vw, 96px); max-width: 760px; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-light); border-radius: var(--r-pill); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--bone); margin-bottom: 28px; }
.hero__tag b { color: var(--orange); font-weight: 700; }
.hero h1 { color: var(--bone); margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.32rem); color: var(--muted-light); max-width: 560px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(40px, 6vw, 70px); }

.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(28px, 5vw, 60px); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; color: var(--bone); line-height: 1; }
.stat b i { font-style: normal; color: var(--orange); }
.stat span { font-size: 0.86rem; color: var(--muted-light); }

/* бегущая строка под героем */
.marquee { background: var(--orange); color: #fff; overflow: hidden; border-top: 1px solid rgba(0,0,0,0.1); }
.marquee__track { display: flex; gap: 48px; white-space: nowrap; padding: 14px 0; font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; animation: marquee 28s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- «Управляемый проект» ---------- */
.managed { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.managed__points { display: grid; gap: 18px; margin-top: 30px; }
.mpoint { display: flex; gap: 16px; padding: 18px 20px; background: var(--graphite-2); border: 1px solid var(--line-light); border-radius: var(--r); }
.mpoint__n { font-family: var(--display); font-weight: 700; color: var(--orange); font-size: 1.1rem; }
.mpoint h3 { font-size: 1.05rem; margin: 0 0 3px; }
.mpoint p { margin: 0; font-size: 0.94rem; color: var(--muted-light); }

/* мокап «панель управления ремонтом» */
.dashboard {
  background: linear-gradient(180deg, #fbfaf7, #efe8db);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.5);
}
.dashboard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dashboard__top b { font-family: var(--display); color: var(--ink); }
.dashboard__dots { display: flex; gap: 6px; }
.dashboard__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sand); }
.dashboard__dots i:first-child { background: var(--orange); }
.dashboard__bars { display: grid; gap: 12px; }
.dbar { background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.dbar__head { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.dbar__head b { color: var(--ink); font-family: var(--display); }
.dbar__track { height: 8px; border-radius: 6px; background: var(--bone-2); overflow: hidden; }
.dbar__fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.dbar--done .dbar__fill { background: #2fae66; }

/* ---------- Живое портфолио (JS) ---------- */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.case {
  position: relative; grid-column: span 4; border-radius: var(--r-lg); overflow: hidden;
  background: var(--graphite); color: var(--bone); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s ease;
}
.case:hover { transform: translateY(-6px); }
.case:nth-child(1) { grid-column: span 8; min-height: 460px; }
.case:nth-child(2) { grid-column: span 4; min-height: 460px; }
.case__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.case__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,23,28,0) 30%, rgba(21,23,28,0.9) 100%); }
.case__body { position: relative; z-index: 1; padding: 26px; }
.case__status { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 6px 14px; border-radius: var(--r-pill); font-size: 0.74rem; font-weight: 600; font-family: var(--display); letter-spacing: 0.03em; }
.case__status--done { background: #2fae66; color: #fff; }
.case__status--progress { background: var(--orange); color: #fff; }
.case h3 { color: #fff; font-size: 1.35rem; margin-bottom: 12px; }
.case__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(244,239,230,0.14); font-size: 0.8rem; color: var(--bone); }
.chip--orange { background: var(--orange-soft); color: var(--orange-2); }

/* ---------- Видео с объектов (JS) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.dark .video-card { background: var(--graphite-2); border-color: var(--line-light); }
.video-embed { position: relative; aspect-ratio: 16/9; cursor: pointer; background: #111; overflow: hidden; }
.video-embed__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-embed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45)); transition: opacity 0.2s; }
.video-embed__play { position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; z-index: 2; transition: transform 0.2s; }
.video-embed__play::before { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video-embed:hover .video-embed__play { transform: scale(1.08); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__body { padding: 20px 22px 24px; }
.video-card__cat { font-family: var(--display); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); }
.video-card__body h3 { font-size: 1.1rem; margin: 6px 0 6px; }
.dark .video-card__body h3 { color: var(--bone); }
.video-card__body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.dark .video-card__body p { color: var(--muted-light); }

/* ---------- Before / After слайдер ---------- */
.ba { max-width: 980px; margin: 0 auto; }
.ba__stage { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; user-select: none; box-shadow: var(--shadow); touch-action: none; }
.ba__layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba__after { z-index: 1; }
.ba__before { z-index: 2; width: 50%; border-right: 3px solid var(--bone); }
.ba__label { position: absolute; bottom: 16px; z-index: 3; padding: 6px 14px; border-radius: var(--r-pill); font-family: var(--display); font-weight: 600; font-size: 0.82rem; background: rgba(21,23,28,0.7); color: var(--bone); }
.ba__label--before { left: 16px; z-index: 4; }
.ba__label--after { right: 16px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%); z-index: 5; cursor: ew-resize; display: grid; place-items: center; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--bone); }
.ba__handle i { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 0.9rem; box-shadow: var(--shadow-sm); position: relative; }
.ba__handle i::before { content: "‹ ›"; letter-spacing: 2px; font-family: var(--display); }

/* ---------- Процесс по этапам ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 34px 0; border-top: 1px solid var(--line-light); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line-light); }
.step__num { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; color: var(--concrete); line-height: 0.9; }
.step:hover .step__num { color: var(--orange); }
.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { color: var(--muted-light); margin: 0; max-width: 620px; }
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Смета и контроль (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.panel-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.panel-card--ink { background: var(--graphite); color: var(--bone); border-color: var(--line-light); }
.panel-card--ink h3 { color: var(--bone); }
.estimate-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.panel-card--ink .estimate-row { border-color: var(--line-light); }
.estimate-row b { font-family: var(--display); }
.estimate-row span { color: var(--muted); }
.panel-card--ink .estimate-row span { color: var(--muted-light); }
.estimate-total { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 18px; }
.estimate-total b { font-family: var(--display); font-size: 1.7rem; color: var(--orange); }
.control-list { display: grid; gap: 16px; }
.control-list li { display: flex; gap: 14px; align-items: flex-start; }
.control-list .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; font-weight: 700; }
.panel-card--ink .control-list .tick { background: rgba(254, 189, 23,0.2); }

/* ---------- Визуальная лента ремонта ---------- */
.ribbon { overflow: hidden; }
.ribbon__track { display: flex; gap: 18px; animation: ribbon 40s linear infinite; }
.ribbon__track:hover { animation-play-state: paused; }
.ribbon__item { flex: 0 0 clamp(220px, 26vw, 360px); aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; position: relative; }
.ribbon__item span { position: absolute; left: 14px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--display); font-weight: 600; font-size: 0.9rem; }
.ribbon__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7)); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Города ---------- */
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.city {
  position: relative; min-height: 380px; border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; color: #fff;
}
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(21,23,28,0.25), rgba(21,23,28,0.85)); }
.city__bg { position: absolute; inset: 0; }
.city--gel .city__bg { background: linear-gradient(150deg, #1c1c1c, #111111); }
.city--nvr .city__bg { background: linear-gradient(150deg, #2a2a2a, #111111); }
.city > * { position: relative; z-index: 1; }
.city h3 { color: #fff; font-size: 1.9rem; margin-bottom: 8px; }
.city p { color: rgba(255,255,255,0.82); margin-bottom: 22px; max-width: 360px; }

/* ---------- Заявка ---------- */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.dark .field label, .panel-card--ink .field label { color: var(--muted-light); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 1rem; color: var(--text); background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.form__note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.dark .form__note { color: var(--muted-light); }
.form__ok { display: none; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(47,174,102,0.14); border: 1px solid rgba(47,174,102,0.4); color: #2fae66; font-weight: 600; }
.form__ok.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: clamp(56px, 7vw, 92px) 0 30px; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--concrete-tex); opacity: 0.4; mix-blend-mode: overlay; }
.site-footer > * { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer-brand .brand { color: var(--bone); margin-bottom: 18px; }
.footer-brand p { max-width: 300px; font-size: 0.94rem; }
.footer-col h4 { color: var(--bone); font-size: 1rem; margin-bottom: 16px; font-family: var(--display); }
.footer-col ul { display: grid; gap: 11px; font-size: 0.94rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.85rem; color: rgba(244,239,230,0.5); }

/* ---------- Плавающий WhatsApp ---------- */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,0.45); font-size: 1.6rem; transition: transform 0.2s; }
.fab-wa:hover { transform: scale(1.08); }

/* ---------- Внутренние страницы ---------- */
.page-head { background: var(--graphite); color: var(--bone); position: relative; overflow: hidden; padding: clamp(54px, 8vw, 96px) 0; }
.page-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 90% 0%, rgba(254, 189, 23,0.3), transparent 55%); }
.page-head > * { position: relative; z-index: 1; }
.crumbs { font-size: 0.86rem; color: var(--muted-light); margin-bottom: 18px; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { margin: 0 8px; opacity: 0.5; }
.page-head h1 { color: var(--bone); font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 14px; }
.page-head p { color: var(--muted-light); max-width: 640px; font-size: 1.1rem; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { display: grid; gap: 10px; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 12px; background: var(--orange); border-radius: 3px; }

/* Аккордеон FAQ */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; background: none; border: 0; text-align: left; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--ink); cursor: pointer; }
.faq-q i { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; background: var(--orange); border-radius: 2px; }
.faq-q i::before { top: 11px; left: 4px; right: 4px; height: 2px; }
.faq-q i::after { left: 11px; top: 4px; bottom: 4px; width: 2px; transition: transform 0.25s, opacity 0.25s; }
.faq-item.open .faq-q i::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 26px 24px; margin: 0; color: var(--muted); }

/* Таблица цен */
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--ink); color: var(--bone); font-family: var(--display); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { font-family: var(--display); font-weight: 700; color: var(--orange); white-space: nowrap; }

/* Тарифы (prices) */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tier { background: var(--graphite-2); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; }
.tier--feat { background: linear-gradient(165deg, rgba(254, 189, 23,0.22), rgba(42,46,56,0.4)); border-color: var(--orange); }
.tier__badge { align-self: flex-start; font-family: var(--display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--orange); color: #fff; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 16px; }
.tier h3 { color: var(--bone); font-size: 1.2rem; }
.tier__price { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--orange); margin-bottom: 4px; }
.tier__price small { font-size: 0.9rem; color: var(--muted-light); font-weight: 500; }
.tier ul { display: grid; gap: 10px; margin: 18px 0 26px; }
.tier ul li { position: relative; padding-left: 26px; color: var(--muted-light); font-size: 0.93rem; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: #2fae66; font-weight: 700; }
.tier .btn { margin-top: auto; }

/* Галерея проекта */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img, .gallery .ph { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: var(--r); }

/* CTA-бар */
.cta-bar { background: linear-gradient(135deg, var(--orange), #111111); color: #fff; border-radius: var(--r-lg); padding: clamp(34px, 5vw, 60px); text-align: center; position: relative; overflow: hidden; }
.cta-bar::after { content: ""; position: absolute; inset: 0; background: var(--concrete-tex); opacity: 0.3; mix-blend-mode: overlay; }
.cta-bar > * { position: relative; }
.cta-bar h2 { color: #fff; margin-bottom: 12px; }
.cta-bar p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 26px; }
.cta-bar__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Блог */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.post__img { aspect-ratio: 16/10; background: linear-gradient(140deg, var(--concrete), var(--ink)); display: grid; place-items: center; font-size: 2rem; }
.post__body { padding: 22px; }
.post__date { font-size: 0.82rem; color: var(--muted); }
.post h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.post p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Состояния загрузки/ошибки JS-данных */
.js-state { text-align: center; color: var(--muted); padding: 40px 0; font-family: var(--display); }
.dark .js-state { color: var(--muted-light); }

/* плейсхолдер-картинка с градиентом */
.ph { background: linear-gradient(140deg, var(--concrete), var(--ink)); background-size: cover; background-position: center; background-repeat: no-repeat; display: grid; place-items: center; color: rgba(255,255,255,0.5); font-family: var(--display); }

/* ============================================================
   АДМИН-ПАНЕЛЬ
   ============================================================ */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--bone); }
.admin-side { background: var(--ink); color: var(--bone); padding: 26px 20px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-side .brand { color: var(--bone); margin-bottom: 6px; }
.admin-side small.env { display: inline-block; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); border: 1px solid var(--line-light); padding: 3px 8px; border-radius: var(--r-pill); margin-bottom: 28px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { padding: 12px 14px; border-radius: var(--r-sm); color: var(--muted-light); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.admin-nav a:hover { background: var(--graphite-2); color: var(--bone); }
.admin-nav a.active { background: var(--orange); color: #fff; }
.admin-side__foot { margin-top: auto; font-size: 0.8rem; color: rgba(244,239,230,0.5); }
.admin-side__foot a { color: var(--orange); }

.admin-main { padding: clamp(22px, 4vw, 44px); min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.admin-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.kpi b { font-family: var(--display); font-size: 2.2rem; color: var(--ink); display: block; line-height: 1; }
.kpi span { color: var(--muted); font-size: 0.9rem; }
.kpi--accent { background: var(--ink); color: var(--bone); border: 0; }
.kpi--accent b { color: var(--orange); }
.kpi--accent span { color: var(--muted-light); }

.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; }
.admin-card h2 { font-size: 1.4rem; }
.admin-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-family: var(--display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bone-2); }
.admin-thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--concrete); }
.badge { display: inline-block; padding: 4px 11px; border-radius: var(--r-pill); font-size: 0.76rem; font-weight: 600; font-family: var(--display); }
.badge--done { background: rgba(47,174,102,0.16); color: #1f9655; }
.badge--progress { background: var(--orange-soft); color: var(--orange); }

.btn-sm { padding: 8px 16px; font-size: 0.86rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--paper); font-family: var(--display); font-weight: 600; cursor: pointer; color: var(--ink); transition: 0.2s; }
.btn-sm:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm--danger:hover { border-color: #d6453c; color: #d6453c; }
.btn-sm--solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-sm--solid:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field.full { grid-column: 1 / -1; }
.repeater { display: grid; gap: 10px; }
.repeater__row { display: flex; gap: 10px; }
.repeater__row input { flex: 1; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; background: var(--ink); color: var(--bone); padding: 14px 20px; border-radius: var(--r); box-shadow: var(--shadow); font-weight: 600; transform: translateY(140%); transition: transform 0.3s; }
.toast.show { transform: translateY(0); }
.toast--ok { border-left: 4px solid #2fae66; }
.hint { font-size: 0.85rem; color: var(--muted); background: var(--bone-2); border-radius: var(--r-sm); padding: 12px 16px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__frame { display: none; }
}
@media (max-width: 920px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); border-bottom: 1px solid var(--line); padding: 14px 24px 24px;
    transform: translateY(-130%); transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; }
  .burger { display: flex; }
  .header-phone { display: none; }
  .managed, .split, .lead, .cities { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(6, 1fr); }
  .case, .case:nth-child(1), .case:nth-child(2) { grid-column: span 6; min-height: 320px; }
  .video-grid, .posts, .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .step { grid-template-columns: 64px 1fr; gap: 18px; }
  /* админка: сайдбар сверху */
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; }
  .admin-side .brand { margin-bottom: 0; }
  .admin-side small.env { margin-bottom: 0; }
  .admin-nav { grid-auto-flow: column; gap: 4px; width: 100%; overflow-x: auto; }
  .admin-side__foot { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .tiers, .video-grid, .posts, .gallery, .form-grid, .kpi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  .hero__actions .btn, .cta-bar__actions .btn { width: 100%; }
  .lead-row { flex-direction: column; align-items: flex-start; }
  .repeater__row { flex-direction: column; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; padding: 10px; }
  .admin-table td { border: 0; padding: 8px 6px; }
}

/* ============================================================
   ГЛАВНАЯ СТРАНИЦА — премиальный зелёный лейаут (новые классы).
   Палитра: pine-green, sage, латунь, кремовый. Доклеено к
   дизайн-системе выше; перекрывает общие селекторы для index.html.
   Фоновые фото главной задаются inline в index.html.
   ============================================================ */
/* ============================================================
   RemontPro — premium green GitHub Pages landing styles
   Palette: forest green, sage, brass and warm cream.
   ============================================================ */

:root {
  --green: #313131;
  --green-dark: #262626;
  --sage: #f0c34a;
  --gold: #febd17;
  --cream: #f7f4ec;
  --beige: #efe9db;
  --text: #242424;
  --muted: rgba(27, 27, 27, 0.66);
  --line: rgba(27, 27, 27, 0.14);
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 20px 55px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.22);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1180px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --transition: 220ms ease;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(254, 189, 23, 0.2), transparent 34rem),
    linear-gradient(180deg, var(--cream) 0%, var(--beige) 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { color: var(--gold); }

img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  color: var(--green-dark);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: clamp(2.7rem, 7vw, 6rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { color: var(--muted); }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section-pad { padding: 96px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(27, 27, 27, 0.12);
  background: rgba(250, 249, 245, 0.86);
  backdrop-filter: blur(18px);
}

.header-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--green-dark); font-weight: 800; }
.brand:hover { color: var(--green-dark); }
.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(27, 27, 27, 0.22);
}
.brand-mark svg rect:first-child { fill: var(--green); }
.brand-mark svg path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; }
.brand-mark svg rect:not(:first-child) { fill: var(--white); }
.brand-mark svg rect:last-child { fill: var(--sage); }
.brand-text { display: grid; line-height: 1.05; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; color: rgba(24, 35, 29, 0.74); font-size: 0.95rem; font-weight: 700; }
.nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone { color: var(--green-dark); font-weight: 800; white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(27, 27, 27, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); color: var(--green-dark); box-shadow: var(--shadow-md); }
.btn-small { min-height: 42px; padding-inline: 18px; font-size: 0.9rem; }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,0.56); color: var(--green); }

.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); padding: 12px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--green-dark); transition: transform var(--transition), opacity var(--transition); }
.menu-button.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; padding-top: 66px; }
.hero::after { content: ""; position: absolute; right: -12%; top: 8%; width: 42vw; height: 42vw; border-radius: 50%; background: rgba(254, 189, 23,0.13); filter: blur(10px); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr); gap: 58px; align-items: center; }
.hero-copy > p { max-width: 650px; font-size: clamp(1.05rem, 2vw, 1.28rem); margin-bottom: 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--gold); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.75; }
.eyebrow.muted { color: var(--sage); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 590px; }
.hero-stats div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,0.52); }
.hero-stats strong { display: block; color: var(--green); font-size: 1.7rem; line-height: 1; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

.hero-visual { position: relative; min-height: 620px; }
.photo-card, .project-image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 0, 0,0.12), rgba(254, 189, 23,0.16)),
    linear-gradient(145deg, var(--beige) 0%, var(--cream) 34%, var(--sage) 70%, var(--green) 100%);
  background-size: cover;
  background-position: center;
}
.photo-card-main { height: 580px; border: 12px solid rgba(255,255,255,0.72); border-radius: 42px; box-shadow: var(--shadow-lg); }
.photo-card::before, .project-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(250,249,245,0.08), transparent 45%), radial-gradient(circle at 30% 22%, rgba(255,255,255,0.55), transparent 22%); }
.photo-card::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 18%; height: 34%; border-radius: 26px 26px 0 0; background: rgba(250,249,245,0.74); box-shadow: 0 -70px 0 -38px rgba(27, 27, 27,0.5), 0 -118px 0 -54px rgba(254, 189, 23,0.52); }
.photo-card[data-photo-slot]::after { display: none; }
.photo-label { position: absolute; left: 28px; top: 28px; z-index: 2; padding: 9px 14px; border-radius: 999px; background: rgba(0, 0, 0,0.78); color: var(--white); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; }
.floating-card { position: absolute; z-index: 3; display: grid; gap: 2px; max-width: 220px; padding: 18px 20px; border: 1px solid rgba(255,255,255,0.5); border-radius: 22px; background: rgba(250,249,245,0.86); backdrop-filter: blur(14px); box-shadow: var(--shadow-md); }
.floating-card b { color: var(--green-dark); }
.floating-card span { color: var(--muted); font-size: 0.9rem; }
.floating-card-top { top: 74px; left: -28px; }
.floating-card-bottom { right: -20px; bottom: 78px; }

.intro-band { background: var(--green-dark); color: var(--white); }
.intro-band h2, .intro-band p { color: var(--white); }
.intro-band p { opacity: 0.74; font-size: 1.12rem; }
.intro-grid, .lead-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; }

.section-head { max-width: 780px; margin-bottom: 42px; }
.section-head.light h2, .section-head.light p, .services h2 { color: var(--white); }
.section-head.light p { color: rgba(255,255,255,0.72); }
.sticky-head { position: sticky; top: 112px; align-self: start; }

.project-grid, .service-grid, .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card, .service-card, .price-card, .lead-form {
  border: 1px solid rgba(27, 27, 27,0.14);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.project-card { transition: transform var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-image { aspect-ratio: 1.35 / 1; display: flex; align-items: flex-start; justify-content: flex-end; padding: 20px; }
.project-image span { position: relative; z-index: 2; color: rgba(0, 0, 0,0.42); font-family: var(--font-display); font-size: 4rem; font-weight: 700; }
.project-body { padding: 24px; }
.project-meta { margin-bottom: 8px; color: var(--gold); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.services { background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-card { padding: 28px; background: rgba(250,249,245,0.09); border-color: rgba(255,255,255,0.16); color: var(--white); box-shadow: none; }
.service-card span { color: var(--gold); font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.service-card h3, .service-card p { color: var(--white); }
.service-card p { opacity: 0.72; }

.process-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.timeline { display: grid; gap: 18px; }
.step { position: relative; padding: 28px 28px 28px 72px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,0.66); box-shadow: var(--shadow-sm); }
.step b { position: absolute; left: 24px; top: 28px; color: var(--gold); font-family: var(--font-display); font-size: 1.5rem; }
.step p { margin-bottom: 0; }

.prices { background: var(--beige); }
.price-card { padding: 30px; }
.price-card.featured { background: var(--green); color: var(--white); border-color: var(--green); transform: translateY(-10px); box-shadow: var(--shadow-md); }
.price-card.featured h3, .price-card.featured .price, .price-card.featured span { color: var(--white); }
.price { color: var(--green); font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; margin: 12px 0; }
.price-card > span { color: var(--muted); }

.lead-section { background: linear-gradient(135deg, rgba(254, 189, 23,0.22), rgba(254, 189, 23,0.12)); }
.lead-form { padding: 30px; display: grid; gap: 18px; }
.lead-form label { display: grid; gap: 8px; color: var(--green-dark); font-weight: 800; }
.lead-form input, .lead-form textarea { width: 100%; border: 1px solid rgba(27, 27, 27,0.18); border-radius: 18px; background: rgba(250,249,245,0.82); color: var(--text); padding: 15px 16px; resize: vertical; outline: none; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--sage); background: var(--white); box-shadow: 0 0 0 4px rgba(254, 189, 23,0.24); }
.form-note { margin: 0; font-size: 0.92rem; }
.form-note a { color: var(--green); font-weight: 800; }

.footer { padding: 64px 0 28px; background: var(--green-dark); color: rgba(255,255,255,0.72); }
.footer h4, .footer .brand-text { color: var(--white); }
.footer p, .footer small { color: rgba(255,255,255,0.65); }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 42px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-grid a:not(.brand) { display: block; }
.footer .brand-mark { width: 48px; height: 48px; flex: 0 0 48px; }
.brand-mark { display: inline-grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; }
.footer-grid > div { display: grid; align-content: start; gap: 10px; }
.footer-brand { margin-bottom: 8px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .section-pad { padding: 76px 0; }
  .nav { gap: 16px; }
  .phone { display: none; }
  .hero-grid, .process-grid, .lead-grid, .intro-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; max-width: 620px; }
  .photo-card-main { height: 500px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-row { min-height: 70px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-text { font-size: 1rem; }
  .menu-button { display: block; }
  .header-actions .btn-small { display: none; }
  .nav {
    position: fixed;
    inset: 70px 14px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(250,249,245,0.96);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms ease, opacity 260ms ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 14px; border-radius: 14px; }
  .nav a:hover { background: var(--beige); }
  h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
  .hero { padding-top: 36px; }
  .hero-stats, .project-grid, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 430px; }
  .photo-card-main { height: 400px; border-width: 8px; border-radius: 30px; }
  .floating-card { position: relative; inset: auto; margin-top: -48px; max-width: none; }
  .floating-card-bottom { margin-left: 48px; }
  .sticky-head { position: static; }
  .price-card.featured { transform: none; }
  .footer-bottom { display: grid; }
}

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .section-pad { padding: 58px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 10px; }
  .hero-stats div, .project-body, .service-card, .price-card, .lead-form { padding: 22px; }
  .hero-visual { min-height: auto; }
  .photo-card-main { height: 330px; }
  .floating-card { margin-top: 12px; }
  .floating-card-bottom { margin-left: 0; }
  .step { padding: 24px; }
  .step b { position: static; display: block; margin-bottom: 8px; }
}

/* ---------- Согласование старых кнопок с новой базой .btn ---------- */
.btn--orange:hover, .btn--dark:hover, .btn--wa:hover { color: #fff; }
.btn--orange, .btn--dark, .btn--wa { box-shadow: none; }

/* ============================================================
   DeWalt-палитра: жёлтый акцент + графит/чёрный + светлый фон.
   Корректируем контраст: жёлтый — для заливок/тёмных секций,
   текст-акцент на светлом — янтарный (--amber-ink) или графит.
   ============================================================ */
/* Главная кнопка — жёлтая с чёрным текстом */
.btn-primary { background: var(--gold); border-color: var(--gold); color: #111; }
.btn-primary:hover { background: #e6a900; border-color: #e6a900; color: #111; }
.btn-ghost { background: rgba(255,255,255,0.6); color: var(--ink); border-color: var(--line); }

/* Текст-акцент на светлом фоне — читаемый янтарный */
.eyebrow, .project-meta, .video-card__cat, .kicker { color: var(--amber-ink); }
.eyebrow::before { background: var(--gold); }
.price-table td:last-child, .estimate-total b { color: var(--amber-ink); }

/* Жёлтые заливки — тёмный текст поверх */
.case__status--progress, .badge--progress, .tier__badge,
.marquee, .btn--orange { color: #111; }
.btn--orange { background: var(--orange); }
.btn--orange:hover { background: var(--orange-2); color: #111; }
.video-embed__play::before { border-left-color: #111; }
.video-embed__play { color: #111; }

/* Шапка/подвал на новой палитре */
.site-header { background: rgba(246, 244, 239, 0.85); }

/* ---------- Больше жёлтого, тёмное = серое ---------- */
/* Жёлтая акцентная полоса вместо тёмной */
.intro-band { background: var(--gold); }
.intro-band h2, .intro-band p { color: #1f1f1f; }
.intro-band p { opacity: 0.82; }
.intro-band .eyebrow.muted { color: #1f1f1f; }

/* Жёлтый верхний акцент на карточках */
.project-card { border-top: 3px solid var(--gold); }
.hero-stats div { border-left: 3px solid var(--gold); }
.price-card.featured { background: var(--graphite); }

/* CTA-блок (внутренние страницы) — жёлтый с тёмным текстом */
.cta-bar { background: linear-gradient(135deg, var(--gold), #ffcf45); }
.cta-bar h2, .cta-bar p { color: #1f1f1f; }
.cta-bar p { opacity: 0.85; }

/* page-head (шапка внутренних страниц) — серый, не чёрный */
.page-head { background: var(--graphite); }

/* ---------- Карточки портфолио: фото целиком (без обрезки) ---------- */
.project-image { padding: 0; display: block; background: var(--beige); }
.project-image::before { display: none; }
.project-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.project-ph { position: absolute; right: 16px; top: 12px; font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: rgba(0,0,0,0.3); }

/* ---------- Анимации главной ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; will-change: opacity, transform; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
  .reveal.d3 { transition-delay: 0.24s; }
  /* лёгкое парение плавающих карточек в hero */
  .floating-card-top { animation: rp-float 5.5s ease-in-out infinite; }
  .floating-card-bottom { animation: rp-float 5.5s ease-in-out -2.75s infinite; }
  @keyframes rp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
  /* мягкое увеличение фото обложки hero */
  .photo-card-main { transition: transform 0.6s ease; }
  .photo-card-main:hover { transform: scale(1.015); }
}
