/* MAOKA — components */

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--text-light);
  transition: color .45s var(--ease), background-color .45s var(--ease), transform .5s var(--ease-out), backdrop-filter .45s;
}
.site-header::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: currentColor; opacity: 0; transition: opacity .45s; }
.site-header.is-light { color: var(--text-dark); }
.site-header.is-scrolled { background: rgba(17, 19, 21, .55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.site-header.is-scrolled.is-light { background: rgba(243, 241, 236, .82); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo svg { height: 22px; width: auto; }
.logo-mark { width: 22px; height: 22px; flex: none; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: clamp(14px, 1.8vw, 30px); }
.main-nav a { font-size: 14px; letter-spacing: .02em; position: relative; padding: 6px 0; opacity: .86; transition: opacity .2s; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang { position: relative; }
.lang-toggle { font-size: 13px; letter-spacing: .1em; padding: 8px 4px; display: inline-flex; gap: 6px; align-items: center; }
.lang-toggle svg { width: 9px; transition: transform .3s; }
.lang[data-open] .lang-toggle svg { transform: rotate(180deg); }
.lang-list { position: absolute; right: -12px; top: calc(100% + 8px); list-style: none; background: var(--charcoal); color: var(--text-light); padding: 8px 0; min-width: 120px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease); }
.lang[data-open] .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list a { display: block; padding: 9px 18px; font-size: 13px; letter-spacing: .08em; }
.lang-list a:hover, .lang-list a[aria-current="true"] { background: rgba(255,255,255,.08); }
.btn-header { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: 13px 20px; border: 1px solid currentColor; transition: background .3s, color .3s; white-space: nowrap; }
.btn-header:hover { background: var(--text-light); color: var(--charcoal); border-color: var(--text-light); }
.is-light .btn-header:hover { background: var(--charcoal); color: var(--text-light); border-color: var(--charcoal); }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--charcoal); color: var(--text-light);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-out), visibility 0s .7s; overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out); }
.menu-open .site-header { color: var(--text-light); background: transparent; backdrop-filter: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a { display: block; font-size: clamp(34px, 9vw, 64px); letter-spacing: -0.04em; line-height: 1.12; padding: 4px 0; overflow-wrap: anywhere; }
/* MAO-06: long PL/RU menu words (e.g. "Przygotowanie") widened the fixed menu and the page at 320 px */
.mobile-menu { overflow-x: hidden; }
@media (max-width: 360px) {
  .mobile-menu li a { font-size: 28px; }
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
}
.mobile-menu .mm-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 15px; margin-top: 40px; opacity: .8; }

@media (max-width: 1180px) {
  .main-nav, .header-actions .btn-header { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) { :root { --header-h: 68px; } .logo svg { height: 18px; } }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 58px; padding: 0 30px; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid currentColor; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.btn span, .btn svg { position: relative; }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid-light { background: var(--text-light); color: var(--charcoal); border-color: var(--text-light); }
.btn--solid-light::before { background: var(--charcoal); }
.btn--solid-light:hover { color: var(--text-light); }
.btn--solid-dark { background: var(--charcoal); color: var(--text-light); border-color: var(--charcoal); }
.btn--solid-dark::before { background: var(--accent); }
.btn--solid-dark:hover { border-color: var(--accent); }
.btn--ghost-light { color: var(--text-light); }
.btn--ghost-light:hover { color: var(--charcoal); }
.btn--ghost-light::before { background: var(--text-light); }
.btn--ghost-dark { color: var(--text-dark); }
.btn--ghost-dark::before { background: var(--charcoal); }
.btn--ghost-dark:hover { color: var(--text-light); }
.btn:hover::before { transform: scaleY(1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: 10px 0; border-bottom: 1px solid currentColor; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 13px; letter-spacing: .04em; opacity: .75; margin-bottom: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- accordion (details) ---------- */
.acc { border-top: 1px solid var(--line-dark); }
.t-dark .acc, .t-ink .acc, .t-graphite .acc, .t-dark .acc-item, .t-ink .acc-item, .t-graphite .acc-item { border-color: var(--line-light); }
.acc-item { border-bottom: 1px solid var(--line-dark); }
.acc-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 24px; align-items: center; padding: 30px 0; font-size: clamp(20px, 1.7vw, 27px); letter-spacing: -0.02em; line-height: 1.25; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-icon { width: 28px; height: 28px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item[open] .acc-icon::after { transform: rotate(0); }
.acc-body { padding: 0 56px 34px 0; max-width: 78ch; }
.acc-body p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 10px; }
.field label, .field .label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 12px 0 14px; font-size: 19px; border-radius: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .2s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; }
.field select option { color: var(--text-dark); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field .hint { font-size: 14px; opacity: .65; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #C2410C; }
.field .err { font-size: 14px; color: #C2410C; min-height: 0; }
.t-dark .field .err, .t-ink .field .err { color: #F59E6B; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; gap: 30px; } }

.choice-list { list-style: none; border-top: 1px solid currentColor; }
.choice-list li { border-bottom: 1px solid var(--line-dark); }
.t-dark .choice-list li, .t-ink .choice-list li { border-color: var(--line-light); }
.choice {
  width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 22px 0; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.03em; transition: padding .45s var(--ease-out), color .3s;
}
.choice .idx { font-size: 13px; letter-spacing: .1em; opacity: .72; }
.choice svg { width: 22px; height: 22px; opacity: 0; transform: translateX(-8px); transition: .45s var(--ease-out); }
.choice:hover, .choice[aria-pressed="true"], .choice.is-checked { padding-left: 14px; }
.choice:hover svg, .choice[aria-pressed="true"] svg, .choice.is-checked svg { opacity: 1; transform: none; }
.choice[aria-pressed="true"], .choice.is-checked { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line-dark); padding: 11px 16px; font-size: 15px; transition: .25s; min-height: 44px; }
.chip:hover { border-color: currentColor; }
.chip[aria-pressed="true"] { background: var(--charcoal); color: var(--text-light); border-color: var(--charcoal); }
.form-note { font-size: 14px; opacity: .7; }
.form-status { padding: 18px 20px; border-left: 2px solid var(--accent); background: rgba(36, 93, 255, .06); font-size: 16px; }

/* ---------- before / after ---------- */
.ba { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--graphite); }
.ba picture, .ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: var(--text-light); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos, 50%); width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 1px solid var(--text-light); background: rgba(17,19,21,.35); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--text-light); pointer-events: none; }
.ba-knob svg { width: 26px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible + .ba-knob { outline: 2px solid var(--accent); outline-offset: 4px; }
.ba-tag { position: absolute; top: 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); background: rgba(17,19,21,.45); padding: 8px 12px; pointer-events: none; }
.ba-tag--l { left: 22px; } .ba-tag--r { right: 22px; }

/* ---------- index list (related / directory) ---------- */
.index-list { list-style: none; border-top: 1px solid currentColor; }
.index-list li { border-bottom: 1px solid var(--line-dark); }
.t-dark .index-list li, .t-ink .index-list li, .t-graphite .index-list li { border-color: var(--line-light); }
.index-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 28px; gap: 24px; align-items: baseline; padding: 26px 0; transition: padding .5s var(--ease-out); }
.index-list a:hover { padding-left: 16px; }
.index-list .t { font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.03em; line-height: 1.15; }
.index-list .d { font-size: 16px; opacity: .7; line-height: 1.5; }
.index-list svg { width: 22px; height: 22px; align-self: center; transition: transform .45s var(--ease-out); }
.index-list a:hover svg { transform: translateX(6px); }
@media (max-width: 720px) { .index-list a { grid-template-columns: 1fr 22px; } .index-list .d { grid-column: 1; } .index-list svg { grid-row: 1; grid-column: 2; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; min-height: 78svh; display: flex; align-items: flex-end; color: var(--text-light); background: var(--charcoal); }
.cta-band .media { position: absolute; inset: 0; }
.cta-band .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,21,.35) 0%, rgba(17,19,21,.55) 45%, rgba(17,19,21,.88) 100%); }
.cta-band .wrap { position: relative; padding-top: var(--section); padding-bottom: clamp(56px, 7vw, 110px); }
.cta-band h2 { font-size: var(--fs-display); letter-spacing: -0.045em; line-height: .95; max-width: 14ch; margin-bottom: 40px; }
.cta-band .cta-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-light); font-size: 15px; }
.cta-band .cta-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: var(--text-light); padding: clamp(80px, 9vw, 150px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.footer-brand p { color: var(--muted-light); max-width: 34ch; margin-top: 26px; font-size: 16px; }
.site-footer h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted-light); margin-bottom: 22px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 11px; font-size: 16px; }
.site-footer li a { opacity: .9; }
.site-footer li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-word { font-size: clamp(80px, 21vw, 360px); letter-spacing: -0.06em; line-height: .8; margin: clamp(60px, 8vw, 120px) 0 30px; color: var(--graphite); font-weight: 500; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 14px; color: var(--muted-light); }
.footer-bottom a:hover { color: var(--text-light); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- reveal primitives (enabled by JS only) ---------- */
.js .rv-line { display: block; overflow: hidden; padding: .14em 0 .08em; margin: -.14em 0 -.08em; }
.js .rv-line > span { display: block; }
.js [data-reveal="fade"] { opacity: 0; }
.js [data-reveal="clip"] { clip-path: inset(100% 0 0 0); }
.js.no-motion [data-reveal="fade"], .js.no-motion [data-reveal="clip"] { opacity: 1; clip-path: none; }

/* scope tag */
.scope { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border: 1px solid currentColor; }
.scope i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }

/* ---------- messengers (WhatsApp / Viber / Telegram) ---------- */
.msg-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.msg-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(17, 19, 21, .22); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease); }
.msg-btn svg { width: 26px; height: 26px; }
.msg-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px rgba(17, 19, 21, .3); }
.msg-wa { background: #25D366; }
.msg-vb { background: #7360F2; }
.msg-tg { background: #229ED9; }
@media (max-width: 600px) { .msg-float { gap: 8px; } .msg-btn { width: 46px; height: 46px; } .msg-btn svg { width: 23px; height: 23px; } }
@media print { .msg-float { display: none; } }
.msg-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.msg-links a { display: inline-flex; align-items: center; gap: 8px; }
.msg-links svg { width: 20px; height: 20px; flex: none; }
