@font-face { font-family: G; src: url(fonts/geologica-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: G; src: url(fonts/geologica-cyrillic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: G; src: url(fonts/geologica-cyrillic-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0460-052F; }
@font-face { font-family: M; src: url(fonts/martian-mono-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: M; src: url(fonts/martian-mono-cyrillic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491; }

:root {
  --blue: #2438E8; --blue-d: #1A29B8; --paper: #F3F4F1; --ink: #14161F; --mute: #5D6170; --line: #D9DBD6;
  --crema: #FF7A3D; --white: #fff; --ease: cubic-bezier(.2, .8, .2, 1); --pad: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 G, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
.mono { font-family: M, ui-monospace, monospace; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(72px, 10vw, 140px); }
.tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.h2 { font: 800 clamp(32px, 5.4vw, 72px)/.98 G; letter-spacing: -.035em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; background: none; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--crema { background: var(--crema); color: var(--ink); }
.btn--line { border-color: #ffffff66; color: var(--white); }
.btn--line:hover { border-color: var(--white); }
.btn--inv { background: var(--white); color: var(--blue); min-height: 40px; padding: 0 18px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--line2 { border-color: var(--line); }
.btn--line2:hover { border-color: var(--ink); }
:focus-visible { outline: 2px solid var(--crema); outline-offset: 3px; }

/* шапка */
.top { position: fixed; z-index: 40; inset: 0 0 auto; display: flex; align-items: center; gap: 24px; padding: 12px var(--pad); color: var(--white); background: color-mix(in srgb, var(--blue) 88%, transparent); backdrop-filter: blur(12px); }
.logo { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.logo b { font: 800 26px/1 G; letter-spacing: -.05em; }
.logo span { font: 500 11px/1 M; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { opacity: .8; } .top nav a:hover { opacity: 1; }
.state { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 M; }
.state em { font-style: normal; opacity: .85; }
.state i { width: 8px; height: 8px; border-radius: 50%; background: #4BE38A; box-shadow: 0 0 0 4px #4be38a33; }
.state.off i { background: var(--crema); box-shadow: 0 0 0 4px #ff7a3d33; }
@media (max-width: 900px) { .top nav, .state { display: none; } }

/* герой-креслення */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 110px var(--pad) 70px; background: var(--blue); color: var(--white); overflow: hidden;
  background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.kick { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 22px; }
.hero h1 { font: 800 clamp(44px, 7.4vw, 112px)/.92 G; letter-spacing: -.045em; }
.hero h1 span { color: var(--crema); }
.hero__lead { max-width: 46ch; margin: 28px 0 34px; font-size: clamp(16px, 1.4vw, 19px); opacity: .88; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.plan { position: relative; border: 1.5px solid #ffffff55; border-radius: 22px; padding: 18px; background: #1a2bd0aa; }
.plan figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 10px; }
.plan figcaption span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; }
.dot.free { border: 1.5px solid #fff; } .dot.busy { background: #ffffff40; } .dot.mine { background: var(--crema); }
#plan { width: 100%; height: auto; display: block; }
#plan .wall { fill: none; stroke: #fff; stroke-width: 3; }
#plan .thin { fill: none; stroke: #ffffffaa; stroke-width: 1.2; stroke-dasharray: 4 5; }
#plan .bar { fill: #ffffff18; stroke: #fff; stroke-width: 1.5; }
#plan .lbl { fill: #fff; font: 500 10px M; letter-spacing: .12em; opacity: .75; }
#plan .t { cursor: pointer; transition: transform .4s var(--ease); transform-box: fill-box; transform-origin: center; }
#plan .t .top { fill: none; stroke: #fff; stroke-width: 2; transition: fill .3s, stroke .3s; }
#plan .t .seat { fill: none; stroke: #fff; stroke-width: 1.5; }
#plan .t text { fill: #fff; font: 700 13px G; text-anchor: middle; dominant-baseline: central; }
#plan .t:hover .top, #plan .t:focus-visible .top { fill: #ffffff30; }
#plan .t.busy { cursor: default; } #plan .t.busy .top { fill: #ffffff26; stroke: #ffffff55; } #plan .t.busy .seat { stroke: #ffffff55; } #plan .t.busy text { opacity: .5; }
#plan .t.pick .top { fill: #ffffff40; stroke: var(--crema); }
#plan .t.mine .top { fill: var(--crema); stroke: var(--crema); } #plan .t.mine .seat { stroke: var(--crema); } #plan .t.mine text { fill: var(--ink); }
#plan .t.mine { animation: pop .7s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18); } }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 96px; min-height: 0; } }

/* меню */
.menu__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vw, 56px); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1.5px solid var(--line); background: none; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; }
.seg button[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 80px); }
.mlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); animation: up .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.mlist b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.mlist small { grid-column: 1; color: var(--mute); font-size: 14px; }
.mlist em { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 600 17px/1 M; font-style: normal; color: var(--blue); }
.mlist .new { margin-left: 8px; font: 600 10px/1 M; letter-spacing: .1em; padding: 4px 7px; border-radius: 6px; background: var(--crema); vertical-align: 3px; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) { .mlist { grid-template-columns: 1fr; } }

/* години + карта */
.info { background: var(--white); }
.info__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.hours { margin-top: 36px; }
.hours div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours dt { color: var(--mute); }
.hours .now dt, .hours .now dd { color: var(--blue); font-weight: 700; }
.addr { font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.map { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 860px) { .info__grid { grid-template-columns: 1fr; } }
.foot { padding: 28px 0 110px; color: var(--mute); font-size: 13px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* кнопка чату */
.fab { position: fixed; z-index: 45; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; box-shadow: 0 18px 40px -12px #14161f88; transition: transform .35s var(--ease), opacity .3s; }
.fab:hover { transform: translateY(-3px); }
.fab__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--crema); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #ff7a3d33; } }
body.chat-open .fab { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .fab { left: 12px; right: 12px; bottom: 12px; justify-content: center; } }

/* чат */
.chat { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100svh - 40px)); display: flex; flex-direction: column; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px -20px #14161f99, 0 0 0 1px #14161f14; animation: chatIn .45s var(--ease); }
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@media (max-width: 600px) { .chat { inset: 0; width: 100%; height: 100%; border-radius: 0; } }
.chat__top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--blue); color: var(--white); }
.chat__top b { display: block; font-size: 16px; }
.chat__top span { font-size: 11px; opacity: .75; }
.chat__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--crema); color: var(--ink); display: grid; place-items: center; font: 800 20px/1 G; }
.chat__x { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #ffffff22; color: var(--white); font-size: 22px; line-height: 1; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; animation: up .35s var(--ease); white-space: pre-line; }
.msg.bot { background: var(--white); border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: 0 1px 0 #14161f10; }
.msg.me { background: var(--blue); color: var(--white); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.typing { display: flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.card { align-self: stretch; background: var(--white); border-radius: 16px; padding: 14px; border: 1.5px solid var(--blue); animation: up .35s var(--ease); }
.card h4 { margin: 0 0 8px; font-size: 15px; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.card dt { color: var(--mute); } .card dd { font-weight: 600; }
.card.ok { border-color: var(--crema); }
.card .code { font: 700 22px/1 M; color: var(--blue); margin: 4px 0 8px; }
.tg { margin-top: 10px; background: #182533; color: #e9eef3; border-radius: 14px 14px 14px 4px; padding: 10px 12px 20px; font: 400 13px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif; position: relative; }
.tg b.who { display: block; color: #6ab3f3; font-size: 12px; margin-bottom: 2px; }
.tg .t { position: absolute; right: 10px; bottom: 5px; font-size: 10px; color: #7d8b99; }
.fine { font-size: 11px; color: var(--mute); margin-top: 8px; }
.chat__chips { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; background: var(--paper); }
.chat__chips:empty { display: none; }
.chat__chips button { flex: none; border: 1.5px solid var(--blue); color: var(--blue); background: var(--white); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.chat__chips button:hover { background: var(--blue); color: var(--white); }
.chat__in { display: flex; gap: 8px; padding: 12px; background: var(--paper); }
.chat__in input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 16px; font: 400 16px G; background: var(--white); color: var(--ink); }
.chat__in input:focus { outline: none; border-color: var(--blue); }
.chat__in button { width: 48px; border: 0; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 20px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
