/* ============================================================
   КАСКАД — interior solutions
   Editorial / architectural / dark premium
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; cursor: pointer; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, button, select { font: inherit; color: inherit; }
input, textarea { background: transparent; border: none; outline: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
figure { margin: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --surface: #131316;
  --surface-2: #191a1d;
  --text: #efece5;
  --text-2: #a3a3a7;
  --text-3: #6e6e72;
  --text-4: #44444a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #c4b18a;
  --accent-soft: rgba(196, 177, 138, 0.55);
  --metal: #d4d4d8;

  --container: 1440px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(96px, 13vw, 184px);

  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-3);
}
.eyebrow .line { width: 48px; height: 1px; background: var(--accent-soft); display: inline-block; }
.eyebrow--accent { color: var(--accent); }

.h-display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 7.6vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}
.h-1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
}
.h-2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0;
}
.h-3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.h-4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.005em;
  margin: 0;
}

.lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 58ch;
  font-weight: 300;
}
.lead--lg { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.55; }

.muted { color: var(--text-3); }
.subtle { color: var(--text-2); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.section--first { padding-top: clamp(80px, 11vw, 160px); }

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 32px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  font-weight: 400;
  transition: background 0.55s var(--ease), color 0.55s var(--ease), border-color 0.55s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--accent { color: var(--accent); border-color: var(--accent-soft); }
.btn--accent:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--ghost { border-color: var(--line); color: var(--text-2); }
.btn--ghost:hover { color: var(--bg); background: var(--text); border-color: var(--text); }
.btn--full { width: 100%; justify-content: center; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-bottom: 8px;
  position: relative;
  transition: color 0.45s var(--ease);
  font-weight: 400;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--line-strong);
  transition: background 0.45s var(--ease);
}
.link:hover { color: var(--text); }
.link:hover::after { background: var(--text); }
.link__arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.link:hover .link__arrow { transform: translateX(6px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 10, 11, 0.45);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(10, 10, 11, 0.88);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  line-height: 1;
}
.brand__logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}
.brand__city {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-left: 16px;
  border-left: 1px solid var(--line);
  align-self: center;
}
.footer__brand .brand__logo { height: 72px; }
.footer__brand .brand__city { font-size: 11px; padding-left: 18px; }
@media (max-width: 600px) {
  .brand__logo { height: 38px; }
  .brand__city { font-size: 9px; padding-left: 12px; }
  .brand { gap: 12px; }
}

.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 400;
  padding: 6px 0;
  position: relative;
  transition: color 0.4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent-soft);
}

.header__right { display: inline-flex; align-items: center; gap: 22px; }
.header__phone {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.header__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.header__btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.hamburger {
  display: none;
  width: 32px; height: 32px;
  position: relative;
  margin-left: 8px;
}
.hamburger span {
  position: absolute;
  left: 5px; right: 5px;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.3s var(--ease), bottom 0.3s var(--ease);
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { bottom: 11px; }
.hamburger.is-open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { bottom: 16px; transform: rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 56px var(--pad-x) 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav__links { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav__links a {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mobile-nav__links a.is-active { color: var(--accent); }
.mobile-nav__footer {
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.mobile-nav__footer a { font-size: 14px; color: var(--text-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 100px);
  padding-bottom: 100px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__bg {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg img,
.hero__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5) contrast(1.05) saturate(0.85);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0.1) 30%, rgba(10,10,11,0.85) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0) 55%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; width: 100%; }
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.hero__index {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}
.hero__title { max-width: 18ch; margin-bottom: 32px; }
.hero__sub { max-width: 50ch; margin-bottom: 60px; }
.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: 32px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 400;
}
.hero__scroll .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ---------- About / two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.two-col__left { position: sticky; top: calc(var(--header-h) + 32px); }
.two-col__head { margin-bottom: 24px; }
.two-col__title { margin-bottom: 36px; }
.two-col__lead { margin-bottom: 0; }

.tezis-list {
  display: flex;
  flex-direction: column;
}
.tezis {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.tezis:last-child { border-bottom: 1px solid var(--line); }
.tezis__num {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 400;
}
.tezis__text {
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 300;
}

/* ---------- Section header (eyebrow + title) ---------- */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.sec-head__left { max-width: 720px; }
.sec-head__eyebrow { margin-bottom: 24px; }
.sec-head__title { max-width: 16ch; }
.sec-head__lead { margin-top: 28px; }
.sec-head__right { max-width: 360px; padding-bottom: 8px; }

/* ---------- Solution cards (Home — large 2x2) ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 32px);
}
.solution {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  isolation: isolate;
}
.solution__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.solution__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.62) contrast(1.05) saturate(0.9);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
  will-change: transform;
}
.solution::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0) 30%, rgba(10,10,11,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.solution__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(28px, 4vw, 48px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.solution__num {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.solution__title { color: var(--text); }
.solution__desc {
  color: var(--text-2);
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.55;
}
.solution__link {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  align-self: flex-start;
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.solution:hover .solution__img img { transform: scale(1.06); filter: brightness(0.7) contrast(1.05) saturate(0.95); }
.solution:hover .solution__link { border-color: var(--text); gap: 16px; }

/* ---------- Type cards (smaller, 3-col) ---------- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 40px) clamp(20px, 2vw, 32px);
}
.type-card {
  display: block;
  position: relative;
}
.type-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--surface);
  margin-bottom: 22px;
}
.type-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05) saturate(0.9);
  transition: transform 1.4s var(--ease), filter 0.7s var(--ease);
  will-change: transform;
}
.type-card:hover .type-card__img img { transform: scale(1.05); filter: brightness(0.78) contrast(1.05) saturate(0.95); }
.type-card__num {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  display: block;
  margin-bottom: 10px;
}
.type-card__title { margin-bottom: 8px; }
.type-card__desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  max-width: 36ch;
}

.types-grid--4 { grid-template-columns: repeat(4, 1fr); }
.types-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Portfolio (gallery) ---------- */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
}
.filter {
  padding: 10px 22px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  background: transparent;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
  font-weight: 400;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2vw, 32px);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  display: block;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05) saturate(0.9);
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); filter: brightness(0.78) contrast(1.05) saturate(0.95); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0) 55%, rgba(10,10,11,0.8) 100%);
}
.gallery__caption {
  position: absolute;
  left: 28px; right: 28px; bottom: 24px;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ---------- Gallery slider ---------- */
.gallery-slider {
  margin-top: clamp(40px, 5vw, 64px);
  position: relative;
}
.gallery-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.gallery-slider__viewport::-webkit-scrollbar { display: none; }
.gallery-slider__track {
  display: flex;
  gap: clamp(12px, 1.5vw, 20px);
}
.gallery-slider__item {
  flex: 0 0 clamp(260px, 30vw, 440px);
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  contain: layout paint;
}
.gallery-slider__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.04) saturate(0.88);
  transform: translateZ(0);
  transition: transform 0.6s var(--ease);
}
.gallery-slider__item:hover img { transform: scale(1.03) translateZ(0); }
.gallery-slider__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10,10,11,0.45) 100%);
  pointer-events: none;
}
.gallery-slider__nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
}
.gallery-slider__btn {
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.4s var(--ease), opacity 0.35s var(--ease);
}
.gallery-slider__btn:hover {
  color: var(--text);
  border-color: var(--text-3);
  transform: translateY(-1px);
}
.gallery-slider__btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.gallery-slider__btn:active { transform: translateY(0); }
.gallery-slider__btn[disabled] {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}
.gallery-slider__btn--next {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  position: relative;
}
.gallery-slider__btn--next:hover {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--accent);
}
.gallery-slider__btn--next::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: slider-pulse 2.8s var(--ease-out) infinite;
}
.gallery-slider__btn--next.is-quiet::after { animation: none; opacity: 0; }
@keyframes slider-pulse {
  0%   { transform: scale(0.96); opacity: 0; }
  35%  { transform: scale(1.05); opacity: 0.5; }
  100% { transform: scale(1.22); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-slider__btn--next::after { animation: none; }
}
@media (max-width: 600px) {
  .gallery-slider__item { flex-basis: 78vw; }
  .gallery-slider__nav { margin-top: 14px; }
  .gallery-slider__btn { width: 44px; height: 44px; }
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process--6 { grid-template-columns: repeat(6, 1fr); }
.process__step {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.process__step:last-child { border-right: none; padding-right: 0; }
.process__num {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.process__title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.process__note {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  max-width: 980px;
}
.process__note-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.process__note-text { color: var(--text-2); font-size: 16px; line-height: 1.6; }

/* ---------- Form ---------- */
.form-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.form-wrap__intro { max-width: 480px; }
.form-wrap__intro .eyebrow { margin-bottom: 22px; }
.form-wrap__intro .h-1 { margin-bottom: 28px; }

.form { display: flex; flex-direction: column; gap: 32px; }
.form__fields { display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { position: relative; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 0 12px;
  font-size: 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  transition: border-color 0.4s var(--ease);
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-4); }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
.form__submit { display: flex; align-items: center; gap: 32px; margin-top: 4px; flex-wrap: wrap; }
.form__submit .btn { flex-shrink: 0; }
.form__hint { font-size: 12px; color: var(--text-3); max-width: 36ch; line-height: 1.5; flex: 1 1 220px; margin: 0; }
.form__hint a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.form__hint a:hover { color: var(--accent); border-bottom-color: var(--accent-soft); }
.form__success {
  display: none;
  padding: 24px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.form.is-submitted .form__success { display: block; }
.form.is-submitted .form__fields { opacity: 0.3; pointer-events: none; }

/* ---------- Contacts ---------- */
.contacts {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}
.contacts__left { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.contacts__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contacts__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.05) saturate(0.85);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.contacts__photo:hover img { transform: scale(1.04); filter: brightness(1) contrast(1.05) saturate(0.92); }
.contacts__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,11,0.85) 100%);
  pointer-events: none;
}
.contacts__photo-caption {
  position: absolute;
  left: clamp(20px, 2.4vw, 28px);
  right: clamp(20px, 2.4vw, 28px);
  bottom: clamp(18px, 2vw, 24px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}
.contacts__photo-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}
.contacts__photo-text {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--text);
  max-width: 30ch;
}
.contacts__info { display: flex; flex-direction: column; gap: 40px; }
.contacts__list { display: flex; flex-direction: column; gap: 0; }
.contacts__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contacts__row:last-child { border-bottom: 1px solid var(--line); }
.contacts__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 400;
}
.contacts__value { font-size: 17px; color: var(--text); line-height: 1.45; font-weight: 300; }
.contacts__value a { transition: color 0.4s var(--ease); }
.contacts__value a:hover { color: var(--accent); }
.contacts__messengers { display: flex; gap: 24px; flex-wrap: wrap; }
.contacts__messengers a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contacts__messengers a:hover { color: var(--accent); border-color: var(--accent-soft); }

.map {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 520px;
  align-self: stretch;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) brightness(0.45) contrast(1.15) invert(0.95) hue-rotate(180deg);
}
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,11,0.4) 100%);
  pointer-events: none;
}

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal__intro {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
  margin-bottom: 56px;
}
.legal__intro .h-display { margin: 24px 0 24px; font-size: clamp(34px, 5vw, 56px); }
.legal__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.legal__section { margin-bottom: 56px; }
.legal__section:last-child { margin-bottom: 0; }
.legal__section h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0 0 24px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.legal__section h2 .num {
  color: var(--accent);
  font-size: 0.7em;
  font-feature-settings: "tnum";
}
.legal__section h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 32px 0 14px;
  font-weight: 400;
}
.legal__section p,
.legal__section li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  font-weight: 300;
}
.legal__section p { margin: 0 0 16px; }
.legal__section ul, .legal__section ol { padding-left: 22px; margin: 0 0 18px; }
.legal__section li { margin-bottom: 10px; }
.legal__section a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); transition: opacity 0.3s var(--ease); }
.legal__section a:hover { opacity: 0.75; }
.legal__contact-card {
  margin-top: 8px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}
.legal__contact-card strong { color: var(--text); font-weight: 400; }
@media (max-width: 600px) {
  .legal__contact-card { padding: 22px; font-size: 13px; }
  .legal__section { margin-bottom: 44px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 22px;
  font-weight: 400;
}
.footer__col ul { display: flex; flex-direction: column; gap: 14px; }
.footer__col a, .footer__col li, .footer__col p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  font-weight: 300;
  transition: color 0.4s var(--ease);
}
.footer__col a:hover { color: var(--text); }
.footer__brand .brand { margin-bottom: 24px; }
.footer__desc { max-width: 32ch; }
.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.footer__bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom-links a { color: var(--text-3); transition: color 0.4s var(--ease); }
.footer__bottom-links a:hover { color: var(--text); }
.footer__bottom a { color: var(--text-3); transition: color 0.4s var(--ease); }
.footer__bottom a:hover { color: var(--text); }
.footer__credit { font-size: 0.85em; opacity: 0.7; letter-spacing: 0.02em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,6,7,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s linear;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}
.lightbox__stage {
  position: relative;
  width: min(92vw, 1500px);
  height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.5s var(--ease-out);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.lightbox.is-open .lightbox__stage img { transform: scale(1); opacity: 1; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 52px; height: 52px;
  border: 1px solid rgba(239,236,229,0.22);
  background: rgba(10,10,11,0.55);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(10,10,11,0.85);
}
.lightbox__close { top: 24px; right: 24px; z-index: 2; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  font-feature-settings: "tnum";
}
.lightbox--single .lightbox__nav,
.lightbox--single .lightbox__counter { display: none; }
.gallery-slider__item { cursor: zoom-in; }
[data-lightbox-single] .type-card__img { cursor: zoom-in; }
@media (max-width: 600px) {
  .lightbox__close,
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__counter { bottom: 14px; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  padding: 20px 24px;
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 300;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  transform: translateY(120%);
  transition: transform 0.7s var(--ease-out);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner__text { flex: 1; }
.cookie-banner__text a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: opacity 0.3s var(--ease);
}
.cookie-banner__text a:hover { opacity: 0.75; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; align-items: center; }
.cookie-banner__btn {
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 400;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.cookie-banner__btn:hover { opacity: 0.85; }
.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
}
.cookie-banner__btn--ghost:hover { color: var(--text); border-color: var(--text-3); opacity: 1; }
@media (max-width: 720px) {
  .cookie-banner {
    bottom: 12px; left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
  }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--delay-1, .reveal--delay-2, .reveal--delay-3, .reveal--delay-4 {
    opacity: 1; transform: none; transition: none;
  }
  .hero__bg img,
  .hero__bg video { transform: none !important; }
  .hero__scroll .dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .hamburger { display: inline-block; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .types-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process, .process--6 { grid-template-columns: repeat(2, 1fr); border: none; }
  .process__step { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .process__step:nth-last-child(-n+2):not(:last-child) { border-bottom: 1px solid var(--line); }
  .process__step:last-child { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col__left { position: static; }
  .solutions-grid { grid-template-columns: 1fr; gap: 16px; }
  .solution { aspect-ratio: 4 / 5; }
  .gallery { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-wrap__intro { max-width: none; }
  .contacts { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; min-height: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .contacts__row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .process__note { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  .types-grid, .types-grid--4, .types-grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 24px; }
  .form__fields { gap: 24px; }
  .form { gap: 28px; }
  .form__submit { gap: 20px; }
  .process, .process--6 { grid-template-columns: 1fr; }
  .header__btn { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; padding-top: calc(var(--header-h) + 80px); }
  .hero__actions { gap: 24px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head__right { max-width: 100%; }
  .filters { gap: 6px; }
  .filter { padding: 8px 16px; font-size: 10px; }
}
