:root {
  --ink: #0B0D0C;
  --ink-2: #151917;
  --ink-3: #20251F;
  --lime: #C6F432;
  --lime-2: #D8FF5E;
  --white: #F5F7F2;
  --muted: #8A908B;
  --head: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); line-height: 1; margin: 0; letter-spacing: -.03em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
mark { background: var(--lime); color: var(--ink); padding: 0 .1em; border-radius: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 14px; }
.title { font-size: clamp(2.2rem, 10vw, 4.6rem); font-weight: 900; margin-bottom: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 24px; border-radius: 999px; font-weight: 700; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-2); }
.btn-outline { border-color: rgba(245, 247, 242, .25); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 12, .85); backdrop-filter: blur(12px); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: var(--head); font-weight: 900; font-size: 1.3rem; display: flex; align-items: center; gap: 6px; }
.logo i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.6); } 40% { transform: scale(1); } }
.nav { display: none; gap: 30px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--white); }

/* bento */
.bento-wrap { padding: 8px 0 18px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border-radius: 26px; background: var(--ink-2); padding: 20px; overflow: hidden; position: relative; margin: 0; }
.t-title { grid-column: 1 / -1; padding: 24px 20px 26px; }
.t-title h1 { margin-top: 18px; font-size: clamp(2.4rem, 11.5vw, 6.4rem); font-weight: 900; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--ink-3); color: var(--lime); font-size: .82rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(198, 244, 50, .6); } 100% { box-shadow: 0 0 0 12px rgba(198, 244, 50, 0); } }
.t-photo { grid-column: 1 / -1; padding: 0; aspect-ratio: 16 / 11; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-next { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 150px; }
.t-next p { font-size: .8rem; color: var(--muted); }
.t-next b { font-family: var(--head); font-size: clamp(1.4rem, 6.5vw, 2.4rem); color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.t-next span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.t-cta { display: flex; flex-direction: column; justify-content: space-between; background: var(--lime); color: var(--ink); min-height: 150px; transition: transform .25s; }
.t-cta:hover { transform: rotate(-1.5deg); }
.t-cta span { font-weight: 700; font-size: .9rem; }
.t-cta b { font-family: var(--head); font-size: clamp(2.2rem, 11vw, 3.6rem); font-weight: 900; line-height: 1; }
.t-cta i { position: absolute; right: 18px; top: 16px; font-style: normal; font-size: 1.6rem; }
.t-stats { grid-column: 1 / -1; padding: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stats li { padding: 16px 12px; border-radius: 20px; background: var(--ink-3); }
.stats b { display: block; font-family: var(--head); font-size: 1.9rem; font-weight: 800; color: var(--lime); }
.stats span { font-size: .76rem; color: var(--muted); line-height: 1.2; display: block; }
.t-lead { grid-column: 1 / -1; color: #C9CEC9; font-size: 1.02rem; }

/* біжучий рядок */
.run { overflow: hidden; padding: 12px 0; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); }
.run-track { display: flex; width: max-content; animation: run 18s linear infinite; }
.run span { font-family: var(--head); font-weight: 900; font-size: clamp(1.6rem, 6vw, 3rem); text-transform: uppercase; padding: 0 22px; color: transparent; -webkit-text-stroke: 1px var(--lime); white-space: nowrap; }
.run span:nth-child(odd) { color: var(--lime); -webkit-text-stroke: 0; }
@keyframes run { to { transform: translateX(-50%); } }

/* акордеон напрямів */
.classes { padding: 64px 0; }
.accordion { display: flex; flex-direction: column; gap: 8px; }
.panel { position: relative; height: 84px; border-radius: 22px; overflow: hidden; cursor: pointer; transition: height .55s cubic-bezier(.2, .7, .2, 1), flex .55s cubic-bezier(.2, .7, .2, 1); outline: none; }
.panel.is-open { height: 340px; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); transition: filter .5s; }
.panel.is-open img { filter: none; }
.panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(11, 13, 12, .92)); }
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 22px; }
.panel-body span { font-family: var(--head); font-size: .8rem; color: var(--lime); }
.panel-body h3 { font-size: 1.3rem; margin-top: 4px; }
.panel-body p { max-height: 0; overflow: hidden; color: #C9CEC9; font-size: .92rem; transition: max-height .5s, margin .5s; }
.panel.is-open .panel-body p { max-height: 80px; margin-top: 8px; }
.panel:focus-visible { box-shadow: 0 0 0 3px var(--lime); }

/* розклад */
.schedule { padding: 64px 0; background: var(--ink-2); border-radius: 36px 36px 0 0; }
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.day { flex: 1 0 40px; padding: 12px 0; border-radius: 14px; border: 0; background: var(--ink-3); color: var(--muted); font-family: var(--head); font-weight: 700; font-size: .85rem; cursor: pointer; }
.day.is-active { background: var(--lime); color: var(--ink); }
.slots { display: grid; gap: 0; border-left: 2px solid var(--ink-3); margin-left: 8px; }
.slots li { position: relative; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; padding: 16px 0 16px 20px; animation: fade .35s ease both; }
.slots li::before { content: ''; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; translate: 0 -50%; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--ink-2); }
.slots time { font-family: var(--head); font-weight: 700; color: var(--lime); }
.slots b { display: block; font-weight: 600; }
.slots span { font-size: .84rem; color: var(--muted); }
.slots a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ink-3); color: var(--lime); font-weight: 700; font-size: 1.2rem; }
@keyframes fade { from { opacity: 0; translate: 12px 0; } }

/* ціни */
.prices { padding: 64px 0; background: var(--ink-2); }
.prices-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.prices-head .title { margin: 0; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ink); }
.toggle button { padding: 10px 16px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; }
.toggle button.is-active { background: var(--lime); color: var(--ink); }
.toggle em { font-style: normal; font-size: .75em; font-weight: 700; }
.price-grid { display: grid; gap: 12px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border-radius: 26px; background: var(--ink); border: 1px solid var(--ink-3); }
.plan h3 { font-size: 1.1rem; }
.price { margin: 14px 0 18px; font-family: var(--head); font-size: 1.1rem; color: var(--muted); }
.price b { font-size: 2.6rem; font-weight: 900; color: var(--white); }
.price small { display: block; font-family: var(--body); font-size: .82rem; margin-top: 2px; }
.plan ul { display: grid; gap: 8px; margin-bottom: 24px; flex: 1; }
.plan li { padding-left: 20px; position: relative; color: var(--muted); font-size: .94rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.plan.is-hot { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.plan.is-hot .price, .plan.is-hot li, .plan.is-hot .price b { color: var(--ink); }
.plan.is-hot li::before { color: var(--ink); }
.plan.is-hot .btn-lime { background: var(--ink); color: var(--lime); }
.hot { position: absolute; top: 20px; right: 20px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: .78rem; font-weight: 700; }

/* пробне */
.trial { padding: 0; background: var(--lime); color: var(--ink); }
.trial-in { display: grid; gap: 24px; padding-top: 56px; padding-bottom: 64px; }
.trial h2 { font-size: clamp(3rem, 15vw, 7rem); font-weight: 900; }
.trial h2 span { display: inline-block; padding: 0 .12em; background: var(--ink); color: var(--lime); border-radius: 14px; rotate: -3deg; }
.form { display: grid; gap: 10px; }
.form input, .form select { width: 100%; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-size: 1rem; }
.form input::placeholder { color: rgba(11, 13, 12, .55); }
.form input:focus, .form select:focus { outline: none; background: rgba(255, 255, 255, .3); }

.footer { padding: 24px 0; color: var(--muted); font-size: .85rem; }
.footer-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer .logo { color: var(--white); }

@media (min-width: 768px) {
  .wrap { padding: 0 28px; }
  .nav { display: flex; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 12px; }
  .t-title { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; }
  .t-title h1 { font-size: min(5.4vw, 4.8rem); }
  .t-photo { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .t-next, .t-cta { grid-column: span 1; }
  .t-stats { grid-column: span 2; display: flex; align-items: center; }
  .t-stats .stats { width: 100%; }
  .t-lead { grid-column: span 2; display: flex; align-items: center; font-size: 1.1rem; padding: 26px 30px; }
  .accordion { flex-direction: row; height: 440px; }
  .panel, .panel.is-open { height: auto; }
  .panel { flex: 1; }
  .panel.is-open { flex: 4; }
  .panel-body h3 { white-space: nowrap; }
  .panel:not(.is-open) .panel-body h3 { writing-mode: vertical-rl; rotate: 180deg; font-size: 1.1rem; }
  .slots li { grid-template-columns: 90px 1fr auto; padding-left: 28px; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .plan.is-hot { translate: 0 -12px; }
  .trial-in { grid-template-columns: 1.2fr 1fr; align-items: center; padding-top: 80px; padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
