/* ==========================================================================
   Salima — мебель на заказ
   Тёплая премиальная тема: кремовый фон, графит, латунь.
   ========================================================================== */

/* ── Токены ─────────────────────────────────────────────────────────────── */
:root {
  --serif: 'Prata', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bg: #f6f2ea;
  --bg-soft: #eee8dd;
  --paper: #fdfbf7;
  --ink: #221f1b;
  --ink-soft: #4c463d;
  --muted: #6f6557;
  --line: #ded5c6;
  --brass: #a98455;
  --brass-deep: #7f6039;
  --graphite: #26231f;
  --dark-text: #efe8dc;

  --radius: 5px;
  --shadow: 0 30px 60px -30px rgba(34, 31, 27, .28);
  --ease: cubic-bezier(.22, .8, .22, 1);
}

/* ── Базовое ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.7rem, 5.4vw, 5.1rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
h3 { font-size: 1.18rem; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

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

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

.container {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.section { padding-block: clamp(64px, 8vw, 124px); }

/* Появление при скролле */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Типовые элементы ───────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--brass-deep);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.eyebrow__line {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--light { color: #c3a071; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .015em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--primary { background: var(--ink); color: #f8f4ec; }
.btn--primary:hover { background: var(--brass-deep); color: #fff; }
.btn--ghost { border-color: rgba(34, 31, 27, .28); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #f8f4ec; }
.btn--sm { padding: 13px 22px; font-size: .8rem; }
.btn__arrow { flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 4px;
  transition: color .25s var(--ease);
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--brass-deep); }
.link-arrow:hover svg { transform: translateX(3px); }

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--brass);
  vertical-align: 2px;
}

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 18px;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(34, 31, 27, .1);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.header.is-scrolled {
  padding-block: 10px;
  background: rgba(246, 242, 234, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header.is-scrolled::after { opacity: 1; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--brass-deep);
  flex: none;
}
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; gap: 2px; }
.logo__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .03em;
}
.logo__sub {
  color: var(--muted);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: .83rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 6px;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 22px; }
.header__phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; }
.header__phone-label {
  color: var(--muted);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.header__phone-num {
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .25s var(--ease);
}
.header__phone:hover .header__phone-num { color: var(--brass-deep); }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
}
.burger span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21.5px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

/* Мобильное меню */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 108px clamp(20px, 6vw, 56px) 32px;
  background: var(--bg);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility .55s;
}
.menu.is-open { transform: none; visibility: visible; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  text-decoration: none;
}
.menu__nav a span { color: var(--brass); font-family: var(--sans); font-size: .9rem; }
.menu__cta { align-self: flex-start; margin-top: 26px; }
.menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 32px;
  font-size: .95rem;
}
.menu__contacts a { text-decoration: none; }
.menu__contacts span { color: var(--muted); font-size: .8rem; }

/* ── Первый экран ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(122px, 16vh, 176px);
  padding-bottom: clamp(40px, 6vw, 70px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(169, 132, 85, .14), rgba(169, 132, 85, 0) 65%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}
.hero__copy { max-width: 640px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em {
  font-style: normal;
  color: var(--brass-deep);
}
.hero__lead {
  max-width: 470px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .02em;
}

.hero__visual { position: relative; }
.hero__frame {
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  opacity: .5;
  pointer-events: none;
}
.hero__photo {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__tag {
  position: absolute;
  z-index: 2;
  left: clamp(-24px, -2vw, -10px);
  bottom: 42px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 290px;
  padding: 18px 22px 17px;
  border-left: 2px solid var(--brass);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hero__tag:hover { transform: translateY(-3px); box-shadow: 0 36px 60px -28px rgba(34, 31, 27, .4); }
.hero__tag-kicker {
  color: var(--muted);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__tag-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
}
.hero__tag-link {
  margin-top: 3px;
  color: var(--brass-deep);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ── Бегущая строка ─────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding-block: 17px;
  border-block: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}
.marquee span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee i { color: var(--brass); font-size: .5rem; font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ── Заголовки секций ───────────────────────────────────────────────────── */
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section__note {
  max-width: 330px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
  text-align: right;
}

/* ── Категории ──────────────────────────────────────────────────────────── */
.cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.cat { display: block; text-decoration: none; }
.cat__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(.92rem, 1.1vw, 1.08rem);
  line-height: 1.3;
}
.cat__label svg { flex: none; color: var(--brass); transition: transform .3s var(--ease); }
.cat:hover .cat__label svg { transform: translateX(3px); }

/* ── Портфолио ──────────────────────────────────────────────────────────── */
.section--portfolio { padding-top: clamp(40px, 6vw, 80px); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.filter {
  padding: 10px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #f8f4ec; }

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3vw, 40px) clamp(14px, 2vw, 24px);
}
.work {
  display: block;
  color: inherit;
  text-decoration: none;
  animation: cardIn .5s var(--ease) both;
}
.work.is-hidden { display: none; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
}
.work__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.work:hover .work__media img { transform: scale(1.04); }
.work__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 14px;
  padding: 13px 2px 0;
}
.work__cat {
  grid-column: 1;
  color: var(--brass-deep);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.work__title {
  grid-column: 1;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.45;
}
.work__arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--brass-deep);
  opacity: .35;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.work:hover .work__arrow { opacity: 1; transform: translate(2px, -2px); }

.works__empty { margin-top: 40px; color: var(--muted); }

/* ── О мастерской ───────────────────────────────────────────────────────── */
.section--about { background: var(--paper); }

.about__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.about__text .lead {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.55;
}
.about__text p + p { margin-top: 18px; }
.about__text > p:not(.lead) { color: var(--muted); font-size: .9rem; }

.ticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 28px;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: .82rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 1px;
  background: var(--brass);
}

.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  margin-top: clamp(44px, 6vw, 78px);
}
.about__photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main,
.about__photo--small { aspect-ratio: 4 / 5; }
.about__note {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.about__note-mark {
  display: block;
  margin-bottom: 4px;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: .8;
}
.about__note p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ── Как мы работаем ────────────────────────────────────────────────────── */
.process {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  color: var(--dark-text);
}
.process::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(169, 132, 85, .18), rgba(169, 132, 85, 0) 65%);
  pointer-events: none;
}
.process .container { position: relative; }
.process h2 { color: #f7f1e7; }
.process__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.process__note {
  max-width: 330px;
  padding-bottom: 8px;
  color: rgba(239, 232, 220, .62);
  font-size: .84rem;
  line-height: 1.7;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
}
.step {
  padding-top: 20px;
  border-top: 1px solid rgba(239, 232, 220, .2);
}
.step__num {
  display: block;
  color: #c3a071;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}
.step__title {
  margin-top: 18px;
  color: #f5efe5;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}
.step__text {
  margin-top: 9px;
  color: rgba(239, 232, 220, .6);
  font-size: .78rem;
  line-height: 1.7;
}

/* ── Материалы ──────────────────────────────────────────────────────────── */
.materials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.material {
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.material:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 132, 85, .55);
  box-shadow: 0 24px 40px -34px rgba(34, 31, 27, .5);
}
.material__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brass-deep);
}
.material__icon svg { width: 21px; height: 21px; }
.material h3 { font-size: 1.08rem; margin-bottom: 8px; }
.material p { color: var(--muted); font-size: .8rem; line-height: 1.7; }

/* ── Вопросы ────────────────────────────────────────────────────────────── */
.section--faq { padding-top: 0; }
.faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__head { position: sticky; top: 120px; }
.faq__note {
  max-width: 300px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.7;
}
.faq__head .link-arrow { margin-top: 22px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brass-deep); }
.faq__item summary::after {
  content: "+";
  flex: none;
  color: var(--brass-deep);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 44px 22px 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.75;
}

/* ── Контакты ───────────────────────────────────────────────────────────── */
.contacts {
  position: relative;
  background: var(--bg-soft);
}
.contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(253, 251, 247, .9), rgba(253, 251, 247, 0) 60%);
  pointer-events: none;
}
.contacts__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}
.contacts h2 { margin-bottom: 20px; }
.contacts__lead {
  max-width: 400px;
  color: var(--muted);
  font-size: .9rem;
}
.contacts__list {
  margin-top: clamp(26px, 3.4vw, 38px);
  border-top: 1px solid rgba(34, 31, 27, .14);
  list-style: none;
}
.contacts__list li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(34, 31, 27, .14);
  font-size: .88rem;
}
.contacts__label {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-top: 4px;
}
.contacts__list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.contacts__list a:hover { border-color: var(--brass); color: var(--brass-deep); }

.contacts__socials {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.contacts__socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 31, 27, .18);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.contacts__socials svg { width: 18px; height: 18px; }
.contacts__socials a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #f8f4ec;
}

/* Форма */
.form {
  padding: clamp(24px, 3.2vw, 42px);
  border: 1px solid rgba(34, 31, 27, .08);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form__title { font-size: 1.5rem; }
.form__sub {
  margin-top: 6px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .8rem;
}
.field { margin-bottom: 15px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.4;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder,
.field textarea::placeholder { color: #a89d8d; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(169, 132, 85, .12);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23857b6d' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}
.field input.is-invalid,
.field textarea.is-invalid { border-color: #c4694f; background: #fdf4f1; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--brass-deep);
  cursor: pointer;
}
.form__policy {
  margin: -8px 0 18px;
  font-size: .68rem;
  line-height: 1.5;
}
.form__policy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.form__policy a:hover { color: var(--brass-deep); }
.form__submit { width: 100%; }
.form__status {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: .76rem;
  line-height: 1.55;
}
.form__status.is-error,
.form__status.is-info {
  display: block;
  background: #f6eee4;
  color: #7a5a34;
}
.form__demo {
  margin-top: 14px;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.55;
}
.form__demo code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg-soft);
  font-size: .64rem;
}

/* ── Подвал ─────────────────────────────────────────────────────────────── */
.footer {
  padding-block: clamp(48px, 6vw, 76px) 26px;
  background: var(--graphite);
  color: rgba(239, 232, 220, .58);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}
.logo--footer { color: #f6f1e7; }
.logo--footer .logo__mark { color: #c3a071; }
.logo--footer .logo__sub { color: rgba(239, 232, 220, .45); }
.footer__about {
  max-width: 300px;
  margin-top: 18px;
  color: rgba(239, 232, 220, .62);
  font-size: .78rem;
  line-height: 1.7;
}
.footer__title {
  margin-bottom: 16px;
  color: rgba(239, 232, 220, .4);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.footer__nav,
.footer__contacts { display: flex; flex-direction: column; gap: 8px; }
.footer a {
  color: rgba(239, 232, 220, .72);
  font-size: .82rem;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(239, 232, 220, .12);
  font-size: .68rem;
}
.footer__bottom a { font-size: .68rem; }

/* ── Плавающая кнопка WhatsApp ──────────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: clamp(14px, 2.6vw, 26px);
  bottom: clamp(14px, 2.6vw, 26px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(246, 242, 234, .2);
  border-radius: 50%;
  background: var(--ink);
  color: #f6f2ea;
  box-shadow: 0 14px 28px -12px rgba(34, 31, 27, .6);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.wa-float svg { width: 23px; height: 23px; }
.wa-float:hover { background: var(--brass-deep); transform: translateY(-2px); }

/* ── Лайтбокс ───────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 46px);
  background: rgba(22, 20, 17, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  max-width: min(94vw, 940px);
  max-height: 100%;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  border-radius: 2px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 14px;
  max-width: 720px;
  text-align: center;
}
.lightbox__cat {
  color: #c3a071;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.lightbox__title {
  color: #f2ece1;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.4;
}
.lightbox__counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(246, 242, 234, .55);
  font-size: .7rem;
  letter-spacing: .18em;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 242, 234, .28);
  border-radius: 50%;
  background: rgba(20, 18, 16, .2);
  color: #f6f2ea;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(246, 242, 234, .14); border-color: rgba(246, 242, 234, .5); }
.lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; }
.lightbox__close svg { width: 19px; height: 19px; }
.lightbox__nav { top: 50%; width: 50px; height: 50px; transform: translateY(-50%); }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: clamp(10px, 2vw, 26px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 26px); }

@media (hover: none) {
  .work:hover .work__media img { transform: none; }
  .cat:hover .cat__media img { transform: none; }
}

/* ── Адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }

  /* без JS меню-бургер бесполезен — показываем ссылки */
  .no-js .header__inner { flex-wrap: wrap; row-gap: 8px; }
  .no-js .nav {
    display: flex;
    order: 3;
    width: 100%;
    gap: 18px;
    padding-block: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .no-js .nav::-webkit-scrollbar { display: none; }
  .no-js .nav a { white-space: nowrap; }
  .no-js .burger { display: none; }
  .no-js .hero { padding-top: 150px; }
}

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero__tag { left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(5, 1fr); }
  .cat__label { font-size: .85rem; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .header__phone { display: none; }
  .header__cta { display: none; }
  .header { padding-block: 12px; }

  .hero { padding-top: 112px; }
  .hero__inner { grid-template-columns: 1fr; gap: 42px; }
  .hero__copy { max-width: 100%; }
  .hero__lead { max-width: 560px; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero__tag { left: 0; bottom: 20px; }
  .hero__frame { inset: 14px -14px -14px 14px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section__note { text-align: left; padding-bottom: 0; }

  .cats {
    display: flex;
    gap: 12px;
    margin-inline: calc(clamp(20px, 4vw, 56px) * -1);
    padding-inline: clamp(20px, 4vw, 56px);
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 62%; max-width: 300px; scroll-snap-align: start; }
  .cat__label { font-size: 1rem; }

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

  .about__top { grid-template-columns: 1fr; gap: 26px; }
  .about__gallery { grid-template-columns: 1fr 1fr; }
  .about__note { grid-column: 1 / -1; }
  .about__note p { max-width: 560px; }

  .process__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .process__note { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .faq { grid-template-columns: 1fr; gap: 36px; }
  .faq__head { position: static; }

  .contacts__inner { grid-template-columns: 1fr; }
  .form { max-width: 560px; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .works { gap: 22px 12px; }
  .work__title { font-size: .8rem; }
  .work__cat { font-size: .52rem; }
  .work__meta { padding-top: 9px; }
  .about__gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about__note { padding: 24px 20px; }
  .about__note p { font-size: .95rem; }
  .ticks { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__figure img { max-height: calc(100dvh - 200px); }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.3rem, 11.5vw, 3rem); }
  .hero__facts { gap: 8px 18px; font-size: .72rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__tag { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 14px 16px; }
  .filters { gap: 6px; }
  .filter { padding: 8px 13px; font-size: .68rem; }
  .works { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 20px; border-top: 1px solid rgba(239, 232, 220, .18); }
  .step__num { font-size: 1.9rem; }
  .step__title { margin-top: 10px; }
  .materials { grid-template-columns: 1fr; }
  .contacts__list li { grid-template-columns: 84px 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .lightbox__caption { padding-inline: 8px; }
  .lightbox__title { font-size: .92rem; }
}

/* ── Страница документов ─────────────────────────────────────────────────── */
.legal-page { background: var(--paper); }

.legal-header {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.legal-header__back {
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.legal-header__back:hover { color: var(--ink); }

.legal { padding-block: clamp(48px, 7vw, 90px) clamp(56px, 8vw, 110px); }
.legal h1 { max-width: 760px; margin-bottom: 14px; font-size: clamp(2rem, 3.6vw, 3rem); }
.legal__date { color: var(--muted); font-size: .78rem; }
.legal__lead {
  max-width: 720px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.legal h2 {
  margin-top: 38px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}
.legal p,
.legal li {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.8;
}
.legal p + p { margin-top: 8px; }
.legal ul { margin: 6px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 2px; }
.legal a { color: var(--brass-deep); }
.legal__note {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted) !important;
  font-size: .78rem !important;
}

.legal-footer {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.legal-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .72rem;
}
.legal-footer a { color: var(--ink-soft); text-decoration: none; }
.legal-footer a:hover { color: var(--brass-deep); }
