/* ============================================
   БАРОША — портфолио веб-разработчика
   Editorial / Swiss style: крем, красный, чернила
   ============================================ */

:root {
  --bg: #F2EDE3;
  --bg-soft: #EAE3D6;
  --ink: #17130E;
  --ink-60: rgba(23, 19, 14, .62);
  --ink-30: rgba(23, 19, 14, .3);
  --line: rgba(23, 19, 14, .16);
  --red: #E23A2D;
  --red-dark: #C42B20;
  --pink: #F3C4CE;
  --pink-soft: #F9E3E8;
  --white: #FFFDF8;
  --font-display: 'Archivo', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 22px;
  --pad: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

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

/* ---------- Кастомный курсор ---------- */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 8px; height: 8px;
  background: var(--red);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--ink-30);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              border-color .35s, background .35s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--red);
  background: rgba(226, 58, 45, .08);
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform .4s var(--ease-out), background .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgba(242, 237, 227, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px var(--pad);
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo__dot {
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(.72);} }
.logo__sup { font-size: 12px; color: var(--red); transform: translateY(-6px); }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: .04em;
  position: relative;
  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: right;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta { margin-left: 8px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  margin-left: auto;
}
.burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .3s, background .3s;
}
.burger.is-open span { background: var(--bg); }
.burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Шапка поверх открытого мобильного меню */
body.menu-open .header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.menu-open .logo { color: var(--bg); }
body.menu-open .logo__sup { color: var(--bg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  transition: color .3s, transform .3s;
}
.mobile-menu__link:hover { color: var(--red); transform: translateX(12px); }
.mobile-menu__foot {
  margin-top: 48px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, .5);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
  will-change: transform;
}
.btn--sm { padding: 12px 22px; font-size: 13px; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--ghost-light { background: transparent; color: var(--bg); border-color: rgba(242,237,227,.6); }
.btn--ghost-light:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn__arrow { transition: transform .3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 110px;
  overflow: hidden;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 0 var(--pad);
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 26px;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 9.4vw, 148px);
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: lowercase;
  margin-bottom: 34px;
}
.hero__line { display: block; overflow: hidden; }
.hero__line em { display: inline-block; font-style: normal; will-change: transform; }
.hero__line--red { color: var(--red); }
.hero__star {
  display: inline-block;
  width: .55em; height: .55em;
  color: var(--ink);
  margin-left: .12em;
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__sub {
  max-width: 520px;
  font-size: 18px;
  color: var(--ink-60);
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__meta {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  max-width: 560px;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-item b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero__meta-item span { font-size: 13px; color: var(--ink-60); }

/* Аватар */
.hero__right { position: relative; display: flex; justify-content: center; }
.avatar-stage {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 4 / 5;
}
.avatar-frame {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--pink-soft);
  box-shadow: 0 40px 80px -30px rgba(23, 19, 14, .35);
  animation: floaty 6s ease-in-out infinite;
  will-change: transform;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.06);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-14px) rotate(-1.2deg); }
  66% { transform: translateY(-6px) rotate(1.2deg); }
}
.avatar-badge {
  position: absolute;
  top: -8px; right: -34px;
  width: 118px; height: 118px;
  animation: spin 14s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(23,19,14,.25));
}
.avatar-badge__bg { fill: var(--red); }
.avatar-badge__text {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3.6px;
  fill: var(--white);
  text-transform: uppercase;
}
.avatar-badge__dot { fill: var(--white); }
.avatar-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.avatar-shape--1 {
  width: 90px; height: 90px;
  left: -46px; bottom: 18%;
  background: var(--pink);
  animation: floaty 7s ease-in-out infinite reverse;
}
.avatar-shape--2 {
  width: 26px; height: 26px;
  left: -18px; top: 16%;
  background: var(--red);
  animation: floaty 5s ease-in-out infinite;
}

/* Бегущая строка */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 16px 0;
  margin-top: 60px;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}

/* Статичная строка — только мобилка (тач) */
.marquee--static { display: none; }
.marquee__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 18px;
  padding: 0 20px;
}
.marquee__row span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__row i { color: var(--red); font-style: normal; font-size: 14px; }
@media (hover: none), (pointer: coarse) {
  .marquee:not(.marquee--static) { display: none; }
  .marquee--static { display: block; }
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i { color: var(--red); font-style: normal; font-size: 19px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции общее ---------- */
.section { padding: clamp(90px, 12vw, 160px) var(--pad) 0; max-width: 1600px; margin: 0 auto; }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--red);
}
.section__num--light { color: var(--pink); }
.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 104px);
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: lowercase;
}
.section__title em { font-style: normal; color: var(--red); }

/* ---------- Обо мне ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
}
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  margin-bottom: 24px;
}
.about__lead b { color: var(--red); }
.about__intro p:not(.about__lead) { color: var(--ink-60); max-width: 480px; }
.about__skills { display: flex; flex-direction: column; }
.about-skill {
  display: flex;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease-out);
}
.about-skill:last-child { border-bottom: 1px solid var(--line); }
.about-skill:hover { padding-left: 14px; }
.about-skill__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--red);
  padding-top: 4px;
}
.about-skill h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.about-skill p { font-size: 15px; color: var(--ink-60); max-width: 520px; }

/* ---------- Услуги ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 90px;
  background: var(--white);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .35s;
  will-change: transform;
}
.service-card::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--pink-soft);
  top: -90px; right: -90px;
  transition: transform .5s var(--ease-out), background .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -25px rgba(23,19,14,.28); }
.service-card:hover::before { transform: scale(1.5); }
.service-card--red { background: var(--red); color: var(--white); border-color: var(--red); }
.service-card--red::before { background: rgba(255,255,255,.14); }
.service-card--red .service-card__tag { background: rgba(255,255,255,.16); color: var(--white); }
.service-card--red p { color: rgba(255, 253, 248, .82); }
.service-card--wide { grid-column: span 2; }
.service-card--full { grid-column: 1 / -1; }
.service-card__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .55;
  display: block;
  margin-bottom: 46px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 12px;
  position: relative;
}
.service-card p { font-size: 15px; color: var(--ink-60); position: relative; max-width: 400px; }
.service-card__tag {
  position: absolute;
  left: 26px; bottom: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink-60);
}

/* ---------- Проекты ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: start;
}
.project-card { border-radius: var(--radius); will-change: transform; }
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; margin-top: 80px; }
.project-card:nth-child(3) { grid-column: span 5; margin-top: -40px; }
.project-card:nth-child(4) { grid-column: span 7; margin-top: 40px; }
.project-card.is-hidden { display: none; }

.project-card__link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
}
.project-card__media { overflow: hidden; aspect-ratio: 16 / 10.5; }
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .8s var(--ease-out), filter .5s;
  will-change: transform;
}
.project-card__link:hover .project-card__media img { transform: scale(1.07); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 28px;
  background: linear-gradient(to top, rgba(23,19,14,.72) 0%, rgba(23,19,14,.25) 55%, transparent 100%);
  backdrop-filter: blur(2px);
  color: var(--white);
  opacity: 0;
  transition: opacity .45s;
}
.project-card__link:hover .project-card__overlay,
.project-card__link:focus-visible .project-card__overlay { opacity: 1; }
.project-card__overlay p {
  font-size: 15px;
  line-height: 1.5;
  max-width: 460px;
  background: rgba(255, 253, 248, .12);
  border: 1px solid rgba(255, 253, 248, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px 18px;
  transform: translateY(12px);
  transition: transform .45s var(--ease-out);
}
.project-card__link:hover .project-card__overlay p { transform: translateY(0); }
.project-card__stack { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card__stack span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 253, 248, .4);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(23, 19, 14, .3);
  backdrop-filter: blur(8px);
}

.project-card__info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 22px;
}
.project-card__index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .1em;
}
.project-card__info h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: lowercase;
}
.project-card__type { font-size: 13px; color: var(--ink-60); }
.project-card__arrow {
  position: absolute;
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  font-size: 19px;
  box-shadow: 0 8px 20px rgba(23,19,14,.18);
  transition: transform .4s var(--ease-out), background .3s, color .3s;
  transform: translateZ(30px);
}
.project-card__link:hover .project-card__arrow { background: var(--red); color: var(--white); transform: translateZ(30px) rotate(45deg); }

/* Статичная карточка проекта (без ссылки) */
.project-card__link--static { cursor: default; }

/* Заполненный отзыв */
.review-card--filled {
  border: 1px solid var(--line);
  background: var(--white);
  border-style: solid;
  box-shadow: 0 24px 50px -30px rgba(23, 19, 14, .25);
}
.review-card--filled:hover { border-color: var(--red); }
.review-card__avatar--filled {
  background: var(--red);
  color: var(--white);
}
.review-card--filled blockquote { color: var(--ink); }
.review-card--filled figcaption { color: var(--ink-60); }

/* Концепт-карточка */
.project-card__concept {
  aspect-ratio: 16 / 10.5;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.project-card__concept-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 4.4vw, 64px);
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: lowercase;
  text-align: center;
}
.project-card__concept-sub {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
}
.project-card--concept .project-card__overlay { background: linear-gradient(to top, rgba(23,19,14,.6), transparent 70%); }

/* CTA-карточка */
.project-card--cta .project-card__link { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.project-card__cta-inner {
  aspect-ratio: 16 / 10.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  text-align: center;
  padding: 30px;
}
.project-card__cta-inner h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: -.03em;
  line-height: 1.05;
  text-transform: lowercase;
}
.project-card__cta-star {
  width: 46px; height: 46px;
  color: var(--red);
  animation: spin 10s linear infinite;
}

/* ---------- Этапы ---------- */
.workflow__wrap { position: relative; }
.workflow__line {
  position: absolute;
  top: 27px; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.workflow__line-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
.workflow__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step { position: relative; padding-top: 0; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 22px;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease-out);
}
.step:hover .step__num {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: scale(1.12);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.step p { font-size: 14px; color: var(--ink-60); }

/* ---------- Отзывы ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  border: 1.5px dashed var(--ink-30);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .3s, background .3s, transform .4s var(--ease-out);
}
.review-card:hover { border-color: var(--red); background: var(--white); transform: translateY(-6px); }
.review-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--ink-30);
}
.review-card blockquote { font-size: 15px; color: var(--ink-60); line-height: 1.6; flex: 1; }
.review-card figcaption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-30);
}

/* ---------- Контакты ---------- */
.contacts { max-width: none; padding-left: 0; padding-right: 0; }
.contacts__inner {
  background: var(--ink);
  color: var(--bg);
  border-radius: clamp(24px, 4vw, 48px);
  margin: 0 var(--pad);
  padding: clamp(50px, 7vw, 100px) clamp(26px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  position: relative;
  overflow: hidden;
}
.contacts__inner::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,58,45,.35), transparent 65%);
  top: -160px; right: -120px;
  pointer-events: none;
}
.contacts__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.03em;
  text-transform: lowercase;
  margin: 18px 0 26px;
}
.contacts__title em { font-style: normal; color: var(--red); }
.contacts__text { color: rgba(242, 237, 227, .65); max-width: 420px; margin-bottom: 40px; }
.contacts__links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(242, 237, 227, .2);
  border-radius: 16px;
  padding: 16px 20px;
  transition: border-color .3s, background .3s;
  max-width: 440px;
  will-change: transform;
}
.contact-link:hover { border-color: var(--red); background: rgba(226, 58, 45, .1); }
.contact-link__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--red);
  border-radius: 50%;
  color: var(--white);
}
.contact-link__icon svg { width: 22px; height: 22px; }
.contact-link__body { display: flex; flex-direction: column; }
.contact-link__body b { font-family: var(--font-display); font-size: 16px; }
.contact-link__body span { font-size: 13px; color: rgba(242, 237, 227, .55); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(242, 237, 227, .05);
  border: 1px solid rgba(242, 237, 227, .14);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  z-index: 1;
}
.contact-form__field { display: flex; flex-direction: column; gap: 8px; }
.contact-form__field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, .6);
}
.contact-form__field input,
.contact-form__field textarea {
  font: inherit;
  color: var(--bg);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(242, 237, 227, .25);
  padding: 10px 2px;
  transition: border-color .3s;
  resize: vertical;
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: rgba(242, 237, 227, .35); }
.contact-form__field input:focus,
.contact-form__field textarea:focus { outline: none; border-color: var(--red); }
.contact-form__field.has-error input,
.contact-form__field.has-error textarea { border-color: var(--red); }
.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(242, 237, 227, .6);
  cursor: pointer;
  margin-top: 2px;
}
.contact-form__consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 19px; height: 19px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid rgba(242, 237, 227, .45);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background .25s, border-color .25s;
}
.contact-form__consent input:checked {
  background: var(--red);
  border-color: var(--red);
}
.contact-form__consent input:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact-form__consent a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-form__consent a:hover { color: var(--white); }
.contact-form__consent.has-error { color: var(--red); }
.contact-form__consent.has-error input { border-color: var(--red); }

.contact-form__submit { justify-content: center; margin-top: 6px; }
.contact-form__submit:disabled { opacity: .65; cursor: wait; }
.contact-form__note { font-size: 12.5px; color: rgba(242, 237, 227, .45); text-align: center; }
.contact-form__note.is-success { color: #8FE3A0; }

/* ---------- Футер ---------- */
.footer { padding: clamp(70px, 9vw, 120px) var(--pad) 26px; overflow: hidden; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; font-size: 14px; }
.footer__nav a { color: var(--ink-60); transition: color .3s; }
.footer__nav a:hover { color: var(--red); }
.footer__meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-60);
}
.footer__policy { text-decoration: underline; text-underline-offset: 3px; }
.footer__big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(90px, 19vw, 300px);
  line-height: .8;
  letter-spacing: -.04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-30);
  margin-top: 50px;
  user-select: none;
  transform: translateY(18%);
}

/* ---------- Reveal-анимации (начальное состояние) ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); }
.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 2; }
  .workflow__list { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .workflow__line { display: none; }
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4) { grid-column: span 12; margin-top: 0; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; gap: 60px; padding-bottom: 10px; }
  .hero__right { order: -1; margin-top: 10px; }
  .avatar-stage { width: min(320px, 78%); }
  .avatar-badge { right: -16px; width: 92px; height: 92px; }
  .hero__meta { flex-wrap: wrap; gap: 22px; }
  .about__grid { grid-template-columns: 1fr; }
  .contacts__inner { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; }
  .workflow__list { grid-template-columns: 1fr; }
  .section__head { gap: 14px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .project-card__info { grid-template-columns: auto 1fr; }
  .project-card__type { grid-column: 2; }
  .avatar-shape--1 { left: -20px; }
}

/* ---------- Страницы документов (политика) ---------- */
.header__back { margin-left: auto; }
.legal { padding: 150px var(--pad) 0; }
.legal__inner { max-width: 840px; margin: 0 auto; }
.legal__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 18px;
}
.legal__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: lowercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
  margin-bottom: 44px;
}
.legal__title em { font-style: normal; color: var(--red); }
.legal__body section { margin-bottom: 40px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.015em;
  margin-bottom: 14px;
}
.legal__body p { color: var(--ink-60); margin-bottom: 12px; }
.legal__body ul {
  list-style: none;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__body li { color: var(--ink-60); padding-left: 24px; position: relative; }
.legal__body li::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--red); }
.legal__body b { color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
