:root {
  --bg: #fcfbf9;
  --bg-alt: #f5f1ea;
  --surface: #ffffff;
  --ink: #1a1713;
  --ink-soft: #3c352c;
  --muted: #736b5f;
  --accent: #a97b45;
  --accent-soft: #c49a63;
  --accent-dark: #85602f;
  --accent-tint: rgba(169, 123, 69, 0.09);
  --line: #e7e0d5;
  --line-soft: #f0eae0;
  --dark-1: #17120d;
  --dark-2: #2b2117;
  --dark-3: #3f3021;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --shadow-sm: 0 1px 2px rgba(37, 27, 15, 0.05), 0 4px 14px rgba(37, 27, 15, 0.04);
  --shadow: 0 2px 6px rgba(37, 27, 15, 0.05), 0 18px 48px rgba(37, 27, 15, 0.09);
  --shadow-lg: 0 4px 10px rgba(37, 27, 15, 0.06), 0 30px 70px rgba(37, 27, 15, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Noto Sans Georgian", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, #faf7f1 100%);
  background-attachment: fixed;
  line-height: 1.68;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
}

.icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}
/* brand marks fill their whole viewBox, so they need a smaller box
   to sit at the same optical weight as the outlined phone glyph */
.icon--brand {
  width: 0.88em;
  height: 0.88em;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; translate: none; }
.cards .reveal:nth-child(2), .features .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3), .features .reveal:nth-child(3) { transition-delay: 0.16s; }
.features .reveal:nth-child(4) { transition-delay: 0.24s; }
.gallery .reveal:nth-child(4n + 2) { transition-delay: 0.06s; }
.gallery .reveal:nth-child(4n + 3) { transition-delay: 0.12s; }
.gallery .reveal:nth-child(4n) { transition-delay: 0.18s; }
.footer__inner .reveal:nth-child(2) { transition-delay: 0.1s; }

/* Hero intro on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 249, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(252, 251, 249, 0.9);
  box-shadow: 0 1px 24px rgba(37, 27, 15, 0.05);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  transition: height 0.3s var(--ease);
}
.header.is-scrolled .header__inner { height: 66px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.logo__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(169, 123, 69, 0.26);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.logo:hover .logo__mark {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(169, 123, 69, 0.34);
}
.logo__text span { color: var(--accent); margin-left: 1px; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text span { color: var(--accent-soft); }

.nav { display: flex; gap: 34px; }
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1.5px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 14px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-tint);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--accent-dark);
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.phone-link:hover {
  border-color: var(--accent-soft);
  background: rgba(169, 123, 69, 0.15);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(169, 123, 69, 0.5), transparent 62%),
    radial-gradient(700px 500px at 8% 90%, rgba(94, 68, 38, 0.45), transparent 60%),
    linear-gradient(155deg, var(--dark-1) 10%, var(--dark-2) 55%, var(--dark-3) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(23, 18, 13, 0.55));
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-block: clamp(88px, 12vw, 128px);
}
.hero__eyebrow {
  animation: rise 0.8s var(--ease) both;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft));
}
.hero__title {
  animation: rise 0.8s var(--ease) 0.09s both;
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.042em;
  margin-bottom: 24px;
}
.hero__subtitle {
  animation: rise 0.8s var(--ease) 0.18s both;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero__actions {
  animation: rise 0.8s var(--ease) 0.27s both;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #fff;
  box-shadow: 0 2px 4px rgba(133, 96, 47, 0.28), 0 12px 28px rgba(169, 123, 69, 0.32);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 8px rgba(133, 96, 47, 0.3), 0 18px 40px rgba(169, 123, 69, 0.42);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 2px 4px rgba(12, 87, 45, 0.25), 0 12px 28px rgba(37, 211, 102, 0.3);
}
.btn--wa:hover { background: #1eb857; box-shadow: 0 4px 8px rgba(12, 87, 45, 0.28), 0 18px 40px rgba(37, 211, 102, 0.38); }
.btn--viber {
  background: #7360f2;
  color: #fff;
  box-shadow: 0 2px 4px rgba(48, 36, 118, 0.25), 0 12px 28px rgba(115, 96, 242, 0.3);
}
.btn--viber:hover { background: #614ee4; box-shadow: 0 4px 8px rgba(48, 36, 118, 0.28), 0 18px 40px rgba(115, 96, 242, 0.38); }
.btn--lg { padding: 17px 38px; font-size: 17px; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 9vw, 112px) 0;
}
/* paper grain */
.section:not(.section--contact)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
/* ambient warm light + soft hatch */
.section:not(.section--contact) {
  background-color: var(--bg);
  background-image:
    radial-gradient(820px 560px at 88% -10%, rgba(196, 154, 99, 0.3), transparent 62%),
    radial-gradient(720px 520px at -8% 105%, rgba(169, 123, 69, 0.2), transparent 64%),
    repeating-linear-gradient(
      -45deg,
      rgba(169, 123, 69, 0.035) 0 1px,
      transparent 1px 9px
    ),
    linear-gradient(180deg, #fffefc 0%, #f8f3ec 55%, #fefdfb 100%);
}
#gallery {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(169, 123, 69, 0.17) 1px, transparent 0),
    radial-gradient(760px 520px at 8% -14%, rgba(255, 252, 246, 0.85), transparent 58%),
    radial-gradient(820px 560px at 94% 110%, rgba(196, 154, 99, 0.28), transparent 60%),
    linear-gradient(180deg, #f1e9db, #ece2d1);
  background-size: 26px 26px, auto, auto, auto;
  box-shadow:
    inset 0 14px 26px -14px rgba(78, 55, 27, 0.16),
    inset 0 -14px 26px -14px rgba(78, 55, 27, 0.16);
}
#features {
  background-image:
    radial-gradient(760px 520px at 12% -12%, rgba(196, 154, 99, 0.26), transparent 62%),
    radial-gradient(820px 560px at 92% 104%, rgba(169, 123, 69, 0.2), transparent 62%),
    repeating-linear-gradient(
      -45deg,
      rgba(169, 123, 69, 0.035) 0 1px,
      transparent 1px 9px
    ),
    linear-gradient(180deg, #fefdfb 0%, #f8f3ec 55%, #fffefc 100%);
}
.section--alt {
  border-top: 1px solid #e2d7c4;
  border-bottom: 1px solid #e2d7c4;
}
/* highlight under each seam so the edge reads as a fold, not a merge */
.section--alt::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(44px, 5vw, 64px);
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__eyebrow::before,
.section__eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft));
}
.section__eyebrow::after { background: linear-gradient(90deg, var(--accent-soft), transparent); }
.section__title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), #fdfaf6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease), opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(169, 123, 69, 0.32);
}
.card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(150deg, #f7f0e6, #ecdcc6);
  border: 1px solid rgba(169, 123, 69, 0.16);
  color: var(--accent);
  font-size: 25px;
  line-height: 1;
  margin-bottom: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover .card__icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(169, 123, 69, 0.2);
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.card__text { color: var(--muted); font-size: 15.5px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
              opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(26, 23, 19, 0.08);
  pointer-events: none;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); filter: brightness(1.04); }
/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  padding: 26px 22px 26px 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), opacity 0.7s var(--ease),
              translate 0.7s var(--ease);
}
.feature:hover { border-top-color: var(--accent-soft); }
.feature__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 1;
  margin-bottom: 14px;
}
.feature__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.feature__text { color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.section--contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 50% -10%, rgba(196, 154, 99, 0.45), transparent 65%),
    linear-gradient(140deg, var(--dark-1), var(--dark-2) 55%, var(--accent-dark));
  color: #fff;
}
.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.contact { position: relative; text-align: center; max-width: 720px; }
.contact__text { margin-inline: auto; }
.contact__title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.042em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.contact__text {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 38px;
}
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #15110c; color: #b6ab9b; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 56px clamp(20px, 5vw, 32px);
}
.footer__brand p {
  margin-top: 12px;
  max-width: 420px;
  color: #857a6b;
  font-size: 15px;
  line-height: 1.6;
}
.footer__contact { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.footer__contact a:hover {
  color: #fff;
  border-color: rgba(196, 154, 99, 0.5);
  background: rgba(196, 154, 99, 0.1);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: #6f6455;
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 9, 6, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.lightbox.is-open { display: flex; animation: lb-fade 0.3s var(--ease); }
.lightbox:focus { outline: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  animation: lb-zoom 0.35s var(--ease);
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(196, 154, 99, 0.6);
}
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}

.lightbox img { transition: opacity 0.25s var(--ease); }
.lightbox img.is-loading { opacity: 0.35; }

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
/* Tablets / small laptops */
@media (max-width: 992px) {
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .header__inner { gap: 16px; }
  .nav { gap: 22px; }
  .nav__link { font-size: 15px; }
  .phone-link { padding: 8px 14px; font-size: 15.5px; }
}

/* Tablet portrait — collapse nav to hamburger */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(252, 251, 249, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 6px clamp(20px, 5vw, 32px) 14px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 15px 2px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav__link:last-child { border-bottom: none; }
  .nav__link::after { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .feature { padding-right: 0; }
}

/* Large phones */
@media (max-width: 600px) {
  .cards, .features { grid-template-columns: 1fr; }
  .hero { min-height: 540px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__contact { gap: 12px; }
  .lightbox { padding: 20px; }
  .lightbox__close { top: 12px; right: 14px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav svg { width: 22px; height: 22px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__counter { bottom: 16px; font-size: 13px; padding: 6px 15px; }
  .lightbox img { max-width: 100%; max-height: 76vh; }
  .cards .reveal, .features .reveal, .gallery .reveal { transition-delay: 0s; }
}

/* Small phones */
@media (max-width: 420px) {
  .gallery { gap: 10px; }
  .header__inner, .header.is-scrolled .header__inner { height: 64px; gap: 10px; }
  .header__cta { gap: 4px; }
  .logo { font-size: 19px; gap: 9px; }
  .logo__mark { width: 30px; height: 30px; border-radius: 9px; }
  .phone-link {
    font-size: 15px;
    padding: 6px 8px;
    border-color: transparent;
    background: transparent;
  }
  .card { padding: 30px 24px; }
}

/* Short landscape screens — keep hero usable */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__content { padding-block: 60px; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; translate: none; }
}
