/* ============================================================
   KRAFTEK DESIGN — main.css
   Dark premium design system · Playfair Display + Manrope
   ============================================================ */

:root {
  --bg: #0f0e0c;
  --bg-2: #161411;
  --bg-3: #1e1b17;
  --ink: #f2ede4;
  --muted: #a89f92;
  --accent: #c4a06a;
  --accent-2: #8f7347;
  --line: rgba(242, 237, 228, 0.12);
  --line-soft: rgba(242, 237, 228, 0.07);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* clip вместо hidden: не създава scroll-контейнер и не чупи pin ефектите */
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #14110c; }

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

/* --- Noise overlay ------------------------------------------------ */
.noise {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: noiseShift 0.6s steps(4) infinite;
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(1.5%, 1%); }
}

/* --- Custom cursor ------------------------------------------------ */
.cursor-dot, .cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  z-index: 3000;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(196, 160, 106, 0.5);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
    border-color 0.3s, background 0.3s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(196, 160, 106, 0.08);
  border-color: rgba(196, 160, 106, 0.9);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --- Preloader ---------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.preloader__logo { width: min(300px, 60vw); opacity: 0; }
.preloader__bar {
  width: min(300px, 60vw);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.preloader__bar span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.preloader__count {
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--muted);
}

/* --- Typography helpers ------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h-display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; }

.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; will-change: transform; }

/* --- Buttons ------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: #14110c; border-color: var(--accent); }
.btn:hover::before { transform: scaleY(1); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #14110c; }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { color: #14110c; }
.btn .arr { transition: transform 0.35s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }

/* --- Navigation --------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: transform 0.5s var(--ease-out), background 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(15, 14, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
}
.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  transition: color 0.3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__cta { padding: 13px 26px; }

/* dropdown */
.nav__item { position: relative; }
.nav__drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 300px;
  background: rgba(22, 20, 17, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s var(--ease-out), visibility 0.3s;
}
.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__drop a {
  display: block;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}
.nav__drop a:hover { background: rgba(196, 160, 106, 0.1); color: var(--ink); }
.nav__drop a small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* burger */
.nav__burger {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 1001;
}
.nav__burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, top 0.4s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 28px; }
body.menu-open .nav__burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(15, 14, 12, 0.98);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(24px, 8vw, 72px) 60px;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
body.menu-open .mmenu { opacity: 1; visibility: visible; }
.mmenu a {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.3;
  color: var(--ink);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mmenu a:hover { color: var(--accent); }
.mmenu a.mmenu__sub { font-size: clamp(19px, 4vw, 24px); color: var(--muted); font-family: var(--font-body); }
body.menu-open .mmenu a { opacity: 1; transform: translateY(0); }
.mmenu__meta { margin-top: 36px; font-size: 14px; color: var(--muted); }
.mmenu__meta a { font-family: var(--font-body); font-size: 15px; color: var(--accent); display: inline; }

/* --- Layout ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}
section { position: relative; }

/* --- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  perspective: 1200px;
}
.hero__media {
  position: absolute;
  inset: -6%;
  will-change: transform;
}
.hero__media img, .hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.4%, 1%); }
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 14, 12, 0.55) 0%, rgba(15, 14, 12, 0.18) 38%, rgba(15, 14, 12, 0.88) 88%),
    radial-gradient(120% 90% at 80% 10%, transparent 40%, rgba(15, 14, 12, 0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(90px, 12vh, 150px);
}
.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  font-size: clamp(44px, 7.4vw, 118px);
  max-width: 14ch;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(16px, 1.45vw, 20px);
  color: rgba(242, 237, 228, 0.82);
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__scroll {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* --- Stats strip -------------------------------------------------- */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: clamp(36px, 4.6vw, 64px) clamp(16px, 3vw, 48px);
  text-align: center;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: none; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 84px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat__num sup { font-size: 0.5em; color: var(--accent); }
.stat__label {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Marquee ------------------------------------------------------ */
.marquee {
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 0;
  will-change: transform;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 34px);
  font-style: italic;
  color: rgba(242, 237, 228, 0.35);
}
.marquee__item i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.5em;
}

/* --- Section shell ------------------------------------------------ */
.section { padding: clamp(90px, 11vw, 170px) 0; }
.section__head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.section__head .h-display { font-size: clamp(34px, 4.6vw, 68px); margin-top: 24px; }
.section__head .lead { margin-top: 22px; }

/* --- Manifest (editorial about) ----------------------------------- */
.manifest__text {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 52px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 1150px;
}
.manifest__text .w {
  display: inline-block;
  opacity: 0.14;
  will-change: opacity;
  transition: opacity 0.3s linear;
}
.manifest__text .w.on { opacity: 1; }
.manifest__text em { color: var(--accent); font-style: italic; }
.manifest__foot {
  margin-top: clamp(40px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  color: var(--muted);
  font-size: 14.5px;
}
.manifest__foot b { color: var(--ink); font-weight: 600; }

/* --- Services ------------------------------------------------------ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.svc-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: var(--bg-3);
  transform-style: preserve-3d;
  will-change: transform;
}
.svc-card__img {
  position: absolute;
  inset: 0;
}
.svc-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease-out), filter 0.6s;
  filter: brightness(0.72) saturate(0.94);
}
.svc-card:hover .svc-card__img img { transform: scale(1.13); filter: brightness(0.85) saturate(1.02); }
.svc-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(15,14,12,0.06) 30%, rgba(15,14,12,0.9) 92%);
}
.svc-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(22px, 2.4vw, 40px);
  transform: translateZ(46px);
}
.svc-card__num {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 12px;
}
.svc-card__title {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 600;
  line-height: 1.2;
}
.svc-card__desc {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out), opacity 0.5s 0.05s;
}
.svc-card:hover .svc-card__desc { max-height: 130px; opacity: 1; }
.svc-card__link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc-card__link .arr { transition: transform 0.35s var(--ease-out); }
.svc-card:hover .svc-card__link .arr { transform: translateX(6px); }

/* --- Depth zoom --------------------------------------------------- */
.zoom { height: 100vh; overflow: hidden; position: relative; }
.zoom__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.zoom__media img, .zoom__media video { width: 100%; height: 100%; object-fit: cover; }
.zoom__veil { position: absolute; inset: 0; background: rgba(15, 14, 12, 0.46); }
.zoom__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  will-change: transform, opacity;
}
.zoom__text .h-display { font-size: clamp(38px, 6.4vw, 96px); }
.zoom__text p {
  margin-top: 20px;
  color: rgba(242, 237, 228, 0.8);
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 19px);
}

/* --- Horizontal projects ------------------------------------------ */
.hproj { overflow: hidden; }
.hproj__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hproj__track {
  display: flex;
  gap: clamp(20px, 2.6vw, 44px);
  padding: clamp(48px, 5vw, 80px) clamp(20px, 4vw, 64px) 0;
  width: max-content;
  will-change: transform;
}
.hcard {
  position: relative;
  width: clamp(300px, 34vw, 560px);
  flex-shrink: 0;
  display: block;
}
.hcard__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hcard__media img, .hcard__media video {
  width: 100%; height: 116%;
  object-fit: cover;
  will-change: transform;
  transition: filter 0.5s;
  filter: brightness(0.88);
}
.hcard__media video { height: 100%; }
.hcard:hover .hcard__media img, .hcard:hover .hcard__media video { filter: brightness(1); }
.hcard__tag {
  position: absolute;
  top: 18px; left: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 14, 12, 0.55);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.hcard__num {
  position: absolute;
  right: 14px;
  bottom: -12px;
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 110px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 160, 106, 0.55);
  pointer-events: none;
}
.hcard__body { padding: 22px 6px 0; }
.hcard__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 30px);
  font-weight: 600;
}
.hcard__meta { margin-top: 6px; font-size: 13.5px; color: var(--muted); letter-spacing: 0.04em; }

/* --- Compare (render vs reality) ---------------------------------- */
.compare__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: center;
}
.compare {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare__top { clip-path: inset(0 0 0 50%); will-change: clip-path; }
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(242, 237, 228, 0.85);
  will-change: left;
}
.compare__handle::after {
  content: "⟺";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #14110c;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.compare__label {
  position: absolute;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 14, 12, 0.62);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.compare__label--l { left: 16px; }
.compare__label--r { right: 16px; }
.compare-side .h-display { font-size: clamp(30px, 3.6vw, 54px); margin-top: 22px; }
.compare-side .lead { margin-top: 20px; }
.compare-side blockquote {
  margin-top: 30px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
  color: rgba(242, 237, 228, 0.9);
}
.compare-side blockquote footer {
  margin-top: 14px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Process ------------------------------------------------------ */
.process { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.process__list { position: relative; }
.process__line {
  position: absolute;
  left: clamp(26px, 3vw, 44px);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.process__line span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.pstep {
  position: relative;
  display: grid;
  grid-template-columns: clamp(52px, 6vw, 88px) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(30px, 3.6vw, 54px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.pstep:last-child { border-bottom: none; }
.pstep__dot {
  position: relative;
  justify-self: start;
  margin-left: clamp(19px, 2.55vw, 37px);
  width: 15px; height: 15px;
  margin-top: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg-2);
  transition: background 0.4s, box-shadow 0.4s;
}
.pstep.is-on .pstep__dot { background: var(--accent); box-shadow: 0 0 24px rgba(196, 160, 106, 0.6); }
.pstep__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
}
.pstep__title small {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.pstep__desc { color: var(--muted); font-size: 15.5px; max-width: 58ch; }

/* --- Testimonials -------------------------------------------------- */
.quotes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
}
.quote {
  padding: clamp(30px, 3.4vw, 54px);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(196, 160, 106, 0.05), transparent 45%);
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.65vw, 23px);
  font-style: italic;
  line-height: 1.6;
}
.quote footer { margin-top: 26px; font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.quote footer b { color: var(--ink); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12.5px; display: block; }

/* --- Hilton band --------------------------------------------------- */
.hilton {
  background:
    linear-gradient(120deg, rgba(15, 14, 12, 0.92) 30%, rgba(15, 14, 12, 0.6)),
    var(--bg-3);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hilton__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: center;
}
.hilton .h-display { font-size: clamp(30px, 3.8vw, 58px); margin-top: 22px; }
.hilton__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
}
.hilton__fact { background: var(--bg-2); padding: clamp(22px, 2.6vw, 40px); }
.hilton__fact b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 46px);
  color: var(--accent);
  line-height: 1.1;
}
.hilton__fact span { font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* --- CTA footer ---------------------------------------------------- */
.cta {
  text-align: center;
  padding: clamp(110px, 15vw, 220px) 0;
  overflow: hidden;
  position: relative;
}
.cta__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 8.4vw, 140px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.cta__big em { font-style: italic; color: var(--accent); }
.cta p { margin: 28px auto 0; max-width: 54ch; color: var(--muted); }
.cta .btn { margin-top: 48px; }

/* --- Footer -------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(48px, 6vw, 80px) 0 40px;
  background: var(--bg-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: clamp(24px, 3.4vw, 56px);
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.footer__social svg {
  width: 17px;
  height: 17px;
  fill: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.footer__social a:hover svg { transform: scale(1.18); }
.footer__brand img { height: 40px; margin-bottom: 22px; }
.footer__brand p { font-size: 14px; color: var(--muted); max-width: 34ch; }
.footer h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer li { margin-bottom: 12px; }
.footer li a, .footer li span { font-size: 14.5px; color: var(--muted); transition: color 0.3s; }
.footer li a:hover { color: var(--ink); }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(168, 159, 146, 0.7);
}

/* --- Page hero (inner pages) --------------------------------------- */
.phero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.phero--tall { min-height: 86svh; }
.phero__media { position: absolute; inset: -5%; will-change: transform; }
.phero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.phero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.6), rgba(15,14,12,0.25) 45%, rgba(15,14,12,0.92) 92%);
}
.phero__content { position: relative; z-index: 2; width: 100%; padding: calc(var(--nav-h) + 60px) 0 clamp(56px, 8vh, 96px); }
.phero__content .h-display { font-size: clamp(38px, 6vw, 92px); margin-top: 24px; max-width: 18ch; }
.phero__content .lead { margin-top: 24px; }

/* --- Projects grid page -------------------------------------------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 4.6vw, 64px);
}
.filter__btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.35s;
}
.filter__btn:hover { border-color: var(--accent); color: var(--ink); }
.filter__btn.is-active { background: var(--accent); border-color: var(--accent); color: #14110c; }

.pgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
}
.pcard { grid-column: span 4; display: block; cursor: pointer; }
.pcard:nth-child(5n + 1), .pcard:nth-child(5n + 2) { grid-column: span 6; }
.pcard__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pcard:nth-child(5n + 1) .pcard__media, .pcard:nth-child(5n + 2) .pcard__media { aspect-ratio: 16 / 10; }
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1s var(--ease-out), filter 0.5s;
  filter: brightness(0.85);
}
.pcard:hover .pcard__media img { transform: scale(1.1); filter: brightness(1); }
.pcard__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(15, 14, 12, 0.55);
  backdrop-filter: blur(10px);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pcard__view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  background: rgba(15, 14, 12, 0.3);
}
.pcard:hover .pcard__view { opacity: 1; }
.pcard__view span {
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #14110c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out);
}
.pcard:hover .pcard__view span { transform: translateY(0); }
.pcard__body { padding: 18px 4px 0; }
.pcard__title { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 27px); font-weight: 600; }
.pcard__meta { margin-top: 5px; font-size: 13px; color: var(--muted); }

/* --- Lightbox ------------------------------------------------------ */
.lbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(11, 10, 9, 0.97);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
.lbox.is-open { opacity: 1; visibility: visible; }
.lbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  gap: 20px;
}
.lbox__title { font-family: var(--font-display); font-size: clamp(19px, 2vw, 28px); }
.lbox__meta { font-size: 12.5px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.lbox__close {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.lbox__close:hover { background: var(--accent); border-color: var(--accent); color: #14110c; transform: rotate(90deg); }
.lbox__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 6vw, 90px);
  position: relative;
}
.lbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.lbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 14, 12, 0.6);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 19px;
  transition: all 0.3s;
}
.lbox__nav:hover { background: var(--accent); color: #14110c; border-color: var(--accent); }
.lbox__nav--prev { left: clamp(8px, 1.6vw, 24px); }
.lbox__nav--next { right: clamp(8px, 1.6vw, 24px); }
.lbox__desc {
  padding: 18px clamp(20px, 4vw, 56px) 16px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 90ch;
}
.lbox__thumbs {
  display: flex;
  gap: 10px;
  padding: 0 clamp(20px, 4vw, 56px) 22px;
  overflow-x: auto;
}
.lbox__thumbs img {
  width: 86px; height: 60px;
  object-fit: cover;
  border-radius: 7px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s, outline 0.3s;
  outline: 1px solid transparent;
  flex-shrink: 0;
}
.lbox__thumbs img.is-current { opacity: 1; outline: 1px solid var(--accent); }
.lbox__film { margin: 0 clamp(20px,4vw,56px) 18px; }
.lbox__film video { width: 100%; max-height: 46vh; border-radius: 10px; background: #000; }

/* --- Service pages -------------------------------------------------- */
.sgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 5.6vw, 100px);
  align-items: start;
}
.sgrid__sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.sgrid__sticky .h-display { font-size: clamp(30px, 3.6vw, 54px); margin-top: 22px; }
.sgrid__sticky .lead { margin-top: 20px; }
.slist { display: flex; flex-direction: column; }
.slist__item {
  padding: clamp(24px, 2.8vw, 40px) 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
}
.slist__item:first-child { border-top: 1px solid var(--line-soft); }
.slist__num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  font-style: italic;
}
.slist__item h3 { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
.slist__item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.gallery-band { overflow: hidden; }
.gallery-band__track {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  width: max-content;
  will-change: transform;
  padding: 0 clamp(20px, 4vw, 64px);
}
.gallery-band__track img {
  height: clamp(280px, 42vh, 480px);
  width: auto;
  border-radius: 14px;
  object-fit: cover;
}

/* --- Contact wizard -------------------------------------------------- */
.wizard {
  max-width: 980px;
  margin: 0 auto;
}
.wizard__progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.wizard__pstep {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.wizard__pstep i {
  font-style: normal;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  flex-shrink: 0;
  transition: all 0.4s;
}
.wizard__pstep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
  margin: 0 14px;
}
.wizard__pstep:last-child::after { display: none; }
.wizard__pstep.is-done i, .wizard__pstep.is-current i {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110c;
}
.wizard__pstep.is-current { color: var(--ink); }
.wizard__pstep .lbl { display: none; }
@media (min-width: 900px) { .wizard__pstep .lbl { display: inline; } }

.wstep { display: none; }
.wstep.is-active { display: block; animation: wstepIn 0.55s var(--ease-out); }
@keyframes wstepIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.wstep__q {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 600;
  margin-bottom: 10px;
}
.wstep__hint { color: var(--muted); margin-bottom: clamp(28px, 3.4vw, 44px); font-size: 15.5px; }

.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opt {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  text-align: left;
  color: var(--ink);
  transition: all 0.35s;
}
.opt:hover { border-color: rgba(196, 160, 106, 0.5); transform: translateY(-3px); }
.opt.is-selected { border-color: var(--accent); background: rgba(196, 160, 106, 0.07); }
.opt.is-selected::after {
  content: "✓";
  position: absolute;
  top: 16px; right: 18px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #14110c;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opt__icon { font-size: 26px; margin-bottom: 14px; display: block; }
.opt__title { font-size: 16.5px; font-weight: 700; display: block; }
.opt__desc { margin-top: 6px; font-size: 13.5px; color: var(--muted); display: block; }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label b { color: var(--accent); }
.field input, .field select, .field textarea {
  padding: 17px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15.5px;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c4a06a' fill='none' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 160, 106, 0.14);
}
.field input.is-error, .field textarea.is-error { border-color: #c96a5e; }
.field textarea { min-height: 130px; resize: vertical; }
.field__err { font-size: 12.5px; color: #d98276; display: none; }
.field__err.is-visible { display: block; }

.fupload {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: clamp(26px, 3.4vw, 44px);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.35s, background 0.35s;
  background: var(--bg-2);
}
.fupload:hover, .fupload.is-drag { border-color: var(--accent); background: rgba(196, 160, 106, 0.05); }
.fupload input { display: none; }
.fupload__icon { font-size: 30px; display: block; margin-bottom: 12px; }
.fupload__text { font-size: 15px; }
.fupload__text b { color: var(--accent); }
.fupload__hint { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.fupload__file {
  margin-top: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.fupload__file.is-visible { display: flex; }
.fupload__file button {
  background: none;
  border: none;
  color: #d98276;
  font-size: 17px;
}

.gdpr {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}
.gdpr input {
  width: 20px; height: 20px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.wizard__nav {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.wizard__back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}
.wizard__back:hover { color: var(--ink); }
.wizard__back[hidden] { visibility: hidden; display: inline-flex; }

.wizard__success { text-align: center; padding: clamp(40px, 6vw, 80px) 0; display: none; }
.wizard__success.is-visible { display: block; animation: wstepIn 0.6s var(--ease-out); }
.wizard__success .icon {
  width: 88px; height: 88px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #14110c;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard__success h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 52px); }
.wizard__success p { margin-top: 16px; color: var(--muted); max-width: 52ch; margin-inline: auto; }

.contact-aside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 8vw, 100px); }
.contact-tile {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: clamp(24px, 2.8vw, 38px);
  background: var(--bg-2);
}
.contact-tile h4 { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.contact-tile a, .contact-tile span { font-size: 16px; color: var(--ink); }
.contact-tile small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

/* --- Reveal helpers ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(46px); will-change: transform, opacity; }
.reveal-img { overflow: hidden; border-radius: 16px; }
.reveal-img img { transform: scale(1.14); will-change: transform; }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: 1fr; }
  .svc-card { aspect-ratio: 16 / 9; }
  .compare__wrap, .hilton__inner, .sgrid { grid-template-columns: 1fr; }
  .sgrid__sticky { position: static; }
  .pcard, .pcard:nth-child(5n + 1), .pcard:nth-child(5n + 2) { grid-column: span 6; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line-soft); text-align: left; display: flex; align-items: baseline; gap: 20px; padding: 26px 8px; }
  .stat:first-child { border-top: none; }
  .quotes__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pstep { grid-template-columns: 40px 1fr; }
  .pstep__desc { grid-column: 2; margin-top: 12px; }
  .process__line { left: 19px; }
  .pstep__dot { margin-left: 12px; }
  .pcard, .pcard:nth-child(5n + 1), .pcard:nth-child(5n + 2) { grid-column: span 12; }
  .opts, .fgrid { grid-template-columns: 1fr; }
  .contact-aside { grid-template-columns: 1fr; }
  .hcard { width: min(78vw, 420px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img img { transform: none; }
}

/* no-anim режим (скрит таб при зареждане / reduced motion):
   нищо не остава скрито в очакване на анимация */
html.no-anim .reveal { opacity: 1; transform: none; }
html.no-anim .reveal-img img { transform: none; }
html.no-anim .manifest__text .w { opacity: 1; }
html.no-anim .zoom__text { opacity: 1; }
html.no-anim .preloader { display: none; }
