/* Klasno — шкільний скрапбук: синій/рожевий/жовтий як у постах, фото «полароїдами» з нахилом,
   діти, вирізані на яскравих плямах, рукописні підписи й дудли. Одна світла тема (бренд). */
:root {
  --blue: #1F4FD8;
  --blue-deep: #1739A6;
  --pink: #F6A6C6;
  --yellow: #FFC83D;
  --paper: #FBFAF5;
  --white: #FFFFFF;
  --ink: #16171D;
  --muted: #545766;
  --line: #E6E3D8;
  --mint: #8BE3C2;

  --f-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --f-body: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  --f-hand: "Marck Script", "Comic Sans MS", cursive;

  --r: 6px;
  --shadow: 0 10px 30px -12px rgba(22, 23, 29, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--blue { background: var(--blue); color: var(--paper); }
.band--pink { background: var(--pink); }
.band--yellow { background: var(--yellow); }
.band--white { background: var(--white); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 7.4vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 34em; }
.eyebrow {
  font-family: var(--f-body); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.band--blue .eyebrow { color: var(--yellow); }
.hand { font-family: var(--f-hand); font-size: clamp(22px, 2.2vw, 28px); color: var(--blue); line-height: 1.2; }
.band--blue .hand { color: var(--pink); }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; top: .42em; bottom: .02em;
  background: var(--yellow); border-radius: 40% 55% 45% 60% / 60% 45% 55% 40%; transform: rotate(-1.5deg);
}
@media (max-width: 480px) { .hl { white-space: normal; } }
.hl--pink::before { background: var(--pink); }
.hl--white::before { background: var(--paper); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: block; width: 116px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--white); }
.nav a[aria-current="page"] { background: var(--blue); color: var(--paper); }
.nav .nav-cta { background: var(--yellow); }
.menu-btn { display: none; margin-left: auto; font: 600 15px var(--f-body); background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 12px 14px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 700 17px var(--f-body); padding: 15px 24px; border: 0; border-radius: 4px;
  background: var(--blue); color: var(--paper); transform: rotate(-1deg);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: rotate(-1deg) translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--white { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; box-shadow: none; border: 2px solid currentColor; transform: none; }
.btn--ghost:hover { transform: none; box-shadow: none; background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tg-ico { width: 20px; height: 20px; flex: none; }

/* ---------- photos ---------- */
.polaroid {
  background: var(--white); padding: 10px 10px 12px; box-shadow: var(--shadow); margin: 0;
  transform: rotate(var(--rot, -2deg));
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar, 4/5); }
.polaroid figcaption { font-family: var(--f-hand); color: var(--blue); font-size: 21px; padding-top: 8px; line-height: 1.15; }
.tape { position: relative; }
.tape::after {
  content: ""; position: absolute; width: 84px; height: 24px; top: -10px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  background: color-mix(in srgb, var(--yellow) 75%, transparent);
}

/* cutout on blob */
.cut { position: relative; display: grid; place-items: end center; }
.cut .blob {
  position: absolute; inset: 14% 4% 0 4%; border-radius: 52% 48% 46% 54% / 56% 50% 50% 44%;
  background: var(--c, var(--pink));
}
.cut .ring {
  position: absolute; inset: 9% 0 -4% 0; border-radius: 48% 52% 55% 45% / 50% 56% 44% 50%;
  border: 2.5px dashed var(--ring, var(--ink)); transform: rotate(-6deg);
}
.cut img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.cut .tag {
  position: absolute; z-index: 2; font-family: var(--f-hand); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.1;
  background: var(--paper); color: var(--blue); padding: 6px 12px; border-radius: 4px; box-shadow: var(--shadow); white-space: nowrap;
}

/* doodles */
.doodle { position: absolute; pointer-events: none; }
.doodle path, .doodle polygon { vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin 18s linear infinite; }
  .bob { animation: bob 4s ease-in-out infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue); color: var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding-block: clamp(40px, 6vw, 80px) 0; }
.hero h1 { color: var(--paper); }
.hero .hand { color: var(--pink); }
.hero-copy { display: grid; gap: 22px; padding-bottom: clamp(40px, 6vw, 80px); min-width: 0; }
.hero-kids { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.15fr; align-items: end; gap: 0; min-width: 0; }
.hero-kids .cut:nth-child(1) { --c: var(--pink); margin-right: -12%; z-index: 2; }
.hero-kids .cut:nth-child(2) { --c: var(--yellow); z-index: 3; margin-bottom: -2%; }
.hero-kids .cut:nth-child(3) { --c: var(--paper); margin-left: -10%; z-index: 1; }
.hero-kids .cut .ring { --ring: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); }
.band--blue .chip, .hero .chip { color: var(--paper); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
}

/* ---------- category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.cat {
  text-decoration: none; display: grid; gap: 10px; background: var(--white); padding: 12px 12px 16px;
  box-shadow: var(--shadow); transform: rotate(var(--rot, 0deg)); transition: transform .2s; align-content: start;
}
.cat:hover { transform: rotate(0deg) translateY(-6px); }
.cat img { aspect-ratio: 3/2; object-fit: cover; width: 100%; height: auto; }
.cat h3 { font-size: clamp(26px, 2.4vw, 32px); }
.cat .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-inline: 6px; flex-wrap: wrap; }
.cat .from { font-weight: 700; }
.cat .hand { padding-inline: 6px; font-size: 22px; }
@media (max-width: 800px) { .cats { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about .polaroid { --rot: -3deg; --ar: 4/5; max-width: 420px; }
.about-copy { display: grid; gap: 18px; min-width: 0; }
.team { display: flex; flex-wrap: wrap; gap: 8px; }
.team span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about .polaroid { margin-inline: auto; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; min-width: 0; }
.step .num { font-family: var(--f-display); font-size: 64px; line-height: .9; color: var(--blue); }
.band--blue .step .num { color: var(--yellow); }
.step h3 { font-size: 26px; }
.step p { font-size: 16px; }
.step .polaroid { --ar: 4/3; margin-bottom: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* booking note — highlighted */
.booking {
  position: relative; background: var(--yellow); color: var(--ink); padding: clamp(24px, 4vw, 44px);
  box-shadow: 6px 6px 0 var(--ink); transform: rotate(-.6deg); display: grid; gap: 14px;
}
.booking h3 { font-size: clamp(26px, 3vw, 36px); }
.booking p { font-size: clamp(17px, 1.5vw, 20px); max-width: 46em; }
.booking .hand { color: var(--blue); }

/* ---------- video placeholder ---------- */
.video-ph { position: relative; aspect-ratio: 16/9; background: var(--ink); overflow: hidden; box-shadow: var(--shadow); max-width: 100%; }
.video-ph img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-ph .over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: 10px; color: var(--paper); padding: 20px; align-content: center; }
.video-ph .play { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; margin-inline: auto; }
.video-ph .over .hand { color: var(--pink); }

/* ---------- reviews ---------- */
.reviews { columns: 3 300px; column-gap: 24px; }
.msg {
  break-inside: avoid; margin: 0 0 24px; background: #E7F8D6; color: #1c2a12; border-radius: 16px 16px 16px 4px;
  padding: 14px 16px 10px; box-shadow: var(--shadow); font-size: 16px; line-height: 1.45; transform: rotate(var(--rot, 0deg));
}
.msg .from { font-size: 13px; color: #3b7d2a; font-weight: 700; margin-bottom: 4px; }
.msg .time { text-align: right; font-size: 12px; color: #6a8a5a; margin-top: 4px; }
.msg--w { background: var(--white); color: var(--ink); }
.msg--w .from { color: var(--blue); }
.msg--w .time { color: var(--muted); }

/* ---------- category page hero ---------- */
.p-hero { position: relative; overflow: hidden; }
.p-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: end; padding-block: clamp(40px, 6vw, 72px) 0; }
.p-hero-copy { display: grid; gap: 20px; padding-bottom: clamp(40px, 6vw, 72px); min-width: 0; }
.p-hero .cut { max-width: 420px; justify-self: center; width: 100%; }
@media (max-width: 800px) { .p-hero .wrap { grid-template-columns: 1fr; } .p-hero .cut { max-width: 300px; } }

/* gallery: scrapbook collage — masonry columns, so the bottom edge stays even */
.gallery { columns: 4 230px; column-gap: 26px; }
.gallery > * { break-inside: avoid; margin: 0 0 30px; display: block; }
.gallery .polaroid { --ar: auto; }
.gallery .polaroid img { aspect-ratio: auto; height: auto; }
.gallery > :nth-child(4n+1) { --rot: -2deg; }
.gallery > :nth-child(4n+2) { --rot: 1.8deg; }
.gallery > :nth-child(4n+3) { --rot: -1deg; }
.gallery > :nth-child(4n+4) { --rot: 2.4deg; }
.memo {
  background: var(--yellow); color: var(--ink); padding: 18px 18px 20px; transform: rotate(var(--rot, -2deg));
  box-shadow: var(--shadow); font-family: var(--f-hand); font-size: 26px; line-height: 1.15; position: relative;
}
.memo small { display: block; font-family: var(--f-body); font-size: 14px; margin-top: 8px; line-height: 1.4; }
.memo--pink { background: var(--pink); }
.memo--blue { background: var(--blue); color: var(--paper); }
.memo--white { background: var(--white); color: var(--blue); }
.memo svg { position: absolute; right: 10px; top: -16px; width: 34px; }
.sticker { display: grid; place-items: center; }
.sticker img { width: 120px; transform: rotate(-12deg); }
@media (max-width: 560px) { .gallery { columns: 2 140px; column-gap: 14px; } .gallery > * { margin-bottom: 18px; } .memo { font-size: 20px; padding: 14px; } }

/* section head with a side stamp, so the right side isn't empty */
.head-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-bottom: clamp(32px, 4vw, 52px); }
.head-row .section-head { margin-bottom: 0; }
.head-side { display: grid; justify-items: center; gap: 12px; max-width: 240px; text-align: center; }
.head-side .hand { transform: rotate(-3deg); }
.stamp-big { width: 150px; height: auto; }
@media (prefers-reduced-motion: no-preference) { .spin-slow { animation: spin 40s linear infinite; } }
@media (max-width: 760px) { .head-row { grid-template-columns: 1fr; } .head-side { justify-self: start; justify-items: start; text-align: left; grid-template-columns: 90px 1fr; align-items: center; max-width: none; } .stamp-big { width: 90px; } }

/* vertical video */
.video-row { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.video-v { margin: 0; background: var(--white); padding: 10px; box-shadow: var(--shadow); transform: rotate(2deg); max-width: 360px; width: 100%; justify-self: center; }
.video-v video { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background: var(--ink); }
@media (max-width: 760px) { .video-row { grid-template-columns: 1fr; } .video-v { max-width: 300px; } }

/* split block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair .polaroid:first-child { --rot: -3deg; }
.pair .polaroid:last-child { --rot: 2.5deg; margin-top: 36px; }

/* outfit styles (садочок) */
.styles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.style-card { background: var(--white); padding: 18px 16px; display: grid; gap: 8px; align-content: start; border-top: 6px solid var(--c, var(--blue)); }
.style-card b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.style-card span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .styles { grid-template-columns: 1fr 1fr; } }

/* ---------- packages ---------- */
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.pkg { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 22px 20px 20px; background: var(--white); color: var(--ink); min-width: 0; }
.pkg:nth-child(2) { background: var(--pink); }
.pkg:nth-child(3) { background: var(--blue); color: var(--paper); }
.pkg:nth-child(4) { background: var(--yellow); }
.pkg .eyebrow { color: inherit; opacity: .75; }
.pkg h3 { font-size: clamp(28px, 2.6vw, 36px); }
.pkg .price { font-family: var(--f-display); font-size: clamp(34px, 3.2vw, 44px); line-height: 1; }
.pkg .meta { font-family: var(--f-hand); font-size: 20px; color: var(--blue); }
.pkg:nth-child(3) .meta { color: var(--pink); }
.pkg:nth-child(3) .hl::before { background: var(--yellow); }
.pkg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; align-content: start; }
.pkg li { padding-left: 20px; position: relative; }
.pkg li::before { content: "✦"; position: absolute; left: 0; top: 0; font-size: 13px; }
.pkg .polaroid { --ar: 4/5; --rot: 2deg; }
.pkg-note { font-family: var(--f-hand); font-size: 21px; color: var(--blue); }
.pkg:nth-child(3) .pkg-note { color: var(--yellow); }
@media (max-width: 1020px) { .pkgs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pkgs { grid-template-columns: 1fr; } }

.pkgs--mini .pkg { grid-template-rows: auto auto auto 1fr; }

/* ---------- price tables ---------- */
.ptable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ptable th, .ptable td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { font-weight: 600; }
.ptable td.p { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.ptable tr.grp td { padding-top: 28px; font-family: var(--f-display); font-size: 24px; border-bottom: 2px solid var(--ink); }
.ptable .note { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.table-scroll { overflow-x: auto; }

.fine { font-size: 13.5px; color: var(--muted); display: grid; gap: 8px; border-top: 1px dashed var(--muted); padding-top: 18px; }
.fine p { max-width: 70em; }
.fine a.anchor { color: var(--muted); text-decoration: none; margin-left: 6px; }
.fine :target { background: color-mix(in srgb, var(--yellow) 45%, transparent); }

.date-badge { display: inline-flex; gap: 8px; align-items: center; background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; width: fit-content; }
.date-badge i { width: 9px; height: 9px; border-radius: 50%; background: #2BB673; display: inline-block; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card .big { font-family: var(--f-display); font-size: 44px; line-height: 1; }
.card--blue { background: var(--blue); color: var(--paper); }
.card--pink { background: var(--pink); }
.card--yellow { background: var(--yellow); }
@media (max-width: 800px) { .cards3 { grid-template-columns: 1fr; } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1.25fr .9fr; gap: 0; background: var(--white); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.calc-form { padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; min-width: 0; }
.calc-sum { background: var(--blue); color: var(--paper); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-weight: 700; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr 1fr; } }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; gap: 2px; border: 1.5px solid var(--line); padding: 10px 12px; cursor: pointer; border-radius: 4px; font-size: 14px; line-height: 1.25; background: var(--paper); }
.seg label b { font-size: 15px; }
.seg input:checked + label { border-color: var(--blue); background: var(--blue); color: var(--paper); }
.seg input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 4px; width: fit-content; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); }
.stepper input { width: 64px; height: 44px; border: 0; border-inline: 1.5px solid var(--ink); text-align: center; font: 700 18px var(--f-body); color: var(--ink); background: var(--paper); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); margin: 1px 0 0; flex: none; }
.check span { font-size: 15px; line-height: 1.35; }
.check small { display: block; color: var(--muted); font-size: 13.5px; }
.check.disabled { opacity: .45; cursor: not-allowed; }
.incl { font-size: 13.5px; color: #1d7a50; font-weight: 600; }

.sum-lines { display: grid; gap: 8px; font-size: 15px; }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(251,250,245,.3); padding-bottom: 6px; }
.sum-lines span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.sum-per { font-family: var(--f-display); font-size: clamp(46px, 5vw, 64px); line-height: 1; }
.sum-total { display: grid; gap: 2px; font-size: 15px; }
.sum-total b { font-size: 18px; font-variant-numeric: tabular-nums; }
.calc-sum .hand { color: var(--pink); font-size: 22px; }
.calc-sum .btn { justify-self: start; }
.copy-note { font-size: 13px; opacity: .8; }
.calc-msg { width: 100%; min-height: 150px; font: 14px/1.45 var(--f-body); padding: 12px; border-radius: 4px; border: 0; background: rgba(251,250,245,.12); color: var(--paper); resize: vertical; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--white); padding: 0 22px; border-left: 6px solid var(--blue); }
.faq details:nth-child(3n+2) { border-color: var(--pink); }
.faq details:nth-child(3n+3) { border-color: var(--yellow); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 20px; display: grid; gap: 10px; color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta-band { background: var(--pink); position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; gap: 22px; justify-items: start; }
.tg-handle { font-family: var(--f-display); font-size: clamp(30px, 4vw, 48px); user-select: all; }
.site-foot { background: var(--ink); color: var(--paper); padding-block: 48px; font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.site-foot .stamp { width: 110px; }
.site-foot nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 32px; }
.site-foot a { text-decoration: none; opacity: .85; }
.site-foot a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

.tpl { background: var(--white); border: 1.5px dashed var(--ink); padding: 20px; font-size: 16px; white-space: pre-line; }
.copy-btn { font: 600 14px var(--f-body); background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rule { background: var(--white); padding: 22px; display: grid; gap: 8px; align-content: start; }
.rule h3 { font-size: 24px; }
.rule p { font-size: 16px; color: var(--muted); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* ---------- помічник-чат ---------- */
.kb { position: fixed; z-index: 80; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); font-family: var(--f-body); }
.kb-fab {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); font: 700 16px var(--f-body); padding: 14px 20px; border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg);
}
.kb-fab:hover { transform: rotate(-2deg) translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.kb.open .kb-fab { display: none; }
.kb-dot { width: 10px; height: 10px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 3px rgba(43,182,115,.25); }
.kb-panel {
  width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 100px)); height: min(600px, calc(100dvh - 100px)); display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); border-radius: 14px; overflow: hidden;
}
.kb-panel[hidden] { display: none; }
.kb-head { display: flex; gap: 10px; align-items: center; background: var(--blue); color: var(--paper); padding: 12px 14px; }
.kb-head img { width: 40px; height: 40px; flex: none; }
.kb-head div { display: grid; line-height: 1.25; min-width: 0; }
.kb-head span { font-size: 12.5px; opacity: .85; }
.kb-close { margin-left: auto; background: transparent; border: 0; color: var(--paper); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.kb-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.kb-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.kb-bot { background: var(--white); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); }
.kb-me { background: var(--blue); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.kb-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kb-links a { font-weight: 700; font-size: 14px; color: var(--blue); }
.kb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-chips button, .kb-chips a {
  font: 600 13.5px var(--f-body); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; text-decoration: none;
}
.kb-chips button:hover { background: var(--yellow); }
.kb-chips .kb-tg { background: var(--pink); }
.kb-form { display: flex; border-top: 1.5px solid var(--ink); background: var(--white); }
.kb-form input { flex: 1; min-width: 0; border: 0; padding: 14px; font: 15px var(--f-body); background: transparent; color: var(--ink); }
.kb-form input:focus { outline: none; }
.kb-form button { border: 0; background: var(--yellow); font: 700 20px var(--f-body); width: 52px; cursor: pointer; color: var(--ink); }
.kb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 860px) { .hero .doodle-squiggle { display: none; } }

.calc-jump { justify-self: start; }
@media (prefers-reduced-motion: no-preference) { .arrow-down { animation: nudge 1.4s ease-in-out infinite; } @keyframes nudge { 50% { transform: translateY(4px); } } }
