:root {
  --bg: #FAF8F5;
  --bg-soft: #F0EBE3;
  --bg-deep: #1A1A1A;
  --ink: #1A1A1A;
  --ink-2: #4A4744;
  --ink-3: #8C857D;
  --line: #E3DDD2;
  --line-strong: #C9C1B3;
  --accent: #2C5F8A;
  --accent-ink: #FFFFFF;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

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

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.02em; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.h1 {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}
.body-lg { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); }

/* ====================== NAV ====================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250,248,245,0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background 240ms ease;
  padding-top: env(safe-area-inset-top, 0);
}
html.in-tg .nav { padding-top: 0; }
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.brand--lg .brand__logo {
  font-size: 38px;
}
.brand__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.nav__phone {
  font-weight: 600;
  font-size: 16px;
  display: flex; align-items: center; gap: 10px;
}
.nav__phone__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.nav__phone__pulse::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (max-width: 640px) {
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250,248,245,0.96);
  }
  .nav__inner { height: 60px; }
  .brand { gap: 10px; }
  .brand__logo { font-size: 22px; }
  .brand__sub { display: none; }
  .nav__phone { font-size: 14px; gap: 8px; padding: 12px 0 12px 12px; margin: -12px 0 -12px -12px; }
  .nav__phone__pulse { width: 6px; height: 6px; }
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  min-height: min(880px, 96vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 120px 0 64px;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__bg .photo-slot { width: 100%; height: 100%; border-radius: 0; }
.hero__bg .photo-slot__caption,
.hero__bg .photo-slot__corner { display: none; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.15) 18%, rgba(26,26,26,0) 38%, rgba(26,26,26,0.45) 78%, rgba(26,26,26,0.78) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
}
.hero__eyebrow {
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before {
  content: ""; width: 14px; height: 1px; background: rgba(255,255,255,0.6); display: inline-block;
}
.hero h1.h1 {
  color: #fff;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}
.hero__sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 22px);
  color: rgba(255,255,255,0.86);
  max-width: 46ch;
  font-weight: 400;
}
.hero__cta {
  margin-top: 44px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero__meta {
  margin-top: 56px;
  display: flex; gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
}
.hero__meta b { color: #fff; font-weight: 500; }

/* ====================== HERO PHOTO ====================== */
/* Hero photo positioning — крути --hero-photo-x / --hero-photo-y, 0% = ліво/верх, 100% = право/низ */
.hero__bg { --hero-photo-x: 50%; --hero-photo-y: 0%; }
.hero__photo .photo-slot__img {
  object-position: var(--hero-photo-x) var(--hero-photo-y);
}

/* ====================== BUTTONS ====================== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: color-mix(in oklch, var(--accent), black 12%); }
.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-soft); }
.btn--block { width: 100%; justify-content: center; }
.btn .arrow {
  width: 20px; height: 12px; position: relative;
}
.btn .arrow::before, .btn .arrow::after {
  content: ""; position: absolute; background: currentColor;
}
.btn .arrow::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.btn .arrow::after {
  top: 50%; right: 0; width: 8px; height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg) translate(-1px,1px);
  background: transparent;
}

/* ====================== FACTS STRIP ====================== */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.fact {
  padding: 56px var(--gutter);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fact:last-child { border-right: none; }
.fact__num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.fact__label {
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-2);
}
.fact__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--line); padding: 36px var(--gutter); }
  .fact:last-child { border-bottom: none; }
}

/* ====================== SECTIONS ====================== */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
}
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: var(--bg); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 80px);
  margin-bottom: clamp(48px, 6vw, 88px);
  align-items: end;
}
.section__head p { margin: 0; }
@media (max-width: 820px) {
  .section__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ====================== ABOUT ====================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
}
.about__photo .photo-slot { aspect-ratio: 4 / 5; }
.about__text {
  display: flex; flex-direction: column; gap: 28px;
}
.about__text p {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}
.about__text p strong { color: var(--ink); font-weight: 600; }
.about__sig {
  margin-top: 12px;
  display: flex; gap: 16px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.about__sig__line { flex: 0 0 36px; height: 1px; background: var(--line-strong); }
@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo .photo-slot { aspect-ratio: 4 / 3; }
}

/* ====================== PROCESS ====================== */
.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 40px);
  padding-top: 32px;
}
.process__line {
  position: absolute;
  top: 56px;
  left: clamp(0px, 6vw, 0px);
  right: clamp(0px, 6vw, 0px);
  height: 1px;
  background: var(--line-strong);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 8px;
}
.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  background: var(--bg);
  padding-right: 12px;
}
.step__n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  background: var(--bg);
  padding-right: 14px;
}
.step__when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.step__title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}
.step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 24ch;
}
@media (max-width: 900px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process__line { display: none; }
}
@media (max-width: 540px) {
  .process__grid { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .step__head { margin-bottom: 8px; }
}

/* ====================== PRODUCTS ====================== */
.products__pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
}
.products__pair {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 32px);
}
.products__pair-label {
  text-align: center;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.4vw, 24px);
}
.product {
  display: flex; flex-direction: column;
  gap: 18px;
  cursor: pointer;
}
.product__photo { position: relative; overflow: hidden; }
.product__photo .photo-slot {
  aspect-ratio: 3 / 4;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.product:hover .product__photo .photo-slot { transform: scale(1.03); }
.product__idx {
  position: absolute; top: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.product__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.product__title .arrow-sm {
  width: 18px; height: 1px; background: currentColor;
  position: relative; transition: width 240ms ease;
  transform: translateY(-4px);
}
.product__title .arrow-sm::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.product:hover .arrow-sm { width: 28px; }
@media (max-width: 1000px) {
  .products__pairs { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 540px) {
  .products__grid { grid-template-columns: 1fr; }
  .product__photo .photo-slot { aspect-ratio: 4 / 3; }
}

/* ====================== COLOR PALETTE ====================== */
.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1vw, 16px);
}
.swatch {
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
}
.swatch__chip {
  aspect-ratio: 1 / 1.15;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}
.swatch__chip::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 30%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.swatch:hover .swatch__chip { transform: translateY(-4px); }

/* === Textured swatches (CSS-generated wood grain / surface) === */
.swatch__chip--oak-gold {
  background:
    repeating-linear-gradient(176deg,
      rgba(0,0,0,0.07) 0px, transparent 2px,
      rgba(0,0,0,0.12) 3px, transparent 5px,
      rgba(255,255,255,0.05) 8px, transparent 12px),
    radial-gradient(ellipse 70% 25% at 35% 35%, rgba(0,0,0,0.14), transparent 70%),
    radial-gradient(ellipse 60% 20% at 70% 75%, rgba(0,0,0,0.1), transparent 70%),
    linear-gradient(180deg, #C18647 0%, #9F6A38 100%);
}
.swatch__chip--oak-dark {
  background:
    repeating-linear-gradient(176deg,
      rgba(0,0,0,0.22) 0px, transparent 2px,
      rgba(0,0,0,0.32) 3px, transparent 5px,
      rgba(120,80,40,0.06) 8px, transparent 12px),
    radial-gradient(ellipse 60% 25% at 40% 30%, rgba(0,0,0,0.22), transparent 70%),
    linear-gradient(180deg, #3A2515 0%, #1A0F08 100%);
}
.swatch__chip--walnut {
  background:
    repeating-linear-gradient(176deg,
      rgba(0,0,0,0.12) 0px, transparent 2px,
      rgba(0,0,0,0.18) 3px, transparent 5px,
      rgba(255,200,150,0.05) 8px, transparent 12px),
    radial-gradient(ellipse 70% 25% at 30% 40%, rgba(0,0,0,0.16), transparent 70%),
    linear-gradient(180deg, #6E4530 0%, #432818 100%);
}
.swatch__chip--anthracite-str {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='2.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.32 0'/></filter><rect width='100' height='100' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #404549, #2C3236);
  background-size: 90px 90px, cover;
}
.swatch__info {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px;
  gap: 8px;
}
.swatch__name { font-weight: 500; }
.swatch__code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 540px) { .swatches { grid-template-columns: repeat(3, 1fr); } }

.section__foot {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
  color: var(--ink-2);
}

/* ====================== CALLBACK FORM ====================== */
.callback {
  background: var(--bg-deep);
  color: var(--bg);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.callback.is-light {
  background: var(--bg-soft);
  color: var(--ink);
}
.callback__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.callback__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.7;
  margin-bottom: 28px;
}
.callback__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 25%, transparent);
}
.callback h2 {
  margin-bottom: 24px;
  color: inherit;
}
.callback__sub {
  font-size: clamp(16px, 1.3vw, 18px);
  opacity: 0.75;
  margin-bottom: 48px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form .field--full { grid-column: 1 / -1; }
.field {
  position: relative;
  text-align: left;
}
.field input {
  width: 100%;
  height: 60px;
  padding: 22px 20px 8px;
  background: transparent;
  border: 1px solid;
  border-color: rgba(255,255,255,0.25);
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  border-radius: 4px;
  transition: border-color 200ms ease;
  outline: none;
}
.callback.is-light .field input { border-color: var(--line-strong); }
.field input:focus { border-color: var(--accent); }
.field input.is-error { border-color: #D8675A; }
.field label {
  position: absolute;
  top: 50%;
  left: 21px;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.6;
  pointer-events: none;
  transition: all 180ms ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 14px;
  transform: translateY(0);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  font-family: 'JetBrains Mono', monospace;
}
.field__error {
  position: absolute;
  bottom: -18px; left: 4px;
  font-size: 12px;
  color: #E58475;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.form__submit { grid-column: 1 / -1; margin-top: 12px; }
.form__legal {
  grid-column: 1 / -1;
  font-size: 12px;
  text-align: center;
  opacity: 0.55;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
}

.callback__success {
  text-align: center;
  padding: 28px 0;
  animation: fadeUp 500ms cubic-bezier(.2,.7,.2,1);
}
.callback__success__check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 28px;
  display: grid; place-items: center;
  position: relative;
}
.callback__success__check::after {
  content: "";
  width: 22px; height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(2px,-2px);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================== CONTACTS / FOOTER ====================== */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 96px) 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 3vw, 64px);
  align-items: start;
}
.footer__brand {
  display: flex; flex-direction: column; gap: 14px;
}
.footer__brand .brand__sub { display: none; }
.footer__brand p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 26ch;
  line-height: 1.5;
}
.footer__col h4 {
  margin: 0 0 16px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.footer__col .item {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.45;
}
.footer__col .item--big {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.footer__map {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.footer__map iframe { width: 100%; height: 100%; border: 0; display: block; max-width: 100%; }
.footer__grid > * { min-width: 0; }
.footer__bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__map { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ====================== PHOTO SLOT (placeholder) ====================== */
.photo-slot {
  position: relative;
  width: 100%;
  height: 100%;
  background: #E5DFD3;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.photo-slot__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.05) 0px,
    rgba(0,0,0,0.05) 1px,
    transparent 1px,
    transparent 14px
  );
}
.photo-slot__caption {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.45);
  padding: 6px 14px;
  border: 1px solid rgba(26,26,26,0.15);
  background: rgba(245,241,233,0.85);
  border-radius: 2px;
  text-align: center;
  max-width: 80%;
}
.photo-slot__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0%; /* кроп завжди знизу: верх кадру не зрізаємо */
  display: block;
}
/* лёгкое затемнение фото в секції About — крути 0.80–0.95 */
.about__photo .photo-slot__img { filter: brightness(0.8); }
.photo-slot--dark { background: #2a2a2a; }
.photo-slot--dark .photo-slot__stripes {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 14px
  );
}
.photo-slot--dark .photo-slot__caption {
  color: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.3);
}
.photo-slot__corner {
  position: absolute;
  width: 16px; height: 16px;
}
.photo-slot__corner::before, .photo-slot__corner::after {
  content: ""; position: absolute; background: rgba(26,26,26,0.25);
}
.photo-slot--dark .photo-slot__corner::before,
.photo-slot--dark .photo-slot__corner::after {
  background: rgba(255,255,255,0.3);
}
.photo-slot__corner.tl { top: 12px; left: 12px; }
.photo-slot__corner.tr { top: 12px; right: 12px; }
.photo-slot__corner.bl { bottom: 12px; left: 12px; }
.photo-slot__corner.br { bottom: 12px; right: 12px; }
.photo-slot__corner.tl::before, .photo-slot__corner.tr::before,
.photo-slot__corner.bl::before, .photo-slot__corner.br::before {
  width: 16px; height: 1px; top: 0; left: 0;
}
.photo-slot__corner.tl::after, .photo-slot__corner.tr::after,
.photo-slot__corner.bl::after, .photo-slot__corner.br::after {
  width: 1px; height: 16px; top: 0; left: 0;
}
.photo-slot__corner.tr::before { right: 0; left: auto; }
.photo-slot__corner.tr::after { right: 0; left: auto; }
.photo-slot__corner.bl::before { bottom: 0; top: auto; }
.photo-slot__corner.bl::after { bottom: 0; top: auto; }
.photo-slot__corner.br::before { right: 0; bottom: 0; left: auto; top: auto; }
.photo-slot__corner.br::after { right: 0; bottom: 0; left: auto; top: auto; }

/* ====================== UTILITIES ====================== */
.reveal { opacity: 1; transform: none; }
.reveal.is-in { opacity: 1; transform: none; }

/* ====================== MOBILE POLISH (≤640px) ====================== */
@media (max-width: 640px) {
  body { font-size: 16px; }

  /* HERO — denser, full-width CTAs */
  .hero { padding: 96px 0 44px; min-height: 88vh; }
  .hero__eyebrow { margin-bottom: 22px; }
  .hero__sub { margin-top: 20px; }
  .hero__cta { margin-top: 32px; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn { width: 100%; justify-content: center; height: 54px; }
  .hero__meta {
    margin-top: 40px;
    padding-top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero__meta span { display: flex; gap: 6px; align-items: baseline; }

  /* SECTION — tighter rhythm */
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; gap: 16px; }

  /* ABOUT — show portrait fully on mobile */
  .about__grid { gap: 28px; }
  .about__photo .photo-slot { aspect-ratio: 3 / 4; }
  .about__text { gap: 20px; }
  .about__text p { font-size: 16px; }

  /* PROCESS — vertical timeline */
  .process__grid { padding-top: 8px; gap: 0; }
  .step {
    padding: 22px 0 22px 26px;
    border-bottom: none;
    border-left: 1px solid var(--line-strong);
    position: relative;
  }
  .step::before {
    content: "";
    position: absolute;
    left: -5px; top: 30px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
  }
  .step:first-child { padding-top: 8px; }
  .step:first-child::before { top: 16px; }
  .step:last-child { padding-bottom: 0; }
  .step__head { background: transparent; padding-right: 0; margin-bottom: 4px; }
  .step__n { background: transparent; padding-right: 0; }
  .step__text { max-width: none; }

  /* PRODUCTS — tighter photo */
  .product { gap: 12px; }
  .products__grid { gap: 28px; }

  /* PALETTE — stack name/code vertically so they don't collide */
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .swatch__info { flex-direction: column; align-items: flex-start; gap: 2px; }
  .swatch__name { font-size: 14px; }
  .swatch__code { font-size: 10px; }
  .swatch__chip { aspect-ratio: 1 / 1; }

  /* SECTION FOOT — stack the trailing CTA below the note */
  .section__foot { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; }
  .section__foot .btn { width: 100%; justify-content: center; }

  /* CALLBACK — single column inputs, comfortable spacing */
  .callback { padding: 64px 0; }
  .callback__sub { margin-bottom: 32px; }
  .form { grid-template-columns: 1fr; gap: 14px; }
  .form__submit { height: 56px; }

  /* FOOTER — tighter stack; drop aspect-ratio so width stays within track */
  .footer__map { aspect-ratio: auto; height: 240px; }
  .footer__col .item--big { padding: 8px 0; margin-bottom: 0; }
}

/* Smaller phones (iPhone SE, 375 and below) */
@media (max-width: 380px) {
  .brand__logo { font-size: 18px; }
  .nav__phone { font-size: 13px; }
  .h1 { font-size: 38px; }
}
