@font-face { font-family: "Unbounded"; src: url(../fonts/unbounded-cyrillic.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url(../fonts/unbounded-latin.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Golos Text"; src: url(../fonts/golos-text-cyrillic.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url(../fonts/golos-text-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD, U+20BD; }

:root {
  --wall: #f4f3ef;
  --wall-2: #e9e7e1;
  --ink: #1d1b1a;
  --ink-2: #57514c;
  --wood: #3b2e27;
  --wood-2: #33271f;
  --wood-ink: #f4efe9;
  --wood-ink-2: #cdbfb3;
  --pink: #e862a8;
  --sky: #5db7e8;
  --mint: #6fd1ae;
  --orange: #f29a38;
  --block: #1d1b1a;
  --hall-oka: var(--sky);
  --hall-pet: var(--pink);

  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r-mat: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.floor :focus-visible { outline-color: var(--wall); }
html { scrollbar-color: var(--wood) var(--wall-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--wall); padding: 10px 14px; border-radius: 8px; }
.show-sm { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.15em; border-radius: var(--r-mat); border: 2px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 40px; padding: 0 .9em; font-size: .9375rem; }
.btn-ink { background: var(--ink); color: var(--wall); }
.btn-ink:hover { background: var(--wood); }
.btn-wall { background: var(--wall); color: var(--ink); }
.btn-wall:hover { background: #fff; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: underline; }
.link:hover { text-decoration-thickness: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--wall) 94%, transparent); backdrop-filter: saturate(1.2) blur(8px); }
/* Логотип как в CRM, стиль «Коврик»: название на Unbounded 600 и розовая полоска-коврик под ним */
.brand { position: relative; display: inline-block; padding-bottom: 9px; font: 600 1.375rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand-bar { position: absolute; left: 0; bottom: 0; width: 46px; height: 6px; border-radius: 2px; background: var(--pink); transform: rotate(-3deg); }
.brand:hover { opacity: .85; }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; }
.top-nav a { text-decoration: none; padding: 8px 0; }
.top-nav a:hover { text-decoration: underline; }

/* Parquet: planks running across, staggered seams */
.floor {
  background-color: var(--wood);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='96'%3E%3Cg fill='%23000' fill-opacity='.26'%3E%3Crect y='46' width='360' height='1'/%3E%3Crect y='94' width='360' height='1'/%3E%3Crect x='0' width='1' height='46'/%3E%3Crect x='212' y='47' width='1' height='47'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.035'%3E%3Crect y='47' width='360' height='1'/%3E%3Crect y='95' width='360' height='1'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08));
  background-size: 360px 96px, auto;
  color: var(--wood-ink);
}

/* Hero */
.hero { position: relative; }
.wall { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vh, 72px) var(--gutter) clamp(28px, 5vh, 56px); }
.hero h1 { font-size: clamp(1.9rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.lead { margin-top: clamp(16px, 2.4vh, 24px); max-width: 36em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); }

.hero-floor { padding: clamp(28px, 5vh, 56px) 0 0; }
.floor-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: clamp(6px, 1.2vw, 16px); align-items: stretch; }
.mat-row { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(6px, 1.2vw, 16px); }
.mat { display: block; border-radius: var(--r-mat); aspect-ratio: 1 / 2.9; background: var(--c, var(--mint)); position: relative; }
/* rolled-out edge: lighter end stripe where the roll opened */
.mat::after { content: ""; position: absolute; inset: auto 0 0 0; height: 7%; border-radius: 0 0 var(--r-mat) var(--r-mat); background: rgba(255,255,255,.18); }
.m-pink { --c: var(--pink); } .m-sky { --c: var(--sky); } .m-mint { --c: var(--mint); } .m-orange { --c: var(--orange); }
.h-oka { --c: var(--hall-oka); } .h-pet { --c: var(--hall-pet); }
.mat-row .mat:nth-child(3n+1) { transform: rotate(-1.2deg); }
.mat-row .mat:nth-child(4n+2) { transform: rotate(.9deg) translateY(4%); }
.mat-row .mat:nth-child(5n) { transform: rotate(-.4deg) translateY(-3%); }
.blk { position: absolute; left: var(--x); top: var(--y); width: clamp(14px, 2.2vw, 30px); aspect-ratio: 1.5 / 1; background: var(--block); border-radius: 3px; transform: rotate(8deg); }
.blk:nth-of-type(2n) { transform: rotate(-12deg); }

.mat-yours { width: clamp(64px, 9.2vw, 112px); aspect-ratio: auto; background: transparent; border: 3px dashed var(--wall); color: var(--wall); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font: 600 clamp(.75rem, 1vw, .95rem)/1.2 var(--display); text-align: center; padding: 8px; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.mat-yours::after { display: none; }
.mat-yours .ico { width: 28px; height: 28px; }
.mat-yours span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em; }
.mat-yours:hover { background: var(--wood-ink); color: var(--wood); border-style: solid; }

.floor-bar { max-width: var(--max); margin: 0 auto; padding: clamp(20px, 3vh, 32px) var(--gutter) clamp(28px, 4vh, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.next-label { flex-basis: 100%; font-size: .9rem; color: var(--wood-ink-2); }
.next-when { font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.1 var(--display); letter-spacing: -0.02em; }
.next-where, .next-price { color: var(--wood-ink-2); }
.next-where { color: var(--wood-ink); font-weight: 500; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }

/* Schedule */
.schedule { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid rgba(0,0,0,.35); }
.sec-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { color: inherit; opacity: .82; font-size: 1.0625rem; }
.schedule .sec-head p { color: var(--wood-ink-2); opacity: 1; }
.week { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244,239,233,.16); }
.day { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(244,239,233,.16); }
.day-name { font: 500 1.05rem/1.2 var(--display); letter-spacing: -0.01em; }
.day-off .day-name, .slot-none { color: var(--wood-ink-2); }
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slot { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 18px 0 16px; border-radius: var(--r-mat); border: 2px solid var(--c); background: transparent; color: var(--wood-ink); font: inherit; cursor: pointer; text-align: left; transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.slot b { white-space: nowrap; font: 600 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.slot span { font-size: .95rem; }
.slot:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.slot[aria-pressed="true"] { background: var(--c); color: var(--ink); transform: rotate(-.6deg); }
.slot[aria-pressed="true"] span::after { content: " · выбрано"; font-weight: 600; }
.slot.is-next:not([aria-pressed="true"]) span::after { content: " · ближайшее"; color: var(--wood-ink-2); }

.halls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 56px); }
.hall { display: grid; grid-template-columns: 22px 1fr; gap: 18px; }
.hall-swatch { width: 22px; aspect-ratio: 1 / 2.9; border-radius: 5px; background: var(--c); align-self: start; margin-top: 2px; }
.hall h3 { margin-bottom: 8px; }
.hall p { color: var(--wood-ink-2); }
.hall .hall-days { color: var(--wood-ink); margin: 4px 0 12px; font-variant-numeric: tabular-nums; }

/* Booking */
.booking { padding: clamp(56px, 8vw, 104px) 0; background: var(--wall); }
.booking-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.booking-grid > div:first-child p { margin-top: 14px; color: var(--ink-2); max-width: 30em; }
.ticket { background: #fff; border-radius: 14px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; border: 1px solid var(--wall-2); }
.ticket-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 1.05rem; }
.ticket-slot strong { font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.01em; }
.ticket-slot > span:last-child { color: var(--ink-2); }
.ticket-mat { width: 14px; height: 36px; border-radius: 4px; background: var(--c); }
.ticket-text { padding: 16px 18px; background: var(--wall); border-radius: 10px; font-size: 1rem; }
.ticket-actions { display: flex; gap: 10px; }
.ticket.is-laid .ticket-mat { animation: lay .6s var(--ease); }
@keyframes lay { from { transform: scaleY(.25) rotate(-8deg); } to { transform: none; } }

/* Expect */
.expect { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 88px); }
.expect-list { margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(28px, 6vw, 88px); }
.expect-list dt { display: flex; align-items: center; gap: 14px; font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.01em; margin-bottom: 10px; }
.expect-list dd { margin: 0; color: var(--ink-2); max-width: 34em; }
.sw { width: 34px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }

/* Gallery */
.gallery { padding: 0 0 clamp(56px, 8vw, 104px); }
.strip { display: flex; gap: clamp(10px, 1.4vw, 18px); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; flex: none; height: clamp(280px, 42vw, 520px); scroll-snap-align: center; border-radius: 12px; overflow: hidden; background: var(--wall-2); }
.strip img { height: 100%; width: auto; object-fit: cover; }

/* Prices */
.prices { padding-bottom: clamp(56px, 8vw, 104px); }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.offer { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: clamp(22px, 3vw, 36px); border-radius: 14px; border: 2px solid var(--ink); }
.offer > p:not(.price) { color: var(--ink-2); }
.offer .btn { justify-self: start; margin-top: 14px; }
.offer-mats { display: flex; gap: 6px; height: 64px; margin-bottom: 12px; }
.offer-mats .mat { height: 100%; width: auto; aspect-ratio: 1 / 2.9; border-radius: 5px; }
.price { font: 700 clamp(2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price s { font-size: .45em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: .3em; }

/* Teacher */
.teacher { padding: clamp(56px, 8vw, 104px) 0; margin-top: clamp(40px, 6vw, 96px); }
.teacher .teacher-role, .teacher blockquote { color: var(--wood-ink); }
.teacher .teacher-role { color: var(--wood-ink-2); }
.teacher-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.teacher-photo { margin: calc(-1 * clamp(96px, 12vw, 180px)) 0 0; padding: 10px; border-radius: 6px; background: #fff; transform: rotate(-1.6deg); }
.teacher-photo img { border-radius: 3px; }
.teacher-grid { align-items: start; }
.teacher-grid > div { padding-top: clamp(0px, 2vw, 24px); }
.teacher-role { margin-top: 10px; color: var(--ink-2); }
.teacher blockquote { margin: clamp(22px, 3vw, 36px) 0 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; max-width: 34em; }

/* Reviews */
.reviews { padding: clamp(56px, 8vw, 104px) 0; }
.reviews h2 { margin-bottom: clamp(24px, 4vw, 44px); }
.review-row { display: flex; gap: clamp(14px, 2vw, 24px); padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-color: var(--ink-2) transparent; }
.review { margin: 0; align-self: flex-start; flex: 0 0 min(400px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 26px; border-radius: 14px; background: #fff; border: 1px solid var(--wall-2); }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.review figcaption img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.review figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }

/* Online */
.online { background: var(--sky); color: var(--ink); padding: clamp(48px, 7vw, 88px) 0; }
.online-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.online-grid p { margin-top: 14px; max-width: 32em; font-size: 1.1rem; }
.online-offer { display: grid; gap: 18px; justify-items: start; }
.online-offer .price span { display: block; margin-top: 8px; font: 500 1rem/1.3 var(--body); letter-spacing: 0; }

/* FAQ */
.faq { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.faq-list { border-top: 1px solid var(--wall-2); }
.faq details { border-bottom: 1px solid var(--wall-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }

/* Articles */
.articles { padding-bottom: clamp(56px, 8vw, 104px); }
.sec-head-row { display: flex; justify-content: space-between; align-items: baseline; max-width: none; flex-wrap: wrap; }
.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.article { display: grid; gap: 10px; text-decoration: none; }
.article img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--wall-2); }
.article time { font-size: .875rem; color: var(--ink-2); }
.article span { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.article:hover span { text-decoration: underline; }

/* Footer */
.foot { padding: clamp(40px, 6vw, 72px) 0 clamp(96px, 10vw, 72px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.foot p, .foot-contacts span { color: var(--wood-ink-2); margin-top: 8px; }
.foot nav, .foot-contacts { display: grid; gap: 8px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Mobile dock with the chosen slot */
.dock { display: none; }

/* Motion: mats roll out once */
@media (prefers-reduced-motion: no-preference) {
  .js .mat-row .mat { animation: unroll .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transform-origin: 50% 0; }
  .js .mat-yours { animation: fade .6s var(--ease) .6s both; }
}
@keyframes unroll { from { clip-path: inset(0 0 82% 0 round var(--r-mat)); } to { clip-path: inset(0 0 0 0 round var(--r-mat)); } }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Responsive */
@media (max-width: 900px) {
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
  .booking-grid, .teacher-grid, .online-grid, .faq { grid-template-columns: 1fr; }
  .teacher-photo { max-width: 420px; }
  .article-list { grid-template-columns: 1fr; }
  .article { grid-template-columns: 120px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; }
  .article img { grid-row: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .floor-inner { grid-template-columns: 1fr; }
  .mat-row { grid-template-columns: repeat(12, 1fr); gap: 5px; }
  .mat { border-radius: 6px; }
  .mat-yours { width: 100%; aspect-ratio: auto; flex-direction: row; min-height: 56px; border-radius: var(--r-mat); }
  .mat-yours span { writing-mode: horizontal-tb; transform: none; }
  .mat-yours .ico { width: 22px; height: 22px; }
  .messengers { width: 100%; }
  .messengers .btn { flex: 1 1 calc(50% - 5px); }
  .day { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .slot { width: 100%; }
  .halls, .expect-list, .offers { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .dock { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--wall); border: 1px solid var(--wall-2); transform: translateY(140%); transition: transform .45s var(--ease); }
  .dock.is-on { transform: none; }
  .dock.is-on.is-hidden { transform: translateY(140%); }
  .dock-mat { width: 10px; height: 32px; border-radius: 3px; background: var(--c); flex: none; }
  .dock-text { font-size: .9rem; line-height: 1.25; flex: 1; min-width: 0; }
  .dock-text b { display: block; font-family: var(--display); font-weight: 600; }
  .dock-text span { color: var(--ink-2); }
}
.slot b small { font-size: .7em; font-weight: 500; opacity: .75; margin-left: 2px; }
[hidden] { display: none !important; }
.online-offer .price { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.price s { font-size: max(.45em, 14px); }

.foot .foot-legal { font-size: .875rem; margin-top: 16px; }
.foot-docs { display: grid; gap: 8px; align-content: start; }
.foot-cookie { justify-self: start; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.foot-cookie:hover { text-decoration: underline; }

/* Cookie notice */
.cookie { position: fixed; z-index: 40; left: var(--gutter); bottom: 16px; max-width: 460px; display: grid; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--wall); color: var(--ink); border: 2px solid var(--ink); }
.cookie p { font-size: .9375rem; line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-open .dock { visibility: hidden; }
@media (max-width: 640px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 16px; }
  .cookie-actions .btn { flex: 1; }
}

/* Online: three steps as mats */
.steps-floor { position: relative; padding: clamp(32px, 5vh, 56px) 0 clamp(40px, 6vh, 64px); }
.steps { list-style: none; margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: clamp(14px, 2vw, 28px); align-items: start; }
.step { position: relative; display: grid; align-content: start; gap: 8px; min-height: 180px; padding: 22px 24px 30px; border-radius: var(--r-mat); background: var(--c, var(--mint)); color: var(--ink); }
.step::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; border-radius: 0 0 var(--r-mat) var(--r-mat); background: rgba(255,255,255,.18); }
.step b { font: 700 clamp(1.9rem, 3vw, 2.5rem)/1 var(--display); }
.step span { font: 600 1.15rem/1.25 var(--display); letter-spacing: -0.01em; }
.step small { font-size: .95rem; line-height: 1.45; color: var(--ink); }
.step.m-pink { transform: rotate(-1.4deg); }
.step.m-sky { margin-top: clamp(28px, 7vh, 80px); transform: rotate(1.1deg); }
.step-yours { background: transparent; border: 3px dashed var(--wall); color: var(--wood-ink); padding: 26px 28px 28px; }
.step-yours::after { display: none; }
.step-yours small { color: var(--wood-ink-2); }
.step-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 14px; }
.step .step-price-num { font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); letter-spacing: -0.03em; }
.step-price s, .step .step-price-note { font: 400 1rem/1.4 var(--body); letter-spacing: 0; color: var(--wood-ink-2); }
.step-yours .messengers { margin-top: 12px; }
.teacher-note { margin-top: 18px; color: var(--wood-ink-2); }
.teacher-note a { color: var(--wood-ink); }
.top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step-yours { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { min-height: 0; }
  .step.m-sky { margin-top: 0; transform: rotate(.8deg); }
  .step.m-pink { transform: rotate(-.8deg); }
}

.step .blk-on { left: auto; top: auto; right: 18px; bottom: -12px; width: clamp(22px, 2.4vw, 32px); z-index: 1; transform: rotate(9deg); }
.step.m-sky .blk-on { right: auto; left: 22px; transform: rotate(-11deg); }
.step-yours { transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.step-yours:hover, .step-yours:focus-within { border-style: solid; }
.step-copied { margin-top: 10px; padding: 10px 14px; border-radius: 8px; background: var(--wall); color: var(--ink); font-size: .9375rem; }
@media (max-width: 640px) {
  .steps-floor { padding-top: 20px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { padding: 14px 14px 20px; gap: 4px; }
  .step b { font-size: 1.5rem; }
  .step span { font-size: .95rem; }
  .step small { display: none; }
  .step.m-sky { margin-top: 16px; }
  .step-yours { grid-column: 1 / -1; padding: 18px 18px 20px; }
  .step-yours small { display: block; }
  .step .blk-on { bottom: -9px; width: 20px; }
  .hero .wall { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 640px) {
  .step.m-sky small { display: block; font-size: .8125rem; line-height: 1.35; }
}

/* Blog and articles (Read) */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .9rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); }
.blog-head, .post-head { padding-top: clamp(28px, 5vw, 56px); }
.blog-head h1, .post-head h1 { margin-top: 18px; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.blog-head .lead { margin-bottom: clamp(28px, 4vw, 48px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 18px; color: var(--ink-2); font-size: .95rem; }
.post-meta time { font-variant-numeric: tabular-nums; }
.post-cover { margin: clamp(24px, 4vw, 40px) auto 0; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 12px; background: var(--wall-2); }

.prose { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; }
.prose h3 { margin-top: 1.8em; font-size: 1.15rem; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.6em; }
.prose li + li { margin-top: .55em; }
.prose li::before { content: ""; position: absolute; left: .15em; top: .5em; width: .42em; height: 1.05em; border-radius: 3px; background: var(--c, var(--pink)); transform: rotate(-1.5deg); }
.prose li:nth-child(even)::before { transform: rotate(1.2deg); }
.prose li:nth-child(4n+2)::before { --c: var(--sky); }
.prose li:nth-child(4n+3)::before { --c: var(--mint); }
.prose li:nth-child(4n)::before { --c: var(--orange); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--wall-2); min-width: 140px; }
.prose th { font: 600 .95rem/1.3 var(--display); letter-spacing: -0.01em; border-bottom: 2px solid var(--ink); }

.blog-list { padding-bottom: clamp(56px, 8vw, 104px); display: grid; gap: clamp(32px, 5vw, 56px); }
.post-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; text-decoration: none; }
.post-lead img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--wall-2); }
.post-lead-text { display: grid; gap: 12px; }
.post-lead-text time { font-size: .9rem; color: var(--ink-2); }
.post-lead-text strong { font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--display); letter-spacing: -0.02em; }
.post-lead-text > span:not(.link) { color: var(--ink-2); }
.post-lead:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }

.cta-band { padding: clamp(48px, 7vw, 88px) 0; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.cta-grid p { margin-top: 14px; max-width: 36em; color: var(--wood-ink-2); }
.cta-grid .messengers { margin-top: 24px; }
.cta-mats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 280px; }
.cta-mats .mat:nth-child(odd) { transform: rotate(-1.5deg); }
.cta-mats .mat:nth-child(even) { transform: rotate(1.2deg) translateY(6%); }
.cta-mats .blk-on { position: absolute; left: 38%; bottom: -10px; top: auto; width: 26px; transform: rotate(10deg); }
@media (max-width: 900px) {
  .post-lead, .cta-grid { grid-template-columns: 1fr; }
  .cta-mats { max-width: 200px; }
}
@media (max-width: 640px) {
  .prose { font-size: 1.0625rem; }
  .cta-mats { max-width: 150px; gap: 8px; }
  .cta-mats .mat { border-radius: 6px; }
  .cta-mats .blk-on { width: 18px; bottom: -7px; }
  .crumb-tail { display: none; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { display: none; }
  .prose tr { padding: 14px 0; border-bottom: 1px solid var(--wall-2); }
  .prose tr:first-child { border-top: 2px solid var(--ink); }
  .prose td { min-width: 0; padding: 4px 0; border: 0; }
  .prose td::before { content: attr(data-label); display: block; font: 600 .8125rem/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink-2); }
  .prose td:first-child { font-weight: 600; }
  .prose td:first-child::before { display: none; }
}
.post-head, .prose { max-width: calc(760px + 2 * var(--gutter)); }
.post-cover { max-width: calc(1000px + 2 * var(--gutter)); }
.post-head h1 { max-width: none; }
.cta-band + .foot, main:has(> .cta-band:last-child) + .foot { border-top: 1px solid rgba(0,0,0,.4); }

.cta-band + .articles { padding-top: clamp(56px, 8vw, 104px); }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) { .prose table.cols-2 td::before { display: none; } }

/* Legal document */
.doc-toc { max-width: calc(760px + 2 * var(--gutter)); margin-top: clamp(24px, 4vw, 40px); }
.doc-toc h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.doc-toc ol { margin: 0; padding: 18px 22px 18px 2.6em; border: 2px solid var(--ink); border-radius: 14px; columns: 2; column-gap: 32px; }
.doc-toc li { break-inside: avoid; padding: 3px 0; }
.doc-toc a { text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.doc .prose { font-size: 1.0625rem; }
@media (max-width: 640px) { .doc-toc ol { columns: 1; } }
.doc .post-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
.doc .prose h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.doc .prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); scroll-margin-top: 90px; }
.doc .prose h2:target::before { content: ""; display: inline-block; width: 34px; height: 12px; margin-right: 12px; border-radius: 4px; background: var(--pink); vertical-align: middle; transform: rotate(-1.5deg); }
.to-toc { font-size: .9375rem; }
.to-toc a { display: inline-flex; align-items: center; gap: .4em; min-height: 48px; color: var(--ink-2); }
.to-toc .ico { transform: rotate(-90deg); }
/* the processing table reads as labelled blocks at every width */
.doc .prose table, .doc .prose tbody, .doc .prose tr, .doc .prose td { display: block; width: 100%; }
.doc .prose thead { display: none; }
.doc .prose tr { padding: 16px 0; border-bottom: 1px solid var(--wall-2); }
.doc .prose tr:first-child { border-top: 2px solid var(--ink); }
.doc .prose td { min-width: 0; padding: 4px 0; border: 0; }
.doc .prose td::before { content: attr(data-label); display: block; font: 600 .8125rem/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink-2); }
.doc .prose td:first-child { font-weight: 600; }
.doc .prose td:first-child::before { display: none; }
@media (min-width: 641px) {
  .doc .prose tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
  .doc .prose td:first-child, .doc .prose td:nth-child(3) { grid-column: 1 / -1; }
}
.doc-toc a:hover { text-decoration-color: currentColor; }

/* Photo strip controls */
.strip { cursor: grab; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.strip.is-dragging img { pointer-events: none; }
.strip-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.strip-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-mat); border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease); }
.strip-btn:hover:not(:disabled) { background: var(--ink); color: var(--wall); }
.strip-btn:disabled { opacity: .3; cursor: default; }
.strip-btn[data-strip-prev] .ico { transform: rotate(180deg); }
.strip-nav[hidden] { display: none; }

/* 404 */
.nf-code { font: 700 clamp(3rem, 9vw, 7rem)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); margin-bottom: 12px; }
.nf-floor { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.nf-mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.nf-mat { position: relative; display: grid; align-content: start; gap: 10px; min-height: 200px; padding: 24px 24px 32px; border-radius: var(--r-mat); background: var(--c); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease); }
.nf-mat::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; border-radius: 0 0 var(--r-mat) var(--r-mat); background: rgba(255,255,255,.18); }
.nf-mat b { font: 600 clamp(1.2rem, 2vw, 1.5rem)/1.2 var(--display); letter-spacing: -0.02em; }
.nf-mat span { font-size: 1rem; }
.nf-mat.m-pink { transform: rotate(-1.2deg); }
.nf-mat.m-sky { transform: rotate(1deg) translateY(12px); }
.nf-mat.m-mint { transform: rotate(-.6deg); }
.nf-mat:hover { transform: rotate(0) translateY(-4px); }
.nf-mat .blk-on { left: auto; top: auto; right: 22px; bottom: -11px; width: 28px; transform: rotate(9deg); }
.nf-mat:focus-visible { outline-color: var(--wall); }
@media (max-width: 640px) {
  .nf-mats { grid-template-columns: 1fr; }
  .nf-mat { min-height: 0; }
  .nf-mat.m-sky { transform: rotate(.8deg); }
}
main:has(> .nf:last-child) + .foot { border-top: 1px solid rgba(0,0,0,.4); }
.ticket-copied { margin-top: 2px; }

/* Reviews: clamp long quotes, expand on demand */
.review blockquote { overflow: hidden; transition: max-height .4s var(--ease); }
.review blockquote.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.review-more { justify-self: start; align-self: flex-start; margin-top: -10px; padding: 8px 0; min-height: 44px; background: none; border: 0; color: var(--ink); font: 600 .9375rem/1 var(--body); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: .25em; cursor: pointer; }
.review-more:hover { text-decoration-color: currentColor; }

/* Motion: mats unroll into view, answers and notes settle in */
@media (prefers-reduced-motion: no-preference) {
  .unroll-ready > * { clip-path: inset(0 0 100% 0 round var(--r-mat)); }
  .unroll-ready.is-in > * { animation: unroll-in .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .faq details[open] > p { animation: settle .3s var(--ease); }
  .step-copied:not([hidden]) { animation: settle .25s var(--ease); }
  .review blockquote.is-open + .review-more { animation: settle .2s var(--ease); }
}
@keyframes settle { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes unroll-in { from { clip-path: inset(0 0 100% 0 round var(--r-mat)); } to { clip-path: inset(0 0 0 0 round var(--r-mat)); } }

/* Contacts: reach first, then each hall as its own mat */
.contact-reach { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: clamp(40px, 6vw, 72px); }
.contact-phone { display: inline-flex; align-items: center; gap: .4em; font: 600 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.contact-phone:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.contact-phone .ico { width: .8em; height: .8em; }
.contact-reach .messengers { width: auto; }
.contact-mail { color: var(--ink-2); }
.contact-floor { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.contact-floor h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.hall-mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); align-items: start; }
.hall-mat { position: relative; display: grid; align-content: start; gap: 8px; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 34px) clamp(30px, 3.6vw, 42px); border-radius: var(--r-mat); background: var(--c); color: var(--ink); }
.hall-mat::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; border-radius: 0 0 var(--r-mat) var(--r-mat); background: rgba(255,255,255,.18); }
.hall-mat.h-pet { transform: rotate(-.8deg); }
.hall-mat.h-oka { transform: rotate(.7deg) translateY(14px); }
.hall-mat h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.hall-mat-addr { font-weight: 600; font-size: 1.125rem; }
.hall-times { list-style: none; margin: 10px 0 18px; padding: 0; border-top: 1px solid rgba(29,27,26,.25); }
.hall-times li { display: flex; gap: 18px; padding: 9px 0; border-bottom: 1px solid rgba(29,27,26,.25); font-variant-numeric: tabular-nums; }
.hall-times b { min-width: 2.2em; font-family: var(--display); font-weight: 600; }
.hall-mat .btn { justify-self: start; margin-top: 14px; }
.hall-mat .btn:focus-visible { outline-color: var(--ink); }
.contact-note { margin-top: clamp(36px, 5vw, 56px); max-width: 44em; color: var(--wood-ink-2); }
.contact-note a { color: var(--wood-ink); }
.contact-legal { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); }
.contact-legal h2 { margin-bottom: 24px; }
.contact-legal dl { margin: 0; max-width: 760px; border-top: 2px solid var(--ink); }
.contact-legal dl div { display: grid; grid-template-columns: 180px 1fr; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--wall-2); }
.contact-legal dt { font: 600 .9375rem/1.5 var(--display); letter-spacing: -0.01em; color: var(--ink-2); }
.contact-legal dd { margin: 0; }
@media (max-width: 640px) {
  .contact-reach { gap: 14px; }
  .contact-reach .messengers { width: 100%; }
  .hall-mats { grid-template-columns: 1fr; gap: 20px; }
  .hall-mat.h-oka { transform: rotate(.6deg); }
  .contact-legal dl div { grid-template-columns: 1fr; gap: 2px; }
}
