:root {
  --bg: #101010;
  --bg-2: #171717;
  --bg-3: #1f1f1f;
  --card: #1a1a1a;
  --text: #f6f1e8;
  --muted: #b4aea3;
  --line: rgba(246, 241, 232, 0.1);
  --accent: #36e960;
  --accent-2: #c9a56a;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; opacity: 0; }

h1, h2, h3, .serif { font-family: Cinzel, Georgia, serif; font-weight: 500; letter-spacing: 0.02em; }
h1 { font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #102214;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, opacity .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(54, 233, 96, 0.18); }
.btn--ghost, .btn--line {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--line:hover { box-shadow: none; background: rgba(255,255,255,0.05); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--accent-2); color: #1b1408; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 16, 16, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { position: relative; }
.topbar__inner, .topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar__inner { justify-content: space-between; min-height: 74px; }
.brand, .brand--footer { display: flex; align-items: center; gap: 10px; }
.brand strong, .brand--footer strong { display: block; font-family: Cinzel, Georgia, serif; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.topbar__phone { font-weight: 700; white-space: nowrap; }
.burger { display: none; flex-shrink: 0; width: 44px; height: 44px; background: none; border: 0; padding: 0; }
.burger span { display: block; height: 2px; margin: 6px auto; width: 22px; background: #fff; transition: transform .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out, transform 7s ease;
  transform: scale(1.05);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,16,16,.25) 0%, rgba(16,16,16,.55) 60%, rgba(16,16,16,.92) 100%),
    linear-gradient(90deg, rgba(16,16,16,.5), transparent 55%);
}
.hero__content { position: relative; z-index: 2; padding: 120px 0 72px; max-width: 760px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.lead-text { max-width: 640px; font-size: 18px; color: #ddd6c8; line-height: 1.5; }
.hero__actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero__meta b { display: block; font-size: 28px; font-family: Cinzel, Georgia, serif; color: var(--accent); }
.hero__meta span { display: block; font-size: 13px; color: var(--muted); }

.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c0c0c;
}
.ticker__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker span {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.ticker span::before {
  content: '·';
  margin-right: 48px;
  color: var(--accent-2);
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.section { padding: 80px 0; }
.section--alt { background: var(--bg-2); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.link { color: var(--accent-2); border-bottom: 1px solid currentColor; font-weight: 600; }

.grid-4, .grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card, .post, .faq, .salon, .step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card { padding: 28px; }
.card--checklist ul { margin: 0 0 20px; padding: 0; list-style: none; }
.card--checklist li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); }
.card--checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.card--lead { background: linear-gradient(180deg, #1a1a1a, #141414); }
.card--empty { text-align: center; padding: 40px 28px; max-width: 640px; margin: 0 auto; }
.card--empty .btn { margin-top: 8px; }

.cats { --gap: 18px; }
.cats .cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.cat__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-image) center/cover no-repeat;
  transition: transform .5s;
}
.cats .cat:hover .cat__bg { transform: scale(1.06); }
.cats .cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(16,16,16,.85) 75%, #101010 100%);
}
.cat__body {
  position: relative;
  z-index: 1;
  padding: 20px;
  background: transparent;
  border: 0;
}
.cats .cat small {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(54, 233, 96, .12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.cats .cat h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cats .cat p { font-size: 13px; margin: 0; line-height: 1.45; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.projects-grid--catalog { grid-template-columns: repeat(3, 1fr); }
.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform .25s, box-shadow .25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0,0,0,0.35); }
.project-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .5s;
}
.project-card:hover img { transform: scale(1.05); }
.project-card__body { padding: 18px; }
.project-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.project-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.25; }
.project-card__price {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.price { color: var(--accent); font-weight: 700; }

.steps-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.steps-line .step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 20px 68px;
}
.steps-line .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--accent);
  font-family: Cinzel, Georgia, serif;
  font-size: 22px;
}
.steps-line .step h3 { font-size: 1rem; }
.steps-line .step p { font-size: 13px; margin: 0; }

.faq + .faq { margin-top: 10px; }
.faq details { padding: 4px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.page-hero { padding: 56px 0 20px; }
.page-hero--catalog { padding: 44px 0 12px; }
.page-hero__crumbs { font-size: 13px; margin-bottom: 12px; }
.page-hero__crumbs a { border-bottom: 1px solid transparent; }
.page-hero__crumbs a:hover { border-color: currentColor; }
.page-hero__crumbs span { color: var(--text); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.filters--sticky {
  position: sticky;
  top: 74px;
  z-index: 10;
  padding: 12px 0;
  margin: 0 -16px 28px;
  background: rgba(16, 16, 16, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filters--sticky::-webkit-scrollbar { display: none; }
.filters--sticky .filter-pill { flex: 0 0 auto; }
.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-pill:hover { border-color: var(--accent-2); color: var(--text); }
.filter-pill.is-active { background: #fff; color: #111; border-color: #fff; }

.category-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 280px;
  display: grid;
  align-items: end;
  border: 1px solid var(--line);
}
.category-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,16,16,.9), rgba(16,16,16,.4) 60%, transparent 100%);
}
.category-banner__content {
  position: relative;
  z-index: 1;
  padding: 36px;
  max-width: 560px;
}
.category-banner__content .eyebrow { color: var(--accent); background: rgba(54,233,96,.12); padding: 4px 10px; border-radius: 999px; }
.category-banner__content h2 { font-size: clamp(1.3rem, 3vw, 2rem); }

.catalog { padding-bottom: 72px; }

.product { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: start; }
.gallery { display: grid; gap: 10px; }
.gallery img { width: 100%; border-radius: 16px; }
.specs { display: grid; gap: 10px; margin: 20px 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs span { color: var(--muted); }
.article-body { max-width: 760px; }
.article-body h2, .article-body h3 { margin-top: 32px; }
.article-body p, .article-body li { color: #ddd6c8; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; margin: 20px 0 32px; }

.footer { padding: 64px 0 110px; border-top: 1px solid var(--line); background: #0c0c0c; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 10px; color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer__phone { display: block; font-size: 22px; margin: 12px 0 6px; font-weight: 700; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; color: var(--muted); font-size: 14px; }

.lead { display: grid; gap: 14px; }
.lead__field { display: grid; gap: 6px; }
.lead__field label { color: var(--muted); font-size: 13px; }
.lead input, .lead select, .lead textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.lead input:focus, .lead select:focus, .lead textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 233, 96, 0.12);
}
.lead__required { color: var(--danger); }
.lead__check { display: flex; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); }
.lead__check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--accent); }
.lead__note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.lead__status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.lead__status[hidden] { display: none; }
.lead__status-icon { width: 18px; height: 18px; border-radius: 50%; }
.lead__status.is-ok { color: #b6f4c6; background: rgba(54, 233, 96, 0.10); border: 1px solid rgba(54, 233, 96, 0.25); }
.lead__status.is-err { color: #ffb8b8; background: rgba(255, 107, 107, 0.10); border: 1px solid rgba(255, 107, 107, 0.25); }
.lead__status.is-info { color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.lead__status.is-ok .lead__status-icon { background: var(--accent); }
.lead__status.is-err .lead__status-icon { background: var(--danger); }
.lead__status.is-info .lead__status-icon { background: var(--accent-2); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.modal__card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  background: #171717;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.modal__card h2 { padding-right: 36px; }
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: #0f0f0f;
  border-top: 1px solid var(--line);
}
.sticky-cta a, .sticky-cta button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat { padding: 20px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: 36px; font-family: Cinzel, Georgia, serif; color: var(--accent); }
.stat span { display: block; font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 24px;
    background: #141414;
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 74px);
    overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .nav {
    z-index: 25;
    min-height: calc(100dvh - 64px);
    background: #121212;
  }
  .burger { display: block; }
  .topbar__phone { display: none; }
  .grid-4, .grid-3, .footer__grid, .product, .split, .stat-row { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid--catalog { grid-template-columns: repeat(2, 1fr); }
  .steps-line { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 78vh; min-height: 78dvh; }
  .category-banner__content { max-width: 460px; padding: 28px; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .grid-4, .grid-3, .grid-2, .footer__grid, .product, .split, .stat-row, .section__head { grid-template-columns: 1fr; }
  .topbar .btn--sm { display: none; }
  .topbar__inner { min-height: 64px; gap: 10px; }
  .topbar__actions { gap: 8px; }
  .brand small { display: none; }
  .brand strong { font-size: 15px; }
  .sticky-cta {
    display: flex;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sticky-cta a + a,
  .sticky-cta a + button { border-left: 1px solid var(--line); }
  body.is-locked .sticky-cta { display: none; }
  .hero {
    min-height: calc(100dvh - 56px);
    align-items: end;
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  .hero__content { padding: 72px 0 28px; }
  .hero__actions .btn, .cta-row .btn { width: 100%; }
  .hero__meta { gap: 16px 24px; }
  .hero__meta b { font-size: 24px; }
  h1 { font-size: clamp(1.55rem, 8vw, 2.2rem); }
  .lead-text { font-size: 16px; }
  .section { padding: 48px 0; }
  .page-hero { padding: 32px 0 12px; }
  .cat img, .project img, .post img { height: 200px; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-right: -12px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { flex: 0 0 auto; white-space: nowrap; }
  .filters--sticky { top: 64px; margin: 0 -12px 24px; padding-left: 12px; padding-right: 12px; }
  .cats .cat { min-height: 260px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid--catalog { grid-template-columns: 1fr; }
  .steps-line { grid-template-columns: 1fr; }
  .category-banner { min-height: 360px; align-items: end; }
  .category-banner__shade { background: linear-gradient(180deg, rgba(16,16,16,.45), rgba(16,16,16,.9)); }
  .category-banner__content { max-width: 100%; padding: 22px; }
  .specs div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .specs b { font-weight: 600; word-break: break-word; }
  .modal { padding: 12px; align-items: end; }
  .modal__card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 22px 18px 20px;
  }
  .footer { padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); }
  .footer__bottom { flex-direction: column; }
  .footer__phone { font-size: 20px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
  h1 { font-size: clamp(1.3rem, 7.2vw, 1.7rem); }
  .lead-text { font-size: 14px; }
  .hero__content { padding-top: 20px; }
  .hero__actions { margin: 16px 0 8px; }
  .hero__meta { display: none; }
  .cats { grid-template-columns: 1fr; }
}
@media (max-height: 700px) {
  .modal { padding: 0; align-items: stretch; }
  .modal__card {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    padding: 18px 16px 24px;
  }
  .modal__card h2 { font-size: 1.35rem; }
  .modal__card > p { display: none; }
  .lead { gap: 8px; }
  .lead textarea { min-height: 48px; }
}
