/* =========================================================
   ДЕЛЮКС — home
   ========================================================= */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 150px 0 96px;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.16);
  filter: brightness(.55) saturate(.85) contrast(1.06);
  transition: transform 1.6s var(--ease);
  will-change: transform;
}
.is-ready .hero__media img { transform: scale(1); }
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,11,14,.9) 0%, rgba(10,11,14,.62) 46%, rgba(10,11,14,.18) 100%),
    linear-gradient(180deg, rgba(10,11,14,.55) 0%, rgba(10,11,14,.05) 34%, rgba(10,11,14,.78) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(243,241,236,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243,241,236,.07) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 74%, transparent 100%);
}
.hero__inner { position: relative; z-index: 2; width: var(--container); margin: 0 auto; }
.hero__eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(243,241,236,.7);
  margin-bottom: 28px;
}
.hero__eyebrow i {
  flex: 0 0 auto;
  width: 7px; height: 7px; margin-top: .45em;
  background: var(--orange); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(237,125,49,.6);
  animation: ping 2.4s infinite;
}
.hero__eyebrow-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  row-gap: 6px;
}
.hero__eyebrow-sep { opacity: .5; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(237,125,49,.55); }
  70% { box-shadow: 0 0 0 10px rgba(237,125,49,0); }
  100% { box-shadow: 0 0 0 0 rgba(237,125,49,0); }
}
.hero__title {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(40px, 6vw, 92px);
  line-height: .96;
  letter-spacing: -.045em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--orange); }
.hero__lead {
  max-width: 50ch;
  margin-top: 28px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
  color: rgba(243,241,236,.74);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__meta {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(243,241,236,.16);
}
.hero__meta div { padding: 20px 22px 0 0; }
.hero__meta span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243,241,236,.45);
  margin-bottom: 7px;
}
.hero__meta strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: -.01em;
}
.hero__side {
  position: absolute;
  right: 26px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(243,241,236,.4);
}
.hero__side i { width: 1px; height: 54px; background: rgba(243,241,236,.25); }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(243,241,236,.45);
}
.hero__scroll i { width: 1px; height: 34px; background: rgba(243,241,236,.25); overflow: hidden; position: relative; }
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--orange);
  color: #fff;
  overflow: hidden;
  padding: 13px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- MANIFESTO ---------- */
.manifesto { padding: clamp(80px, 10vw, 150px) 0; }
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
}
.manifesto__text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -.03em;
  max-width: 22ch;
}
.manifesto__text em { font-style: normal; color: var(--orange); }
.manifesto__side { padding-bottom: 6px; }
.manifesto__side p { color: var(--steel); font-size: 15px; }
.manifesto__side .mono { color: var(--muted); margin-bottom: 14px; display: block; }
.manifesto__sign {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.manifesto__sign::before { content: ""; width: 40px; height: 1px; background: var(--orange); }

/* ---------- DIRECTIONS ---------- */
.directions { padding-bottom: clamp(72px, 9vw, 130px); }
.directions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dir-card {
  position: relative;
  min-height: clamp(440px, 52vw, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
  padding: clamp(26px, 3vw, 44px);
}
.dir-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .8s ease;
  filter: brightness(.58) saturate(.8);
}
.dir-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,.05) 20%, rgba(10,11,14,.86) 100%);
  transition: opacity .6s;
}
.dir-card:hover img { transform: scale(1.06); filter: brightness(.66) saturate(.95); }
.dir-card__top {
  position: absolute;
  top: clamp(22px, 3vw, 38px);
  left: clamp(26px, 3vw, 44px);
  right: clamp(26px, 3vw, 44px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243,241,236,.6);
}
.dir-card__body { position: relative; z-index: 2; }
.dir-card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--orange-2);
  margin-bottom: 14px;
}
.dir-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.dir-card p { margin-top: 16px; max-width: 42ch; font-size: 14px; color: rgba(243,241,236,.7); }
.dir-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
}
.dir-card__link svg { width: 16px; transition: transform .4s var(--ease); }
.dir-card:hover .dir-card__link svg { transform: translateX(6px); }

/* ---------- STATS ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: clamp(30px, 4vw, 54px) clamp(18px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1;
  letter-spacing: -.04em;
}
.stat__num sup { color: var(--orange); font-size: .45em; vertical-align: super; margin-left: 2px; }
.stat__label { margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- SERVICES ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: color .45s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--ease-2);
}
.service:hover { color: var(--paper); }
.service:hover::before { transform: translateY(0); }
.service > * { position: relative; z-index: 1; }
.service__num { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); transition: color .3s; }
.service:hover .service__num { color: var(--orange-2); }
.service h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.18;
  letter-spacing: -.015em;
  max-width: 16ch;
}
.service__arrow { width: 26px; height: 26px; opacity: .35; transition: opacity .3s, transform .4s var(--ease); }
.service:hover .service__arrow { opacity: 1; transform: translate(3px, -3px); color: var(--orange-2); }

/* ---------- FENSYS ---------- */
.fensys { position: relative; overflow: hidden; }
.fensys__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.fensys__text .h2 { margin-top: 18px; color: var(--paper); }
.fensys__text .lead { margin-top: 22px; color: rgba(243,241,236,.68); }
.fensys__list { margin-top: 34px; border-top: 1px solid var(--line-dark); }
.fensys__row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.fensys__row span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,241,236,.45); }
.fensys__row strong { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -.01em; }
.fensys__row em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--orange-2); }
.fensys__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.fensys__visual { position: relative; z-index: 0; }
.fensys__visual img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.1; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.fensys__visual::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(237,125,49,.45);
  z-index: 0;
}
.fensys__badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  z-index: 2;
  background: var(--orange);
  color: #fff;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.fensys__draw { position: absolute; inset: 0; opacity: .35; pointer-events: none; }
.fensys__draw path, .fensys__draw line {
  stroke: var(--orange);
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* ---------- PROJECTS ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
.project__media { overflow: hidden; aspect-ratio: 4/3; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 1.1s ease; }
.project:hover .project__media img { transform: scale(1.055); }
.project__body { padding: 20px 4px 0; }
.project__tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-3); }
.project h3 { margin-top: 9px; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.16; letter-spacing: -.015em; }
.project p { margin-top: 8px; font-size: 13.5px; color: var(--steel); }
.project__line { height: 1px; background: var(--line); margin-top: 18px; position: relative; overflow: hidden; }
.project__line::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.project:hover .project__line::after { transform: scaleX(1); }

/* ---------- GEOGRAPHY ---------- */
.geo__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.geo__map { position: relative; padding: 0; }
.geo__map svg { display: block; width: 100%; height: auto; overflow: visible; transition: transform .5s var(--ease); }
.geo__map:hover svg { transform: scale(1.012); }

.dlx-map__region {
  fill: #e4e0d5;
  stroke: #beb8a9;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill .35s var(--ease);
}
.dlx-map__region--dnr { fill: #e8e4d9; }
.dlx-map__region--zap { fill: #ece8dd; }
.dlx-map__region--kher { fill: #e8e4d9; }

.dlx-map__region-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: var(--steel);
  opacity: .62;
  pointer-events: none;
}

.dlx-map__city { cursor: default; }
.dlx-map__hit { fill: transparent; }
.dlx-map__dot {
  fill: var(--orange);
  stroke: var(--paper);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .3s var(--ease), fill .3s var(--ease);
}
.dlx-map__city:hover .dlx-map__dot { transform: scale(1.9); fill: var(--orange-3); }
.dlx-map__label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}
.dlx-map__city:hover .dlx-map__label { opacity: 1; }

.geo__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; border-top: 1px solid var(--line); }
.geo__list div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; }
.geo__list span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); }

/* ---------- WHY ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); }
.why__list { border-top: 1px solid var(--line); }
.why__item { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.why__item span { font-family: var(--mono); font-size: 10px; color: var(--orange-3); padding-top: 3px; }
.why__item p { font-size: 15px; color: var(--ink-2); }
.docs { display: grid; gap: 14px; }
.doc {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--paper-2);
  border: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.doc:hover { border-color: var(--orange); background: #fff; }
.doc__icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); }
.doc__icon svg { width: 20px; height: 20px; }
.doc strong { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; }
.doc p { font-size: 12.5px; color: var(--steel); margin-top: 3px; }

/* ---------- CTA ---------- */
.cta { background: var(--orange); color: #fff; padding: clamp(56px, 7vw, 100px) 0; position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  right: -8vw;
  top: -40%;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
}
.cta::after {
  content: "";
  position: absolute;
  right: 4vw;
  top: -18%;
  width: 26vw;
  height: 26vw;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.cta__grid { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cta .h2 { max-width: 16ch; color: #fff; }
.cta .eyebrow { color: rgba(255,255,255,.75); }
.cta .eyebrow::before { background: #fff; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta__note { margin-top: 26px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.7); }

/* ---------- responsive home ---------- */
@media (max-width: 1120px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: 1fr 1fr; }
  .fensys__grid { grid-template-columns: 1fr; }
  .fensys__visual { order: -1; max-width: 640px; }
  .manifesto__grid { grid-template-columns: 1fr; }
  .geo__grid { grid-template-columns: 1fr; }
  .geo__map { width: 100%; max-width: 640px; margin: 0 auto; }
  .why__grid { grid-template-columns: 1fr; }
  .cta__grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta div { padding: 14px 18px 14px 0; }
  .directions__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero__side { display: none; }
}
@media (max-width: 720px) {
  .hero__eyebrow { font-size: 10px; letter-spacing: .16em; margin-bottom: 22px; }
  .hero__eyebrow-text { flex-direction: column; align-items: flex-start; gap: 5px; }
  .hero__eyebrow-sep { display: none; }
  .dlx-map__region-label { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 40px; }
  .hero__title { font-size: clamp(40px, 12vw, 64px); }
  .hero__lead { font-size: 14.5px; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .geo__list { grid-template-columns: 1fr; }
  .stat__num { font-size: 42px; }
  .fensys__row { grid-template-columns: 70px 1fr; }
  .fensys__row em { grid-column: 2; }
  .fensys__badge { left: 0; }
}
