/* Drošā māja serviss */

:root {
  --forest: #183A17;
  --forest-ink: #10280f;
  --gold: #F5D11F;
  --gold-soft: #f7dc55;
  --snow: #FCFCF7;
  --stone: #EEEEE9;
  --olive: #9F995B;
  --muted: #56604d;
  --line: rgba(24, 58, 23, .16);
  --line-light: rgba(252, 252, 247, .22);

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --r-input: 8px;
  --r-card: 16px;
  --r-lg: 32px;
  --r-pill: 1000px;

  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(72px, 10vw, 128px);
  --header-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--snow);
  color: var(--forest);
  font: 400 16px/1.55 var(--f-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
ul, ol, dl, dd { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.section:not(.section--dark) :focus-visible { outline-color: var(--forest); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--forest); padding: 10px 16px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 16px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); letter-spacing: .015em; font-weight: 400; }

/* ---------- Type ---------- */
.eyebrow {
  font: 500 12px/1.5 var(--f-body);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow--light { color: rgba(252, 252, 247, .72); }

.h2 {
  font: 300 clamp(34px, 4.4vw, 56px)/1.06 var(--f-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font: 300 clamp(26px, 2.6vw, 34px)/1.12 var(--f-display);
  letter-spacing: -0.015em;
}
.h4 {
  font: 400 22px/1.2 var(--f-display);
  letter-spacing: -0.015em;
}
.lead { font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; color: var(--muted); max-width: 580px; margin-top: 24px; }
.section--dark .lead { color: rgba(252, 252, 247, .78); }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border-radius: var(--r-pill); border: 1.5px solid var(--forest);
  background: var(--forest); color: var(--snow);
  font: 500 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--forest-ink); }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { background: transparent; border-color: var(--snow); color: var(--snow); }
.btn--ghost:hover { background: var(--snow); color: var(--forest); }
.btn--line { background: transparent; color: var(--forest); }
.btn--line:hover { background: var(--forest); color: var(--snow); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font: 500 12px/1.4 var(--f-body);
}
.pill--gold { background: var(--gold); color: var(--forest); }
.pill--line { border: 1.5px solid currentColor; }

.link {
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 500; text-decoration: none; padding: 6px 0;
  border-bottom: 1.5px solid currentColor; white-space: nowrap;
}
.link span[aria-hidden] { transition: transform .35s var(--ease); }
.link:hover span[aria-hidden] { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--snow); background: var(--forest);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: var(--snow); color: var(--forest); border-bottom-color: var(--line); }
.header__inner {
  height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 60px; height: auto; }
.brand__name { font: 400 17px/1 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand__name span { opacity: .6; }

.header__phone {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  margin-left: -8px; padding: 6px 0 6px 24px;
  border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  font: 400 18px/1 var(--f-mono); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: color .3s var(--ease);
}
.header__phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.header__phone:hover { color: var(--gold); }
.header.is-solid .header__phone:hover { color: var(--olive); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 14px; position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header .btn--call { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.header .btn--call:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.lang { display: inline-flex; border: 1.5px solid currentColor; border-radius: var(--r-pill); padding: 2px; }
.lang button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: var(--r-pill);
  font: 500 12px/1 var(--f-body); letter-spacing: .04em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] { background: var(--snow); color: var(--forest); }
.header.is-solid .lang button[aria-pressed="true"], .lang--footer button[aria-pressed="true"] { background: var(--forest); color: var(--snow); }

.burger { display: none; width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--forest); color: var(--snow);
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font: 300 32px/1.2 var(--f-display); letter-spacing: -0.02em; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line-light);
}
.mobile-menu__foot { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 14px; }
.mobile-menu__foot a { text-decoration: none; color: var(--gold); }
body.menu-open .header { background: var(--forest); color: var(--snow); border-bottom-color: transparent; }
body.menu-open .header .lang button[aria-pressed="true"] { background: var(--snow); color: var(--forest); }

/* ---------- Hero ---------- */
/* Two layers: full uncropped photo, text card on top of it */
.hero {
  display: grid; justify-content: center;
  /* photo is 3:2 - never taller than the screen, so it is always seen whole */
  grid-template-columns: minmax(0, min(100%, calc((100svh - var(--header-h)) * 1.5)));
  padding-top: var(--header-h); background: var(--forest); color: var(--snow);
}
.hero__media, .hero__panel { grid-area: 1 / 1; min-width: 0; }
.hero__media img {
  display: block; width: 100%; height: auto;
  animation: photo-in 1.6s var(--ease) both;
}
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
.hero__panel {
  position: relative; z-index: 1; align-self: end; justify-self: start;
  width: min(560px, 44%);
  margin: 0 0 clamp(24px, 3.5vw, 56px) clamp(24px, 4vw, 64px);
  padding: clamp(28px, 3vw, 44px);
  background: rgba(24, 58, 23, .8);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
}
.hero__title {
  font: 300 clamp(30px, min(3.1vw, 5.2svh), 50px)/1.04 var(--f-display);
  letter-spacing: -0.025em; margin: 6px 0 20px;
}
.hero__title .hero__line { display: block; }
.hero__lead { font-size: 17px; line-height: 1.5; color: rgba(252, 252, 247, .85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__badge { font-size: 13px; }

@media (min-width: 1101px) and (max-height: 820px) {
  .hero__panel { padding: 28px 32px; }
  .hero__lead { font-size: 15px; }
  .hero__cta { margin: 20px 0 16px; gap: 8px; }
  .hero__cta .btn { padding: 13px 18px; font-size: 14px; }
}

/* Photo too short to hold the card: card overlaps the photo's lower edge */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .hero__panel { grid-area: 2 / 1; align-self: start; justify-self: stretch; width: auto; margin: -96px var(--gutter) 0; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 24px; }
  .hero__panel { margin-top: -48px; padding: 24px 20px; border-radius: var(--r-card); }
  .hero__title { font-size: 34px; margin: 4px 0 16px; }
  .hero__lead { font-size: 16px; }
  .hero__cta { margin: 22px 0 18px; }
  .hero__cta .btn { flex: 1; padding: 15px 16px; }
}

.js .hero__line { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.js .hero__content > .hero__line:nth-child(1) { animation-delay: .15s; }
.js .hero__title .hero__line:nth-child(1) { animation-delay: .28s; }
.js .hero__title .hero__line:nth-child(2) { animation-delay: .4s; }
.js .hero__content > .hero__line:nth-child(3) { animation-delay: .55s; }
.js .hero__content > .hero__line:nth-child(4) { animation-delay: .68s; }
.js .hero__content > .hero__line:nth-child(5) { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--dark { background: var(--forest); color: var(--snow); }
.section--stone { background: var(--stone); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Plan (signature) ---------- */
.plan {
  background: var(--forest); color: var(--snow); border-radius: var(--r-lg);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px); margin-bottom: clamp(56px, 8vw, 96px);
}
.plan__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.plan__text > p:not(.pill) { color: rgba(252, 252, 247, .78); max-width: 440px; }
.plan__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.plan__tabs button {
  border: 1.5px solid var(--line-light); background: transparent; color: var(--snow);
  padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.plan__tabs button:hover { border-color: var(--snow); }
.plan__tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.plan__readout { display: flex; gap: 40px; margin-top: 8px; }
.plan__readout dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(252, 252, 247, .6); margin-bottom: 4px; }
.plan__readout dd { font-size: 26px; color: var(--gold); white-space: nowrap; }
.plan__note { font-size: 13px; color: rgba(252, 252, 247, .55) !important; }

.plan__drawing { display: flex; align-items: center; }
.plan__canvas {
  --u: calc(100% / 12);
  position: relative; width: 100%; aspect-ratio: 12 / 8;
  background-image:
    linear-gradient(rgba(252, 252, 247, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 252, 247, .07) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 8);
  border: 1px solid rgba(252, 252, 247, .1);
}
.plan__limit {
  position: absolute; left: calc(100% / 12); top: calc(100% / 8); width: calc(100% * 10 / 12); height: calc(100% * 6 / 8);
  border: 1.5px dashed rgba(252, 252, 247, .38);
}
.plan__limit span {
  position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: rgba(252, 252, 247, .5);
}
.plan__shape {
  --w: 10; --h: 6;
  position: absolute;
  width: calc(100% * var(--w) / 12); height: calc(100% * var(--h) / 8);
  left: calc(100% * (12 - var(--w)) / 24); top: calc(100% * (8 - var(--h)) / 16);
  border: 2px solid var(--gold); background: rgba(245, 209, 31, .12);
  transition: width .9s var(--ease), height .9s var(--ease), left .9s var(--ease), top .9s var(--ease);
}
.plan__ridge { position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed rgba(245, 209, 31, .6); }
.dim { position: absolute; color: var(--gold); font-size: 12px; line-height: 1; white-space: nowrap; display: flex; align-items: center; justify-content: center; }
.dim--w { left: 0; right: 0; top: -30px; height: 22px; border-bottom: 1px solid rgba(245, 209, 31, .7); }
.dim--h { top: 0; bottom: 0; left: -30px; width: 22px; border-left: 1px solid rgba(245, 209, 31, .7); writing-mode: vertical-rl; transform: rotate(180deg); }

/* Draw-in when revealed */
.js .plan .plan__shape { clip-path: inset(0 100% 100% 0); }
.js .plan.is-in .plan__shape { clip-path: inset(-40px -40px -40px -40px); transition: clip-path 1.4s var(--ease) .3s, width .9s var(--ease), height .9s var(--ease), left .9s var(--ease), top .9s var(--ease); }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(64px, 9vw, 112px); }
.format { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.format__img { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-card); margin-bottom: 8px; background: var(--stone); }
.format__img img, .service__img img, .apt__media img, .about__media img, .tile img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease);
}
.format:hover .format__img img, .service:hover .service__img img, .tile:hover img { transform: scale(1.04); }
.format .pill { font-size: 11px; padding: 5px 10px; }
.format p { color: var(--muted); font-size: 15px; }
.formats .format:nth-child(2) { --d: .08s; }
.formats .format:nth-child(3) { --d: .16s; }
.formats .format:nth-child(4) { --d: .24s; }

/* ---------- Process ---------- */
.process { display: grid; gap: 32px; justify-items: start; }
.process__track { width: 100%; height: 1.5px; background: var(--line); position: relative; margin-top: 8px; }
.process__fill { position: absolute; inset: 0; background: var(--forest); transform-origin: left; transform: scaleX(0); }
.process__steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; width: 100%; margin-top: -24px; }
.process__steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; position: relative; }
.process__steps li::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--snow); border: 1.5px solid var(--forest); transition: background .4s var(--ease);
}
.process__steps li.is-done::before { background: var(--gold); }
.process__steps .mono { font-size: 12px; color: var(--olive); }
.process__steps b { font: 400 17px/1.25 var(--f-display); letter-spacing: -0.01em; }
.process__steps p { font-size: 14px; color: var(--muted); }

/* ---------- Apartment ---------- */
.apt__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.apt__text { display: flex; flex-direction: column; align-items: flex-start; }
.price-tag { display: flex; flex-direction: column; gap: 6px; margin: 40px 0 36px; padding-left: 20px; border-left: 2px solid var(--gold); }
.price-tag__num { font-size: clamp(28px, 3vw, 38px); color: var(--gold); line-height: 1.1; }
.price-tag__label { font-size: 14px; color: rgba(252, 252, 247, .7); }
.apt__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 7 / 5.5; }
.apt__list {
  grid-column: 1 / -1; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  border-top: 1px solid var(--line-light); padding-top: 40px; margin-top: 24px;
}
.apt__list li { display: flex; flex-direction: column; gap: 10px; }
.apt__list li:nth-child(2) { --d: .08s; }
.apt__list li:nth-child(3) { --d: .16s; }
.apt__list li:nth-child(4) { --d: .24s; }
.apt__list svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.apt__list b { font: 400 18px/1.25 var(--f-display); }
.apt__list p { font-size: 14px; color: rgba(252, 252, 247, .7); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service { background: var(--stone); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.service:nth-child(2), .service:nth-child(4) { --d: .1s; }
.service__img { aspect-ratio: 16 / 9; overflow: hidden; }
.service__body { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 1; }
.service ul { list-style: none; display: grid; gap: 0; width: 100%; }
.service li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.service li:last-child { border-bottom: 1px solid var(--line); }
.swipe-hint {
  display: none; align-items: center; gap: 8px; margin: -16px 0 16px;
  font-size: 12px; color: var(--muted); letter-spacing: .02em;
}
.swipe-hint p { display: flex; align-items: center; gap: 8px; margin: 0 auto 0 0; }
.swipe-hint span { font-size: 16px; }
.swipe-hint em { font-style: normal; }
.swipe-hint__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--forest);
  background: transparent; color: var(--forest); font-size: 16px; line-height: 1;
  display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s;
}
.swipe-hint__btn:hover:not(:disabled) { background: var(--forest); color: var(--snow); }
.swipe-hint__btn:disabled { opacity: .3; cursor: default; }
.is-dragging { cursor: grabbing; scroll-snap-type: none !important; user-select: none; }
.is-dragging img { pointer-events: none; }
.private {
  margin-top: 16px; border: 1.5px solid var(--forest); border-radius: var(--r-card);
  padding: 24px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
}
.private svg { width: 32px; height: 32px; fill: none; stroke: var(--forest); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.private p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  border: 1.5px solid var(--line); background: transparent; padding: 9px 16px; border-radius: var(--r-pill); font-size: 14px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.filters button:hover { border-color: var(--forest); }
.filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--snow); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  border: 0; padding: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 12px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.tile.is-hidden { display: none; }
.tile.is-entering { opacity: 0; transform: translateY(16px); }
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); width: 100%; background: #dcdcd4; }
.tile:nth-child(3n + 1) .tile__img { aspect-ratio: 4 / 3; }
.tile__cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tile__cap b { font: 400 17px/1.25 var(--f-display); letter-spacing: -0.01em; }
.tile__cap .mono { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Prices ---------- */
.prices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--forest); }
.price { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line); }
.price + .price { padding-left: 24px; border-left: 1px solid var(--line); }
.price:nth-child(2) { --d: .06s; } .price:nth-child(3) { --d: .12s; } .price:nth-child(4) { --d: .18s; } .price:nth-child(5) { --d: .24s; }
.price__num { font: 300 clamp(24px, 2.3vw, 32px)/1.1 var(--f-display); letter-spacing: -0.02em; }
.price > span:last-child { font-size: 14px; color: var(--muted); }
.prices__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__quote {
  margin: 0 0 32px; font: 300 clamp(30px, 3.6vw, 48px)/1.1 var(--f-display); letter-spacing: -0.02em; text-wrap: balance;
}
.about__text p { color: var(--muted); max-width: 520px; font-size: 17px; }
.about__text p + p { margin-top: 12px; }
.about__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 6 / 5; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); }
.contact__list { display: grid; gap: 0; margin: 40px 0 32px; }
.contact__list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-light); }
.contact__list > div:last-child { border-bottom: 1px solid var(--line-light); }
.contact__list dt { font-size: 13px; color: rgba(252, 252, 247, .6); padding-top: 3px; }
.contact__list dd { font-size: 17px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--gold); }
.map { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; background: rgba(252, 252, 247, .06); }
.map img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.map:hover img { transform: scale(1.03); }
.map__credit { position: absolute; right: 8px; bottom: 6px; padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #333; background: rgba(255, 255, 255, .75); }

.form { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; align-self: end; }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field label { font-size: 13px; color: rgba(252, 252, 247, .75); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--snow);
  border: 1.5px solid rgba(252, 252, 247, .45); border-radius: var(--r-input);
  padding: 14px 16px; font: 400 16px/1.4 var(--f-body);
  transition: border-color .3s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FCFCF7' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { color: var(--forest); background: var(--snow); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(252, 252, 247, .4); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(252, 252, 247, .75); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: var(--gold); }
.form__error { color: var(--gold); font-size: 14px; }
.form__hint { font-size: 13px; color: rgba(252, 252, 247, .55); }

/* ---------- Footer ---------- */
.footer { background: var(--forest-ink); color: var(--snow); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 40px 56px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.footer__brand { display: flex; gap: 20px; align-items: center; }
.footer__brand img { flex-shrink: 0; }
.footer__brand b { display: block; font: 400 28px/1.1 var(--f-display); letter-spacing: -0.01em; }
.footer__brand p { font-size: 20px; line-height: 1.3; color: rgba(252, 252, 247, .6); margin-top: 8px; max-width: 300px; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__nav a, .footer__contact a { text-decoration: none; opacity: .8; transition: opacity .3s; }
.footer__nav a:hover, .footer__contact a:hover { opacity: 1; color: var(--gold); }
.footer__contact { font-family: var(--f-mono); font-size: 13px; }
.footer__contact span { opacity: .6; }
.footer__contact a { font-size: 20px; line-height: 1.3; letter-spacing: 0; white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(252, 252, 247, .55); }
.lang--footer { color: rgba(252, 252, 247, .7); }
.lang--footer button[aria-pressed="true"] { background: var(--snow); color: var(--forest); }

/* ---------- FAB ---------- */
.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--forest);
  align-items: center; justify-content: center;
  transform: translateY(90px); transition: transform .5s var(--ease);
}
.fab.is-visible { transform: none; }
.fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px;
  border: 0; background: rgba(16, 40, 15, .96); color: var(--snow);
  display: none; align-items: center; justify-content: center; gap: 16px;
}
.lightbox[open] { display: flex; animation: fade .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; gap: 14px; }
.lightbox img { max-height: 78vh; width: auto; border-radius: var(--r-card); margin: 0 auto; }
.lightbox figcaption { display: flex; gap: 16px; align-items: baseline; justify-content: center; }
.lightbox figcaption b { font: 300 22px/1.2 var(--f-display); }
.lightbox figcaption .mono { font-size: 13px; color: var(--gold); }
.lightbox__close, .lightbox__nav {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(252, 252, 247, .5); background: transparent; color: var(--snow); font-size: 20px;
  transition: background .3s, color .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--snow); color: var(--forest); }
.lightbox__close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; }
.lightbox__close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .header__actions { margin-left: auto; }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 960px) {
  .plan, .apt__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .plan__drawing { padding: 36px 0 8px 22px; }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .apt__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__track { display: none; }
  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; row-gap: 28px; }
  .process__steps li { border-top: 1.5px solid var(--line); }
  .footer__grid { grid-template-columns: auto minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .fab { display: flex; }
  .header .btn--call span { display: none; }
  .header .btn--call { padding: 0; width: 44px; height: 44px; }
}

@media (max-width: 700px) {
  .brand__name span { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 84px; }
  .brand__name { font-size: 15px; }
  .brand__name span { display: none; }
  .header .btn--call { display: none; }
  .service__body { padding: 22px; }
  .private { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .tile { gap: 8px; }
  .tile__img { border-radius: 12px; }
  .tile__cap { flex-direction: column; gap: 2px; }
  .tile__cap b { font-size: 15px; }
  .tile__cap .mono { font-size: 11px; }
  .prices { grid-template-columns: 1fr 1fr; }
  .price, .price + .price { padding: 20px 12px 22px 0; border-left: 0; }
  .price:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .price:last-child { grid-column: 1 / -1; }
  .contact__list > div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand b { font-size: 21px; }
  .footer__brand p { font-size: 14px; }
  .footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .lightbox { padding: 72px 8px 16px; flex-wrap: wrap; align-content: center; }
  .lightbox figure { order: -1; width: 100%; }
  .lightbox figcaption { flex-direction: column; gap: 4px; align-items: center; }
  .plan__readout { gap: 24px; }
  .plan__readout dd { font-size: 22px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .lead { font-size: 16px; margin-top: 16px; }

  /* Swipe rows */
  .formats, .services {
    display: grid; grid-template-columns: none; grid-auto-flow: column;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; gap: 12px;
  }
  .formats::-webkit-scrollbar, .services::-webkit-scrollbar { display: none; }
  .formats { grid-auto-columns: 76%; margin-bottom: 64px; }
  .services { grid-auto-columns: 86%; }
  .format, .service { scroll-snap-align: start; }
  .formats, .services { cursor: grab; touch-action: pan-x pan-y; }
  .format__img { aspect-ratio: 4 / 4.4; }
  .js .formats .reveal, .js .services .reveal { opacity: 1; transform: none; }
  .swipe-hint { display: flex; }

  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
}

@media (max-width: 480px) {
  .brand__name { display: none; }
  .header__inner { gap: 16px; }
  .header__phone { margin-left: 0; padding-left: 16px; font-size: 16px; }
}

@media (max-width: 420px) {
  .apt__list { grid-template-columns: 1fr; gap: 24px; }
  .process__steps { grid-template-columns: 1fr; }
  .lang button { padding: 6px 8px; }
  .header__inner { gap: 10px; }
  .header__phone { padding-left: 12px; gap: 6px; letter-spacing: 0; }
}

@media (max-width: 360px) {
  .header__phone { font-size: 13px; padding-left: 10px; }
  .header__phone svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero__line { opacity: 1; transform: none; }
  .js .plan .plan__shape { clip-path: none; }
}
