:root {
  --bg: #e7e9e4;
  --bg-soft: #dde1da;
  --paper: #f3f4f0;
  --ink: #121411;
  --ink-soft: #3d423c;
  --muted: #6a7068;
  --line: rgba(18, 20, 17, 0.12);
  --accent: #2f6b4f;
  --accent-deep: #214c38;
  --accent-warm: #c96a2b;
  --hero-text: #f4f5f1;
  --shadow-soft: 0 18px 50px rgba(18, 20, 17, 0.08);
  --radius: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 107, 79, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(201, 106, 43, 0.07), transparent 55%),
    linear-gradient(180deg, #eceee9 0%, var(--bg) 40%, #e2e5df 100%);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(231, 233, 228, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header.is-hero .logo-text,
.header.is-hero .nav a {
  color: var(--hero-text);
}

.header.is-hero .menu-toggle span {
  background: #fff;
}

.header.is-hero .logo-mark {
  /* keep brand green on dark hero — invert turned the mark into a blank white square */
  filter: none;
}

.header.is-menu-open {
  background: transparent;
  box-shadow: none;
}

.header.is-menu-open .logo-text {
  color: var(--ink);
}

.header.is-menu-open .menu-toggle span {
  background: var(--ink);
}

.header.is-hero .header-cta {
  background: transparent;
  color: var(--hero-text);
  border-color: rgba(244, 245, 241, 0.45);
}

.header.is-hero .header-cta:hover {
  background: var(--hero-text);
  color: var(--ink);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
  z-index: 2;
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--accent);
  transition: transform 0.45s var(--ease), filter 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s ease, background 0.25s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(231, 233, 228, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.35rem;
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  overflow-y: auto;
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  min-width: min(240px, 100%);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--accent);
  color: #f7faf7;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--hero-text);
  border-color: rgba(244, 245, 241, 0.4);
}

.btn-ghost:hover {
  background: rgba(244, 245, 241, 0.12);
  border-color: rgba(244, 245, 241, 0.7);
}

.text-link {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.25s ease;
}

.text-link:hover {
  opacity: 0.7;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--hero-text);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 10, 0.42) 0%, rgba(10, 12, 10, 0.22) 38%, rgba(10, 12, 10, 0.78) 100%),
    linear-gradient(105deg, rgba(10, 12, 10, 0.55) 0%, rgba(10, 12, 10, 0.12) 52%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto 18vh;
  padding-top: calc(var(--header-h) + 2rem);
}

.brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.2vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.15s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 1rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.3s forwards;
}

.hero-lead {
  max-width: 34ch;
  font-size: 1.05rem;
  color: rgba(244, 245, 241, 0.82);
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.45s forwards;
}

.hero-geo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244, 245, 241, 0.92);
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.52s forwards;
}

.hero-geo::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-warm);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.65s forwards;
}

.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: rgba(244, 245, 241, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.9s forwards;
}

.hero-scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(244, 245, 241, 0.7), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: #fff;
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* Sections shared */
.section-head {
  width: min(760px, 100%);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}

.services,
.process,
.about,
.contacts,
.gallery,
.geo-strip {
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.geo-strip {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.geo-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.geo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.geo-strip-inner > p:first-of-type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: -0.02em;
}

.geo-line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--line);
}

.geo-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Services */
.services {
  position: relative;
}

.service-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 20, 17, 0.28);
}

.chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  border-bottom: 1px solid var(--line);
  transition: opacity 0.35s ease, max-height 0.35s ease;
}

.service-item.is-hidden {
  display: none;
}

.service-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.15rem;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 2ch;
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.25s ease, transform 0.35s var(--ease);
}

.service-toggle:hover .service-name {
  color: var(--accent-deep);
  transform: translateX(4px);
}

.service-plus {
  width: 18px;
  height: 18px;
  position: relative;
}

.service-plus::before,
.service-plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.service-plus::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.service-plus::after {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.service-item.is-open .service-plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.service-item.is-open .service-panel {
  grid-template-rows: 1fr;
}

.service-panel > p {
  overflow: hidden;
  min-height: 0;
  color: var(--muted);
  max-width: 58ch;
  padding: 0 0 0 calc(2ch + 1rem);
  margin: 0;
}

.service-item.is-open .service-panel > p {
  padding-bottom: 1.25rem;
}

/* Gallery */
.gallery {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 25%),
    rgba(243, 244, 240, 0.4);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  min-height: 260px;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #1a1c19;
  text-align: left;
  color: #f4f5f1;
}

.gallery-item-tall {
  min-height: 360px;
}

.gallery-item-wide {
  grid-column: span 8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease), opacity 0.35s ease;
  opacity: 0.92;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 10, 0.78) 100%);
  pointer-events: none;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.1);
  opacity: 1;
}

.gallery-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
}

.gallery-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 245, 241, 0.72);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gallery-count {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4f5f1;
  background: rgba(10, 12, 10, 0.55);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-empty {
  margin-top: 1.5rem;
  color: var(--muted);
  font-weight: 500;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 12, 10, 0.92);
  display: grid;
  place-items: center;
  padding: 4.5rem 4.5rem 4rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(1100px, 100%);
  max-height: min(74vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.lightbox-footer {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: rgba(244, 245, 241, 0.85);
  font-weight: 600;
}

.lightbox-caption,
.lightbox-counter {
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  border: 1px solid rgba(244, 245, 241, 0.35);
  background: transparent;
  color: #f4f5f1;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(244, 245, 241, 0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 245, 241, 0.35);
  background: rgba(10, 12, 10, 0.35);
  color: #f4f5f1;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  z-index: 2;
}

.lightbox-nav:hover {
  background: rgba(244, 245, 241, 0.12);
  border-color: rgba(244, 245, 241, 0.7);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Process */
.process {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 30%),
    rgba(243, 244, 240, 0.55);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0.4rem;
  right: 0.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.process-step {
  position: relative;
}

.process-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
  background: var(--bg);
  padding-right: 0.6rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  min-height: 70vh;
}

.about-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}

.about:hover .about-visual img {
  transform: scale(1.08);
}

.about-visual-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 20, 17, 0.25), transparent 45%);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0;
}

.about-copy > p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 42ch;
}

.about-points {
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  position: relative;
  padding-left: 1.35rem;
  font-weight: 600;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent-warm);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Contacts */
.contacts {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.contacts-panel {
  background:
    linear-gradient(145deg, rgba(47, 107, 79, 0.08), transparent 40%),
    var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.contacts-intro {
  margin-bottom: 2rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

a.contact-value:hover {
  color: var(--accent);
}

.contact-value.static {
  margin: 0;
}

.contact-phones {
  display: grid;
  gap: 0.35rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.2rem;
}

.lead-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.lead-form label {
  display: grid;
  gap: 0.4rem;
}

.lead-form label span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.lead-form .full {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(47, 107, 79, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.12);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  max-width: min(420px, calc(100% - 2rem));
  text-align: center;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes scrollPulse {
  0% {
    top: -40%;
  }
  100% {
    top: 120%;
  }
}

@media (max-width: 980px) {
  .process-track {
    grid-template-columns: 1fr 1fr;
  }

  .process-track::before {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 280px;
  }

  .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item,
  .gallery-item-wide {
    grid-column: span 6;
  }

  .nav {
    gap: 1.1rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .header {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .logo-mark {
    width: 24px;
    height: 24px;
  }

  .hero-content {
    width: min(920px, calc(100% - 2rem));
    margin-bottom: 12vh;
  }

  .brand-signal {
    font-size: clamp(1.75rem, 9.5vw, 2.8rem);
  }

  .hero h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    max-width: none;
  }

  .hero-lead,
  .hero-geo {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .services,
  .process,
  .about,
  .contacts,
  .gallery {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .geo-strip {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .geo-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .geo-line {
    display: none;
  }

  .service-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-right: -1rem;
    padding-right: 1rem;
  }

  .service-filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .service-toggle {
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    padding: 1rem 0;
    align-items: start;
  }

  .service-name {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .service-index {
    padding-top: 0.15rem;
  }

  .process-track,
  .contacts-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .contacts-panel {
    padding: 1.25rem;
  }

  .contact-value {
    font-size: 1.05rem;
    word-break: break-word;
  }

  .gallery-item,
  .gallery-item-wide,
  .gallery-item-tall {
    grid-column: span 12;
    min-height: 220px;
  }

  .gallery-grid {
    gap: 0.55rem;
  }

  .lightbox {
    padding: 4.5rem 1rem 4rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    transform: translateY(20px);
    width: auto;
  }

  .toast.is-show {
    transform: translateY(0);
  }

  .service-panel > p,
  .service-item.is-open .service-panel > p {
    padding-left: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem 1.75rem;
  }

  .about-points li {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .brand-signal {
    font-size: clamp(1.55rem, 11vw, 2.2rem);
  }

  .mobile-nav a {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-img {
    transform: none;
  }
}
