/* Block library skin. Loaded after Bootstrap 5. Tokens live in themes.css. */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 1.05rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 650;
  letter-spacing: var(--track);
  line-height: 1.08;
  margin: 0 0 0.5rem;
  text-transform: var(--display);
}

h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.25rem; text-transform: none; letter-spacing: 0; }

p { margin: 0 0 0.8rem; }

a { color: var(--accent); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.blk { padding: calc(64px * var(--density)) 0; }
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.dek { color: var(--muted); font-size: 1.12rem; max-width: 42rem; }
.section-head { margin-bottom: 28px; max-width: 40rem; }

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: calc(var(--radius) / 2 + 4px);
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-b);
}
.btn-brand:hover { filter: brightness(1.05); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius) / 2 + 4px);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  font-weight: 700;
}

.lead-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 10px;
}
.lead-form h3 { margin: 0; }
.lead-form label { display: grid; gap: 4px; font-size: 0.92rem; font-weight: 700; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input:not([type]) {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: calc(var(--radius) / 2);
  padding: 0.75rem 0.8rem;
  font: inherit;
  font-weight: 500;
}
.lead-form .check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}
.form-note { color: var(--muted); font-size: 0.8rem; margin: 0; }
.form-note.is-ok { color: var(--accent); }

.demo-ribbon {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
}
.demo-ribbon a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.logo {
  font-family: var(--font-h);
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: var(--track);
  font-size: 1.25rem;
}
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: 0.95rem; }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 800; white-space: nowrap; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
}
.site-header.is-center .bar { flex-wrap: wrap; justify-content: center; text-align: center; }
.site-header.is-center .nav-links { margin-left: 0; justify-content: center; width: 100%; }
.site-header.is-bar { background: var(--ink); }
.site-header.is-bar .logo,
.site-header.is-bar .nav-links a,
.site-header.is-bar .header-phone,
.site-header.is-bar .nav-toggle { color: var(--bg); }
.site-header.is-pill .bar {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  box-shadow: var(--shadow);
}

.shot, .frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.shot img, .frame img, .pair img, .collage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: var(--bg-2);
}

.blk-hero.is-split .hero-copy { padding-right: 8px; }
.bullets { padding: 0; margin: 14px 0; list-style: none; display: grid; gap: 8px; }
.bullets li {
  padding-left: 1.2rem;
  position: relative;
}
.bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55rem;
}
.badge-trust {
  display: inline-block;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.blk-hero.is-full { position: relative; overflow: hidden; }
.blk-hero.is-full .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blk-hero.is-full .hero-card {
  position: relative;
  max-width: 640px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-deep);
}
.blk-hero.is-collage .collage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 180px 180px;
  gap: 10px;
}
.blk-hero.is-collage .collage img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.blk-hero.is-collage .collage img:first-child { grid-row: 1 / span 2; }
.blk-hero.is-editorial h1 { font-size: clamp(3rem, 8vw, 6.2rem); }
.blk-hero.is-editorial .editorial-rule {
  height: 8px;
  width: 120px;
  background: var(--accent);
  margin: 12px 0 18px;
}
.blk-hero.is-formside .side-card { position: sticky; top: 88px; }

.pain, .benefit, .step, .svc, .trust-card, .g-card, .review-card, .post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  height: 100%;
}
.pain h3, .benefit h3, .step h3, .svc h3 { font-size: 1.15rem; }

.blk-pains.is-list .pain { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.idx {
  font-family: var(--font-h);
  color: var(--accent);
  font-size: 1.4rem;
}
.blk-pains.is-bands .pain { border-left: 6px solid var(--accent); border-radius: 0; box-shadow: none; }
.blk-pains.is-mosaic .mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 12px;
}
.blk-pains.is-mosaic .pain:first-child { grid-row: span 2; }

.stat {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: var(--track);
  line-height: 1;
  margin: 0;
}
.is-example {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 6px;
  margin-right: 6px;
  vertical-align: middle;
}
.blk-benefits.is-bento .bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}
.blk-benefits.is-bento .benefit:first-child { grid-row: span 2; }
.blk-benefits.is-ticker .benefit { display: flex; justify-content: space-between; gap: 16px; align-items: center; }

.timeline { border-left: 2px solid var(--accent); margin-left: 10px; display: grid; gap: 16px; }
.timeline .step { margin-left: 18px; position: relative; }
.timeline .step::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -26px;
  top: 22px;
}
.blk-steps.is-zigzag .step:nth-child(even) { margin-left: 8%; }
.blk-steps.is-row .step { min-height: 100%; }

.price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.15rem;
}
.blk-services.is-table .svc {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr auto;
  gap: 12px;
  align-items: center;
}
.blk-services.is-feature .svc:first-child {
  background: var(--ink);
  color: var(--bg);
}
.blk-services.is-feature .svc:first-child .price,
.blk-services.is-feature .svc:first-child p { color: var(--bg); }

.quiz { display: grid; gap: 14px; }
.quiz-step { display: none; }
.quiz-step.is-on { display: block; }
.opt {
  display: block;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) / 2);
  padding: 10px 12px;
  margin: 8px 0;
  cursor: pointer;
  background: var(--bg);
}
.blk-quiz.is-cards .opt { font-size: 1.05rem; padding: 16px; }
.calc-out {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px dashed var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.blk-gallery.is-film .film {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 28%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cap { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

.review-card blockquote { margin: 8px 0; font-size: 1.05rem; }
.blk-reviews.is-quotes .review-card { border: 0; border-top: 4px solid var(--accent); box-shadow: none; }

.blk-about.is-story .story { font-size: 1.15rem; max-width: 46rem; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-width: 140px;
}

.certs { display: flex; flex-wrap: wrap; gap: 8px; }
.cert {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--card);
  font-size: 0.88rem;
}
.blk-guarantees.is-check .g-card { display: flex; gap: 10px; }

details.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 8px 0;
}
details.faq-item summary { cursor: pointer; font-weight: 750; }
.blk-faq.is-columns { column-count: 2; column-gap: 16px; }
.blk-faq.is-columns .faq-item { break-inside: avoid; }

.blk-cta .cta-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
}
.blk-cta .cta-box .dek,
.blk-cta .cta-box p { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.blk-cta.is-urgent .cta-box { background: var(--accent); color: var(--accent-ink); }
.blk-cta.is-urgent .cta-box .dek { color: var(--accent-ink); }
.blk-cta.is-center { text-align: center; }
.blk-cta.is-center .lead-form { text-align: left; max-width: 460px; margin: 0 auto; }

.map-frame {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.contact-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.contact-list a { color: var(--ink); font-weight: 750; }
.blk-contacts.is-phone .big-phone {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: var(--track);
  color: var(--ink);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 90px;
  color: var(--muted);
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer.is-big .mega-brand {
  font-family: var(--font-h);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: var(--track);
}

.messengers {
  position: fixed;
  z-index: 60;
  display: grid;
  gap: 8px;
}
.messengers a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--shadow-deep);
}
.messengers.is-dock { right: 16px; bottom: 88px; }
.messengers.is-stack { left: 16px; bottom: 88px; }
.messengers.is-bar {
  right: 16px;
  bottom: 88px;
  grid-auto-flow: column;
}
.messengers.is-bar a { width: auto; border-radius: 999px; padding: 0 12px; }

.exit-pop {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(520px, calc(100% - 24px));
}
.exit-pop::backdrop { background: rgba(0, 0, 0, 0.55); }
.exit-pop .panel {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-deep);
}
.exit-pop.is-sheet { margin: auto auto 0; max-width: 100%; width: 100%; }
.exit-pop.is-corner { margin: auto 16px 16px auto; }

.mobile-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--bg);
  grid-template-columns: 1fr 1fr 1fr;
}
.mobile-dock a {
  color: var(--bg);
  text-decoration: none;
  text-align: center;
  padding: 12px 6px;
  font-weight: 750;
  font-size: 0.92rem;
}

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 74px;
  z-index: 58;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.cookie[hidden] { display: none; }

.blk-inner .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.article { max-width: 46rem; }
.article + .article { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: calc(var(--radius) / 2);
  padding: 12px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.slot.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.manager-log {
  min-height: 140px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 10px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.manager-log p { margin: 0 0 6px; }

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .site-header .header-phone,
  .site-header .bar > .btn-brand { display: none; }
  .site-header .bar { min-width: 0; }
  .logo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    flex-direction: column;
  }
  .site-header.is-open .nav-links { display: flex; }
  .blk-pains.is-mosaic .mosaic,
  .blk-benefits.is-bento .bento,
  .gallery-grid,
  .blk-inner .cards,
  .blk-services.is-table .svc { grid-template-columns: 1fr 1fr; }
  .blk-hero.is-collage .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px; }
  .blk-faq.is-columns { column-count: 1; }
  .mobile-dock { display: grid; }
  .messengers.is-dock, .messengers.is-stack { bottom: 64px; }
}

@media (max-width: 640px) {
  .blk { padding: 48px 0; }
  .gallery-grid,
  .blk-pains.is-mosaic .mosaic,
  .blk-benefits.is-bento .bento,
  .blk-inner .cards,
  .pair,
  .blk-services.is-table .svc { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; bottom: 64px; }
  .blk-benefits.is-ticker .benefit { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
