:root {
  --bg: #0c0f14;
  --bg-2: #121820;
  --bg-card: #181f2a;
  --bg-card-hover: #1e2736;
  --text: #eef1f5;
  --text-soft: #a8b0bd;
  --text-muted: #6d7788;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #e8a54b;
  --accent-2: #f0bc6a;
  --accent-dim: rgba(232, 165, 75, 0.12);
  --radius: 8px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-title: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
  --wrap: min(1100px, calc(100% - 32px));
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header--hero {
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.75) 0%, transparent 100%);
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background: rgba(12, 15, 20, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.logo__img {
  display: block;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__text strong {
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.logo__text small {
  font-size: 0.7rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.header--scrolled .nav a {
  color: var(--text-soft);
}

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

.header__phone {
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  background: var(--accent);
  color: #1a1208;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.mobile-nav[hidden] {
  display: none !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 32px) 0 56px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 16, 0.7) 0%, rgba(8, 11, 16, 0.5) 50%, rgba(8, 11, 16, 0.88) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(8, 11, 16, 0.4) 100%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 40px;
  align-items: center;
}

.hero__main {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.hero__zone {
  justify-self: end;
}

.zone-card {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.zone-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.zone-card__cap {
  padding: 14px 16px;
  text-align: center;
  background: rgba(15, 20, 28, 0.95);
  border-top: 1px solid var(--line);
}

.zone-card__cap strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--accent-2);
}

.zone-card__cap span {
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.kicker {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero__lead {
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 42ch;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  justify-content: center;
}

.hero__facts {
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--line-strong);
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__facts b {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
}

.hero__facts span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #1a1208;
}

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--full {
  width: 100%;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--prices {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section--services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.section--order {
  background: var(--bg);
}

.section--reviews {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.reviews-loading,
.reviews-empty {
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.reviews-grid:empty {
  display: none;
}

.review-card {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.review-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}

.review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.review-card__author {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.review-card__stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.review-card__tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent-2);
}

.review-card__text {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.review-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section--works {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.section-intro--center {
  text-align: center;
  margin-bottom: 40px;
}

.section-intro--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 10px;
}

.section-desc {
  margin: 0 0 32px;
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 50ch;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service {
  padding: 0 0 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service__photo {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 4px;
}

.service__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service--pick:hover .service__photo img {
  transform: scale(1.05);
}

.service__num,
.service h3,
.service p {
  padding-left: 18px;
  padding-right: 18px;
}

.service--pick {
  cursor: pointer;
}

.service--pick:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.service--pick.is-active {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px rgba(232, 165, 75, 0.25);
}

.service__num {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.service h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 8px;
}

.service p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* Prices */
.price-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.price-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.search:focus-within {
  border-color: var(--accent);
  color: var(--text);
}

.search input {
  flex: 1;
  border: none;
  background: none;
  font: inherit;
  outline: none;
  color: var(--text);
}

.price-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1208;
}

.price-pick-hint {
  margin: 0 0 16px;
  padding: 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.price-panel--idle .price-filters {
  margin-bottom: 0;
}

/* hidden на мобильных не всегда перебивает display:flex — фиксируем явно */
.price-list[hidden],
.price-empty[hidden],
.region-note[hidden],
#price-search-wrap[hidden],
.price-pick-hint[hidden] {
  display: none !important;
}

.price-panel--idle .price-list,
.price-panel--idle .price-empty,
.price-panel--idle .region-note,
.price-panel--idle #price-search-wrap {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.region-note {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 165, 75, 0.25);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--accent-2);
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.price-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 20px 22px 8px;
}

.price-block__title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-2);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table thead th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 12px;
}

.price-table thead th:last-child {
  text-align: right;
}

.price-table tbody tr {
  border-bottom: 1px solid var(--line);
}

.price-table tbody tr:last-child {
  border-bottom: none;
}

.price-table td {
  padding: 12px 0;
  vertical-align: top;
}

.price-table__name {
  padding-right: 20px;
  color: var(--text);
  line-height: 1.4;
}

.price-table__price {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.price-table mark {
  background: rgba(232, 165, 75, 0.35);
  color: var(--text);
  padding: 0 2px;
  border-radius: 2px;
}

.price-empty {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* Order */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.order-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.order-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.order-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.order-form label {
  display: block;
  margin-bottom: 16px;
}

.order-form label span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-form input,
.order-form textarea,
.order-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg-2);
  color: var(--text);
  transition: border-color 0.2s;
}

.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-msg {
  margin: 12px 0 0;
  font-size: 0.88rem;
  min-height: 1.3em;
}

.form-msg.ok {
  color: #6bc99a;
}

.form-msg.err {
  color: #e87a7a;
}

/* Footer */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer__logo strong {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--text);
}

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

/* Works gallery */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.works-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.works-item--wide {
  grid-column: span 2;
}

.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.works-item:hover img {
  transform: scale(1.04);
}

.works-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--text);
}

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__zone {
    justify-self: center;
    max-width: 280px;
    width: 100%;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .works-item--wide {
    grid-column: span 2;
  }

  .order-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav,
  .header__phone {
    display: none;
  }

  .burger {
    display: flex;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .hero__facts {
    gap: 20px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .works-item--wide {
    grid-column: span 1;
  }

  .price-panel {
    padding: 16px;
  }

  .price-block {
    padding: 16px 14px 4px;
  }
}
