:root {
  --bg: #0d0e10; --bg-2: #131518; --panel: #181b1f; --panel-2: #20242a; --line: #2a2f36;
  --text: #f3f2ee; --muted: #a3a6ab; --accent: #ff7a1a; --accent-2: #ffa25a; --ok: #3ddc84;
  --r: 14px; --r-lg: 22px; --ease: cubic-bezier(.2,.7,.2,1);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: .98; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #d7d6d1; max-width: 560px; margin: 20px 0 0; }
.lead.small { font-size: 17px; color: var(--muted); }
.head { margin-bottom: 44px; max-width: 720px; }
section { padding: clamp(72px, 10vw, 120px) 0; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s; white-space: nowrap; font-family: var(--body); }
.btn:active { transform: scale(.97); }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.primary { background: var(--accent); color: #140a02; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { border-color: rgba(255,255,255,.22); color: var(--text); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn.ghost:hover { border-color: rgba(255,255,255,.45); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn.full { width: 100%; }

/* смужка «демо» */
.ribbon { background: var(--accent); color: #140a02; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
.ribbon a { text-decoration: underline; }

/* навігація */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100% - 1180px) / 2)); background: rgba(13,14,16,.72); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; inset: 7px 6px 6px; background: #111; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.nav .btn { height: 40px; font-size: 14px; }

/* герой */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; padding: 0 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(img/hero.jpg) center 40%/cover no-repeat; transform: scale(1.06); animation: settle 1.8s var(--ease) forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,16,.94) 0%, rgba(13,14,16,.72) 45%, rgba(13,14,16,.2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
@keyframes settle { to { transform: scale(1); } }
.hero-in { position: relative; padding-top: 120px; }
.rating { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; backdrop-filter: blur(8px); margin-bottom: 26px; }
.stars { color: #ffc24a; letter-spacing: 2px; }
.rating span:last-child { color: var(--muted); }
.hero h1 { font-size: clamp(54px, 9.5vw, 128px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.perks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 34px 0 0; color: #d7d6d1; font-size: 15px; font-weight: 500; }
.perks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.fade { opacity: 0; transform: translateY(18px); animation: up .9s var(--ease) forwards; }
@keyframes up { to { opacity: 1; transform: none; } }

/* послуги */
.services { background: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.svc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), border-color .3s; }
.svc:hover { transform: translateY(-4px); border-color: rgba(255,122,26,.5); }
.svc .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,122,26,.12); display: grid; place-items: center; color: var(--accent); }
.svc .ic svg { width: 24px; height: 24px; fill: currentColor; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }
.svc .price { margin-top: auto; padding-top: 10px; font-family: var(--display); font-size: 26px; font-weight: 700; }
.svc .price small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 500; margin-right: 6px; text-transform: none; }
.note { color: var(--muted); font-size: 14px; margin: 22px 0 0; }

/* чому ми */
.why { background: var(--bg-2); }
.why-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-photo img { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.why-list { display: grid; gap: 22px; margin-top: 34px; }
.why-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.why-item .num { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--accent); }
.why-item b { display: block; font-size: 18px; margin-bottom: 4px; }
.why-item span { color: var(--muted); font-size: 15px; }

/* кроки */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-list li { border-top: 2px solid var(--accent); padding: 26px 4px 0; }
.step-list span { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--accent); }
.step-list h3 { margin: 10px 0 10px; }
.step-list p { margin: 0; color: var(--muted); }

/* асистент */
.assistant { background: radial-gradient(900px 400px at 85% 50%, rgba(255,122,26,.16), transparent 70%), var(--bg-2); }
.assistant-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.assistant .btn { margin-top: 30px; }
.chat-preview { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; cursor: pointer; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.bubble.me { justify-self: end; background: var(--accent); color: #140a02; border-bottom-right-radius: 6px; font-weight: 500; }
.bubble.bot { background: var(--panel-2); border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 5px; width: max-content; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* відгуки */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review p { margin: 0; color: #d9d8d3; font-size: 15.5px; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .who i { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--accent); }
.review .who small { display: block; color: var(--muted); }

/* запис */
.book { background: var(--bg-2); }
.book-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-photo img { border-radius: var(--r-lg); margin-top: 34px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: 15px var(--body); padding: 13px 14px; width: 100%; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form-ok { grid-column: 1 / -1; margin: 0; padding: 14px; border-radius: 12px; background: rgba(61,220,132,.1); color: var(--ok); font-weight: 600; text-align: center; }

/* адреса */
.visit-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 70px); align-items: stretch; }
.visit h2 { font-size: clamp(30px, 4vw, 44px); }
.hours { margin-top: 28px; border-collapse: collapse; width: 100%; max-width: 420px; font-size: 15px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.today td { color: var(--accent); font-weight: 700; }
.map { width: 100%; min-height: 380px; height: 100%; border: 0; border-radius: var(--r-lg); filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* футер */
.foot { padding: 40px 0 120px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.muted { color: var(--muted); }

/* чат */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; background: var(--accent); color: #140a02; font: 700 15px var(--body); cursor: pointer; box-shadow: 0 14px 40px rgba(255,122,26,.35); transition: transform .25s var(--ease); }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; fill: currentColor; }
.chat-fab.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255,122,26,.6); animation: ring 2s 3; }
@keyframes ring { to { box-shadow: 0 0 0 18px rgba(255,122,26,0); } }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(390px, calc(100% - 24px)); height: min(620px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 90px rgba(0,0,0,.6); overflow: hidden; transform-origin: bottom right; animation: pop .35s var(--ease); }
.chat[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.chat-head .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #140a02; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { color: var(--ok); font-size: 12.5px; }
.chat-x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-log .bubble { white-space: pre-wrap; }
.chat-log .bubble.bot { align-self: flex-start; }
.chat-log .bubble.me { align-self: flex-end; }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.chat-chips button { flex: none; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 13px; font: 600 13px var(--body); cursor: pointer; }
.chat-chips button:hover { border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font: 15px var(--body); padding: 0 16px; height: 46px; }
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #140a02; cursor: pointer; display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 900px) {
  .links { display: none; }
  .nav-cta .call span { display: none; }
  .why-in, .assistant-in, .book-in, .visit-in { grid-template-columns: 1fr; }
  .why-photo img { aspect-ratio: 16/10; }
  .step-list { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .brand { font-size: 18px; }
  .nav-cta .btn.primary { display: none; }
  .form { grid-template-columns: 1fr; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 0; width: 58px; justify-content: center; }
  .chat { right: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade { opacity: 1; transform: none; }
}
.chat-chips[hidden], .chat-fab[hidden] { display: none; }
