/* Nimbus Sans Round (URW Type Foundry) — 3 используемых начертания, латиница + кириллица.
   В шрифте нет «→» и «₽» — они берутся из системного шрифта следующим в списке. */
@font-face { font-family: 'Nimbus Sans Round'; src: url('assets/fonts/nimbus-sans-round-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nimbus Sans Round'; src: url('assets/fonts/nimbus-sans-round-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nimbus Sans Round'; src: url('assets/fonts/nimbus-sans-round-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --c-light: #F2EFE9;
  --c-cream: #E9E5DC;
  --c-silver: #BFBFBD;
  --c-grey: #8C8C8C;
  --c-dark: #262626;

  --bg: #1a1a1a;          /* фон сайта — темнее палитрового #262626 */
  --bg-rgb: 26, 26, 26;
  --text: var(--c-light);
  --text-2: var(--c-silver);
  --muted: var(--c-grey);
  --line: rgba(191, 191, 189, 0.28);

  --font: 'Nimbus Sans Round', 'Helvetica Neue', Arial, sans-serif;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --rail-w: 240px;
  --content-w: clamp(880px, 68vw, 1320px); /* растет вместе с экраном */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
body.is-locked-ios { position: fixed; left: 0; right: 0; width: 100%; } /* iOS: фон под окном не прокручивается */
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--c-silver); color: var(--c-dark); }

.link {
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.link:hover { border-color: var(--text); }

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

/* ---------- Боковое меню ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 20;
  display: flex;
  align-items: center;
}
.rail__line {
  position: absolute;
  left: 48px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.rail__link {
  display: flex; align-items: center; gap: 18px;
  padding-left: 43px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .5s var(--ease);
}
.rail__dot {
  position: relative; z-index: 1; /* поверх вертикальной линии */
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: var(--bg);
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.rail__link:hover { color: var(--text-2); }
.rail__link.is-active { color: var(--text); }
.rail__link.is-active .rail__dot { background: var(--text); border-color: var(--text); transform: scale(1.1); }

/* Переключатель языка — внизу экрана, по одной линии с подписями меню */
.lang {
  position: absolute; left: 0; bottom: 32px;
  display: flex; align-items: center; gap: 8px;
  padding-left: 72px;
  font-size: 12px; letter-spacing: .14em;
  color: var(--line);
}
.lang a { text-decoration: none; color: var(--muted); transition: color .4s var(--ease); }
.lang a:hover { color: var(--text-2); }
.lang a.is-current { color: var(--text); pointer-events: none; }

/* ---------- Раскладка ---------- */
.page {
  margin-left: var(--rail-w);
  padding: 0 48px;
}
.page > * { max-width: var(--content-w); margin-inline: auto; }
.section { padding: 18vh 0 6vh; }
.section__title {
  margin: 0 0 56px;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
  display: flex; align-items: center; gap: 20px;
}
.section__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Обо мне ---------- */
.about {
  min-height: 100vh;
  min-height: 100svh;
  padding: 10vh 0;
  display: flex; flex-direction: column; justify-content: center; /* первый экран — по центру по вертикали */
}
.about { --avatar: clamp(120px, 17vw, 220px); --avatar-gap: clamp(24px, 4vw, 48px); }
.about__head { display: flex; align-items: center; gap: var(--avatar-gap); }
.about__avatar {
  flex: none;
  width: var(--avatar);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.about__name {
  margin: 0;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.about__role {
  margin: 18px 0 0;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.about__body { margin-top: 56px; }
/* на широком экране текст начинается там же, где имя */
@media (min-width: 1100px) {
  .about__body { margin-left: calc(var(--avatar) + var(--avatar-gap)); }
}
.about__text { margin: 0; max-width: 640px; font-size: 19px; color: var(--c-cream); }
.about__facts {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 640px;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--text-2);
}
.about__facts span { color: var(--muted); margin: 0 6px; }

/* ---------- Карточки проектов ---------- */
.projects { display: grid; gap: 40px; }
.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #141414;
  text-align: center;
  cursor: pointer;
  transition: transform .8s var(--ease), opacity 1s var(--ease);
}
.card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .8s var(--ease), transform 1.2s var(--ease);
}
.card__shade {
  position: absolute; inset: 0;
  background: rgba(38, 38, 38, 0.18);
  transition: background .8s var(--ease);
}
.card__head {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 34px 24px;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.card__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card__meta { margin: 6px 0 0; font-size: 14px; letter-spacing: .08em; color: var(--c-cream); }
.card__detail {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px;
  padding: 40px clamp(28px, 7%, 72px);
  text-align: left;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease) .1s, transform .8s var(--ease) .1s;
}
.card__detail dl { margin: 0; display: grid; grid-template-columns: clamp(110px, 9vw, 160px) 1fr; gap: 10px 20px; }
.card__detail dt { color: var(--c-silver); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.card__detail dd { margin: 0; }
.card__more { position: absolute; right: clamp(28px, 7%, 72px); bottom: 40px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-silver); }

@media (hover: hover) {
  .card:hover, .card:focus-visible { transform: scale(1.025); }
  .card:hover img, .card:focus-visible img { filter: blur(14px); transform: scale(1.08); }
  .card:hover .card__shade, .card:focus-visible .card__shade { background: rgba(38, 38, 38, 0.62); }
  .card:hover .card__head, .card:focus-visible .card__head { opacity: 0; transform: translateY(-8px); }
  .card:hover .card__detail, .card:focus-visible .card__detail { opacity: 1; transform: none; }
}
.card:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

/* ---------- Карточки услуг ---------- */
.services { display: grid; gap: 24px; }
.svc {
  position: relative;
  display: block;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  background: var(--c-silver);
  color: var(--c-dark);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform .8s var(--ease), background .8s var(--ease), opacity 1s var(--ease);
}
.svc__face, .svc__back {
  position: absolute; inset: 0;
  padding: 40px clamp(28px, 6%, 56px);
  display: flex; flex-direction: column;
  transition: opacity .7s var(--ease), transform .8s var(--ease);
}
.svc__title { margin: 0; font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.svc__sub { margin: 8px 0 0; font-size: 14px; letter-spacing: .1em; color: #4d4d4c; }
.svc__lead { margin: auto 0 0; max-width: 520px; font-size: 17px; }
.svc__price { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(38,38,38,.25); font-size: 15px; letter-spacing: .08em; }
.svc__list { margin: 24px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-size: 15px; }
.svc__list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid rgba(38,38,38,.18); }

.svc__back { opacity: 0; transform: translateY(10px); justify-content: center; }
.svc__table { display: grid; font-size: 14px; line-height: 1.45; }
.svc__table .row { display: grid; grid-template-columns: 120px repeat(var(--cols), 1fr); gap: 20px; padding: 12px 0; border-top: 1px solid rgba(38,38,38,.25); }
.svc__table .row:first-child { border-top: 0; padding-top: 0; }
.svc__table .row--head { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.svc__table .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #4d4d4c; padding-top: 2px; }
.svc__back-text { font-size: 20px; max-width: 480px; }
.svc__more { position: absolute; right: clamp(28px, 6%, 56px); bottom: 40px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #4d4d4c; }

.svc--extra { min-height: 360px; }

@media (hover: hover) {
  .svc:hover, .svc:focus-visible { transform: scale(1.015); background: var(--c-cream); }
  .svc:hover .svc__face, .svc:focus-visible .svc__face { opacity: 0; transform: translateY(-8px); }
  .svc:hover .svc__back, .svc:focus-visible .svc__back { opacity: 1; transform: none; }
}
.svc:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

/* ---------- Как начинается работа ---------- */
.process { margin-top: 88px; }
.process__title { margin: 0 0 28px; font-weight: 400; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.process__list { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.process__list li {
  counter-increment: step;
  display: grid; grid-template-columns: 56px 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--c-cream);
}
.process__list li::before { content: '0' counter(step); color: var(--muted); font-size: 14px; letter-spacing: .1em; padding-top: 3px; }
.process__note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; max-width: 640px; }

/* ---------- Контакты ---------- */
.contacts { min-height: 100vh; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contacts__lead { margin: 0 0 36px; font-size: 19px; color: var(--c-cream); }
.contacts__list { list-style: none; margin: 0; padding: 0; }
.contacts__list a {
  display: grid; grid-template-columns: 22px 96px 1fr; gap: 14px; align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  transition: color .4s var(--ease);
  word-break: break-all;
}
.contacts__list li:last-child a { border-bottom: 1px solid var(--line); }
.contacts__list a:hover { color: var(--text-2); }
.contacts__list svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.contacts__list svg .fill { fill: currentColor; }
.contacts__kind { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.form { display: grid; gap: 26px; }
.form__title { margin: 0 0 4px; font-weight: 400; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.form__field { display: grid; gap: 8px; }
.form__field span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.form__field input, .form__field textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  resize: vertical;
  outline: none;
  transition: border-color .4s var(--ease);
}
.form__field input::placeholder { color: var(--muted); }
.form__field input:focus, .form__field textarea:focus { border-color: var(--text); }
.form__field.has-error input, .form__field.has-error textarea { border-color: #c9a39a; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { margin: -8px 0 0; min-height: 1em; font-size: 14px; color: #c9a39a; }

.btn {
  display: inline-block;
  justify-self: start;
  text-decoration: none; /* кнопка-ссылка без подчеркивания */
  padding: 14px 34px;
  border: 1px solid var(--text-2);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--text); color: var(--c-dark); border-color: var(--text); outline: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.footer { padding: 12vh 0 48px; font-size: 13px; letter-spacing: .1em; color: var(--muted); }

/* ---------- Всплывающее окно ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.modal__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal__content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 96px 120px;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.modal__content.is-fading { opacity: 0; transform: translateY(12px); }
.modal__close, .modal__nav {
  position: fixed; z-index: 2;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: color .4s var(--ease), background .4s var(--ease);
}
.modal__close:hover, .modal__nav:hover { color: var(--text); background: rgba(242, 239, 233, .06); }
.modal__close svg, .modal__nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.modal__close { top: 22px; right: 22px; }
.modal__nav { top: 50%; margin-top: -26px; }
.modal__nav--prev { left: 22px; }
.modal__nav--next { right: 22px; }

.m-head { text-align: center; margin-bottom: 44px; }
.m-title { margin: 0; font-weight: 400; font-size: clamp(28px, 4vw, 46px); letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.m-meta { margin: 10px 0 0; font-size: 14px; letter-spacing: .1em; color: var(--text-2); }

/* Карусель */
.carousel { position: relative; }
.carousel__viewport {
  /* нативная прокрутка: на телефоне кадр едет за пальцем, с инерцией и защелкиванием */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; }
.carousel__slide { flex: 0 0 100%; aspect-ratio: 16 / 9; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide--poster img { object-fit: contain; }
.carousel__bar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 16px; font-size: 13px; letter-spacing: .12em; color: var(--text-2); }
.carousel__btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: color .4s, background .4s; }
.carousel__btn:hover { color: var(--text); background: rgba(242, 239, 233, .06); }
.carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

.m-video { margin-top: 48px; }
.m-video video { width: 100%; border-radius: var(--radius); background: #000; }
.m-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.m-info { margin-top: 56px; display: grid; }
.m-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.m-row:last-child { border-bottom: 1px solid var(--line); }
.m-row dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.m-row dd { margin: 0; color: var(--c-cream); }
.m-tasks { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.m-tasks li { break-inside: avoid; padding: 2px 0 8px; }
.m-tasks li::before { content: '— '; color: var(--muted); }
.m-case-title { display: block; color: var(--text); margin-bottom: 4px; }

/* Инфографика результата */
.m-stats { margin-top: 56px; }
.m-stats__group { padding: 28px 0 32px; border-top: 1px solid var(--line); }
/* после инфографики сразу идет таблица с верхней линией — вторая не нужна */
.m-stats + .m-info { margin-top: 0; }
.m-stats__source { margin: 0 0 20px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.m-stats__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.m-stats__item { display: grid; gap: 4px; }
.m-stats__value { font-size: clamp(36px, 5.4vw, 60px); font-weight: 300; line-height: 1; letter-spacing: .01em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-stats__value--sm { font-size: clamp(26px, 3.4vw, 36px); }
.m-stats__cap { font-size: 14px; color: var(--muted); }
.m-stats__bar { margin-top: 32px; }
.m-stats__bar-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.m-stats__track { height: 2px; background: var(--line); }
.m-stats__fill { display: block; height: 100%; width: 0; background: var(--c-cream); transition: width 1.6s var(--ease) .2s; }

/* Таблица услуги во всплывающем окне */
.m-svc { margin-top: 12px; }
.m-svc .row { display: grid; grid-template-columns: 170px repeat(var(--cols), 1fr); gap: 28px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--c-cream); }
.m-svc .row:last-child { border-bottom: 1px solid var(--line); }
.m-svc .row--head { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); border-top: 0; }
.m-svc .lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.m-svc .row.is-summary .cell { color: var(--text); }
.m-svc ul { margin: 0; padding: 0; list-style: none; }
.m-svc li { padding-bottom: 6px; }
.m-svc li::before { content: '— '; color: var(--muted); }
.m-svc .col-name { display: none; }
.m-note { margin: 28px 0 0; color: var(--text-2); font-size: 15px; }
.m-cta { margin-top: 40px; }
.m-extra { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.m-extra li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--line); color: var(--c-cream); }

/* Спасибо */
.thanks {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(var(--bg-rgb), 0.9);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.thanks.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.thanks__box {
  width: min(440px, calc(100% - 32px));
  padding: 48px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  display: grid; gap: 28px; justify-items: center;
}
.thanks__box p { margin: 0; font-size: 22px; line-height: 1.4; }
.thanks__box .btn { justify-self: center; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  :root { --rail-w: 190px; }
  .contacts__grid { grid-template-columns: 1fr; gap: 56px; }
  .modal__content { padding: 88px 72px 110px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .rail {
    inset: 0 0 auto 0;
    width: auto; height: 56px;
    background: rgba(var(--bg-rgb), 0.94);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail__line { display: none; }
  .rail__list { display: flex; align-items: center; align-self: stretch; gap: 22px; padding: 0 0 0 16px; white-space: nowrap; }
  .rail__link { padding-left: 0; gap: 8px; font-size: 12px; }
  .rail__dot { width: 7px; height: 7px; }
  /* на телефоне — прижат к правому краю верхней полосы, пункты меню прокручиваются под ним */
  .lang {
    position: sticky; right: 0; bottom: auto; z-index: 2; /* выше кружков меню */
    align-self: stretch;
    margin-left: auto; padding: 0 16px 0 16px;
    background: var(--bg);
    border-left: 1px solid var(--line);
  }

  .page { margin-left: 0; padding: 0 16px; }
  .section { padding: 96px 0 24px; scroll-margin-top: 0; }
  .about { padding-top: 110px; min-height: auto; }
  .about__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about__text, .contacts__lead { font-size: 17px; }
  .section__title { margin-bottom: 32px; }
  .projects { gap: 20px; }

  .card { aspect-ratio: 4 / 3; }
  .card__head { padding: 22px 16px; }

  .svc { min-height: 240px; }
  .svc__face { padding: 28px 22px; }
  .svc__back { display: none; }
  .svc__list { columns: 1; }

  .process__list li { grid-template-columns: 40px 1fr; }
  .contacts__list a { grid-template-columns: 22px 1fr; }
  .contacts__kind { display: none; }

  .modal__content { padding: 72px 16px 110px; }
  .modal__close { top: 10px; right: 8px; }
  .modal__nav { top: auto; bottom: 14px; margin-top: 0; background: rgba(var(--bg-rgb), .9); border: 1px solid var(--line); }
  .modal__nav--prev { left: 16px; }
  .modal__nav--next { right: 16px; }
  .m-row { grid-template-columns: 1fr; gap: 6px; }
  .m-tasks, .m-extra { columns: 1; }
  .m-stats__value { font-size: 32px; }
  .m-stats__value--sm { font-size: 26px; }

  .m-svc .row { grid-template-columns: 1fr; gap: 10px; }
  .m-svc .row--head { display: none; }
  .m-svc .col-name { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
}

/* Сенсорные экраны: отклик на нажатие вместо наведения, зоны касания не меньше 44px */
@media (hover: none) {
  .card, .svc { transition: transform .25s var(--ease), background .8s var(--ease), opacity 1s var(--ease); }
  .card:active, .svc:active { transform: scale(.985); }
  .btn:active { background: var(--text); color: var(--c-dark); border-color: var(--text); }
  .carousel__btn { width: 44px; height: 44px; }
  .carousel__btn:active, .modal__close:active, .modal__nav:active { background: rgba(242, 239, 233, .1); }
  .lang a { padding: 12px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Услуги: мелкий текст чуть плотнее, чтобы не терялся (основной текст сайта — 300) */
.services, .process, .m-svc, .m-extra, .m-note { font-weight: 400; }
