/* МФ Мажор. Чёрный фон, крупный плотный шрифт строчными, тонкие линии, искра-маркер.
   Латунь только на главных кнопках. Только системные шрифты. Сначала телефон, потом планшет и компьютер. */
:root {
  --bg: #000;
  --bg2: #0d0d0d;
  --text: #f4f2ee;
  --body: #d0ccc5;       /* контраст на чёрном около 13:1 */
  --muted: #a9a59d;      /* контраст на чёрном около 8,5:1 */
  --line: rgba(244, 242, 238, .2);
  --accent: #c9b27a;     /* акцент (латунь): главные кнопки, пометки заглушек */
  --accent-hover: #d8c48f;
  --on-accent: #17130a;
  --pad: 20px;
  --max: 1180px;
  --font: "Helvetica Neue", Helvetica, "Arial Nova", Arial, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--body); background: var(--bg); -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 800; letter-spacing: -0.04em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { padding: 96px 0; }
section.alt { background: var(--bg2); }

/* Крупные заголовки: строчные, плотные, строки ступенькой */
h1 { font-size: clamp(2.5rem, 12.6vw, 9rem); line-height: .94; letter-spacing: -0.055em; text-transform: lowercase; }
h1 span { display: block; white-space: nowrap; }
h1 span:nth-child(2) { padding-left: .6em; }
h1 span:nth-child(3) { padding-left: .1em; }
h1 span:nth-child(4) { padding-left: 1.2em; }
h2 { font-size: clamp(2.2rem, 11vw, 5.5rem); line-height: .98; letter-spacing: -0.05em; text-transform: lowercase; margin-bottom: 24px; }
h2 span { display: block; padding-left: .8em; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 520px; margin: 24px 0 0; }
.section-lead { color: var(--body); max-width: 520px; margin-bottom: 56px; }
.small { font-size: .98rem; color: var(--text); max-width: 270px; margin: 0; flex: 1 1 0; }
.note { color: var(--muted); font-size: .95rem; margin-top: 14px; }

/* Шапка: логотип слева, меню или бургер справа */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: linear-gradient(#000 60%, transparent); }
.bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--text); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.05em; text-decoration: none; text-transform: lowercase; }
.nav { display: none; }
.nav a { color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-btn { width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-content: center; gap: 7px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.nav.open { display: flex; flex-direction: column; position: fixed; inset: 64px 0 0 0; background: #000; padding: 12px var(--pad) 28px; }
.nav.open a { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; text-transform: lowercase; padding: 10px 0; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 12px 28px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: #000; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn-row .btn { flex: 1 1 220px; }

/* Первый экран */
.hero { padding: 140px 0 72px; position: relative; overflow: hidden; }
.star { width: 36px; height: 36px; color: var(--text); flex: none; }
.star-hero { position: absolute; right: var(--pad); top: 84px; width: 56px; height: 56px; }
.hero-foot { display: flex; justify-content: space-between; align-items: stretch; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-tag { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); font-weight: 700; font-size: .95rem; letter-spacing: -0.01em; color: var(--text); }
.hero-tag .star { width: 22px; height: 22px; }

/* Списки без карточек: линии вместо рамок */
.grid { display: grid; gap: 0 48px; }
.card { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.card p { color: var(--body); margin: 0; }
.ico { width: 32px; height: 32px; margin-bottom: 16px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

.rows li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--body); }

/* Как работаем: цепочка с номерами и линией */
.chain { counter-reset: c; }
.chain li { position: relative; padding: 0 0 38px 68px; }
.chain li::before {
  counter-increment: c; content: counter(c);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border: 1px solid var(--text); border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; color: var(--text); background: var(--bg2);
}
.chain li::after { content: ""; position: absolute; left: 23px; top: 54px; bottom: 8px; width: 1px; background: var(--line); }
.chain li:last-child { padding-bottom: 0; }
.chain li:last-child::after { display: none; }
.chain p { margin: 0; color: var(--body); max-width: 440px; }
.geo { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--body); max-width: 640px; }

/* Работы */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--bg2); }
.shot.wide { grid-column: span 2; }
.shot.wide img { aspect-ratio: 16 / 10; }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.shot.empty { aspect-ratio: 4 / 5; border: 1px dashed rgba(244, 242, 238, .3); border-radius: 4px; display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: .9rem; }

/* Дизайнерам */
.two { display: grid; gap: 32px; }
.two > div { min-width: 0; }
.two h2 { font-size: clamp(2.2rem, 11vw, 3rem); }
.checks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--body); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: 16px; height: 16px; background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C54 30 70 46 100 50 70 54 54 70 50 100 46 70 30 54 0 50 30 46 46 30 50 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C54 30 70 46 100 50 70 54 54 70 50 100 46 70 30 54 0 50 30 46 46 30 50 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.checks strong { color: var(--text); }

/* Контакты */
.contacts { margin-top: 56px; display: grid; gap: 0; }
.contacts div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.contacts div:last-child { border-bottom: 1px solid var(--line); }
.contacts dt { color: var(--muted); font-size: .95rem; }
.contacts dd { font-weight: 700; font-size: 1.15rem; color: var(--text); overflow-wrap: anywhere; }

/* Не заполненные пока данные подчёркнуты пунктиром */
.is-placeholder { text-decoration: underline dashed var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer strong { color: var(--text); }

/* Планшет */
@media (min-width: 720px) {
  :root { --pad: 40px; }
  body { font-size: 18px; }
  section { padding: 120px 0; }
  .hero { padding: 170px 0 96px; }
  .star-hero { width: 90px; height: 90px; top: 92px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .rows li { grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: baseline; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .contacts div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .btn-row .btn { flex: 0 0 auto; }
  .two { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .two h2 { font-size: clamp(2rem, 5vw, 4.2rem); }
}
/* Компьютер */
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav { display: flex; gap: 32px; }
  .star-hero { width: 120px; height: 120px; right: 10%; top: 100px; }
  .hero { padding: 120px 0 80px; }
  h1 { font-size: clamp(3rem, 7.6vw, 7rem); }
  .hero-foot { margin-top: 40px; }
  .hero .btn-row { margin-top: 28px; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .chain li { padding: 70px 0 0; }
  .chain li::after { left: 54px; right: -32px; top: 23px; bottom: auto; width: auto; height: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
