:root {
  --bg-dark: #080808;
  --bg-card: #111111;
  --bg-light: #f3efe6;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dark: #111111;
  --text-dark-muted: rgba(17, 17, 17, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(17, 17, 17, 0.12);
  --accent: #c8a96a;
  --accent-hover: #dfc488;
  --radius: 999px;
  --container: 1180px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg-dark); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-tag.light { color: var(--text-dark-muted); }

.section-title {
  margin: 10px 0 0;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title.light { color: var(--text-dark); }

.section-lead {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.section-lead.light { color: var(--text-dark-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    background 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    color 0.28s var(--ease-out);
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.btn-solid {
  background: var(--text);
  color: var(--bg-dark);
  border-color: var(--text);
}

.btn-solid:hover { background: #ececec; }

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.btn-accent:hover { background: var(--accent-hover); }

.btn-icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  --header-opacity: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, calc(var(--header-opacity) * 0.98)) 0%,
    rgba(8, 8, 8, calc(var(--header-opacity) * 0.88)) 55%,
    rgba(8, 8, 8, calc(var(--header-opacity) * 0.55)) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, calc(var(--header-opacity) * 0.1));
  box-shadow: 0 8px 28px rgba(0, 0, 0, calc(var(--header-opacity) * 0.38));
  opacity: 1;
  pointer-events: none;
}

.site-header.menu-open {
  --header-opacity: 1;
}

.site-header.menu-open::before {
  background: #080808;
}

.site-header.scrolled::before {
  background: rgba(8, 8, 8, 0.97);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.site-header:not(.scrolled):not(.menu-open) .nav a {
  color: rgba(255, 255, 255, calc(0.72 + var(--header-opacity) * 0.16));
}

.site-header:not(.menu-open) .phone {
  color: rgba(255, 255, 255, calc(0.78 + var(--header-opacity) * 0.14));
}

.nav a,
.phone,
.social-row a,
.burger,
.logo {
  transition: color 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  z-index: 101;
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav a {
  position: relative;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone {
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s;
}

.phone:hover { color: var(--accent); }

.social-row {
  display: flex;
  gap: 8px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s, background 0.2s;
}

.social-row a:hover {
  border-color: var(--accent);
  background: rgba(200, 169, 106, 0.12);
}

.social-row svg {
  width: 18px;
  height: 18px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: 0.3s var(--ease-out);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 22px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 72px;
  margin-top: 0;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  height: calc(100% + env(safe-area-inset-top, 0px));
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease-out), transform 8s linear;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  height: calc(100% + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.15) 0%, rgba(8, 8, 8, 0.5) 40%, rgba(8, 8, 8, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease-out) 0.35s forwards;
}

.hero p {
  margin: 22px 0 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 17px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.65s forwards;
}

.hero-dots {
  position: absolute;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 72px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 36px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.hero-dot.active {
  background: var(--accent);
  width: 48px;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Stats */
.stats {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 12px;
}

.stat-num {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  min-height: 1.15em;
  min-width: 2.5ch;
}

.stat-num.counting {
  color: var(--accent);
}

.stat-label {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Services */
.services { padding: 72px 0; }

.services-grid.is-collapsed {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-inline: auto;
}

.services-grid.is-collapsed .service-card:not(:first-child) {
  display: none;
}

.services-grid.is-collapsed .service-card {
  min-height: 300px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 320px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, transform 0.2s;
}

.section-more:hover {
  color: var(--accent-hover);
  transform: translateX(2px);
}

.section-more[aria-expanded="true"] {
  color: var(--text-muted);
}

.section-more[aria-expanded="true"]:hover {
  color: var(--text);
  transform: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 340px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.05) 0%, rgba(8, 8, 8, 0.92) 100%);
  transition: opacity 0.4s;
}

.service-card:hover::after {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.1) 0%, rgba(8, 8, 8, 0.82) 100%);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover img { transform: scale(1.06); }

.service-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 24px;
}

.service-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.service-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.35s var(--ease-out);
}

.service-card:hover .service-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* Process gallery */
.process {
  padding: 72px 0;
  background: #0a0a0a;
}

.process-grid.is-collapsed .process-card:nth-child(n+3) {
  display: none;
}

.process--compact .process-grid.is-collapsed {
  grid-template-columns: repeat(2, 1fr);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.process-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.process-card:hover img { transform: scale(1.04); }

.process-card figcaption {
  padding: 16px 18px 18px;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Works — до/после */
.works {
  padding: 72px 0;
  background: #0e0e0e;
}

.works-preview {
  max-width: 720px;
  margin-inline: auto;
}

.works-preview .ba-slider {
  aspect-ratio: 16 / 11;
}

.works-all {
  margin-top: 32px;
}

.works-all[hidden] {
  display: none !important;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  cursor: ew-resize;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider.is-dragging {
  cursor: grabbing;
}

.ba-slider.is-dragging .ba-handle-btn {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-after {
  z-index: 1;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: #fff;
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -2px;
}

.ba-label {
  position: absolute;
  top: 16px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; }

.ba-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  padding: 18px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.ba-hint {
  margin-top: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.ba-carousel-wrap {
  position: relative;
  margin-top: 40px;
}

.ba-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.ba-track-viewport {
  overflow: hidden;
  min-width: 0;
}

.ba-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s var(--ease-out);
}

.ba-track .ba-slider {
  flex: 0 0 calc(50% - 10px);
  min-width: calc(50% - 10px);
}

.ba-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: 0.25s var(--ease-out);
  flex-shrink: 0;
}

.ba-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: scale(1.05);
}

.ba-nav:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
}

@media (max-width: 960px) {
  .works-grid { grid-template-columns: 1fr; }
  .ba-track .ba-slider {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .ba-nav { width: 40px; height: 40px; }
}

/* Reviews */
.reviews {
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.review-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s, border-color 0.35s;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 106, 0.3);
}

.review-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}

.review-text {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.review-author {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author strong {
  display: block;
  font-size: 14px;
}

.review-author span {
  font-size: 12px;
  color: var(--text-muted);
}

/* FAQ */
.light-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.faq { padding: 96px 0; }

.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line-dark);
}

.faq-item { border-bottom: 1px solid var(--line-dark); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border: 0;
  background: transparent;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  transition: transform 0.4s var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-dark);
  transition: transform 0.4s var(--ease-out);
}

.faq-icon::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  margin-top: -1px;
}

.faq-icon::after {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  margin-left: -1px;
}

.faq-item.open .faq-icon::after {
  transform: scaleY(0);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-a {
  overflow: hidden;
  color: var(--text-dark-muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-a-inner {
  padding: 0 0 26px;
  max-width: 760px;
}

/* Contact */
.contact {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.75) 55%, rgba(8, 8, 8, 0.4) 100%),
    url("/assets/process/exterior-wash.png") center/cover;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s;
}

a.contact-info-item:hover { color: var(--accent); }

.contact-info-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--accent);
}

.field select option { background: #111; color: #fff; }

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-success {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: rgba(200, 169, 106, 0.15);
  border: 1px solid rgba(200, 169, 106, 0.35);
  color: var(--accent);
  font-size: 14px;
}

.form-success.show { display: block; }

/* Map */
.map-section {
  padding: 0 0 0;
}

.map-header {
  padding: 72px 0 28px;
}

.map-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map-btn-dark {
  color: var(--text-dark);
  border-color: rgba(17, 17, 17, 0.18);
}

.map-btn-dark:hover {
  border-color: rgba(17, 17, 17, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.map-btn-dark.btn-solid {
  background: var(--text-dark);
  color: var(--bg-light);
  border-color: var(--text-dark);
}

.map-btn-dark.btn-solid:hover {
  background: #2a2a2a;
}

.map-wrap {
  width: 100%;
  height: clamp(320px, 52vh, 520px);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  padding: 56px 0 32px;
  background: var(--bg-light);
  color: var(--text-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer-links {
  display: grid;
  gap: 12px;
  color: var(--text-dark-muted);
  font-size: 14px;
}

.footer-links a {
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-dark);
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: var(--text-dark-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* FAB */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 8px 28px rgba(200, 169, 106, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.fab a:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(200, 169, 106, 0.45);
}

.fab svg { width: 22px; height: 22px; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 960px) {
  :root { --header-h: 56px; }

  html {
    scroll-behavior: auto;
    min-height: -webkit-fill-available;
  }

  body { min-height: -webkit-fill-available; }

  .site-header {
    top: 0;
  }

  .header-inner {
    height: var(--header-h);
    min-height: var(--header-h);
    padding-top: 0;
  }

  .hero {
    min-height: 100svh;
    min-height: -webkit-fill-available;
    padding-top: calc(var(--header-h) + 28px);
  }

  .hero-slides,
  .hero-overlay {
    top: 0;
    height: 100%;
  }

  .header-inner { gap: 10px; }
  .logo { font-size: 19px; flex-shrink: 0; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .social-row a { width: 38px; height: 38px; }
  .burger { width: 40px; height: 40px; flex-shrink: 0; }

  .nav, .header-actions .phone, .header-actions .btn:not(.burger) { display: none; }
  .burger { display: flex; }
  .stats-grid, .services-grid, .process-grid, .works-grid, .reviews-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head-side {
    align-items: flex-start;
    max-width: none;
    width: 100%;
  }
  .section-more { font-size: 15px; }
  .process--compact .process-grid.is-collapsed {
    grid-template-columns: 1fr;
  }
  .process-grid.is-collapsed .process-card:nth-child(n+2) {
    display: none;
  }
  .services, .works, .process, .reviews, .faq { padding: 56px 0; }
  .stats { padding: 48px 0; }
  .map-header-row { flex-direction: column; align-items: flex-start; }
  .map-actions { width: 100%; }
  .map-actions .btn { flex: 1; min-width: 140px; }
  .hero-dots { right: 20px; bottom: 40px; }
  .fab { right: 16px; bottom: 16px; }
}

@media (display-mode: standalone) {
  .header-inner {
    padding-top: env(safe-area-inset-top, 0px);
    height: auto;
    min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }

  .hero {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 28px);
  }
}


/* ── Gift promo toast + modal ───────────────────────────────── */
.gift-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 16px 14px 14px;
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(200, 169, 106, 0.16), transparent 55%),
    rgba(17, 17, 17, 0.94);
  color: var(--text);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s;
}

.gift-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gift-toast:hover {
  border-color: rgba(200, 169, 106, 0.55);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(200, 169, 106, 0.18);
}

.gift-toast__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(200, 169, 106, 0.18);
  color: var(--accent);
  animation: gift-pulse 2.4s var(--ease-out) infinite;
}

.gift-toast__icon svg { width: 24px; height: 24px; }

.gift-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 8px;
}

.gift-toast__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.gift-toast__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.gift-toast__hint {
  font-size: 12px;
  color: var(--text-muted);
}

.gift-toast__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.gift-toast__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

@keyframes gift-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 169, 106, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(200, 169, 106, 0); }
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.gift-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gift-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gift-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 36px 28px 28px;
  border-radius: 24px;
  border: 1px solid rgba(200, 169, 106, 0.28);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(200, 169, 106, 0.22), transparent 55%),
    #111111;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
}

.gift-modal.is-open .gift-modal__panel {
  transform: translateY(0) scale(1);
}

.gift-modal__glow {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 169, 106, 0.35), transparent 70%);
  pointer-events: none;
}

.gift-modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.gift-modal__x:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.gift-modal__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.gift-modal__title {
  margin: 10px 0 0;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.gift-modal__lead {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.gift-prizes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.gift-prize {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.gift-prize__place {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gift-prize__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.gift-prize--1 {
  border-color: rgba(200, 169, 106, 0.45);
  background: linear-gradient(90deg, rgba(200, 169, 106, 0.16), rgba(255, 255, 255, 0.02));
}
.gift-prize--1 .gift-prize__place { color: var(--accent); }

.gift-prize--2 {
  border-color: rgba(192, 198, 210, 0.28);
  background: linear-gradient(90deg, rgba(192, 198, 210, 0.1), rgba(255, 255, 255, 0.02));
}
.gift-prize--2 .gift-prize__place { color: #c0c6d2; }

.gift-prize--3 {
  border-color: rgba(184, 128, 90, 0.32);
  background: linear-gradient(90deg, rgba(184, 128, 90, 0.12), rgba(255, 255, 255, 0.02));
}
.gift-prize--3 .gift-prize__place { color: #d4a078; }

.gift-modal__cta {
  width: 100%;
  margin-top: 24px;
  min-height: 52px;
  font-weight: 600;
}

.gift-modal__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .gift-toast {
    left: 16px;
    right: 16px;
    bottom: calc(16px + 52px + 10px + 52px + 12px);
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-toast,
  .gift-modal,
  .gift-modal__panel,
  .gift-toast__icon {
    animation: none !important;
    transition: none !important;
  }
}
