/* ---------- дизайн-система ---------- */
:root {
  --black: #0D0D0D;
  --white: #FFFFFF;
  --grey-bg: #F4F4F4;
  --grey-text: #8E8E8E;
  --line: #E4E4E4;
  --red: #E8213E;
  --container: 1360px;
  --pad: 48px;
  --gap-section: clamp(88px, 10vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 16px; }

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

.rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0 20px; }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--red); }
.btn--wide { width: 100%; }

.link-underline {
  position: relative;
  color: var(--white);
  font-size: 14px;
  padding-bottom: 3px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.link-underline:hover::after { transform: scaleX(0); }
.link-underline--dark { color: var(--black); }

/* ---------- шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.logo {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.logo__dot { color: var(--red); }
.logo__zone { font-weight: 300; }

.nav { display: flex; gap: 28px; }
.nav__link {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero { position: relative; background: var(--black); color: var(--white); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 76px);
  padding-top: 64px;
  padding-bottom: 96px;
}
.hero__title {
  font-size: clamp(48px, 8vw, 128px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__lead {
  max-width: 460px;
  margin: 28px 0 36px;
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  color: #C9C9C9;
}
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__media { position: relative; height: 100%; min-height: 420px; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  filter: grayscale(1) contrast(1.08);
}

/* бегущая строка */
.ticker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 14px 0;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--grey-text);
  white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

/* ---------- секции ---------- */
.section { padding: var(--gap-section) 0; }
.section--grey { background: var(--grey-bg); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.section__title {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.section__note { margin: 0; color: var(--grey-text); font-weight: 300; }

/* ---------- услуги ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.card { position: relative; }
.card__media { overflow: hidden; aspect-ratio: 1 / 1; margin-bottom: 20px; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.card:hover .card__media img { filter: grayscale(0); transform: scale(1.04); }
.card__num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--grey-text);
  margin-bottom: 8px;
}
.card__title { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 10px; }
.card__text { color: var(--grey-text); font-size: 15px; font-weight: 300; }
.card__price { margin: 0; color: var(--red); font-weight: 700; }
.services__more { margin-top: 56px; text-align: center; }

/* ---------- цитата ---------- */
.quote { background: var(--black); color: var(--white); padding: clamp(64px, 9vw, 128px) 0; }
.quote__text {
  margin: 0;
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.quote__author { margin: 28px 0 0; text-align: right; color: var(--grey-text); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- обо мне ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  pointer-events: none;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  filter: grayscale(1);
  transition: filter 0.5s var(--ease);
}
.about__media:hover img { filter: grayscale(0); }
.about__text p { color: var(--grey-text); font-weight: 300; }
.about__text .section__title { margin-bottom: 28px; }
.about__sign { margin: 0; font-weight: 700; letter-spacing: 0.1em; font-size: 14px; }
.about__role { margin: 4px 0 0; color: var(--grey-text); font-size: 14px; }

/* ---------- процесс ---------- */
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.step { padding: 0 28px; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step__num { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 300; color: var(--grey-text); line-height: 1; margin-bottom: 20px; }
.step__title { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.step__text { color: var(--grey-text); font-weight: 300; font-size: 15px; margin: 0; }

/* ---------- работы ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.work { margin: 0; }
.work__frame { border: 1px solid var(--line); overflow: hidden; }
.work__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: var(--black);
}
.work__bar span { width: 8px; height: 8px; border-radius: 50%; background: #3A3A3A; }
.work__bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 11px;
  color: var(--grey-text);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.work:hover .work__frame img { filter: grayscale(0); transform: scale(1.03); }
.work__link { display: block; }
.work__title a:hover { color: var(--red); }
.work__title { margin: 18px 0 4px; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.work__meta { margin: 0; color: var(--grey-text); font-size: 14px; font-weight: 300; }

/* ---------- вопросы ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  color: var(--grey-text);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); color: var(--red); }
.faq__a { max-width: 760px; margin: -6px 0 26px; color: var(--grey-text); font-weight: 300; }

/* ---------- контакты ---------- */
.contact { background: var(--black); color: var(--white); padding: var(--gap-section) 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__title { font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.form__field {
  width: 100%;
  min-height: 52px;
  margin-bottom: 14px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s var(--ease);
}
.form__field:focus { outline: none; border-color: var(--white); }
.form__field::placeholder { color: var(--grey-text); opacity: 1; }
/* Ловушка для ботов. Убираем из потока и с экрана, но не через display none:
   часть скриптов такие поля пропускает, а уехавшее за край заполняет. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[disabled] { opacity: 0.55; cursor: default; }
.btn--red[disabled]:hover { background: var(--red); }

.form__note { margin: 16px 0 0; color: var(--grey-text); font-size: 13px; }
.form__status { margin: 12px 0 0; font-size: 14px; min-height: 20px; }
.form__status.is-ok { color: var(--white); }
.form__status.is-error { color: var(--red); }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { margin: 0; font-weight: 800; letter-spacing: 0.14em; font-size: 14px; }
.footer__year { margin-left: 10px; font-weight: 300; color: var(--grey-text); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { position: relative; font-size: 12px; letter-spacing: 0.14em; }
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.footer__links a:hover::after { transform: scaleX(1); }
.footer__note { margin: 0; color: var(--grey-text); font-size: 13px; }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .works { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__inner { gap: 32px; }
}

/* Шесть пунктов меню вместе с кнопкой перестают помещаться раньше, чем
   ломается остальная сетка, поэтому у шапки собственный брейкпоинт. */
@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    padding: 0 var(--pad);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav.is-open { max-height: 70vh; }
  .nav__link {
    color: var(--white);
    font-size: 15px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .burger { display: flex; }
  .header__cta { display: none; }

}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 120px;
  }
  .hero__title { font-size: clamp(36px, 11vw, 64px); }
  .hero__media { min-height: 0; order: 2; }
  .hero__media img { aspect-ratio: 4 / 3; height: auto; }

  .about, .contact__inner { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .quote__author { text-align: left; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .section__head { margin-bottom: 36px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
