:root {
  --bg: #ffffff;
  --text: #20201e;
  --muted: #706f69;
  --line: #e8e7e3;
  --soft: #f7f7f5;
  --green: #1d9b54;
  --green-dark: #168046;
  --dark: #1c1c1a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a { -webkit-tap-highlight-color: transparent; }

main { padding-bottom: 170px; }

.page-shell {
  width: min(100% - 32px, 1056px);
  margin: 0 auto;
  padding: 20px 0 52px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}

.topline-location {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.topline-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.language-switch button {
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 5px rgb(28 25 23 / 10%);
}

.language-switch button:focus-visible {
  outline: 3px solid rgb(29 155 84 / 18%);
  outline-offset: 2px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--dark);
  box-shadow: 0 20px 64px rgb(20 20 18 / 14%);
  outline: none;
}

.carousel:focus-visible {
  box-shadow: 0 0 0 4px rgb(29 155 84 / 20%), 0 20px 64px rgb(20 20 18 / 14%);
}

.carousel-track {
  display: flex;
  transition: transform 420ms cubic-bezier(.22, .75, .24, 1);
}

.slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #292927;
  isolation: isolate;
}

.photo-backdrop {
  position: absolute;
  z-index: -1;
  inset: -38px;
  background-image: var(--photo);
  background-position: center;
  background-size: cover;
  filter: blur(30px) brightness(.58) saturate(.85);
  transform: scale(1.08);
}

.slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to top, rgb(0 0 0 / 38%), transparent);
  pointer-events: none;
}

.slide img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.photo-count {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgb(0 0 0 / 58%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.carousel-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--dark);
  box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
  font-size: 20px;
  cursor: pointer;
}

.carousel-button:hover { background: white; }
.previous { left: 20px; }
.next { right: 20px; }

.open-fullscreen {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 56%);
  color: white;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.open-fullscreen svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.open-fullscreen:hover { background: rgb(0 0 0 / 72%); }

.content {
  width: min(100%, 800px);
  margin: 0 auto;
}

.hero-copy { padding: 48px 0 42px; }

.location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.location svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow,
.section-kicker {
  margin: 0 0 11px;
  color: #087443;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.title-copy { min-width: 0; }

h1,
h2,
h3,
p { text-wrap: pretty; }

h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(40px, 6vw, 62px);
  line-height: .99;
  letter-spacing: -.052em;
}

.vin {
  width: fit-content;
  margin: 14px 0 0;
  color: #95938c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .09em;
  user-select: none;
  -webkit-user-select: none;
}

.price {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 760;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.specs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.spec {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.spec svg {
  width: 22px;
  height: 22px;
  margin: 0 0 auto;
  fill: none;
  stroke: #147848;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spec span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.spec strong {
  font-size: 14px;
  line-height: 1.25;
}

.section {
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -.035em;
}

.body-copy {
  max-width: 730px;
  margin-top: 24px;
  color: #5e5c56;
  font-size: 17px;
  line-height: 1.78;
}

.body-copy p { margin: 0 0 20px; }
.body-copy p:last-child { margin-bottom: 0; }

.service-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.service-notes article {
  padding: 22px;
  border-left: 3px solid var(--green);
  border-radius: 4px 16px 16px 4px;
  background: #f4faf6;
}

.service-notes span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.service-notes strong {
  font-size: 15px;
  line-height: 1.35;
}

.section-intro {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #cfe9da;
  border-radius: 20px;
  background: #f3faf6;
}

.feature-highlight-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #dff4e7;
  color: #0b7542;
}

.feature-highlight-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-highlight strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}

.feature-highlight p {
  margin: 8px 0 0;
  color: #5f6c64;
  font-size: 14px;
  line-height: 1.6;
}

.feature-group { margin-top: 42px; }

.feature-group h3 {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: -.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.feature-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-card {
  margin: 62px 0 38px;
  padding: 38px;
  border-radius: 28px;
  background: var(--dark);
  color: white;
}

.contact-check {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 50%;
  background: var(--green);
  font-weight: 800;
}

.contact-card p {
  max-width: 610px;
  margin: 14px 0 0;
  color: #c9c7c1;
  line-height: 1.7;
}

.sticky-contact {
  position: fixed;
  z-index: 10;
  inset: auto 0 0;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(232 231 227 / 84%);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 -10px 35px rgb(28 25 23 / 7%);
  backdrop-filter: blur(16px);
}

.contact-panel {
  width: min(100%, 800px);
  margin: 0 auto;
}

.contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 56px;
  gap: 10px;
}

.contact-button {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  color: white;
  font-weight: 750;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.whatsapp-button {
  background: #25d366;
  box-shadow: 0 8px 24px rgb(37 211 102 / 22%);
}

.telegram-button { background: #229ed9; }
.viber-button { background: #7360f2; }

.contact-button svg,
.copy-phone svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.telegram-button svg { fill: currentColor; stroke: none; }

.contact-button:hover { filter: brightness(.94); }
.contact-button:active { transform: scale(.98); }
.contact-button:focus-visible,
.phone-link:focus-visible,
.phone-control:focus-visible { outline: 3px solid rgb(32 32 30 / 18%); outline-offset: 2px; }

.contact-button.is-unconfigured { cursor: default; }

.phone-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 4px 0;
  font-size: 13px;
}

.phone-label { color: var(--muted); }

.phone-link {
  width: max-content;
  max-width: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.phone-link[href]:hover { text-decoration: underline; }
.phone-link.is-unconfigured { color: #a09f99; }
.phone-link.is-masked { color: var(--text); }

.phone-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 9px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.phone-control[hidden] { display: none; }
.copy-phone svg { width: 16px; height: 16px; }
.copy-phone:disabled { color: #aaa8a2; cursor: default; }

.copy-status {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--dark);
  color: white;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.copy-status.is-visible { opacity: 1; transform: translateY(0); }

body.lightbox-open { overflow: hidden; }

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111;
  color: white;
  touch-action: none;
}

.lightbox-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #111;
}

.lightbox-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}

.lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
  transform-origin: center;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(20 20 20 / 62%);
  color: white;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox-close {
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  font-weight: 250;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  font-size: 20px;
}

.lightbox-previous { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-count,
.zoom-hint {
  position: absolute;
  z-index: 3;
  bottom: max(20px, env(safe-area-inset-bottom));
  padding: 7px 11px;
  border-radius: 999px;
  background: rgb(20 20 20 / 62%);
  color: white;
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(10px);
}

.lightbox-count { right: 18px; }

.zoom-hint {
  left: 50%;
  display: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .specs { grid-template-columns: repeat(3, 1fr); }
  .spec:nth-child(4), .spec:nth-child(5) { min-height: 112px; }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1056px);
    padding-top: 14px;
  }

  .carousel,
  .contact-card { border-radius: 22px; }

  .slide { aspect-ratio: 4 / 3; }

  .carousel-button { width: 40px; height: 40px; }
  .previous { left: 12px; }
  .next { right: 12px; }
  .open-fullscreen { top: 12px; right: 12px; width: 40px; height: 40px; }
  .photo-count { right: 14px; bottom: 14px; }

  .hero-copy { padding: 36px 0 34px; }
  .location { margin-bottom: 18px; }

  .title-row {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }

  .price { font-size: 34px; }

  .specs { grid-template-columns: 1fr 1fr; }
  .spec, .spec:nth-child(4), .spec:nth-child(5) { min-height: 118px; padding: 16px; }

  .section { padding: 48px 0; }
  .body-copy { font-size: 16px; line-height: 1.72; }
  .service-notes, .feature-grid { grid-template-columns: 1fr; }
  .feature-highlight { grid-template-columns: 1fr; }
  .feature-group { margin-top: 36px; }

  .contact-card { margin-top: 48px; padding: 28px; }

  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-previous { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-count { right: 12px; }
  .zoom-hint { display: block; }
}

@media (max-width: 390px) {
  .topline-location { display: none; }
  .specs { grid-template-columns: 1fr; }
  .spec, .spec:nth-child(4), .spec:nth-child(5) { min-height: 106px; }
  .copy-phone span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track, .contact-button, .copy-status { transition: none; }
}
