/* ═══════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #1d1d1d;
  --bg2:      #242424;
  --bg3:      #2c2c2c;
  --red:      #e8271a;
  --white:    #ffffff;
  --gray:     #aaaaaa;
  --gray2:    #555555;
  --border:   rgba(255,255,255,.09);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.red { color: var(--red); }

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY HELPERS
═══════════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #c41f14; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-full { width: 100%; text-align: center; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(15,15,15,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: background .3s;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
}
.logo__techno { color: #fff; }
.logo__dot    { color: var(--red); margin: 0 2px; }
.logo__resurs { color: var(--red); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: .04em;
  transition: color .2s;
}
.nav a:hover { color: var(--white); }

.header__phone {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  flex-shrink: 0;
  transition: color .2s;
}
.header__phone:hover { color: var(--red); }

.header__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 24px;
}
.header__social a,
.header__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.header__social a:hover,
.header__social-link:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}
.header__social svg {
  width: 16px;
  height: 16px;
  display: block;
}
@media (max-width: 860px) {
  .header__social { display: none; }
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO — VIDEO + 3 WORDS
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 64px;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Оверлей: затемнение слева + сильный градиент снизу */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,.70) 0%, rgba(10,10,10,.25) 50%, rgba(10,10,10,0) 100%),
    linear-gradient(to bottom, rgba(10,10,10,.1) 0%, rgba(10,10,10,.1) 30%, rgba(10,10,10,.75) 70%, #1d1d1d 92%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

.hero__eyebrow {
  display: block;
  font-size: clamp(14px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 20px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.hero__title {
  font-size: clamp(68px, 11.4vw, 152px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.03em;
  text-transform: uppercase;
  width: 100%;
}
.hero__title-accent { color: var(--red); }

/* ═══════════════════════════════════════════════
   INTRO — плавная секция под hero
═══════════════════════════════════════════════ */
.intro {
  background: var(--bg);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
}
.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.intro__lead {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.intro__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 6px;
}
.intro__text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
}
.intro__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.intro__list li {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.intro__list li::before {
  content: '—';
  color: var(--red);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   SERVICES — ACCORDION
═══════════════════════════════════════════════ */
.services {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.services .section-label { margin-bottom: 16px; }

.services__intro {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  letter-spacing: .01em;
  max-width: 560px;
  margin-bottom: 56px;
  padding-left: 2px;
}

/* two-column layout */
.services__accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--border);
}

/* ── LEFT: image panel — всегда растянута под высоту списка ── */
.svc-image-wrap {
  position: relative;           /* убрали sticky — никакого залипания */
  min-height: 560px;
  overflow: hidden;
  background: var(--bg3);
  border-right: 1px solid var(--border);
}

/* активный элемент — маленький лейбл поверх картинки */
.svc-image-label {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  pointer-events: none;
}

.svc-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .6s ease;
  will-change: opacity;
}
.svc-image.is-active {
  opacity: 1;
}

/* ── RIGHT: accordion ── */
.svc-list {
  display: flex;
  flex-direction: column;
}

.svc-item {
  border-bottom: 1px solid var(--border);
}
.svc-item:last-child { border-bottom: none; }

.svc-item__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 40px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  transition: background .2s;
}
.svc-item__header:hover { background: rgba(255,255,255,.03); }
.svc-item.is-open .svc-item__header { background: rgba(255,255,255,.03); }

.svc-item__title {
  flex: 1;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* + → × */
.svc-item__arrow {
  font-size: 20px;
  font-weight: 300;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .35s ease;
  width: 24px;
  text-align: center;
}
.svc-item.is-open .svc-item__arrow {
  transform: rotate(45deg);
}

/* smooth height animation */
.svc-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.svc-item.is-open .svc-item__body {
  grid-template-rows: 1fr;
}

.svc-item__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 0 40px;
  transition: padding-bottom .4s ease;
}
.svc-item.is-open .svc-item__inner {
  padding-bottom: 32px;
}

.svc-item__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}
.svc-item__desc + .svc-item__desc {
  margin-top: 6px;
}

.svc-item__btn {
  font-size: 12px;
  padding: 11px 24px;
}

/* ═══════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════ */
.projects {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}
.projects__head .section-title { margin-bottom: 0; }

.projects__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

/* ── каждый кейс ── */
.project-item {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  transition: background .3s ease;
  position: relative;
}
.project-item:hover { background: rgba(255,255,255,.03); }

/* Левая граница-акцент на hover */
.project-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s ease;
}
.project-item:hover::before { transform: scaleY(1); }

/* ── изображение ── */
.project-item__thumb-wrap {
  width: 420px;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}

/* тёмный overlay на hover */
.project-item__thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .45s ease;
  z-index: 1;
}
.project-item:hover .project-item__thumb-wrap::after {
  background: rgba(0, 0, 0, .1);
}

.project-item__thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .65s ease;
}
.project-item:hover .project-item__thumb { transform: scale(1.06); }

/* Номер кейса — badge поверх изображения */
.project-item__index {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  z-index: 2;
  line-height: 1;
}

/* ── текстовая часть ── */
.project-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.project-item__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.project-item__title {
  font-size: clamp(24px, 2.2vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 28px;
  transition: color .2s;
}
.project-item:hover .project-item__title { color: #fff; }

.project-item__details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-item__meta {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: .04em;
}

.project-item__sep {
  font-size: 13px;
  color: var(--gray2);
}

/* ── CTA-блок справа ── */
.project-item__cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-left: 24px;
}

.project-item__cta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray2);
  white-space: nowrap;
  transition: color .25s;
}

.project-item__cta-arrow {
  font-size: 24px;
  color: var(--gray2);
  line-height: 1;
  transition: color .25s, transform .25s;
  display: block;
  text-align: right;
}

.project-item:hover .project-item__cta-label { color: var(--white); }
.project-item:hover .project-item__cta-arrow {
  color: var(--red);
  transform: translateX(6px);
}

/* ═══════════════════════════════════════════════
   HOW WE WORK
═══════════════════════════════════════════════ */
.how {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* двухколоночная сетка: текст | карточки */
.how__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

/* ── LEFT ── */
.how__left .section-title {
  margin-bottom: 24px;
}

.how__intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 28px;
}

.how__perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  list-style: none;
}
.how__perks li {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  display: flex;
  gap: 10px;
}

/* ── RIGHT: карточки шагов 2×2 ── */
.how__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.how__step {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 28px 28px 32px;
  transition: border-color .25s, background .25s, opacity .55s ease, transform .55s ease;
}
.how__step:hover {
  border-color: rgba(232,39,26,.35);
  background: rgba(232,39,26,.035);
}

/* stagger для карточек при появлении */
.how__step:nth-child(2) { transition-delay: .08s; }
.how__step:nth-child(3) { transition-delay: .16s; }
.how__step:nth-child(4) { transition-delay: .24s; }

.how__step-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 20px;
}

.how__step-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.how__step-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════ */
.why {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(196,30,58,.06), transparent 70%),
    var(--bg);
}

.why__head {
  text-align: left;
  margin: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
}
.why__head .section-title { margin-bottom: 0; }
.why__sub {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 640px;
}

/* 4 колонки в один ряд, минимум воздуха между */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: transparent;
  border: 0;
}

/* Карточка — иконка сверху, нижняя красная полоска появляется на hover */
.why__item {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  text-align: left;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2),
              border-color .25s ease,
              background .25s ease;
}
.why__item::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}
.why__item:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.why__item:hover::after { transform: scaleX(1); }

/* Иконка вместо номера */
.why__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 6px;
}
.why__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.why__item h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.why__item p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0;
}

.why__cta {
  margin-top: 56px;
  display: flex;
  justify-content: flex-start;
}

/* ═══════════════════════════════════════════════
   TEAM
═══════════════════════════════════════════════ */
.team {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.team .section-title { margin-bottom: 56px; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.team-card {
  background: var(--bg3);
  overflow: hidden;
  transition: transform .25s;
}
.team-card:hover { transform: translateY(-4px); }

.team-card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--bg3);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
}
.team-card:hover .team-card__photo img {
  transform: scale(1.04);
}

.team-card__info {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 2px solid var(--red);
}

.team-card__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.team-card__role {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   SERVICE ZONE
═══════════════════════════════════════════════ */
.zone {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.zone__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.zone__left { display: flex; flex-direction: column; gap: 0; }
.zone__left .section-title { margin-bottom: 20px; }
.zone__desc { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 32px; }

.zone__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zone__list li {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.zone__list li .red { font-size: 18px; line-height: 1; }

.zone__map {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.zone__svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.zone__desc strong { color: var(--white); font-weight: 600; }
.zone__note {
  margin-top: 24px;
  padding: 14px 18px;
  border-left: 2px solid var(--red);
  background: rgba(232,39,26,0.05);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.zone__map {
  padding: 0;
  border-radius: 2px;
}
.zone__leaflet {
  width: 100%;
  height: 460px;
  background: #111;
  border: 1px solid var(--border);
}
.zone__leaflet .leaflet-container {
  background: #0b0b0b;
  font-family: Inter, sans-serif;
}
.zone__map-caption {
  padding: 14px 18px;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--border);
  border-top: none;
}



@keyframes pulse {
  0%   { transform: scale(1); opacity: .4; }
  100% { transform: scale(3); opacity: 0; }
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact__left { display: flex; flex-direction: column; gap: 16px; }
.contact__left .section-title { margin-bottom: 0; }
.contact__sub { font-size: 15px; color: var(--gray); line-height: 1.7; }

.contact__phone {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-top: 8px;
  transition: color .2s;
}
.contact__phone:hover { color: var(--red); }

.contact__hours { font-size: 13px; color: var(--gray); }

.contact__email {
  font-size: 15px;
  color: var(--gray);
  transition: color .2s;
}
.contact__email:hover { color: var(--white); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: border-color .2s;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23888888' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.form-group select option { background: var(--bg3); }

.form-note {
  font-size: 11px;
  color: var(--gray2);
  line-height: 1.5;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: #080808;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 80px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col--brand { gap: 20px; }
.footer__tagline {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.8;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.footer__col a,
.footer__col p {
  font-size: 14px;
  color: var(--gray);
  transition: color .2s;
  line-height: 1;
}
.footer__col a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer__social a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid var(--border);
  padding: 6px 12px;
  color: var(--gray);
  transition: border-color .2s, color .2s;
}
.footer__social a:hover { border-color: var(--red); color: var(--red); }

.footer__bottom {
  border-top: 1px solid var(--border);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--gray2);
}
.footer__bottom-inner a { transition: color .2s; }
.footer__bottom-inner a:hover { color: var(--gray); }

/* ═══════════════════════════════════════════════
   INNER PAGES — SHARED STYLES
═══════════════════════════════════════════════ */

/* ── Страница «Все проекты» — шапка ── */
.page-hero {
  padding-top: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero__brand {
  padding-top: 56px;
  font-size: clamp(58px, 10.5vw, 144px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  display: block;
}
.page-hero__brand-red  { color: var(--red); }
.page-hero__brand-white { color: #fff; }
.page-hero__inner {
  padding-top: 24px;
  padding-bottom: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.page-hero__left { display: flex; flex-direction: column; gap: 0; }
.page-hero__title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 20px;
}
.page-hero__sub {
  font-size: 16px;
  color: var(--gray);
  max-width: 440px;
  line-height: 1.7;
}
.page-hero__count {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: rgba(255,255,255,.04);
  flex-shrink: 0;
  align-self: flex-end;
  user-select: none;
}

/* ── Отдельная страница проекта — герой ── */
.inner-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg3);
  /* уходит под фиксированный хедер */
  padding-top: 64px;
}
.inner-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 8s ease;
}
.inner-hero:hover .inner-hero__bg { transform: scale(1.03); }

.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(29,29,29,1)   0%,
    rgba(29,29,29,.82) 30%,
    rgba(29,29,29,.35) 65%,
    rgba(29,29,29,.15) 100%
  );
  z-index: 1;
}
.inner-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 72px;
  padding-top: 40px;
}
.inner-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 48px;
  transition: color .2s;
}
.inner-hero__back::before { content: '←'; font-size: 14px; }
.inner-hero__back:hover { color: var(--white); }

.inner-hero__tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.inner-hero__title {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.inner-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inner-hero__meta-item {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
}
.inner-hero__meta-sep {
  font-size: 14px;
  color: rgba(255,255,255,.18);
}

/* ── Заглушка «контент в разработке» ── */
.project-placeholder {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.project-placeholder__icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray2);
  font-size: 24px;
  margin-bottom: 32px;
}
.project-placeholder__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.project-placeholder__title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}
.project-placeholder__text {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}

/* ═══════════════════════════════════════════════
   PROJECT PAGE — INFO + GALLERY + LIGHTBOX
═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   СТРАНИЦЫ УСЛУГ (sp-*)
═══════════════════════════════════════════════ */

/* Герой */
.sp-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-top: 64px;
}
.sp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.sp-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.15) 100%);
}
.sp-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 60px 48px;
}
.sp-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  transition: color .2s;
}
.sp-hero__back::before { content: '←'; font-size: 13px; }
.sp-hero__back:hover { color: #fff; }
.sp-hero__title {
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sp-hero__line {
  width: 60px;
  height: 3px;
  background: var(--red);
}

/* Вводный текст */
.sp-intro {
  padding: 56px 0 0;
  border-bottom: 1px solid var(--border);
}
.sp-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
  align-items: start;
}
.sp-intro__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}
.sp-intro__title {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.sp-intro__text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
  padding-top: 8px;
}

/* Блоки подразделов */
.sp-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.sp-block__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: start;
}
.sp-block__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}
.sp-block__title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
.sp-block__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.sp-block__list li {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.sp-block__list li::before {
  content: '—';
  color: var(--red);
  position: absolute;
  left: 0;
  font-size: 13px;
}

/* Фото / плейсхолдер */
.sp-photo {
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg2);
}
.sp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.15);
  border: 1px dashed rgba(255,255,255,.1);
  aspect-ratio: 4/3;
}
.sp-photo-ph__icon {
  font-size: 32px;
  opacity: .4;
}
.sp-photo-ph__text {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* CTA */
.sp-cta {
  padding: 72px 0;
  background: var(--bg);
}
.sp-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 56px;
  border: 1px solid var(--border);
}
.sp-cta__title {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 480px;
}
.sp-cta__title span { color: var(--red); }

/* Адаптив */
@media (max-width: 900px) {
  .sp-hero__content { padding: 0 32px 40px; }
  .sp-intro__inner { grid-template-columns: 1fr; gap: 24px; }
  .sp-block__inner { grid-template-columns: 1fr; }
  .sp-block__inner .sp-photo,
  .sp-block__inner .sp-photo-ph { display: none; }
  .sp-cta__inner { flex-direction: column; align-items: flex-start; padding: 36px; }
}

/* ── НОВЫЙ СТИЛЬ СТРАНИЦЫ ПРОЕКТА (pj-*) ── */

/* Герой: полноэкранное фото + текст наезжает снизу */
.pj-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-top: 64px;
  overflow: hidden;
}
.pj-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
  overflow: hidden;
  border-radius: 0;
}
.pj-hero:hover .pj-hero__bg { transform: scale(1.02); }
.pj-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,1) 0%,
    rgba(10,10,10,.75) 30%,
    rgba(10,10,10,.15) 70%,
    transparent 100%
  );
  z-index: 1;
}
.pj-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 60px 56px;
}
.pj-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .2s;
}
.pj-hero__back::before { content: '←'; font-size: 13px; }
.pj-hero__back:hover { color: var(--white); }
.pj-hero__title {
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 900px;
}

/* ── Планка характеристик ── */
.pj-stats {
  border-bottom: 1px solid var(--border);
  padding-top: 64px;
}
.pj-stats__inner {
  display: flex;
  align-items: stretch;
}
.pj-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 0;
  padding-left: 40px;
}
.pj-stat:first-child { padding-left: 0; }
.pj-stat:last-child { border-right: none; }
.pj-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.pj-stat__value {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--red);
  line-height: 1;
}
.pj-stat__unit {
  font-size: .55em;
  font-weight: 700;
  letter-spacing: 0;
}

/* ── Инфо + фото (две колонки) ── */
.pj-overview {
  padding: 72px 0;
}
.pj-overview__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: stretch; /* обе колонки одинаковой высоты */
}

/* Таблица слева */
.pj-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pj-info__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}
.pj-info__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray);
  padding-top: 2px;
}
.pj-info__value {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
}

/* Фото справа — заполняют высоту инфо-блока, без лишнего воздуха */
.pj-photos {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pj-photo {
  overflow: hidden;
  background: var(--bg3);
  flex: 1;          /* равномерно делят доступную высоту */
  min-height: 120px;
}
.pj-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}
.pj-photo:hover img { transform: scale(1.03); }

/* ════ НОВЫЙ ДИЗАЙН: горизонтальная инфо-полоса ════ */
.pj-info-strip {
  padding: 56px 0 40px;
}
.pj-info-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.pj-info-strip__col {
  position: relative;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pj-info-strip__col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--red);
}
.pj-info-strip__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
}
.pj-info-strip__value {
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  font-weight: 500;
}

/* ════ НОВЫЙ ДИЗАЙН: широкие фото-превью ════ */
.pj-preview {
  padding: 16px 0 56px;
}
.pj-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pj-preview__item {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  aspect-ratio: 16 / 10;
}
.pj-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.pj-preview__item:hover img { transform: scale(1.04); }

@media (max-width: 1024px) {
  .pj-info-strip__inner { grid-template-columns: 1fr; gap: 28px; }
  .pj-preview__grid { grid-template-columns: 1fr; gap: 4px; }
  .pj-preview__item { aspect-ratio: 4 / 3; }
}

/* ── О проекте / Выполненные работы — без лишних линий ── */
.pj-section {
  padding: 64px 0;
  border-top: 1px solid var(--border); /* только одна линия сверху */
}
.pj-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.pj-text {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pj-text p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,.7);
}

/* Список работ */
.pj-works {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
}
.pj-works__group-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.pj-works__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.pj-works__items li {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  display: flex;
  gap: 10px;
}
.pj-works__items li::before {
  content: '—';
  color: var(--red);
  flex-shrink: 0;
}

/* ── Адаптив ── */
@media (max-width: 1024px) {
  .pj-hero__content { padding: 0 28px 48px; }
  .pj-overview__grid { grid-template-columns: 1fr; gap: 48px; }
  .pj-photos { flex-direction: row; }
  .pj-photo { flex: 1; aspect-ratio: 4/3; }
  .pj-photo img { height: 100%; }
  .pj-stats__inner { flex-wrap: wrap; }
  .pj-stat { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .pj-hero { min-height: 55vh; }
  .pj-hero__title { font-size: clamp(36px, 10vw, 60px); }
  .pj-hero__content { padding: 0 20px 40px; }
  .pj-info__row { grid-template-columns: 1fr; gap: 6px; }
  .pj-stat { flex: 0 0 50%; padding-left: 20px; }
  .pj-stat:first-child { padding-left: 20px; }
  .pj-photos { flex-direction: column; }
}

/* ── Блок с описанием и характеристиками ── */
.project-info {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.project-info__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}
.project-info__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  display: block;
}
.project-info__desc {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255,255,255,.72);
}
.project-info__desc + .project-info__desc { margin-top: 14px; }

.project-stats {
  border: 1px solid var(--border);
}
.project-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.project-stat:last-child { border-bottom: none; }
.project-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  flex-shrink: 0;
}
.project-stat__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-align: right;
}

/* ── Галерея фотографий ── */
.project-gallery {
  padding: 80px 0 140px;
}
.project-gallery .section-label { margin-bottom: 40px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.gallery-item {
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg3);
  position: relative;
}
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item--full {
  grid-column: span 3;
  aspect-ratio: 16 / 6;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Заголовок раздела внутри галереи */
.gallery-section-label {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 32px 0 8px;
  border-top: 1px solid var(--border);
}
.gallery-section-label:first-child {
  padding-top: 0;
  border-top: none;
}

/* ── Лайтбокс ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8,8,8,.97);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 32px;
  background: none; border: none;
  color: var(--white); font-size: 26px;
  cursor: pointer; opacity: .55;
  transition: opacity .2s;
  line-height: 1;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  width: 52px; height: 52px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  border-radius: 2px;
}
.lightbox__prev { left: 32px; }
.lightbox__next { right: 32px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.18); }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
}

/* ── Навигация смежных проектов ── */
.project-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.project-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}
.project-nav__divider {
  background: var(--border);
}
.project-nav__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px 0;
  transition: background .2s;
}
.project-nav__item:hover { background: rgba(255,255,255,.025); }
.project-nav__item--next { align-items: flex-end; padding-left: 48px; }
.project-nav__item--prev { padding-right: 48px; }
.project-nav__dir {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray2);
}
.project-nav__title {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  transition: color .2s;
}
.project-nav__item:hover .project-nav__title { color: var(--red); }

@media (max-width: 768px) {
  .page-hero__inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .page-hero__count { display: none; }
  .inner-hero { min-height: 55vh; }
  .project-nav__inner { grid-template-columns: 1fr; }
  .project-nav__divider { display: none; }
  .project-nav__item { border-bottom: 1px solid var(--border); padding: 28px 0; }
  .project-nav__item--next { align-items: flex-start; padding-left: 0; }

  /* gallery tablet */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--full { grid-column: span 2; aspect-ratio: 16 / 7; }
  .gallery-item--wide { grid-column: span 2; }
  .project-info__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══════════════════════════════════════════════
   FADE-IN ANIMATION
═══════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,.68,0,1.2), transform .6s cubic-bezier(.22,.68,0,1.2);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger для рядов элементов */
.why__item:nth-child(2)  { transition-delay: .07s; }
.why__item:nth-child(3)  { transition-delay: .14s; }
.why__item:nth-child(4)  { transition-delay: .21s; }
.project-card:nth-child(2) { transition-delay: .08s; }
.project-card:nth-child(3) { transition-delay: .16s; }
.project-card:nth-child(4) { transition-delay: .24s; }

/* ═══════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal.open { opacity: 1; pointer-events: all; }

.modal__box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 48px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 16px;
  color: var(--gray);
  transition: color .2s;
}
.modal__close:hover { color: var(--white); }

.modal__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.modal__box h3 {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modal__box p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* ── Popup форма заявки ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.popup-overlay.open { opacity: 1; pointer-events: all; }

.popup {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 580px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.popup__close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 18px;
  color: var(--gray);
  transition: color .2s;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.popup__close:hover { color: var(--white); }
.popup__title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.popup__sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
}
.field-required { color: var(--red); }
.field-error {
  display: none;
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}
.field-error.show { display: block; }
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }

@media (max-width: 480px) {
  .popup { padding: 28px 20px; }
  .popup__title { font-size: 18px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .container { padding: 0 40px; }
  .why__grid { gap: 18px; }
  .why__item { padding: 32px 24px 28px; }
}

@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  /* hero: фото сверху, панель снизу */
  .hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero__photo { aspect-ratio: 4 / 3; min-height: unset; }
  .hero__photo::after { display: none; }
  .hero__photo-title { padding: 36px 28px; }
  .hero__panel { border-left: none; border-top: 1px solid var(--border);
    padding: 56px 28px; }
  .hero__title { font-size: clamp(38px, 7vw, 72px); }

  .services, .projects, .how, .why, .team, .zone, .contact { padding: 80px 0; }

  /* Services accordion → stack vertically */
  .services__accordion { grid-template-columns: 1fr; border: 1px solid var(--border); }
  .svc-image-wrap { aspect-ratio: 16 / 9; min-height: unset; border-right: none; border-bottom: 1px solid var(--border); }
  .svc-item__header { padding: 24px 28px; }
  .svc-item__inner { padding: 0 28px; }

  .project-item { gap: 40px; padding: 36px 0; }
  .project-item__thumb-wrap { width: 280px; }
  .project-item__title { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 20px; }
  .project-item__cta-label { display: none; }

  .how__inner { grid-template-columns: 1fr; gap: 48px; }

  .why__head { margin-bottom: 40px; }
  .why__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .why__item { padding: 32px 28px 28px; }
  .why__cta { margin-top: 40px; }

  .team__grid { grid-template-columns: 1fr 1fr; }

  .zone__inner { grid-template-columns: 1fr; gap: 48px; }
  .zone__map { height: 320px; }

  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__phone { font-size: 28px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .footer__col--brand { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(15,15,15,.98); padding: 32px 24px; gap: 24px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; color: var(--white); }
  .header__phone { display: none; }
  .burger { display: flex; }

  .hero__title { font-size: clamp(36px, 10vw, 60px); }
  .hero__content { padding-bottom: 36px; }

  .services, .projects, .how, .why, .team, .zone, .contact { padding: 64px 0; }

  .svc-item__header { padding: 20px 20px; }
  .svc-item__inner { padding: 0 20px; }

  /* Projects mobile: stack image top, text below */
  .project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
  }
  .project-item::before { display: none; }
  .project-item__thumb-wrap { width: 100%; aspect-ratio: 16 / 9; }
  .project-item__title { font-size: clamp(20px, 5vw, 28px); margin-bottom: 14px; }
  .project-item__cta { flex-direction: row; padding-left: 0; gap: 8px; align-items: center; }
  .project-item__cta-label { display: block; }
  .project-item__index { font-size: 10px; }

  .why__grid { grid-template-columns: 1fr; gap: 14px; }
  .why__item { padding: 28px 24px 24px; }
  .why__icon { width: 38px; height: 38px; }

  .team__grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .footer__col--brand { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .section-title { font-size: clamp(24px, 8vw, 36px); }
  .service-row__text { padding: 40px 24px; }
  .service-row__title { font-size: 28px; }
  .team__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ — дополнения
═══════════════════════════════════════════════ */

/* ── Хедер ── */
@media (max-width: 768px) {
  .header__inner { padding: 0 20px; }
  .logo { font-size: 15px; }
}

/* ── Главная: hero video ── */
@media (max-width: 768px) {
  .hero { height: 75vh; min-height: 520px; padding-top: 64px; }
  .hero__content { padding-bottom: 48px; }
  .hero__title { font-size: clamp(40px, 10.5vw, 80px); }
  .hero__eyebrow { font-size: 14px; margin-top: 16px; }
}
@media (max-width: 480px) {
  .hero { height: 70vh; min-height: 480px; }
  .hero__title { font-size: clamp(34px, 9.5vw, 56px); }
  .hero__eyebrow { font-size: 12px; margin-top: 14px; }
  .hero-br { display: none; }
}

/* ── Главная: intro секция ── */
@media (max-width: 768px) {
  .intro { padding: 48px 0 56px; }
  .intro__inner { grid-template-columns: 1fr; gap: 28px; }
  .intro__lead { font-size: clamp(22px, 6vw, 32px); }
}
@media (max-width: 480px) {
  .intro { padding: 36px 0 44px; }
  .intro__lead { font-size: clamp(20px, 7vw, 28px); }
  .intro__text { font-size: 14px; }
}

/* ── Главная: проекты ── */
@media (max-width: 768px) {
  .projects__head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ── Главная: как работаем ── */
@media (max-width: 768px) {
  .how__steps { grid-template-columns: 1fr; gap: 12px; }
  /* убираем stagger на мобиле — всё появляется сразу */
  .how__step:nth-child(2),
  .how__step:nth-child(3),
  .how__step:nth-child(4) { transition-delay: 0s; }
}

/* ── Главная: почему мы ── */
@media (max-width: 480px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__item { padding: 28px 20px; }
}

/* ── Страница проектов: брендинг ── */
@media (max-width: 768px) {
  .page-hero__brand { font-size: clamp(36px, 11vw, 72px); padding-top: 40px; }
  .page-hero__inner { padding-top: 16px; padding-bottom: 48px; }
  .page-hero__title { font-size: clamp(28px, 8vw, 48px); }
}
@media (max-width: 480px) {
  .page-hero__brand { font-size: clamp(28px, 9.5vw, 52px); }
}

/* ── Страница проекта (pj-*) ── */
@media (max-width: 768px) {
  .pj-hero { min-height: 50vh; overflow: hidden; }
  .pj-hero__bg { background-position: center center; }
  .pj-hero__content { padding: 0 20px 32px; margin-bottom: 0; }
  .pj-stats { padding-top: 48px; }
  .pj-stats__inner { flex-wrap: wrap; }
  .pj-stat { flex: 0 0 50%; padding: 20px 20px; border-bottom: 1px solid var(--border); }
  .pj-stat:last-child, .pj-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .pj-overview { padding: 48px 0; }
  .pj-overview__grid { grid-template-columns: 1fr; gap: 32px; }
  .pj-photos { display: none; }
  .pj-section { padding: 40px 0; }
  .pj-works { grid-template-columns: 1fr; gap: 32px; }
  .project-nav__item { padding: 24px 0; }
}
@media (max-width: 480px) {
  .pj-stat { flex: 0 0 50%; }
  .pj-hero__title { font-size: clamp(32px, 11vw, 56px); }
}

/* ── Галерея ── */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 2px; }
  .gallery-item--wide,
  .gallery-item--full { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* ── Страницы услуг (sp-*) ── */
@media (max-width: 768px) {
  .sp-hero { min-height: 50vh; }
  .sp-hero__content { padding: 0 20px 36px; }
  .sp-hero__title { font-size: clamp(36px, 10vw, 64px); }
  .sp-intro { padding: 40px 0 0; }
  .sp-intro__inner { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
  .sp-block { padding: 40px 0; }
  .sp-block__inner { grid-template-columns: 1fr; }
  .sp-photo-ph { display: none; }
  .sp-cta { padding: 48px 0; }
  .sp-cta__inner { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; }
  .sp-cta__title { font-size: clamp(18px, 5vw, 26px); }
}

/* ── Зона обслуживания ── */
@media (max-width: 768px) {
  .zone__svg { max-width: 320px; }
}

/* ── Контакт ── */
@media (max-width: 480px) {
  .contact__phone { font-size: clamp(22px, 6vw, 32px); }
  .form-group input,
  .form-group textarea { font-size: 16px; } /* предотвращает zoom на iOS */
}

/* ── Футер ── */
@media (max-width: 480px) {
  .footer__inner { gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .footer__col-title { font-size: 11px; }
}

/* ── Лайтбокс на мобильных ── */
@media (max-width: 768px) {
  .lightbox__prev { left: 12px; width: 40px; height: 40px; font-size: 14px; }
  .lightbox__next { right: 12px; width: 40px; height: 40px; font-size: 14px; }
  .lightbox__img { max-width: 96vw; max-height: 78vh; }
}

/* ── Кнопки — минимальный tap target ── */
@media (max-width: 768px) {
  .btn-primary, .btn-outline {
    min-height: 48px;
    padding: 14px 28px;
    font-size: 13px;
  }
}
