/* Студия Дизайна — лендинг по макету Figma «Desktop new» (1920×10563).
   Единица вёрстки: 1rem = 10px при ширине окна 1920px, поэтому все размеры
   перенесены из макета как есть (56px → 5.6rem) и масштабируются пропорционально. */

:root {
  --ink: #000000;
  --dark: #1f1f1f;
  --brand: #21170d;
  --mute: #9e9d9c;
  --mute-2: #71706d;
  --eyebrow: #959595;
  --wash: #f7f7f7;
  --paper: #fffdfd;
  --num: #8f8f8f;
  --warn: #d08a72;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Пропорциональное масштабирование макета: 10px при 1920px, ниже 1440px — стоп */
html {
  font-size: clamp(7.5px, 0.52083vw, 10px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.22;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Cormorant Garamond по умолчанию отдаёт старостильные цифры — в макете прописные */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

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

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

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

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
  font-weight: inherit;
}

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

:where(a, button, input):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Контейнер макета: 1600px внутри 1920px */
.wrap {
  position: relative;
  width: 160rem;
  margin-inline: auto;
}

/* ---------------------------------------------------------------- Типографика */

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 5.6rem;
  line-height: 6.78rem;
  text-transform: uppercase;
  color: var(--ink);
}

.h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--mute);
}

/* Заголовки в макете сложены «лестницей»: каждая строка со своим отступом */
.h2--stair span {
  display: block;
}

.eyebrow {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 3.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

/* ------------------------------------------------------------------- Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 5.9rem;
  padding: 0 1rem;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 3.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), opacity 0.35s var(--ease);
}

.btn--dark {
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 1.6rem;
}

.btn--dark:hover {
  background: #362619;
}

.btn--light {
  background: var(--paper);
  color: var(--brand);
}

.btn--light:hover {
  background: #e4ddd3;
}

.btn--outline {
  border: 1px solid var(--brand);
  color: var(--brand);
}

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

/* --------------------------------------------------------------- Соцсети */

.soc a {
  display: block;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}

.soc a:hover {
  opacity: 1;
}

/* ---------------------------------------------------------------- Шапка */

.hdr {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
}

.hdr__inner {
  height: 14rem;
}

.hdr__nav {
  position: absolute;
  top: 6.1rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 4.48rem;
  height: 3.2rem;
}

.hdr__nav a {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 3.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  transition: opacity 0.3s var(--ease);
}

.hdr__nav a:hover {
  opacity: 0.7;
}

.hdr__logo {
  position: absolute;
  top: 4.2rem;
  left: 69.8rem;
  width: 20.4rem;
}

.hdr__logo img {
  width: 100%;
}

.hdr__phone {
  position: absolute;
  top: 3.5rem;
  right: 5.5rem;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 3.2rem;
  color: #fff;
  white-space: nowrap;
}

.hdr__cta {
  position: absolute;
  top: 7.4rem;
  right: 5.5rem;
  width: 23.9rem;
  height: 4.3rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 400;
}

.hdr__cta:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hdr__soc {
  position: absolute;
  top: 3.6rem;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hdr__soc li:nth-child(1) {
  margin-bottom: 1.7rem;
}

.hdr__soc li:nth-child(2) {
  margin-bottom: 1.3rem;
}

.hdr__soc img {
  filter: brightness(0) invert(1);
}

.hdr__soc li:nth-child(1) img {
  width: 2.1rem;
}

.hdr__soc li:nth-child(2) img {
  width: 2rem;
}

.hdr__soc li:nth-child(3) img {
  width: 2.4rem;
}

.burger {
  display: none;
}

/* ----------------------------------------------------------------- Герой */

.hero {
  position: relative;
  height: 94.5rem;
  background: #1b1b1b;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Затемнение под шапкой: 70% сверху, прозрачное к 92% высоты полосы */
.hero__scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 27.5rem;
  background: linear-gradient(
    180deg,
    rgba(22, 12, 0, 0.7) 33.45%,
    rgba(22, 12, 0, 0) 92%
  );
  pointer-events: none;
}

.hero__inner {
  height: 100%;
  color: #fff;
}

.hero__title {
  position: absolute;
  top: 37.1rem;
  left: 0;
  width: 100%;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 8.4rem;
  line-height: 10.17rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.hero__sub {
  position: absolute;
  top: 48.1rem;
  left: 50%;
  width: 79.3rem;
  transform: translateX(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.95rem;
  text-align: center;
}

.hero__cta {
  position: absolute;
  top: 76.7rem;
  left: 50%;
  width: 37.5rem;
  height: 5.6rem;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--brand);
  font-size: 1.6rem;
}

.hero__cta:hover {
  background: #fff;
}

.hero__note {
  position: absolute;
  top: 84.4rem;
  left: 50%;
  width: 79.3rem;
  transform: translateX(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.95rem;
  text-align: center;
}

/* ------------------------------------------------- «9 из 10 клиентов» */

.offer {
  padding-top: 11.8rem;
}

.offer__inner {
  display: grid;
  grid-template-columns: 102.4rem 52.3rem;
  gap: 5.3rem;
}

.offer__h {
  margin-top: 0.4rem;
}

.offer__h span:nth-child(2) {
  margin-top: -1.98rem;
  margin-left: 17.1rem;
}

.offer__h span:nth-child(3) {
  margin-top: -1.58rem;
  margin-left: 3.8rem;
}

.offer__lead {
  width: 33.7rem;
  margin-top: 4.7rem;
  margin-left: auto;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 3.2rem;
  text-align: right;
}

.offer__text {
  width: 79.1rem;
  margin-top: 2.5rem;
  margin-left: auto;
  font-size: 1.8rem;
  line-height: 2.7rem;
  text-align: right;
  color: var(--mute);
}

.offer__media {
  height: 38.2rem;
}

.offer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------- Проекты */

.pf {
  padding-top: 14.8rem;
}

.pf__head {
  position: relative;
}

.pf__h span:nth-child(1) {
  margin-top: -0.2rem;
}

.pf__h span:nth-child(2) {
  margin-top: -1.68rem;
  margin-left: 10.7rem;
}

.pf__h span:nth-child(3) {
  margin-top: -1.88rem;
}

.pf__aside {
  position: absolute;
  top: 6.7rem;
  right: 0;
  width: 32.9rem;
  font-size: 1.5rem;
  line-height: 2rem;
  text-align: right;
  color: var(--mute);
}

.pf__cta {
  position: absolute;
  top: 13rem;
  right: 0;
  width: 37.5rem;
}

.pf__grid {
  display: grid;
  grid-template-columns: repeat(2, 76.8rem);
  gap: 4rem 6.4rem;
  margin-top: 4.7rem;
}

.card__media {
  position: relative;
  height: 53.2rem;
  overflow: hidden;
  background: #d9d9d9;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

/* Затемнение нижней части фото: прозрачное сверху → 70% к низу */
.card__media::after {
  content: "";
  position: absolute;
  top: 20.5rem;
  left: 0;
  width: 100%;
  height: 32.7rem;
  background: linear-gradient(
    0deg,
    rgba(22, 12, 0, 0.7) 33.45%,
    rgba(22, 12, 0, 0) 92%
  );
}

.card:hover .card__media img {
  transform: scale(1.03);
}

.card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.4rem;
  min-height: 6.8rem;
}

.card__name {
  font-size: 2rem;
  font-weight: 500;
  line-height: 2.44rem;
  color: var(--brand);
}

.card__meta {
  flex: none;
  width: 29.9rem;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.71rem;
  text-align: right;
  color: var(--mute-2);
}

/* -------------------------------------------------------------- Для кого */

.aud {
  padding-top: 17.5rem;
}

.aud__head {
  position: relative;
}

.aud__h span:nth-child(2) {
  margin-top: -1.98rem;
  margin-left: 12.2rem;
}

.aud__cta {
  position: absolute;
  top: 4.1rem;
  right: 0;
  width: 37.5rem;
}

.aud__media {
  position: relative;
  height: 71.3rem;
  margin-top: 2.5rem;
  overflow: hidden;
}

.aud__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Затемнение слева, чтобы читался белый текст */
.aud__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70.5rem;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(19, 23, 45, 0.7) 33.45%,
    rgba(30, 34, 62, 0) 92%
  );
}

.aud__text {
  position: absolute;
  top: 46.6rem;
  left: 6.8rem;
  z-index: 2;
  width: 44.9rem;
  font-size: 2rem;
  font-weight: 300;
  line-height: 2.7rem;
  color: #fff;
}

/* --------------------------------------------------------------- Команда */

.team {
  padding-top: 13.7rem;
}

.team__inner {
  height: 65.6rem;
}

.team__h span:nth-child(2) {
  margin-top: -1.98rem;
  margin-left: 12.2rem;
}

.team__media {
  position: absolute;
  top: 17.9rem;
  left: 48.3rem;
  width: 110.8rem;
  height: 47.7rem;
}

.team__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__text {
  position: absolute;
  top: 21.1rem;
  left: 0;
  width: 34.2rem;
  font-size: 2rem;
  font-weight: 300;
  line-height: 3.1rem;
  color: var(--mute-2);
}

.team__cta {
  position: absolute;
  top: 56.4rem;
  left: 0;
  width: 34.2rem;
}

/* ----------------------------------------------------------- Как работаем */

.steps {
  margin-top: 9.5rem;
  background: var(--wash);
}

.steps__inner {
  height: 107.9rem;
}

.steps__h {
  position: absolute;
  top: 10.5rem;
  left: 0;
}

.steps__ph1 {
  position: absolute;
  top: 21.2rem;
  left: 0;
  width: 47rem;
  height: 62.1rem;
}

.steps__ph2 {
  position: absolute;
  top: 48.2rem;
  left: 23.4rem;
  width: 42.3rem;
  height: 42.3rem;
}

.steps__ph1 img,
.steps__ph2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step {
  position: absolute;
  padding: 3.3rem 0 0 4.6rem;
  background: #fff;
}

.step__t {
  font-size: 2.4rem;
  line-height: 2.93rem;
  color: var(--dark);
}

.step__d {
  width: 26.7rem;
  margin-top: 2.1rem;
  font-size: 1.5rem;
  line-height: 2.3rem;
  color: var(--dark);
}

.step__n {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 9rem;
  line-height: 10.9rem;
  color: var(--num);
  opacity: 0.5;
}

/* Первый шаг — крупная тёмная карточка */
.step--lead {
  top: 21.2rem;
  left: 53.9rem;
  width: 92.6rem;
  height: 25.3rem;
  background: var(--dark);
  color: #fff;
}

.step--lead .step__t,
.step--lead .step__d {
  color: #fff;
}

.step--lead .step__d {
  width: 47.7rem;
  margin-top: 2rem;
}

.step--lead .step__n {
  top: 10.8rem;
  left: 78.8rem;
  font-size: 12rem;
  line-height: 14.53rem;
  color: #fff;
}

.step__link {
  position: absolute;
  top: 19.3rem;
  left: 4.6rem;
  display: flex;
  align-items: center;
  gap: 3.3rem;
  font-size: 1.7rem;
  font-style: italic;
  line-height: 2.07rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Figma Arrow: линия 62×2 + шеврон на конце */
.step__link::after {
  content: "";
  flex: none;
  width: 6.2rem;
  height: 1.4rem;
  background-color: currentColor;
  opacity: 0.3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 14' fill='none'%3E%3Cpath d='M1 7h50' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M47 2.2 58.5 7 47 11.8' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 14' fill='none'%3E%3Cpath d='M1 7h50' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M47 2.2 58.5 7 47 11.8' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
  transition: width 0.4s var(--ease), opacity 0.3s var(--ease);
}

.step__link:hover::after {
  width: 8rem;
  opacity: 0.55;
}

.step--2 {
  top: 48.2rem;
  left: 67.3rem;
  width: 45.4rem;
  height: 24.6rem;
}

.step--2 .step__n {
  top: 13.1rem;
  right: 3.2rem;
}

.step--3 {
  top: 48.2rem;
  left: 114.7rem;
  width: 45.3rem;
  height: 24.6rem;
  padding-left: 4.9rem;
}

.step--3 .step__n {
  top: 13.1rem;
  right: 2.8rem;
}

.step--4 {
  top: 74.9rem;
  left: 53.9rem;
  width: 45.4rem;
  height: 24.6rem;
}

.step--4 .step__n {
  top: 13.1rem;
  right: 3.2rem;
}

.step--5 {
  top: 74.9rem;
  left: 101.3rem;
  width: 58.7rem;
  height: 24.6rem;
  padding-left: 4.9rem;
}

.step--5 .step__d {
  width: 38.9rem;
}

.step--5 .step__n {
  top: 13.1rem;
  right: 3.4rem;
}

.step--5 .step__link {
  top: 18.9rem;
  left: 4.8rem;
  color: var(--mute-2);
  font-weight: 300;
}

.step--5 .step__link::after {
  opacity: 1;
  background-color: #d9d9d9;
}

.step--5 .step__link:hover::after {
  opacity: 1;
  background-color: var(--mute-2);
}

/* ------------------------------------------------------- У вас есть вопросы */

.ask {
  background: var(--dark);
  color: var(--paper);
}

.ask__inner {
  height: 25.3rem;
}

.ask__h {
  position: absolute;
  top: 6.7rem;
  left: 0;
  font-size: 5rem;
  line-height: 6.05rem;
  color: var(--wash);
}

.ask__h span:nth-child(2) {
  margin-top: -0.85rem;
  margin-left: 5.8rem;
}

.ask__form {
  position: absolute;
  top: 7.4rem;
  left: 87.7rem;
}

.field {
  position: relative;
  display: block;
}

.field__label {
  position: absolute;
  left: 0.5rem;
  top: 0;
  z-index: 1;
  font-size: 1.7rem;
  line-height: 2.07rem;
  color: var(--paper);
  pointer-events: none;
  transition: top 0.2s var(--ease), font-size 0.2s var(--ease), line-height 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.field input {
  display: block;
  width: 100%;
  padding: 0 0 1.63rem 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--paper);
  background: none;
  font-size: 1.7rem;
  line-height: 2.07rem;
  color: var(--paper);
  outline-offset: 0.6rem;
}

.field input::placeholder {
  color: transparent;
}

/* подпись уезжает вверх при фокусе, заполнении и автозаполнении */
.field:focus-within .field__label,
.field:has(input:not(:placeholder-shown)) .field__label,
.field.is-filled .field__label {
  top: -1.4rem;
  font-size: 1.2rem;
  line-height: 1.4rem;
  opacity: 0.7;
}

.field--phone {
  display: block;
}

.field--phone .field__control {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid var(--paper);
}

.field--phone .pref {
  flex: none;
  max-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 2rem;
  line-height: 2.44rem;
  transition: max-width 0.2s var(--ease), opacity 0.2s var(--ease), padding 0.2s var(--ease);
}

.field--phone:focus-within .pref,
.field--phone:has(input:not(:placeholder-shown)) .pref,
.field--phone.is-filled .pref {
  max-width: 5rem;
  padding: 0 0.8rem 1.26rem 0.5rem;
  opacity: 1;
}

.field--phone input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding-left: 0.5rem;
  padding-bottom: 1.26rem;
  border-bottom: 0;
  font-size: 2rem;
  line-height: 2.44rem;
}

.field--phone:focus-within input,
.field--phone:has(input:not(:placeholder-shown)) input,
.field--phone.is-filled input {
  padding-left: 0;
}

/* Chrome рисует жёлтый фон на autofill — гасим, чтобы не ломать тёмную форму */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  caret-color: var(--paper);
  box-shadow: 0 0 0 1000px var(--dark) inset;
  transition: background-color 99999s ease-out;
}

.ct__form .field input:-webkit-autofill,
.ct__form .field input:-webkit-autofill:hover,
.ct__form .field input:-webkit-autofill:focus,
.modal .field input:-webkit-autofill,
.modal .field input:-webkit-autofill:hover,
.modal .field input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px var(--brand) inset;
}

@keyframes onAutoFillStart {
  from {
    opacity: 0.99;
  }
  to {
    opacity: 1;
  }
}

.field input:-webkit-autofill {
  animation-name: onAutoFillStart;
}

.ask__row1 {
  display: flex;
  gap: 2.8rem;
}

.ask__row1 .field--name {
  width: 30.7rem;
}

.ask__row1 .field--phone {
  width: 31.1rem;
}

.ask__row2 {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.3rem;
}

.consent {
  display: flex;
  gap: 1.1rem;
  width: 31.3rem;
  padding-top: 0.4rem;
  font-size: 1.2rem;
  line-height: 1.46rem;
  color: var(--paper);
  opacity: 0.8;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.7rem 0 0;
  border: 1px solid var(--paper);
  background: none;
  appearance: none;
  cursor: pointer;
}

.consent input:checked {
  background: var(--paper);
}

.consent span {
  width: 28.7rem;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.consent input:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.field.is-error input {
  border-bottom-color: var(--warn);
}

.field--phone.is-error .field__control {
  border-bottom-color: var(--warn);
}

.consent.is-error input {
  border-color: var(--warn);
}

.ask__submit {
  width: 30.9rem;
  height: 5.2rem;
}

/* ------------------------------------------------------------ Что мы делаем */

.svc {
  padding-top: 7.4rem;
}

.svc__grid {
  display: grid;
  grid-template-columns: repeat(3, 52.3rem);
  justify-content: space-between;
  margin-top: 5.6rem;
}

.svc__card {
  display: flex;
  flex-direction: column;
}

.svc__media {
  height: 36.2rem;
  overflow: hidden;
  background: #d9d9d9;
}

.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.svc__card:hover .svc__media img {
  transform: scale(1.03);
}

.svc__t {
  margin-top: 3rem;
  font-size: 2.4rem;
  line-height: 2.93rem;
  color: var(--dark);
}

/* Растягиваем описание, чтобы кнопки во всех трёх карточках стояли на одной линии */
.svc__d {
  flex: 1 0 auto;
  width: 38.8rem;
  margin-top: 1.6rem;
  font-size: 1.5rem;
  line-height: 2.3rem;
  color: var(--dark);
}

.svc__cta {
  margin-top: 4.5rem;
}

.svc__card:nth-child(1) .svc__cta {
  width: 35.6rem;
}

.svc__card:nth-child(2) .svc__cta {
  width: 34.2rem;
}

.svc__card:nth-child(3) .svc__cta {
  width: 38.8rem;
}

/* ------------------------------------------------------- Свяжитесь с нами */

.ct {
  padding-top: 15.3rem;
}

.ct__inner {
  height: 63rem;
}

.ct__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ct__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct__panel {
  position: absolute;
  top: 0;
  left: 80.2rem;
  width: 79.8rem;
  height: 100%;
  background: rgba(33, 23, 13, 0.8);
  color: var(--paper);
}

.ct__h {
  position: absolute;
  top: 8.2rem;
  left: 7.9rem;
  width: 52.2rem;
  font-size: 5.1rem;
  line-height: 6.18rem;
  color: var(--paper);
}

.ct__form {
  position: absolute;
  top: 22.6rem;
  left: 7.9rem;
  width: 45rem;
}

.ct__form .field {
  width: 44.5rem;
  margin-left: 0.5rem;
}

.ct__form .field__label {
  font-size: 1.6rem;
  line-height: 1.95rem;
}

.ct__form .field:focus-within .field__label,
.ct__form .field:has(input:not(:placeholder-shown)) .field__label,
.ct__form .field.is-filled .field__label {
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.ct__form .field input {
  padding-bottom: 1.45rem;
  font-size: 1.6rem;
  line-height: 1.95rem;
}

.ct__form .field--phone {
  margin-top: 4.4rem;
}

.ct__form .field--phone input,
.ct__form .field--phone:focus-within .pref,
.ct__form .field--phone:has(input:not(:placeholder-shown)) .pref,
.ct__form .field--phone.is-filled .pref {
  padding-bottom: 1.26rem;
  font-size: 2rem;
  line-height: 2.44rem;
}

.ct__form .consent {
  width: 31.3rem;
  margin-top: 2.8rem;
  margin-left: 0.9rem;
  padding-top: 0;
}

.ct__form .consent input {
  margin-top: 0;
}

.ct__submit {
  width: 31.5rem;
  margin-top: 8.78rem;
}

/* ------------------------------------------------------------------ Карта */

.map {
  padding-top: 11.9rem;
}

.map__inner {
  height: 64.4rem;
}

.map__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #eceae6;
}

.map__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* как на design-76.ru и в макете — карта без цвета */
  filter: grayscale(1);
}

.map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #eceae6;
  color: var(--dark);
  text-decoration: underline;
}

.map__bar {
  position: absolute;
  top: 50.4rem;
  left: 4.2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 151.6rem;
  height: 7.8rem;
  padding: 0 3.9rem 0 4.5rem;
  background: var(--dark);
  color: var(--paper);
}

.map__phone {
  font-size: 1.8rem;
  line-height: 2.19rem;
}

.map__info {
  display: flex;
  align-items: center;
  gap: 3.7rem;
  margin-left: 27.2rem;
  font-size: 1.6rem;
  line-height: 1.95rem;
}

.map__info .sep {
  width: 1px;
  height: 3.9rem;
  background: rgba(255, 255, 255, 0.5);
}

.map__soc {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  margin-left: auto;
}

.map__soc img {
  filter: brightness(0) invert(1);
}

.map__soc li:nth-child(1) img {
  width: 2.1rem;
}

.map__soc li:nth-child(2) img {
  width: 2rem;
}

.map__soc li:nth-child(3) img {
  width: 2.4rem;
}

/* ----------------------------------------------------------------- Подвал */

.ftr {
  margin-top: 7.9rem;
  background: var(--dark);
  color: var(--paper);
}

.ftr__inner {
  height: 43.7rem;
}

.ftr__logo {
  position: absolute;
  top: 6.3rem;
  left: 0;
  width: 20.4rem;
}

.ftr__about {
  position: absolute;
  top: 16.1rem;
  left: 0;
  width: 29.6rem;
  font-size: 1.4rem;
  line-height: 2.2rem;
}

.ftr__nav {
  position: absolute;
  top: 4.4rem;
  left: 40.4rem;
}

.ftr__nav a {
  display: block;
  font-size: 2.2rem;
  line-height: 6.2rem;
  transition: opacity 0.3s var(--ease);
}

.ftr__nav a:hover {
  opacity: 0.65;
}

.ftr__contacts {
  position: absolute;
  top: 5.8rem;
  left: 80.8rem;
  width: 39.7rem;
}

/* Пары «подпись — значение» идут с шагом 76px, значение — на 27px ниже подписи */
.ftr__contacts dt {
  font-size: 1.4rem;
  line-height: 3.8rem;
  opacity: 0.7;
}

.ftr__contacts dd {
  margin: -1.1rem 0 0;
  font-size: 1.9rem;
  line-height: 3.8rem;
}

.ftr__contacts dd + dt {
  margin-top: 1.1rem;
}

.ftr__social {
  position: absolute;
  top: 5.8rem;
  right: 0;
  text-align: right;
}

.ftr__social h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 3.8rem;
  opacity: 0.7;
}

.ftr__social ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4.2rem;
  margin-top: 1.5rem;
}

.ftr__social img {
  filter: brightness(0) invert(1);
}

.ftr__social li:nth-child(1) img {
  width: 2.7rem;
}

.ftr__social li:nth-child(2) img {
  width: 2.6rem;
}

.ftr__social li:nth-child(3) img {
  width: 3.1rem;
}

.ftr__bottom {
  position: absolute;
  top: 36.6rem;
  left: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1.2rem;
  line-height: 2.2rem;
}

.ftr__bottom a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------- Мобильное меню */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2.4rem;
  background: var(--brand);
  color: var(--paper);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.drawer[hidden] {
  display: none;
}

.drawer.is-open {
  transform: none;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__logo img {
  width: 15rem;
}

.drawer__close {
  width: 4.4rem;
  height: 4.4rem;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 3.4rem;
  line-height: 1;
  cursor: pointer;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.drawer__nav a {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1.21;
  text-transform: uppercase;
}

.drawer__phone {
  font-size: 2.2rem;
  font-weight: 600;
}

.drawer__soc {
  display: flex;
  gap: 3.2rem;
  align-items: center;
}

.drawer__soc img {
  filter: brightness(0) invert(1);
}

/* ------------------------------------------------------------- Модальное окно */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem;
  background: rgba(10, 8, 6, 0.65);
  opacity: 0;
  visibility: hidden;
  /* visibility снимаем сразу при открытии и с задержкой при закрытии,
     иначе фокус не может попасть внутрь окна в момент открытия */
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s;
}

.modal__panel {
  position: relative;
  width: 48rem;
  max-width: 100%;
  margin: auto;
  padding: 4.4rem 4rem;
  background: var(--brand);
  color: var(--paper);
}

.modal__panel .field + .field {
  margin-top: 3rem;
}

.modal__panel .consent {
  width: auto;
  margin-top: 2.4rem;
}

.modal__panel .consent span {
  width: auto;
}

.modal__submit {
  width: 100%;
  margin-top: 3.2rem;
}

.modal__t {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.6rem;
  line-height: 4.36rem;
  text-transform: uppercase;
}

.modal__d {
  margin-top: 1rem;
  margin-bottom: 3.2rem;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 2.2rem;
  opacity: 0.8;
}

.modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  width: 4rem;
  height: 4rem;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 3.2rem;
  line-height: 1;
  cursor: pointer;
}

.form__ok {
  display: none;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #9ad4ac;
}

.form.is-sent .form__ok {
  display: block;
}

.form.is-sent .form__body {
  display: none;
}

body.is-locked {
  overflow: hidden;
}

/* ----------------------------------------------------- Планшет и мобильный */

/* Ниже 1440px пропорциональное масштабирование макета упирается в 7.5px (см. clamp),
   поэтому здесь начинается поточная раскладка — иначе полотно 1440px обрезалось бы. */
@media (max-width: 1439px) {
  html {
    font-size: 10px;
  }

  .wrap {
    width: auto;
    padding-inline: 2.4rem;
  }

  /* Контейнеры с абсолютным позиционированием превращаются в обычный поток */
  .m-flow {
    display: flex;
    flex-direction: column;
    height: auto !important;
  }

  .m-flow > * {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  .h2 {
    font-size: 3.4rem;
    line-height: 4.1rem;
  }

  .h2--stair span {
    margin: 0 !important;
  }

  .h2 .gap {
    margin-left: 0;
  }

  .btn {
    width: 100% !important;
    max-width: 34rem;
    height: 5.4rem;
    font-size: 1.3rem;
  }

  /* Шапка */
  .hdr__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8rem;
  }

  .hdr__nav,
  .hdr__phone,
  .hdr__cta,
  .hdr__soc {
    display: none;
  }

  .hdr__logo {
    position: static;
    width: 15rem;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    width: 4.4rem;
    height: 4.4rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: none;
    cursor: pointer;
  }

  .burger span {
    width: 1.8rem;
    height: 1px;
    margin-inline: auto;
    background: #fff;
  }

  /* Герой */
  .hero {
    height: auto;
    min-height: 62rem;
    padding: 14rem 0 6rem;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    text-align: center;
  }

  .hero__title,
  .hero__sub,
  .hero__cta,
  .hero__note {
    position: static;
    width: 100%;
    transform: none;
  }

  .hero__title {
    font-size: 4.2rem;
    line-height: 1.15;
  }

  .hero__sub,
  .hero__note {
    font-size: 1.5rem;
    line-height: 2.2rem;
  }

  .hero__sub br,
  .hero__note br {
    display: none;
  }

  /* Секции */
  .offer,
  .pf,
  .aud,
  .team,
  .svc,
  .ct,
  .map {
    padding-top: 7rem;
  }

  .offer__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .offer__lead,
  .offer__text {
    width: 100%;
    margin: 2rem 0 0;
    text-align: left;
  }

  .offer__lead {
    font-size: 1.9rem;
    line-height: 2.8rem;
  }

  .offer__text {
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  .offer__lead br,
  .offer__text br {
    display: none;
  }

  .offer__media {
    height: 26rem;
  }

  /* Проекты */
  .pf__head {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .pf__aside,
  .pf__cta {
    position: static;
    width: 100%;
    text-align: left;
  }

  .pf__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
  }

  .card__media {
    height: 24rem;
  }

  .card__media::after {
    top: 40%;
    height: 60%;
  }

  .card__row {
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
  }

  .card__meta {
    width: 100%;
    text-align: left;
  }

  .card__meta br {
    display: none;
  }

  /* Для кого */
  .aud__head {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .aud__cta {
    position: static;
  }

  .aud__media {
    height: auto;
    margin-top: 3rem;
  }

  .aud__media img {
    height: 26rem;
  }

  .aud__media::after {
    width: 100%;
    height: 26rem;
    background: linear-gradient(
      180deg,
      rgba(19, 23, 45, 0) 0%,
      rgba(19, 23, 45, 0.75) 100%
    );
  }

  .aud__text {
    position: static;
    width: 100%;
    padding: 2.4rem;
    background: #13172d;
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  /* Команда */
  .team__inner {
    gap: 2.4rem;
  }

  .team__media {
    order: 3;
    height: 22rem !important;
  }

  .team__text {
    font-size: 1.7rem;
    line-height: 2.7rem;
  }

  /* Как работаем */
  .steps {
    margin-top: 6rem;
    padding: 6rem 0;
  }

  .steps__inner {
    gap: 1.6rem;
  }

  .steps__ph1 img,
  .steps__ph2 img {
    height: 24rem;
  }

  .steps__ph2 {
    display: none;
  }

  /* .m-flow сбрасывает карточки в static — возвращаем контекст,
     иначе номера шагов позиционируются от всей секции и наезжают друг на друга */
  .step {
    position: relative !important;
    padding: 2.4rem !important;
  }

  .step__d {
    width: 100% !important;
    margin-top: 1.2rem;
  }

  .step__n {
    position: absolute !important;
    top: 1.2rem !important;
    left: auto !important;
    right: 2rem !important;
    font-size: 4.4rem !important;
    line-height: 1 !important;
  }

  .step__t {
    padding-right: 6rem;
  }

  .step__link {
    position: static !important;
    gap: 1.6rem;
    margin-top: 2rem !important;
  }

  .step__link::after {
    width: 4rem;
  }

  /* У вас есть вопросы */
  .ask {
    padding: 6rem 0;
  }

  .ask__inner {
    gap: 3rem;
  }

  .ask__h {
    font-size: 3.2rem;
    line-height: 3.9rem;
  }

  .ask__row1,
  .ask__row2 {
    flex-direction: column;
    gap: 2.8rem;
  }

  .ask__row1 .field--name,
  .ask__row1 .field--phone,
  .consent,
  .consent span {
    width: 100%;
  }

  /* Услуги */
  .svc__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .svc__media {
    height: 22rem;
  }

  .svc__d {
    width: 100%;
  }

  /* Контакты */
  .ct__inner {
    height: auto;
  }

  .ct__media {
    position: static;
    height: 24rem;
  }

  .ct__panel {
    position: static;
    width: 100%;
    height: auto;
    padding: 3.2rem 2.4rem 4rem;
    background: var(--brand);
  }

  .ct__h,
  .ct__form {
    position: static;
    width: 100%;
  }

  .ct__h {
    font-size: 3rem;
    line-height: 3.7rem;
  }

  .ct__form {
    margin-top: 3rem;
  }

  .ct__form .field,
  .ct__form .consent {
    width: 100%;
    margin-left: 0;
  }

  .ct__submit {
    margin-top: 4rem;
  }

  /* Карта */
  .map__inner {
    height: auto;
  }

  .map__media {
    position: static;
    height: 30rem;
  }

  .map__bar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    width: 100%;
    height: auto;
    padding: 2.4rem;
  }

  .map__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-left: 0;
  }

  .map__info .sep {
    display: none;
  }

  .map__soc {
    margin-left: 0;
  }

  /* Подвал */
  .ftr {
    margin-top: 6rem;
    padding: 5rem 0 3rem;
  }

  .ftr__inner {
    gap: 3.2rem;
  }

  .ftr__nav a {
    line-height: 3.6rem;
  }

  .ftr__social {
    text-align: left;
  }

  .ftr__social ul {
    justify-content: flex-start;
  }

  .ftr__bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .h2 {
    font-size: 2.8rem;
    line-height: 3.4rem;
  }

  .hero__title {
    font-size: 3.4rem;
  }

  .modal__panel {
    padding: 3.6rem 2.4rem;
  }

  .modal__t {
    font-size: 2.8rem;
    line-height: 3.4rem;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}
