/* ============================================================
   CENTRION SERVICE — сервисный центр, Саранск
   Палитра: глубокий коричневый / кофейный / песочный / кремовый
   ============================================================ */

:root {
  /* фоны */
  --bg:        #f4ece0;   /* тёплый кремовый */
  --bg-soft:   #efe5d6;
  --surface:   #fffdf8;
  --surface-2: #faf3e8;

  /* коричневые */
  --brown:     #382a20;   /* самый тёмный, как кольцо логотипа */
  --brown-2:   #4d3a2c;
  --brown-3:   #6b5341;
  --ink:       #2c2017;   /* текст */
  --ink-soft:  #6a5848;
  --ink-mute:  #8a7765;

  /* акценты */
  --tan:       #b0865a;   /* песочно-золотой, как дорожки на плате */
  --tan-deep:  #9a6f43;
  --tan-soft:  #cba87f;
  --tan-pale:  #e6d4ba;

  --line:      #ddccb6;
  --line-soft: #e9dcc8;

  /* типографика */
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* прочее */
  --r:   18px;
  --r-lg: 28px;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.68,.18,1);
  --shadow: 0 18px 50px -28px rgba(56,42,32,.45);
  --shadow-lg: 0 40px 90px -40px rgba(56,42,32,.55);
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--tan); color: #fff; }

/* ---------- утилиты ---------- */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tan-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--tan);
  display: inline-block;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }

.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  margin-top: 18px;
}
.section-head p {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 600px;
}

/* ---------- кнопки ---------- */
.btn {
  --bg-btn: var(--brown);
  --fg-btn: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 15.5px;
  background: var(--bg-btn); color: var(--fg-btn);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -18px rgba(56,42,32,.6); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }

.btn--accent { --bg-btn: var(--tan-deep); }
.btn--ghost {
  --bg-btn: transparent; --fg-btn: var(--brown);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--tan); background: var(--surface); box-shadow: none; }
.btn--lg { padding: 19px 34px; font-size: 16.5px; }

/* ============================================================
   ШАПКА / НАВИГАЦИЯ
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), height .4s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(250,245,237,.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 10px 40px -28px rgba(56,42,32,.5);
  border-bottom-color: var(--line-soft);
  height: 70px;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: auto; height: 44px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-txt { display: flex; flex-direction: column; gap: 4px; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tan-deep); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 10px; white-space: nowrap;
  position: relative; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--tan);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
  border-radius: 2px;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-weight: 800; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: color .3s;
}
.header-phone:hover { color: var(--tan-deep); }
.header-phone svg { width: 17px; height: 17px; color: var(--tan-deep); }

/* бургер */
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: calc(var(--nav-h) + 20px) 24px 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  font-size: 26px; font-weight: 800; color: var(--ink);
  padding: 14px 4px; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateX(-20px);
}
body.menu-open .mobile-menu a { animation: menuIn .5s var(--ease) forwards; }
.mobile-menu a span { font-family: var(--mono); font-size: 13px; color: var(--tan-deep); }
@keyframes menuIn { to { opacity: 1; transform: none; } }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-top: calc(var(--nav-h) + 60px); padding-bottom: 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -5%, rgba(176,134,90,.16), transparent 60%),
    radial-gradient(700px 700px at 8% 110%, rgba(176,134,90,.10), transparent 55%);
}
.hero-grid-lines { position: absolute; inset: 0; z-index: 0; opacity: .5; }

.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.hero-badge svg { width: 17px; height: 17px; color: #3a9d5d; flex: none; }
.hero-badge b { color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3a9d5d; position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #3a9d5d; opacity: .5; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .6;} 100% { transform: scale(1.8); opacity: 0;} }

.hero h1 { font-size: clamp(40px, 6vw, 76px); margin: 26px 0 0; }
.hero h1 .hl { color: var(--tan-deep); position: relative; white-space: nowrap; }
.hero p.lead { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 520px; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { margin-top: 50px; display: flex; gap: 38px; flex-wrap: wrap; }
.stat .num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat .num .suf { color: var(--tan-deep); }
.stat .lbl { font-size: 13.5px; color: var(--ink-mute); margin-top: 4px; }

/* визуал героя — карточка логотипа на плате */
.hero-visual { position: relative; perspective: 1200px; }
.hero-card {
  position: relative; aspect-ratio: 1 / 1.02;
  transition: transform .5s var(--ease);
  transform-style: preserve-3d;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-card .circuit { position: absolute; inset: 0; opacity: .9; }
.hero-card .logo-big {
  width: 64%; z-index: 2;
  filter: drop-shadow(0 26px 40px rgba(56,42,32,.28));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }

.hero-chip {
  position: absolute; z-index: 3;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px;
}
.hero-chip svg { width: 22px; height: 22px; color: var(--tan-deep); }
.hero-chip b { font-size: 15px; display: block; }
.hero-chip small { font-size: 12px; color: var(--ink-mute); }
.hero-chip.c1 { top: 8%; left: -28px; animation: floaty 6s ease-in-out infinite; }
.hero-chip.c2 { bottom: 11%; right: -26px; animation: floaty 8s ease-in-out infinite .5s; }

/* ============================================================
   маркер бренда (бегущая строка)
   ============================================================ */
.marquee {
  background: var(--brown); color: var(--tan-pale);
  padding: 18px 0; overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(255,255,255,.06);
}
.marquee-track { display: inline-flex; gap: 0; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; padding: 0 30px; display: inline-flex; align-items: center; gap: 30px; opacity: .85; }
.marquee span::after { content: "◆"; color: var(--tan); font-size: 9px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.svc {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 30px 28px 32px;
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--tan); transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line); }
.svc:hover::before { transform: scaleY(1); }
.svc-ico {
  width: 56px; height: 56px; border-radius: 15px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  display: grid; place-items: center; color: var(--tan-deep);
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.svc-ico svg { width: 27px; height: 27px; }
.svc:hover .svc-ico { background: var(--brown); color: var(--tan-pale); transform: rotate(-6deg); }
.svc h3 { font-size: 20px; margin: 20px 0 10px; font-weight: 700; }
.svc p { font-size: 15px; color: var(--ink-soft); }
.svc .svc-no { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 13px; color: var(--line); font-weight: 500; }

.svc--cta { background: linear-gradient(160deg, var(--surface-2), var(--tan-pale)); border-color: var(--tan-soft); }
.svc--cta .svc-ico { background: var(--surface); border-color: var(--tan-soft); }
.svc--cta:hover .svc-ico { background: var(--tan-deep); color: #fff; }
.svc--cta::before { background: var(--tan-deep); }

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.why { background: var(--brown); color: var(--tan-pale); }
.why .kicker { color: var(--tan-soft); }
.why .kicker::before { background: var(--tan-soft); }
.why .section-head h2 { color: #fff; }
.why .section-head p { color: rgba(230,212,186,.7); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv {
  border: 1px solid rgba(203,168,127,.22); border-radius: var(--r);
  padding: 30px 26px; background: rgba(255,255,255,.02);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.adv:hover { transform: translateY(-6px); background: rgba(255,255,255,.05); border-color: rgba(203,168,127,.45); }
.adv-ico { width: 50px; height: 50px; border-radius: 13px; background: rgba(203,168,127,.14); display: grid; place-items: center; color: var(--tan-soft); }
.adv-ico svg { width: 25px; height: 25px; }
.adv h3 { color: #fff; font-size: 19px; margin: 20px 0 9px; font-weight: 700; }
.adv p { font-size: 14.5px; color: rgba(230,212,186,.68); }

/* ============================================================
   КАК РАБОТАЕМ
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 28px; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; right: -1px; width: 1px; height: calc(100% - 28px);
  background: var(--line);
}
.step-no {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--line);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700;
  font-size: 18px; color: var(--tan-deep); position: relative; z-index: 2;
  transition: background .4s var(--ease), color .4s, border-color .4s, transform .5s var(--ease);
}
.step:hover .step-no { background: var(--tan-deep); color: #fff; border-color: var(--tan-deep); transform: scale(1.08); }
.step h3 { font-size: 19px; margin: 22px 0 10px; font-weight: 700; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   ГАЛЕРЕЯ / МАСТЕРСКАЯ (плейсхолдеры)
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ph {
  position: relative; border-radius: var(--r); overflow: hidden; margin: 0;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 14px, var(--bg-soft) 14px 28px);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .8s var(--ease); }
.ph:hover { box-shadow: var(--shadow); }
.ph:hover img { transform: scale(1.06); }
.ph-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 34px 18px 15px;
  background: linear-gradient(to top, rgba(34,25,17,.82), rgba(34,25,17,.32) 55%, transparent);
  color: #fff;
}
.ph-cap b { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.ph-cap span { font-size: 12.5px; color: rgba(255,255,255,.78); font-weight: 500; }
.ph-label {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em;
  color: var(--ink-mute); background: var(--surface);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-soft);
  text-align: center;
}
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.g-hero { grid-column: 1 / -1; width: 100%; height: clamp(340px, 46vw, 640px); }
.gallery-grid > .ph:not(.g-hero) { grid-column: span 2; height: 256px; }
.g-feature { grid-column: span 2; grid-row: span 2; }
.g-banner { grid-column: span 3; }
.g-tall { grid-row: span 2; }
.ph.tall { grid-row: span 2; }
.ph.wide { grid-column: span 2; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(30px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.ci { display: flex; gap: 16px; align-items: flex-start; }
.ci-ico { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--tan-deep); }
.ci-ico svg { width: 22px; height: 22px; }
.ci .lbl { display: block; font-size: 12.5px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.ci .val { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.ci .val.nowrap { white-space: nowrap; }
.ci .val:hover { color: var(--tan-deep); }

.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.soc { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14.5px; transition: transform .4s var(--ease), border-color .3s, background .3s; }
.soc:hover { transform: translateY(-3px); border-color: var(--tan); background: var(--surface-2); }
.soc svg { width: 18px; height: 18px; }

.map-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 420px;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  background: var(--surface-2) url("assets/photos/facade.jpg") center/cover no-repeat;
}
.map-frame { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; position: relative; z-index: 1; }
.map-open {
  position: absolute; right: 16px; bottom: 16px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.map-open svg { width: 17px; height: 17px; color: var(--tan-deep); transition: color .3s; }
.map-open:hover { transform: translateY(-3px); background: var(--brown); color: #fff; }
.map-open:hover svg { color: var(--tan-soft); }
.map-pin {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.map-pin .pin { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; background: var(--tan-deep); transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 16px 30px -10px rgba(56,42,32,.5); animation: drop .7s var(--ease); }
.map-pin .pin svg { transform: rotate(45deg); color: #fff; width: 24px; height: 24px; }
@keyframes drop { 0% { transform: rotate(-45deg) translateY(-40px); opacity: 0;} 100% { transform: rotate(-45deg) translateY(0); opacity: 1;} }
.map-pin .addr { background: var(--surface); border: 1px solid var(--line-soft); padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }

/* ============================================================
   CTA-полоса
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--tan-deep), #7e5a36);
  color: #fff; border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.16), transparent 60%); }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); position: relative; }
.cta p { margin: 18px auto 0; max-width: 540px; color: rgba(255,255,255,.85); font-size: 18px; position: relative; }
.cta .hero-actions { justify-content: center; position: relative; }
.cta .btn { --bg-btn: #fff; --fg-btn: var(--brown); }
.cta .btn--ghost { --bg-btn: transparent; --fg-btn: #fff; border-color: rgba(255,255,255,.4); }

/* меньше воздуха между CTA-полосой и блоком контактов */
#cta-band { padding-bottom: clamp(38px, 5vw, 64px); }
#contacts { padding-top: clamp(38px, 5vw, 64px); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--brown); color: var(--tan-pale); padding: 70px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(203,168,127,.18); }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: var(--tan-soft); }
.footer .brand--footer { display: flex; flex-direction: row; align-items: center; gap: 20px; }
.brand--footer img {
  height: 54px; width: auto; padding: 9px 11px;
  background: var(--bg); border-radius: 14px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
}
.brand--footer:hover img { transform: none; }
.footer p { color: rgba(230,212,186,.62); font-size: 14.5px; margin-top: 18px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(230,212,186,.72); font-size: 15px; padding: 6px 0; transition: color .3s, transform .3s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: rgba(230,212,186,.5); }

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================================ */
/* ---------- плавающая кнопка звонка (моб.) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--tan-deep); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 34px -12px rgba(56,42,32,.7);
  opacity: 0; transform: scale(.6) translateY(14px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.fab svg { width: 24px; height: 24px; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--tan-deep); animation: pulse 2.2s infinite; }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { transform: scale(1.08); }
@media (min-width: 921px) { .fab { display: none; } }

/* ---------- анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
.reveal[data-d="6"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .step:nth-child(2)::after { display: none; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .g-hero { grid-column: 1 / -1; }
  .gallery-grid > .ph:not(.g-hero) { grid-column: span 2; height: 220px; }
}

@media (max-width: 920px) {
  .nav, .header-cta .header-phone { display: none; }
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 440px; margin-inline: auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* карта: кнопку «Открыть» выносим под карту, чтобы она не
     перекрывалась плавающей кнопкой звонка (.fab) на телефонах/планшетах */
  .map-card { min-height: 0; }
  .map-frame { height: 360px; min-height: 0; }
  .map-open {
    position: static; width: 100%; inset: auto;
    justify-content: center; border-radius: 0;
    border: none; border-top: 1px solid var(--line); box-shadow: none;
  }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px 0; }
  .step { padding: 0; }
  .step::after { display: none !important; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-hero { grid-column: 1 / -1; height: clamp(220px, 56vw, 300px); }
  .gallery-grid > .ph:not(.g-hero) { grid-column: 1 / -1; height: 200px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { gap: 26px; }
  .hero-chip { display: none; }
  .map-frame { height: 300px; }
}

/* самые узкие телефоны: страхуем от обрезки длинных строк */
@media (max-width: 480px) {
  .hero-badge { font-size: 12px; padding: 8px 14px; flex-wrap: wrap; gap: 6px 8px; }
  .hero h1 .hl { white-space: normal; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
