/* ProfiStroyka — тёмная графитово-лаймовая тема (перенята из демо-версии) */
:root {
  --bg: #20242b;
  --bg2: #25282f;
  --panel: #2c333e;
  --panel-2: #292e36;
  --line: #464e5b;
  --line-soft: #3c424c;
  --ink: #f7f8fb;
  --muted: #b7c1ce;
  --muted-2: #8e9aad;
  --lime: #c4fa57;
  --lime-dark: #293519;
  --lime-soft: #c4fa571c;
  --accent: #c4fa57;
  --accent-dark: #a9d64c;
  --blue: #aec8e5;
  --green: #a9d64c;
  --amber: #e2cf6e;
  --red: #dc876b;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(8, 15, 23, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 6%; }
main.wrap { padding-top: 20px; padding-bottom: 70px; }

/* Навигация */
.topbar { background: var(--bg2); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 40; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 6%; }
.logo { font-size: 1.25rem; text-decoration: none; color: #eef4e8; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.logo b { color: var(--lime); }
.logo img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: #c5cbd5; text-decoration: none; font-size: 13px; font-weight: 500; }
.nav a:hover { color: #fff; }
.btn { padding: 10px 18px; border-radius: 25px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: transform 0.25s, background 0.25s; }
.btn.primary { background: var(--lime); color: var(--lime-dark); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(196, 250, 87, 0.2); }
.btn.ghost { border-color: #59664e; color: #c6ed97; background: #35412d; }
.btn.ghost:hover { background: #3d4b35; }

/* Hero */
.hero { background: transparent; padding: 70px 0 60px; }
.hero h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.1; letter-spacing: -2px; color: #fff; font-weight: 500; margin: 0 0 18px; }
.hero .lead { color: #b7c1ce; font-size: 16px; line-height: 1.8; max-width: 620px; }
.live-label { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #b9d695; margin-bottom: 22px; }
.live-label > span { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 6px rgba(196, 250, 87, 0.06); }

/* Секции */
section { margin: 46px 0; }
h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -1px; font-weight: 500; color: #f7f8fb; margin: 0 0 22px; }
h2 .muted { color: var(--muted); }
h3 { color: #fff; font-weight: 500; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 660px; }

/* Карточки */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: #758758; box-shadow: 0 15px 35px rgba(17, 24, 0, 0.5); }
.card img.work { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; background: #45523b; color: var(--lime); font-weight: 700; }
.rating { color: #c6dcab; font-weight: 600; }
.muted { color: var(--muted); }
.price { font-weight: 600; font-size: 1.4rem; color: #fff; letter-spacing: -0.5px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #35422b; color: #c6ed97; border: 1px solid #596f40; font-size: 0.78rem; font-weight: 600; }

/* Чипы */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; color: var(--ink); font-size: 13px; transition: background 0.25s, transform 0.25s; }
.chip:hover { background: #3d4450; color: #fff; transform: translateY(-2px); }
.crumbs { color: var(--muted-2); font-size: 0.86rem; margin-bottom: 16px; }
.crumbs a { color: var(--lime); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Услуги-строки */
.s-rows { display: flex; flex-direction: column; gap: 10px; }
.s-row { display: flex; justify-content: space-between; gap: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; flex-wrap: wrap; }
.s-name { font-weight: 600; display: block; color: #fff; }
.s-desc { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 3px; }
.s-price { color: var(--lime); font-weight: 700; white-space: nowrap; }
.s-unit { color: var(--muted); font-weight: 500; font-size: 0.82rem; }

/* Работы */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.works img { width: 100%; height: 150px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }

/* Отзывы */
.review { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--panel-2); margin-bottom: 12px; }
.review .stars { color: var(--lime); letter-spacing: 2px; }
.review .date { color: var(--muted-2); font-size: 0.78rem; margin-left: 10px; }
.review p { margin: 8px 0 0; font-size: 0.92rem; line-height: 1.6; color: #dfebd4; }
.review b { color: #f4f8ef; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 21px; padding: 20px; }
.step-num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #6f8156; background: #333d2c; color: var(--lime); align-items: center; justify-content: center; font-weight: 600; margin-bottom: 12px; }
.step h4 { margin: 0 0 7px; color: #fff; font-weight: 500; }
.step p { margin: 0; font-size: 0.86rem; color: #abb7c6; line-height: 1.7; }

/* Полоса статистики */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; background: linear-gradient(120deg, #35412f, #303843 60%); border: 1px solid #515c4d; border-radius: 25px; padding: 28px; color: #fff; margin: 40px 0; }
.stats-band .stat { text-align: center; }
.stats-band b { display: block; font-size: 1.7rem; font-weight: 450; color: var(--lime); }
.stats-band span { color: #a8b99b; font-size: 0.85rem; }

/* Bento-фичи */
.feature-bento { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 17px; }
.feature-panel { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 25px; padding: 28px; min-height: 210px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.feature-panel:hover { transform: translateY(-5px); border-color: #758758; box-shadow: 0 15px 35px rgba(17, 24, 0, 0.5); }
.feature-panel.large { grid-row: span 2; padding-top: 32px; }
.feature-panel h3 { color: #fff; font-size: 20px; font-weight: 500; margin: 22px 0 14px; }
.feature-panel p { color: #b4becd; font-size: 13px; line-height: 1.8; margin: 0; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--lime); background: #45523b; border: 1px solid rgba(131, 147, 105, 0.33); border-radius: 14px; font-size: 1.2rem; }
.mock-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #f9fbf5; color: #39442e; border-radius: 14px; padding: 16px; margin-top: 40px; font-size: 13px; }
.mock-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.mock-tags span { border: 1px solid #5e6a58; border-radius: 30px; padding: 6px 13px; color: #b8d59b; font-size: 11px; }
.decor-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-top: 20px; }
.decor-bars i { flex: 1; height: var(--bar, 50%); background: #536347; border-radius: 5px 5px 0 0; animation: bar-grow 1s ease-out var(--delay, 0s) both; }
.decor-bars i:nth-child(3n) { background: var(--lime); }

/* Workflow */
.workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: var(--panel-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 60px 6%; max-width: none; margin: 50px calc(-6%); }
.workflow h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -1px; }
.workflow-steps > div { display: flex; gap: 20px; padding-bottom: 22px; position: relative; }
.workflow-steps > div:not(:last-child):after { content: ''; position: absolute; left: 19px; top: 42px; bottom: 0; width: 1px; background: #586346; }
.workflow-steps > div > span { width: 40px; height: 40px; flex: none; border: 1px solid #6f8156; border-radius: 50%; color: var(--lime); display: grid; place-items: center; background: #333d2c; }
.workflow-steps h3 { color: #fff; font-size: 16px; font-weight: 500; margin: 6px 0 7px; }
.workflow-steps p { color: #abb7c6; font-size: 13px; margin: 0; }

/* CTA */
.cta-band { text-align: center; padding: 55px 30px; border: 1px solid #59674b; border-radius: 30px; background: radial-gradient(ellipse at 50% 0, #455139, #2b323a 70%); margin: 40px 0 60px; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -1px; font-weight: 450; }
.cta-band p { color: #b8c5ad; margin: 20px 0; }

/* Сценка: изометрические здания */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-scene { position: relative; background: radial-gradient(ellipse at 40% 30%, #424e3e, #303641 55%, #292e37); height: 440px; border-radius: 30px; border: 1px solid #555e69; box-shadow: 0 40px 100px rgba(17, 21, 27, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); perspective: 700px; overflow: hidden; }
.scene-building { position: absolute; inset: 90px 40px 80px; transform: rotateX(15deg) rotateZ(-7deg); transform-style: preserve-3d; }
.building { position: absolute; bottom: 0; width: 27%; border: 1px solid rgba(182, 203, 169, 0.36); background: repeating-linear-gradient(0deg, transparent 0, transparent 19px, rgba(196, 250, 87, 0.17) 20px, rgba(196, 250, 87, 0.07) 22px), repeating-linear-gradient(90deg, #536053 0, #536053 20px, rgba(135, 155, 115, 0.33) 21px, rgba(135, 155, 115, 0.33) 23px); box-shadow: 15px 15px 0 #1d252c; border-radius: 7px 7px 0 0; animation: building-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.b1 { height: 58%; left: 5%; }
.b2 { height: 100%; left: 38%; background-color: #a0c36b; animation-delay: 0.15s; }
.b3 { height: 75%; left: 70%; animation-delay: 0.3s; }
.site-line { position: absolute; bottom: -12px; left: -20px; right: -20px; height: 1px; background: rgba(196, 250, 87, 0.44); }
.site-line.l2 { transform: translateY(14px); }
.floating-card { position: absolute; display: flex; gap: 11px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #f9fbf5; color: #303c29; box-shadow: 0 12px 35px rgba(18, 25, 34, 0.38); z-index: 2; }
.floating-card .icon { color: #577b31; font-size: 1.3rem; }
.floating-card strong { font-size: 12px; display: block; }
.floating-card small { font-size: 10px; display: block; color: #7e8974; margin-top: 3px; }
.float-one { top: 76px; left: 16px; animation: card-float 6s ease-in-out infinite; }
.float-two { right: 14px; bottom: 100px; animation: card-float 7s ease-in-out 1s infinite; }
.round-check { border-radius: 50%; width: 22px; height: 22px; background: var(--lime); display: grid; place-items: center; font-size: 12px; }
.scene-bottom { display: flex; align-items: center; gap: 15px; position: absolute; bottom: 18px; left: 22px; right: 22px; background: rgba(35, 42, 50, 0.8); padding: 13px; border: 1px solid rgba(102, 113, 87, 0.33); border-radius: 16px; }
.scene-bottom > div { flex: 1; }
.scene-bottom strong { font-size: 11px; color: #dde6d6; }
.orbital-icon { display: grid; place-items: center; background: #444f39; border-radius: 50%; width: 38px; height: 38px; color: var(--lime); }
.scene-progress { height: 4px; background: #47503f; border-radius: 6px; margin-top: 10px; overflow: hidden; }
.scene-progress i { display: block; width: 70%; height: 100%; background: var(--lime); animation: progress-reveal 1.4s ease-out; }

/* Magic UI */
.magic-card:hover { border-color: #758758; }
.reveal { opacity: 0; transform: translateY(14px); filter: blur(5px); transition: opacity 0.55s, transform 0.55s, filter 0.55s; }
.reveal.revealed { opacity: 1; transform: none; filter: none; }
.btn.ripple { position: relative; overflow: hidden; }
.button-ripple-el { position: absolute; border-radius: 50%; background: #fff; pointer-events: none; animation: button-rippling 600ms ease-out forwards; }

@keyframes border-travel { to { offset-distance: 100%; } }
@keyframes building-rise { from { transform: scaleY(0.1); transform-origin: bottom; opacity: 0; } to { transform: scaleY(1); transform-origin: bottom; opacity: 1; } }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes progress-reveal { from { transform: scaleY(0.1); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
@keyframes bar-grow { from { width: 0; } to { width: var(--value, 60%); } }
@keyframes button-rippling { from { transform: scale(0); opacity: 0.45; } to { transform: scale(3); opacity: 0; } }

/* Footer */
.footer { padding: 30px 6%; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted-2); font-size: 12px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a, .footer a { color: var(--muted-2); }
.footer-links a:hover { color: var(--lime); }

@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } .hero-scene { max-width: 600px; } }
@media (max-width: 960px) { .feature-bento { grid-template-columns: 1fr 1fr; } .feature-panel.large { grid-row: span 1; grid-column: 1/-1; } .workflow { grid-template-columns: 1fr; gap: 25px; margin: 40px calc(-6%); } .nav a { font-size: 12px; } }
@media (max-width: 650px) {
  .hero h1 { font-size: 34px; letter-spacing: -1.5px; }
  .hero-scene { height: 330px; border-radius: 22px; }
  .feature-bento { grid-template-columns: 1fr; }
  .service-grid, .legal-services { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px; }
  .topbar-inner { padding: 14px 5%; }
  .wrap { padding: 0 5%; }
  main.wrap { padding-top: 14px; }
  .cta-band { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* Каталог */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
}
.filter-form input[type="text"] { flex: 1 1 220px; }
.filter-form select { flex: 0 1 auto; }
.filter-form .btn { white-space: nowrap; }
.verified-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; margin: 0; white-space: nowrap; cursor: pointer; }
.verified-label input { accent-color: #8cb63e; }
.found-line { margin: 0 0 16px; }
.pager { display: flex; gap: 12px; justify-content: center; margin: 26px 0 10px; }

/* Сетка карточек */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

/* Public shell */
.public-shell { background: var(--bg); min-height: 100vh; color: var(--ink); }
