/* ============================================================
   ГРАНЬ — художественная ковка
   Дизайн-система по брендинг-гайду v1.0:
   воронёный графит + латунь, Oranienbaum / Onest / JetBrains Mono,
   линия побежалости, скругления 0, сетка 8pt.
   ============================================================ */
:root {
  --graphite: #15171c; /* фон */
  --coal: #1d2026;     /* поверхности */
  --line: #2c303a;     /* границы */
  --mist: #9aa0ac;     /* вторичный текст */
  --bone: #e7e6e3;     /* основной текст */
  --brass: #b8925a;    /* акцент, CTA */
  --brass-hi: #c9a46b; /* латунь hover */
  --error: #c25b4e;
  --temper: linear-gradient(90deg, #e5c078 0%, #c98a52 26%, #9a5f73 50%, #64648f 74%, #4e7794 100%);
  --f-display: "Oranienbaum", Georgia, "Times New Roman", serif;
  --f-body: "Onest", system-ui, -apple-system, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brass);
  color: var(--graphite);
}

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

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

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 104px 0;
}

.section--warm {
  background: var(--coal);
}

.section--dark {
  background: var(--coal);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============ Фирменная линия побежалости ============ */
.temper-strip {
  height: 3px;
  background: var(--temper);
}

/* ============ Типографика секций ============ */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.005em;
}

.section-head .lead {
  margin: 18px 0 0;
  color: var(--mist);
  font-size: 17px;
}

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn--lg {
  padding: 17px 36px;
  font-size: 15.5px;
}

.btn--primary {
  background: var(--brass);
  color: var(--graphite);
}

.btn--primary:hover {
  background: var(--brass-hi);
}

.btn--outline,
.btn--light {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}

.btn--outline:hover,
.btn--light:hover {
  border-color: var(--mist);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* ============ Шапка ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 23, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.3s;
}

.site-header.scrolled .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.logo svg {
  flex: 0 0 auto;
}

.logo-name {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--bone);
}

.main-nav a.active {
  color: var(--brass);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-phone svg {
  color: var(--brass);
}

.header-phone:hover {
  color: var(--brass-hi);
}

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--bone);
}

/* ============ Мобильное меню ============ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
}

.mobile-menu.open {
  visibility: visible;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu.open .mobile-menu-overlay {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 85vw;
  background: var(--graphite);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open .mobile-menu-panel {
  transform: none;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-close {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--mist);
}

.mobile-menu nav {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.mobile-menu nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu nav a {
  display: block;
  padding: 13px 12px;
  font-size: 15.5px;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
}

.mobile-menu nav li:last-child a {
  border-bottom: 0;
}

.mobile-menu nav a:hover {
  color: var(--bone);
}

.mobile-menu nav a.active {
  color: var(--brass);
}

.mobile-menu-foot {
  padding: 24px;
  border-top: 1px solid var(--line);
}

.mobile-menu-foot .header-phone {
  margin-bottom: 16px;
}

/* ============ Hero: видео по скроллу ============ */
/* Высокая секция задаёт «пробег» скролла, внутренний экран липнет,
   кадры видео рисуются на canvas по прогрессу прокрутки. */
.hero-scroll {
  position: relative;
  height: 300vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  /* первый кадр как фон-фолбэк, пока canvas не отрисовался */
  background: url("hero/f-001.webp") center/cover no-repeat var(--graphite);
}

@supports (height: 100svh) {
  .hero-sticky {
    height: 100svh;
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: filter 0.7s ease, transform 0.7s ease;
}

/* в финале скролла фон размывается, появляется заголовок */
.hero-sticky.show-text .hero-canvas {
  filter: blur(12px) brightness(0.65);
  transform: scale(1.06);
}

/* Статичный первый экран — телефоны, экономия трафика, reduced-motion.
   Покадровая анимация не грузится, остаётся первый кадр фоном,
   поэтому длинная полоса прокрутки под неё больше не нужна.
   Селектор из двух классов перебивает мобильное правило .hero-scroll. */
.hero-scroll.hero-static {
  height: 100vh;
}

@supports (height: 100svh) {
  .hero-scroll.hero-static {
    height: 100svh;
  }
}

.hero-scroll.hero-static .hero-canvas {
  display: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(21, 23, 28, 0.92), rgba(21, 23, 28, 0.55) 55%, rgba(21, 23, 28, 0.28)),
    linear-gradient(to top, rgba(21, 23, 28, 0.85), transparent 45%);
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* контент появляется в конце прокрутки видео */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-sticky.show-text .hero-content {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero-sticky h1 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.005em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* спецификация в духе чертежа */
.spec-card {
  border: 1px solid var(--line);
  background: var(--coal);
  padding: 28px;
}

.spec-card .temper-strip {
  margin-bottom: 22px;
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row span:first-child {
  color: var(--mist);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ============ Сетки и карточки ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--coal);
  border: 1px solid var(--line);
  padding: 32px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #3b404d;
}

.section--warm .card,
.section--dark .card {
  background: var(--graphite);
}

.card h3 {
  font-size: 21px;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--mist);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  color: var(--brass);
  margin-bottom: 22px;
}

/* ============ Портфолио ============ */
.work-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--coal);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s;
}

.work-card:hover {
  border-color: #3b404d;
}

.work-card:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.work-card .work-photo,
.preview-card .work-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--graphite);
  display: block;
}

.work-card .work-photo img,
.preview-card .work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-card:hover .work-photo img,
.preview-card:hover .work-photo img {
  transform: scale(1.04);
}

/* линия побежалости по нижнему краю фото — единственная анимация карточки */
.work-card .work-photo::after,
.preview-card .work-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--temper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.work-card:hover .work-photo::after,
.preview-card:hover .work-photo::after {
  transform: scaleX(1);
}

.work-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  background: rgba(21, 23, 28, 0.78);
  border: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-body {
  display: block;
  padding: 24px;
}

.work-body h3 {
  font-size: 22px;
  letter-spacing: 0.01em;
}

.work-body p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--mist);
}

.work-material {
  margin-top: 14px !important;
  font-family: var(--f-mono);
  font-size: 11.5px !important;
  letter-spacing: 0.04em;
}

.work-material strong {
  color: var(--brass);
  font-weight: 500;
}

/* превью на главной */
.preview-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--coal);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.preview-card:hover {
  border-color: #3b404d;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(13, 14, 17, 0.88), rgba(13, 14, 17, 0.25) 55%, transparent);
}

.preview-overlay .cat {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.preview-overlay h3 {
  margin-top: 6px;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--bone);
}

/* фильтр */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: var(--bone);
  border-color: var(--mist);
}

.filter-btn.active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--graphite);
}

/* ============ Шаги ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  text-align: center;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border: 1px solid var(--brass);
  font-family: var(--f-display);
  font-size: 21px;
  color: var(--brass);
}

.steps h3 {
  font-size: 21px;
}

.steps p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--mist);
}

/* timeline на странице услуг */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 1px solid var(--line);
  list-style: none;
}

.timeline li {
  position: relative;
  padding-bottom: 44px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .step-num {
  position: absolute;
  left: -59px;
  top: 0;
  width: 38px;
  height: 38px;
  margin: 0;
  background: var(--brass);
  border: 0;
  color: var(--graphite);
  font-size: 16px;
}

.timeline h3 {
  font-size: 23px;
}

.timeline p {
  margin: 10px 0 0;
  color: var(--mist);
  font-size: 15px;
}

/* ============ Отзывы ============ */
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.testimonial blockquote {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  color: var(--bone);
}

.testimonial figcaption {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stars {
  color: var(--brass);
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 8px;
}

.testimonial .name {
  font-weight: 600;
  font-size: 15px;
}

.testimonial .role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin-top: 2px;
}

.quote-mark {
  color: var(--brass);
  opacity: 0.45;
  font-family: var(--f-display);
  font-size: 46px;
  line-height: 1;
  margin-bottom: 14px;
}

/* ============ Цифры ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stats .value {
  font-family: var(--f-display);
  font-size: 52px;
  line-height: 1.05;
  color: var(--brass);
}

.stats .value small {
  font-size: 30px;
}

.stats .label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--mist);
}

/* ============ CTA ============ */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.cta-grid h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: 0.005em;
}

.cta-grid .lead {
  margin-top: 22px;
  color: var(--mist);
  font-size: 16px;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 17px;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.cta-phone:hover {
  color: var(--brass-hi);
}

.cta-phone .round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brass);
  color: var(--graphite);
}

.form-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  padding: 36px;
}

.form-card h3 {
  font-size: 26px;
  margin: 0 0 24px;
}

.cta-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.cta-center h2 {
  max-width: 680px;
  font-size: clamp(28px, 3.6vw, 38px);
}

.cta-center p {
  max-width: 560px;
  margin: 0;
  color: var(--mist);
}

/* ============ Формы ============ */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.field label span {
  color: var(--brass);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--f-body);
  font-size: 15.5px;
  color: var(--bone);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5a6070;
}

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

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

.field .error {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--error);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--error);
}

.field.invalid .error {
  display: block;
}

.form-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--mist);
}

.form-success {
  padding: 28px;
  border: 1px solid var(--brass);
  background: var(--coal);
  text-align: center;
  font-size: 16px;
  margin: 0;
}

.form-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--error);
  background: rgba(194, 91, 78, 0.08);
  font-size: 14px;
  color: var(--bone);
}

.hp-field {
  display: none !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ============ Модалка ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.75);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--coal);
  border: 1px solid var(--line);
  padding: 36px;
}

.modal-panel h3 {
  font-size: 27px;
  margin: 0 0 10px;
  padding-right: 32px;
}

.modal-panel .modal-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--mist);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--mist);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--bone);
}

/* ============ Лайтбокс ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 14, 0.94);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 24px 22px;
  text-align: center;
  color: var(--bone);
  background: linear-gradient(to top, rgba(10, 11, 14, 0.8), transparent);
}

.lightbox-caption strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.lightbox-caption span {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--line);
  width: 48px;
  height: 48px;
  color: var(--bone);
  font-size: 22px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-btn:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--bone);
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}

/* ============ Плавающие кнопки ============ */
.floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s;
}

.floating a:hover {
  transform: scale(1.08);
}

.floating .wa {
  background: #25d366;
}

.floating .tg {
  background: #229ed9;
}

/* ============ Футер ============ */
.site-footer {
  background: var(--graphite);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 64px 0;
}

.footer-grid h4 {
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 11px;
  font-size: 14px;
  color: var(--mist);
}

.footer-grid a {
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--brass);
}

.footer-about {
  font-size: 14px;
  color: var(--mist);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brass);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--mist);
  transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.footer-bottom p {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #5a6070;
}

/* ============ О мастерской ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-grid .text p {
  color: var(--mist);
  margin: 0 0 16px;
  font-size: 15.5px;
}

.about-grid h1,
.about-grid h2 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0.005em;
  margin-bottom: 26px;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
}

.about-photos img:last-child {
  margin-top: 32px;
}


/* ============ Контакты ============ */
.contact-card {
  text-align: center;
}

.contact-card .card-icon {
  margin: 0 auto 18px;
}

.contact-card a {
  color: var(--brass);
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.contact-card a:hover {
  color: var(--brass-hi);
}

.contact-card p {
  font-size: 14px;
}

.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: var(--graphite);
  overflow: hidden;
}

/* Карта берёт тёмную тему Яндекса (theme=dark в src), а фильтр доводит её
   нейтральный графит до фирменного воронёного оттенка с латунным теплом. */
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: brightness(0.88) contrast(1.08) saturate(0.9) sepia(0.16)
    hue-rotate(-8deg);
}

/* Латунная вуаль и виньетка — карта садится в фон страницы. */
.map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(21, 23, 28, 0) 58%, rgba(21, 23, 28, 0.55) 100%),
    linear-gradient(0deg, rgba(184, 146, 90, 0.07), rgba(184, 146, 90, 0.07));
}

/* Фирменная линия побежалости поверх верхней кромки карты. */
.map-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 3px;
  background: var(--temper);
  pointer-events: none;
}

/* ============ Услуги ============ */
.service-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.service-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 14.5px;
  color: var(--bone);
}

.service-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* ============ Появление при скролле ============ */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

  .work-card .work-photo::after,
  .preview-card .work-photo::after {
    transition: none;
  }
}

/* ============ Адаптивность ============ */
@media (max-width: 1199px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-phone {
    display: none;
  }

  .mobile-menu-foot .header-phone {
    display: flex;
  }
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }

  .burger {
    display: block;
  }

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

  .cta-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }

  .hero-scroll {
    height: 220vh;
  }

  .hero-sticky h1 {
    font-size: clamp(26px, 8vw, 40px);
    margin-bottom: 24px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    text-align: left;
  }

  .step-num {
    margin: 0 0 14px;
  }

  .header-cta {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 44px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline .step-num {
    left: -47px;
  }

  .form-card {
    padding: 26px;
  }
}
