/* =========================================================
   ФОРМАТ — архитектурно-строительное бюро
   Дизайн-система: kapitalno.pro (Jost + Rubik, тёплый монохром)
   Mobile-first
   ========================================================= */

/* ---------- 1. ТОКЕНЫ ---------- */
:root {
  --ink: #21211d;
  --ink-soft: #4f4b45;
  --muted: #848586;
  --muted-2: #9b968d;
  --line: #dbd8cf;
  --line-soft: #ece9e2;
  --sand: #e5e2dd;
  --paper: #f7f6f3;
  --paper-2: #f3f4f6;
  --bronze: #8a795d;
  --white: #fff;
  --black: #000;

  --f-head: 'Jost', -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Rubik', -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1360px;
  --gut: 20px;
  --sec-y: 68px;
  --head-h: 64px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 50px -22px rgba(33, 33, 29, .28);
}

@media (min-width:768px) {
  :root {
    --gut: 32px;
    --sec-y: 96px;
    --head-h: 80px
  }
}

@media (min-width:1200px) {
  :root {
    --gut: 40px;
    --sec-y: 124px;
    --head-h: 92px
  }
}

/* Единица высоты для мобильного меню: малый viewport (svh), чтобы меню
   гарантированно укладывалось в видимую область, а не в невидимую часть */
:root { --vh: 1vh }
@supports (height: 100svh) { :root { --vh: 1svh } }

/* ---------- 2. БАЗА ---------- */
*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--head-h)
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: .028em;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  overscroll-behavior: none;
  /* фиксированный body убирает скроллбар: компенсируем его ширину (--sbw из JS),
     иначе фиксированные шапка и контент сдвигаются вправо */
  padding-right: var(--sbw, 0px)
}

/* Пока меню открыто ИЛИ доигрывает анимацию закрытия, шапка непрозрачная:
   панель меню уезжает ПОД header, а не поверх логотипа */
body.is-menu-active .header {
  background: var(--ink);
  color: var(--white);
  box-shadow: none
}

body.is-locked .header {
  padding-right: var(--sbw, 0px)
}



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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none
}

h1,
h2,
h3,
h4,
p {
  margin: 0
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px
}

::selection {
  background: var(--ink);
  color: var(--white)
}

.t-display,
.t-h2,
.t-h3,
.t-eyebrow {
  font-family: var(--f-head);
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
}

.t-display {
  font-size: clamp(29px, 7.6vw, 58px);
  line-height: 1.1
}

.t-h2 {
  font-size: clamp(24px, 5.6vw, 42px)
}

.t-h3 {
  font-size: clamp(17px, 3.4vw, 21px);
  line-height: 1.25;
  letter-spacing: .02em
}

.t-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--muted)
}

.t-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft)
}

@media (min-width:768px) {
  .t-lead {
    font-size: 17px
  }
}

/* ---------- 3. УТИЛИТЫ ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut)
}

.section {
  padding-block: var(--sec-y)
}

.section--paper {
  background: var(--paper)
}

.section--ink {
  background: var(--ink);
  color: var(--white)
}

.section--tight {
  padding-block: calc(var(--sec-y) * .62)
}

.hair {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0
}

.sec-head {
  position: relative;
  padding-top: 34px;
  margin-bottom: 34px
}

.sec-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 22px;
  background: var(--line)
}

.sec-head::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line)
}

.sec-head__num {
  display: block;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--bronze);
  text-transform: uppercase
}

.sec-head__title {
  margin: 14px 0 0
}

.sec-head__desc {
  margin-top: 16px;
  max-width: 62ch
}

@media (min-width:900px) {
  .sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: 24px 60px;
    align-items: end;
    margin-bottom: 56px
  }

  .sec-head__num {
    grid-column: 1 / -1
  }

  .sec-head__title {
    grid-column: 1;
    margin-top: 20px
  }

  .sec-head__desc {
    grid-column: 2;
    margin-top: 0;
    justify-self: end;
    max-width: 46ch
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 16px 26px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}

.btn--solid {
  background: var(--black);
  color: var(--white)
}

.btn--solid:hover {
  background: var(--ink-soft)
}

.btn--light {
  background: var(--white);
  color: var(--ink)
}

.btn--light:hover {
  background: var(--sand)
}

.btn--ghost {
  border-color: currentColor
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white)
}

.btn--block {
  width: 100%
}

.btn .arr {
  width: 16px;
  height: 8px;
  flex: 0 0 auto
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  white-space: nowrap;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding-bottom: 6px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.link-more .arr {
  width: 16px;
  height: 8px;
  flex: 0 0 auto
}

.link-more:hover {
  border-color: var(--ink);
  color: var(--bronze)
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms)
}

.js .reveal.is-in {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important
  }
}

/* ---------- 4. ХЕДЕР ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease)
}

.header.is-scrolled {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line)
}

.header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--head-h)
}

.header__bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .16
}

.header.is-scrolled .header__bar::after {
  opacity: 0
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: auto
}

.logo__mark {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1
}

.logo__sub {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .62
}

.nav {
  display: none
}

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

.header__phone {
  display: none;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap
}

.header__cta {
  display: none
}

.burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  margin-right: -10px
}

.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease)
}

.burger.is-open span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg)
}

.burger.is-open span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg)
}

@media (min-width:1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 30px
  }

  .nav a {
    position: relative;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding-block: 6px
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease)
  }

  .nav a:hover::after {
    transform: scaleX(1)
  }

  .header__phone {
    display: block
  }

  .header__cta {
    display: inline-flex;
    min-height: 44px;
    padding: 12px 20px
  }

  .burger {
    display: none
  }
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  z-index: 55;
  background: var(--ink);
  color: var(--white);
  padding: calc(var(--head-h) + clamp(8px, calc(2.4 * var(--vh)), 24px)) var(--gut) clamp(8px, calc(2 * var(--vh)), 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, calc(2.2 * var(--vh)), 26px);
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s
}

.menu.is-open {
  transform: none;
  visibility: visible;
  transition: transform .5s var(--ease), visibility 0s
}

/* MOB-02: пока открыто мобильное меню, нижняя CTA-панель скрыта,
   чтобы не перекрывать нижний блок меню (адрес и кнопку) */
body.is-locked .sticky-bar {
  display: none
}

.menu__nav {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0
}

.menu__nav a {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(17px, calc(4.2 * var(--vh)), 30px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: clamp(5px, calc(1.25 * var(--vh)), 14px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16)
}

.menu__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: clamp(6px, calc(1.4 * var(--vh)), 16px)
}

.menu__phone {
  font-family: var(--f-head);
  font-size: clamp(17px, calc(2.4 * var(--vh)), 22px);
  line-height: 1.2;
  letter-spacing: .04em
}

.menu__note {
  font-size: clamp(10px, calc(1.4 * var(--vh)), 12px);
  line-height: 1.35;
  color: rgba(255, 255, 255, .6)
}

.menu__foot .btn {
  min-height: clamp(42px, calc(6 * var(--vh)), 52px);
  padding: 10px 20px
}

/* Очень низкие экраны (ландшафт телефона): дополнительно ужимаем меню */
@media (max-height: 520px) {
  .menu {
    padding-top: calc(var(--head-h) + 4px);
    padding-bottom: 6px;
    gap: 8px
  }

  .menu__nav a {
    font-size: 15px;
    line-height: 1.1;
    padding: 2px 0
  }

  .menu__foot {
    gap: 5px
  }

  .menu__phone {
    font-size: 15px
  }

  .menu__note {
    font-size: 10px;
    line-height: 1.3
  }

  .menu__foot .btn {
    min-height: 38px;
    padding: 8px 16px
  }
}

/* Совсем низкие окна (реальный ландшафт телефона с панелями браузера):
   убираем адрес, ужимаем ещё и оставляем скролл как страховку от обрезки */
@media (max-height: 340px) {
  .menu {
    padding-top: calc(var(--head-h) + 2px);
    padding-bottom: 4px;
    gap: 6px;
    overflow-y: auto
  }

  .menu__nav a {
    font-size: 13px;
    line-height: 1.05;
    padding: 1px 0
  }

  .menu__foot {
    gap: 4px
  }

  .menu__phone {
    font-size: 13px
  }

  .menu__note {
    display: none
  }

  .menu__foot .btn {
    min-height: 34px;
    padding: 6px 14px
  }
}

@media (min-width:1024px) {
  .menu {
    display: none
  }
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  overflow: hidden;
  color: var(--white)
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02)
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 16, 13, .92) 0%, rgba(18, 16, 13, .60) 34%, rgba(18, 16, 13, .42) 62%, rgba(18, 16, 13, .86) 100%)
}

/* MOB-03: нижний отступ резервирует высоту фиксированной панели .sticky-bar (56px + 1px border) */
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--head-h) + 56px) 57px
}

.hero__eyebrow {
  color: rgba(255, 255, 255, .78);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px
}

.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--bronze);
  flex: 0 0 auto
}

.hero__title {
  max-width: 17ch
}

.hero__lead {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82)
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.hero__actions .btn {
  flex: 1 1 220px
}

.hero__stats {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.hero__stat-num {
  display: block;
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(22px, 6.4vw, 40px);
  line-height: 1.1
}

.hero__stat-label {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62)
}

.hero__scroll {
  display: none;
  position: absolute;
  right: var(--gut);
  bottom: 0;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--f-head);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6)
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 56px;
  margin: 12px auto 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), transparent);
  animation: drop 2.4s var(--ease) infinite
}

@keyframes drop {
  0% {
    transform: scaleY(.2);
    transform-origin: top
  }

  45% {
    transform: scaleY(1);
    transform-origin: top
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom
  }

  100% {
    transform: scaleY(.2);
    transform-origin: bottom
  }
}

@media (min-width:320px) {
    .hero__stat-num {
    font-size: clamp(16px, 4.4vw, 40px);
  }

  .hero__eyebrow {
    display: none;
  }

  .hero__lead {
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 1.2;
  }

  .hero__stat-label {
    font-size: 7px;
  }

  .hero__stats {
    padding-bottom: 15px;
  }

  .t-display {
    margin-bottom: 20px;
  }

  .banner__meta {
    flex-direction: column;
  }
}


@media (min-width:576px) {
  .hero__inner {
    padding-block: calc(var(--head-h) + 16px) 66px
  }

}

@media (min-width:768px) {
  .hero__inner {
    padding-block: calc(var(--head-h) + 46px) 57px
  }

  .hero__eyebrow {
    display: flex;
  }

  .hero__lead {
    font-size: 17px;
    max-width: 56ch
  }

  .hero__actions .btn {
    flex: 0 0 auto
  }

  .hero__stats {
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 12px;
    font-size: clamp(22px, 6.4vw, 40px);
  }

  .hero__stat-label {
    font-size: 11px
  }

    .hero__stat-label {
      font-size: 10px;
  }

  .banner__meta {
    flex-direction: row;
  }

}



@media (min-width:1024px) {
  .hero__inner {
    padding-block: calc(var(--head-h) + 140px) 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .75fr);
    align-items: end;
    gap: 0 60px
  }

  .hero__eyebrow {
    grid-column: 1
  }

  .hero__title {
    grid-column: 1;
    max-width: 22ch
  }

  .hero__lead {
    grid-column: 2;
    margin-top: 0;
    align-self: end
  }

  .hero__actions {
    grid-column: 1
  }

  .hero__stats {
    grid-column: 1 / -1;
    margin-top: 56px;
    gap: 48px
  }

  .hero__scroll {
    display: block
  }
}

/* ---------- 6. БЕГУЩАЯ СТРОКА ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  padding-block: 16px
}

.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite
}

.strip:hover .strip__track {
  animation-play-state: paused
}

.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft)
}

.strip__item::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--bronze);
  border-radius: 50%
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ---------- 7. УСЛУГИ ---------- */
.services {
  padding-bottom: 0;
  border-top: 1px solid var(--line)
}

.service {
  display: grid;
  gap: 14px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line)
}

.service__top {
  display: flex;
  align-items: baseline;
  gap: 16px
}

.service__num {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--bronze)
}

.service__text {
  margin: 14px 0;
  color: var(--ink-soft);
  max-width: 60ch
}

.service__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.services__list article:last-child {
  border: none;
}

.service__list li {
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 6px 11px
}

.service__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px
}

.service__price {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .02em
}

.service__price small {
  display: block;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px
}

@media (min-width:768px) {
  .service {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0 24px;
    padding: 36px 0
  }

  .service__num {
    grid-row: span 4;
    padding-top: 4px
  }

  .service__top {
    display: block
  }

  .service__foot {
    margin-top: 18px;
    justify-content: flex-start;
    gap: 36px
  }
}

@media (min-width:1200px) {
  .service {
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 44px 0
  }

  .service__num {
    grid-row: span 4
  }
}

.services__img {
  margin-top: 34px;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sand)
}

.services__img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* ---------- 8. ПРОЕКТЫ ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease)
}

.projects__grid {
  display: grid;
  gap: 22px
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease)
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px)
}

.card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand)
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease)
}

.card:hover .card__media img {
  transform: scale(1.05)
}

.card__badge {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 9px 13px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1
}

.card__title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .02em
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted)
}

.card__meta span {
  position: relative
}

.card__meta span+span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 3px;
  background: var(--line);
  border-radius: 50%;
  transform: translateY(-50%)
}

.card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px
}

.card__price {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 17px
}

.card__price small {
  display: block;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px
}

.card.is-hidden {
  display: none
}

.projects__more {
  margin-top: 30px;
  display: flex;
  justify-content: center
}

@media (min-width:640px) {
  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px
  }

  .card__media {
    aspect-ratio: 3/4
  }
}

@media (min-width:1100px) {
  .projects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px
  }
}

/* ---------- 9. БЮРО ---------- */
.about__grid {
  display: grid;
  gap: 34px
}

.about__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--sand)
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  margin: 14px;
  pointer-events: none
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.about__text p {
  color: var(--ink-soft);
  max-width: 62ch
}

.about__list {
  display: grid;
  gap: 12px
}

.about__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--line)
}

.about__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: var(--bronze);
  flex: 0 0 auto;
  transform: rotate(45deg)
}

.about__list b {
  font-family: var(--f-head);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 13px;
  display: block;
  margin-bottom: 3px
}

.about__list span {
  font-size: 13px;
  color: var(--ink-soft)
}

.numbers {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
  padding-top: 30px;
  border-top: 1px solid var(--line)
}

.numbers__num {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1
}

.numbers__label {
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted)
}

@media (min-width:900px) {
  .about__grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start
  }

  .about__media {
    position: sticky;
    top: calc(var(--head-h) + 24px)
  }

  .numbers {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 48px
  }
}

/* ---------- 10. ЭТАПЫ ---------- */
.steps {
  border-top: 1px solid var(--line)
}

.step {
  border-bottom: 1px solid var(--line)
}

.step__head {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  text-align: left
}

.step__num {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--bronze)
}

.step__title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .02em
}

.step__icon {
  position: relative;
  width: 34px;
  height: 34px;
  justify-self: end;
  border: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease)
}

.step__icon::before,
.step__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: opacity .3s var(--ease), background .3s var(--ease)
}

.step__icon::before {
  width: 11px;
  height: 1px
}

.step__icon::after {
  width: 1px;
  height: 11px
}

.step.is-open .step__icon {
  background: var(--ink);
  border-color: var(--ink)
}

.step.is-open .step__icon::before,
.step.is-open .step__icon::after {
  background: var(--white)
}

.step.is-open .step__icon::after {
  opacity: 0
}

.step__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease)
}

.step__panel>div {
  overflow: hidden
}

.step.is-open .step__panel {
  grid-template-rows: 1fr
}

.step__body {
  padding: 0 0 26px 60px;
  color: var(--ink-soft);
  max-width: 70ch
}

@media (min-width:900px) {
  .step__head {
    grid-template-columns: 120px minmax(0, 1fr) 40px;
    padding: 30px 0;
    gap: 24px
  }

  .step__title {
    font-size: 19px
  }

  .step__body {
    padding-left: 144px;
    font-size: 16px
  }
}

/* ---------- 11. ВИДЕО-БАННЕР ---------- */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white)
}

.banner__media {
  position: absolute;
  inset: 0
}

.banner__media img,
.banner__media video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 13, .55), rgba(18, 16, 13, .30) 45%, rgba(18, 16, 13, .72))
}

.banner__inner {
  position: relative;
  z-index: 2;
  padding-block: 82px;
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px
}

.banner__quote {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(21px, 5.4vw, 38px);
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: .01em;
  max-width: 24ch
}

.banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .66)
}

@media (min-width:900px) {
  .banner__inner {
    min-height: 78vh;
    padding-block: 110px;
    justify-content: center
  }
}

/* ---------- 12. ОТЗЫВЫ ---------- */
.reviews {
  display: grid;
  gap: 20px
}

.review {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.review__mark {
  font-family: var(--f-head);
  font-size: 44px;
  line-height: .6;
  color: var(--line)
}

.review__text {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6
}

.review__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft)
}

.review__name {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em
}

.review__role {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted)
}

@media (min-width:768px) {
  .reviews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
  }
}

/* ---------- 13. FAQ ---------- */
.faq {
  border-top: 1px solid var(--line)
}

.faq .step__head {
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 18px
}

.faq .step__icon {
  grid-column: 2
}

.faq .step__body {
  padding-left: 0
}

@media (min-width:900px) {
  .faq .step__head {
    grid-template-columns: minmax(0, 1fr) 40px
  }

  .faq .step__body {
    padding-left: 0
  }
}

/* ---------- 14. КОНТАКТЫ ---------- */
.contact {
  position: relative;
  background: var(--ink);
  color: var(--white)
}

.contact__grid {
  display: grid;
  gap: 38px
}

.contact__title {
  color: var(--white)
}

.contact__lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, .72);
  max-width: 46ch
}

.contact__list {
  margin-top: 30px;
  display: grid
}

.contact__list a,
.contact__list div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .16)
}

.contact__list span:first-child {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5)
}

.contact__list span:last-child {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .02em
}

.form {
  margin-top: 20px;
  display: grid;
  gap: 18px
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.field label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55)
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .26);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: .02em;
  padding: 12px 0;
  transition: border-color .25s var(--ease);
  border-radius: 0;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 88px
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .7) 50%), linear-gradient(135deg, rgba(255, 255, 255, .7) 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px
}

.field select option {
  color: var(--ink)
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white)
}

.field.has-error input,
.field.has-error select {
  border-color: #ee443f
}

.field__error {
  font-size: 11px;
  color: #ee443f
}

.field__error:empty {
  display: none
}

.form__row {
  display: grid;
  gap: 18px
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .6)
}

.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer
}

.check input:checked {
  background: var(--white);
  border-color: var(--white);
  box-shadow: inset 0 0 0 4px var(--ink)
}

.check a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 2px
}

.form__foot {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.form__status {
  font-size: 13px;
  color: var(--bronze)
}

.form__status:empty {
  display: none
}

.form-success {
  display: none;
  border: 1px solid rgba(255, 255, 255, .24);
  padding: 28px 22px;
  gap: 12px;
  flex-direction: column
}

.form-success.is-visible {
  display: flex
}

.form-success__title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .03em
}

.form-success p {
  color: rgba(255, 255, 255, .7)
}

.contact__form {
  margin-top: 24px;
}

@media (min-width:768px) {
  .form__row {
    grid-template-columns: 1fr 1fr
  }
}

@media (min-width:960px) {
  .contact__grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    gap: 60px
  }

  .form__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between
  }
}

/* ---------- 15. ФУТЕР ---------- */
.footer {
  background: var(--paper);
  padding-block: 44px 30px
}

.footer__top {
  display: grid;
  gap: 30px
}

.footer__about {
  max-width: 34ch;
  font-size: 13px;
  color: var(--ink-soft)
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px
}

.footer__col h4 {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px
}

.footer__col li+li {
  margin-top: 9px
}

.footer__col a,
.footer__col span {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color .2s var(--ease)
}

.footer__col a:hover {
  color: var(--bronze)
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted)
}

@media (min-width:1301px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 60px
  }

  .footer__cols {
    grid-template-columns: repeat(3, 1fr)
  }
}


@media (max-width:1300px) {
  
  .footer__top {
        grid-template-columns: 1fr;
        gap: 60px;
  }

  .footer__about {
    max-width: 100%;
  }

  .footer__cols {
    grid-template-columns: 25% 1fr 1fr;
  }
}

/* MOB-04: мобильный футер — одна колонка, чтобы адрес и e-mail не обрезались */
@media (max-width:640px) {
  .footer__cols {
    grid-template-columns: 1fr;
    gap: 22px
  }
}



/* ---------- 16. МОБИЛЬНАЯ ПАНЕЛЬ CTA ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line)
}

.sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  background: var(--white);
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase
}

.sticky-bar a:last-child {
  background: var(--ink);
  color: var(--white)
}

@media (min-width:960px) {
  .sticky-bar {
    display: none
  }
}

@media (max-width:959px) {
  body {
    padding-bottom: 57px
  }
}

