/* =========================================================
   Лия Ли — дизайнер одежды и небольшой цех пошива
   Стиль: крупная типографика, чёрный / тёплый белый / красный
   ========================================================= */

/* ---------- 1. Токены ---------- */
:root {
  --bg: #fdf9f6;
  --bg-grey: #f2eeea;
  --bg-dark: #0d0d0d;
  --ink: #0d0d0d;
  --ink-soft: #3a3733;
  --muted: #6f6862;
  --line: rgba(13, 13, 13, 0.14);
  --line-strong: rgba(13, 13, 13, 0.32);
  --line-dark: rgba(253, 249, 246, 0.18);
  --muted-dark: rgba(253, 249, 246, 0.6);
  --red: #e9423b;        /* графические блоки, плашки */
  --red-btn: #d63a33;    /* кнопки: белый текст проходит по контрасту */
  --red-ink: #c9302a;    /* мелкий красный текст на светлом фоне */

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

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

button { font: inherit; color: inherit; }

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 14px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Типографика ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  word-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(3rem, 7.6vw, 7rem); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hl {
  display: inline-block;
  line-height: inherit;
  padding: 0 0.1em;
  margin-inline: -0.02em;
  background: var(--red);
  color: #fff;
}

.section__text {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 4. Полоса прогресса ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.1s linear;
}

/* ---------- 5. Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  padding-block: 18px;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.header.is-scrolled {
  padding-block: 11px;
  background: rgba(253, 249, 246, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  margin-block: -10px;
}
.logo__mark {
  width: 10px;
  height: 10px;
  background: var(--red);
  flex: none;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}
.nav a {
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding-block: 8px;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 12px; }

/* ---------- 6. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn--red { background: var(--red-btn); color: #fff; }
.btn--red:hover { background: var(--ink); color: var(--bg); }

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

.btn--sm { padding: 11px 18px; font-size: 12.5px; }
.btn--sm svg { width: 15px; height: 15px; }

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

/* ---------- 7. Бургер и меню ---------- */
.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  z-index: 130;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { bottom: 19px; }
.burger[aria-expanded="true"] span:first-child { transform: translate(-50%, 4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translate(-50%, -4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg);
  padding: 100px var(--gutter) 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.menu__nav a span {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red-ink);
}
.menu__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}
.menu__footer a { padding-block: 8px; }
.menu__footer a:hover { color: var(--red); }

/* ---------- 8. Плейсхолдеры фото ---------- */
.photo { margin: 0; }

.photo__frame,
.photo > img {
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
}

.photo__frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(13, 13, 13, 0.07) 0 1px,
      transparent 1px 10px
    ),
    #e9e2da;
  border: 1px solid rgba(13, 13, 13, 0.16);
}
.photo__frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(13, 13, 13, 0.22);
  pointer-events: none;
}
.photo__label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  flex: none;
}
.photo__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(253, 249, 246, 0.72);
  border: 1px solid rgba(13, 13, 13, 0.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a443f;
  text-align: center;
}
.photo__hint {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.52);
}

.photo__frame--portrait { --ar: 3 / 4; }
.photo__frame--landscape { --ar: 4 / 3; }
.photo__frame--square { --ar: 1 / 1; }
.photo__frame--wide { --ar: 16 / 10; }

.photo > img {
  display: block;
  height: 100%;
  object-fit: cover;
  background: #efeae5;
}

.photo figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}
.photo figcaption span {
  margin-right: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red-ink);
}

/* тёмная секция */
.section--dark .photo__frame {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(253, 249, 246, 0.07) 0 1px,
      transparent 1px 10px
    ),
    #1e1e1e;
  border-color: rgba(253, 249, 246, 0.2);
}
.section--dark .photo__frame::after { border-color: rgba(253, 249, 246, 0.18); }
.section--dark .photo__label {
  color: rgba(253, 249, 246, 0.78);
  background: rgba(13, 13, 13, 0.55);
  border-color: rgba(253, 249, 246, 0.2);
}
.section--dark .photo__hint { color: rgba(253, 249, 246, 0.55); }
.section--dark .photo figcaption { color: var(--muted-dark); }
.section--dark .photo > img { background: #1b1b1b; }

/* ---------- 9. Секции ---------- */
.section {
  position: relative;
  padding-block: clamp(72px, 10vh, 128px);
}
.section--grey { background: var(--bg-grey); }
.section--dark {
  background: var(--bg-dark);
  color: var(--bg);
}

.section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  margin-bottom: clamp(32px, 5vh, 56px);
  border-top: 1px solid var(--line);
}
.section__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-ink);
}
.section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .section__head { border-top-color: var(--line-dark); }
.section--dark .section__label { color: var(--muted-dark); }
.section--dark .section__num { color: var(--red); }

/* ---------- 10. Главный экран ---------- */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: clamp(96px, 11.5vh, 132px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
  flex: 1;
  padding-block: clamp(12px, 2.2vh, 32px);
}

.hero__title {
  margin-block: clamp(14px, 2.4vh, 26px) clamp(18px, 2.8vh, 30px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.9rem, min(6.5vw, 10.2vh), 5.9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  word-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }

.hero__lead {
  max-width: 44ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 3.4vh, 34px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 3vw, 48px);
  margin-top: clamp(24px, 3.6vh, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero__meta > div { display: flex; flex-direction: column; gap: 2px; }
.hero__meta dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta dd {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 560px);
  padding-top: clamp(18px, 2.6vw, 30px);
}
.hero__media::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 52%;
  background: var(--red);
}
.hero__media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(44px, 5.5vw, 68px);
  height: clamp(44px, 5.5vw, 68px);
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  pointer-events: none;
}
.hero__photo {
  position: relative;
  z-index: 1;
  width: 78%;
}
.hero__photo .photo__frame { box-shadow: 0 30px 60px -50px rgba(13, 13, 13, 0.7); }

/* бегущая строка */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding-block: 14px;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker 38s linear infinite;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__sep { color: var(--red); font-size: 11px; }
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- 11. Обо мне ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.about__photo figcaption { max-width: 32ch; }

.about__body > p {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.about__lead {
  margin-top: clamp(18px, 2.6vh, 26px) !important;
  font-size: clamp(18px, 1.6vw, 21px) !important;
  line-height: 1.45 !important;
  font-weight: 500;
  color: var(--ink) !important;
  max-width: 40ch !important;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4vh, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 14ch;
  line-height: 1.4;
}

.signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3.4vh, 34px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.signature::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--red);
}

/* ---------- 12. Услуги ---------- */
.services__intro,
.production__intro,
.process__intro,
.work__intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(32px, 5vh, 56px);
}

.services__list { border-top: 1px solid var(--line-strong); }
.service {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: start;
  gap: 16px 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding-inline 0.3s var(--ease);
}
.service:hover {
  background: var(--bg);
  padding-inline: 18px;
}
.service__num {
  padding-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red-ink);
}
.service__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.service__body p {
  margin-top: 7px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.service__tag {
  align-self: start;
  margin-top: 3px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- 13. Производство ---------- */
.section--dark .section__text { color: var(--muted-dark); }

.gallery {
  columns: 3;
  column-gap: clamp(14px, 1.8vw, 24px);
}
.gallery > * {
  break-inside: avoid;
  margin-bottom: clamp(22px, 3vh, 36px);
}
.gallery .photo__frame { transition: transform 0.7s var(--ease); }
.gallery figure:hover .photo__frame { transform: scale(1.012); }

/* ---------- 14. Процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 28px);
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 2px solid var(--red);
  transition: background 0.3s var(--ease);
}
.step:hover::before { background: var(--red); }
.step__num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-ink);
}
.step h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 8px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.step__time {
  display: inline-block;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.process__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(24px, 4vw, 64px);
  margin-top: clamp(30px, 4.5vh, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.process__foot p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
}
.process__foot p span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 15. Проекты ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 36px);
}
.case .photo__frame { transition: transform 0.7s var(--ease); }
.case:hover .photo__frame { transform: scale(1.015); }
.case__body { margin-top: 18px; }
.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__meta span + span::before {
  content: "/";
  margin-right: 10px;
  color: var(--red-ink);
}
.case h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.case p {
  margin-top: 7px;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.quote {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  margin-top: clamp(44px, 7vh, 80px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--line);
}
.quote p {
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.quote cite {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 16. Контакты ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.contact__lead {
  margin-top: clamp(18px, 2.6vh, 26px);
  max-width: 40ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(18px, 2.4vh, 24px);
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.status__dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--red);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.contacts {
  margin-top: clamp(24px, 3.6vh, 36px);
  border-top: 1px solid var(--line);
}
.contacts li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.contacts li > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contacts a { border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.contacts a:hover { color: var(--red); border-bottom-color: var(--red); }

.form {
  padding: clamp(22px, 3vw, 38px);
  background: var(--bg);
  border: 1px solid var(--line);
}
.form__title {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field + .field { margin-top: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230d0d0d' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(111, 104, 98, 0.7); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #a12d1c; }
.field__error {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #a12d1c;
}
.field--row { display: grid; grid-template-columns: 1fr 0.62fr; gap: 16px; }
.field--row .field + .field { margin-top: 0; }

.form .btn { margin-top: 8px; }
.form__note {
  margin-top: 12px;
  max-width: 44ch;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}
.form__success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(233, 66, 59, 0.45);
  background: rgba(233, 66, 59, 0.06);
  font-size: 13px;
  line-height: 1.5;
}
.form__success[hidden] { display: none; }
.form__success-icon { color: var(--red); font-weight: 700; }

/* ---------- 17. Подвал ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--bg);
  padding-block: clamp(44px, 6vh, 72px) 26px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vh, 44px);
  border-bottom: 1px solid var(--line-dark);
}
.logo--footer .logo__text { font-size: 24px; }
.footer__about {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-dark);
  text-align: right;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: clamp(24px, 3.6vh, 40px);
}
.footer__title {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 249, 246, 0.45);
}
.footer__nav { display: flex; flex-direction: column; }
.footer__nav a,
.footer__contacts a {
  width: fit-content;
  padding-block: 9px;
  font-size: 13px;
  color: rgba(253, 249, 246, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer__contacts p {
  padding-block: 9px;
  font-size: 13px;
  color: rgba(253, 249, 246, 0.78);
}
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; }
.footer__nav a:hover,
.footer__contacts a:hover { color: #fff; border-bottom-color: var(--red); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 249, 246, 0.45);
}
.footer__up { padding-block: 11px; margin-block: -11px; transition: color 0.2s; }
.footer__up:hover { color: var(--red); }

/* ---------- 18. Появление ---------- */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 19. Адаптив ---------- */
@media (max-width: 1180px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 560px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps .step:nth-child(4)::before,
  .steps .step:nth-child(5)::before { top: -38px; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case:last-child { grid-column: 1 / -1; max-width: 620px; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }

  .hero { min-height: auto; padding-bottom: 8px; }
  .hero__grid { grid-template-columns: 1fr; gap: clamp(28px, 4vh, 44px); }
  .hero__media { justify-self: start; width: min(100%, 420px); }
  .hero__title { font-size: clamp(2.8rem, 11vw, 6.2rem); }

  .services__intro,
  .production__intro,
  .process__intro,
  .work__intro { grid-template-columns: 1fr; align-items: start; gap: 18px; }

  .contact__grid { grid-template-columns: 1fr; }
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
    columns: auto;
  }
  .gallery > * { margin-bottom: 0; }
  .gallery .photo__frame { --ar: 4 / 3; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .section { padding-block: clamp(56px, 8vh, 80px); }
  .hero { padding-top: 92px; }
  .hero__title { font-size: clamp(2.4rem, 11.5vw, 4.2rem); }
  .hero__lead { font-size: 15px; }
  .hero__meta { gap: 12px 22px; }
  .ticker__track { font-size: 11px; gap: 20px; }

  .service { grid-template-columns: 34px 1fr; gap: 10px 14px; padding: 20px 0; }
  .service__tag { grid-column: 2; justify-self: start; margin-top: 0; }
  .service:hover { padding-inline: 0; }

  .steps { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
  .step {
    padding: 16px 0 16px 22px;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 1px solid var(--line); }
  .step::before { top: 21px; left: -5px; width: 8px; height: 8px; }
  .step p { max-width: none; }
  .step__num { margin-bottom: 2px; }

  .cases { grid-template-columns: 1fr; gap: 30px; }
  .case:last-child { max-width: none; }
  .quote { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .quote cite { white-space: normal; }

  .gallery { gap: 20px 12px; }
  .gallery .photo figcaption { margin-top: 6px; font-size: 11px; line-height: 1.4; }
  .gallery .photo__hint { display: none; }

  .contacts li { grid-template-columns: 88px 1fr; font-size: 14px; }
  .field--row { grid-template-columns: 1fr; gap: 18px; }

  .footer__top { flex-direction: column; }
  .footer__about { text-align: left; }
  .footer__cols { grid-template-columns: 1fr; gap: 22px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(2.1rem, 11.2vw, 3.4rem); }
  .h2 { font-size: clamp(2.1rem, 10.6vw, 3rem); }
  .h2--xl { font-size: clamp(2.3rem, 11.4vw, 3.4rem); }
  .btn { padding: 14px 20px; font-size: 13px; }
  .stats { gap: 16px 22px; }
  .stat__num { font-size: 2rem; }
}

@media (max-width: 380px) {
  .gallery { columns: 1; }
  .gallery .photo__hint { display: block; }
}

/* ---------- 20. Доступность / анимации ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. Печать ---------- */
@media print {
  .header, .progress, .menu, .ticker, .hero__media::before, .hero__media::after { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .footer { background: #fff; color: #000; }
  .section { min-height: 0; padding-block: 22px; break-inside: avoid; }
}
