/* Kotskiy marketing site — ukrainian ethno + cartoonish flair.
   No frameworks, no remote fonts, no trackers.
   Palette inspired by Puzata Hata: red #DC0404 / dark #780202 / amber #FFA11B
   on warm cream; vyshyvanka diamond strips and folk zigzag dividers. */
:root {
  --red: #dc0404;
  --red-dark: #780202;
  --coral: #fc6464;
  --amber: #ffa11b;
  --sun: #ffc93c;
  --cream: #fff6e8;
  --paper: #fffdf7;
  --ink: #35180b;
  --ink-soft: #5a2e14;
  --muted: #8a6a4f;
  --leaf: #2e7d46;
  --line: #ead9bf;
  --radius: 18px;
  --maxw: 960px;
  --sticker-shadow: 5px 5px 0 rgba(120, 2, 2, 0.85);
  --card-shadow: 4px 4px 0 var(--line);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -4%, rgba(255, 193, 60, 0.22), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(220, 4, 4, 0.07), transparent 30%),
    var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

a { color: var(--red-dark); font-weight: 600; text-decoration-thickness: 2px; }
a:hover { color: var(--red); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- anchor scrolling: keep targets clear of the sticky header ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* header: ~116px desktop (nav wraps to 2 rows), ~97px mobile (nav hidden) */
section.block[id] { scroll-margin-top: 126px; }
@media (max-width: 640px) { section.block[id] { scroll-margin-top: 107px; } }

/* ---------- vyshyvanka ornament strips (data-URI, no assets) ----------
   Cross-stitch band: stepped rhombus (dark outline + red fill) with an
   amber 8-point star and dark seed center, small seed stitch in the gap.
   Discrete motifs with breathing room, like a real vyshyvanka braid. */
.vyshyvanka {
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='15'%3E%3Cpath d='M9 1H11V3H13V5H15V9H13V11H11V13H7V11H5V9H3V5H5V3H7V1Z' fill='%23780202'/%3E%3Cpath d='M9 3H11V5H13V9H11V11H7V9H5V5H7V3Z' fill='%23DC0404'/%3E%3Crect x='8' y='4' width='2' height='6' fill='%23FFC93C'/%3E%3Crect x='6' y='6' width='6' height='2' fill='%23FFC93C'/%3E%3Cpath d='M9 5H10V6H11V8H10V9H8V8H7V6H8V5Z' fill='%23FFC93C'/%3E%3Crect x='8' y='6' width='2' height='2' fill='%23780202'/%3E%3Crect x='21' y='6' width='2' height='2' fill='%23780202'/%3E%3C/svg%3E");
  background-size: 26px 15px;
  background-repeat: repeat-x;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 246, 232, 0.96);
  border-bottom: 3px solid var(--ink-soft);
  backdrop-filter: blur(4px);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 0.65rem; padding-bottom: 0.65rem;
}
.brand {
  font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.brand .cat {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; font-size: 1.15rem;
  background: var(--sun); border: 2px solid var(--ink-soft);
  border-radius: 50%; box-shadow: 2px 2px 0 var(--red);
  transform: rotate(-6deg);
}
nav.main-nav { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-left: auto; }
nav.main-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 700;
  padding: 0.15rem 0.3rem; border-bottom: 3px solid transparent;
}
nav.main-nav a:hover { color: var(--red); border-bottom-color: var(--amber); }
.lang-switch { display: flex; gap: 0.3rem; align-items: center; color: var(--muted); font-size: 0.85rem; }
.lang-switch button {
  border: 2px solid var(--ink-soft); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 0.15rem 0.7rem; cursor: pointer; font-size: 0.85rem; font-weight: 700;
  box-shadow: 2px 2px 0 var(--line);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--red); border-color: var(--red-dark); color: #fff; box-shadow: 2px 2px 0 var(--red-dark);
}

/* ---------- hero ---------- */
.hero { padding: 3rem 0 2.5rem; text-align: center; position: relative; overflow: hidden; }
.hero .sunflower {
  width: 92px; height: 92px; margin: 0 auto 0.75rem; display: block;
  animation: sway 5s ease-in-out infinite;
}
@keyframes sway { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.badge {
  display: inline-block; background: var(--sun); color: var(--red-dark);
  border: 2px solid var(--ink-soft); border-radius: 999px;
  padding: 0.3rem 1rem; font-size: 0.85rem; font-weight: 800;
  box-shadow: 3px 3px 0 var(--amber); transform: rotate(-2deg);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.18; margin: 1.1rem 0 0.5rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.hero .title-squiggle {
  display: block; width: 190px; height: 12px; margin: 0.35rem auto 0.9rem;
}
.hero .sub { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto; }
.trust {
  margin: 2rem auto 0; max-width: 640px; background: var(--paper);
  border: 2.5px solid var(--ink-soft); border-radius: var(--radius);
  box-shadow: var(--sticker-shadow);
  padding: 1.25rem 1.5rem; text-align: left; position: relative;
}
.trust h2 {
  margin: 0 0 0.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--red-dark); display: flex; align-items: center; gap: 0.5rem;
}
.trust h2::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0 L14 7 L7 14 L0 7 Z' fill='%23DC0404'/%3E%3Cpath d='M7 4 L10 7 L7 10 L4 7 Z' fill='%23FFC93C'/%3E%3C/svg%3E") center/contain no-repeat;
}
.trust blockquote { margin: 0; font-size: 1.08rem; font-style: italic; }
.bot-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }
.bot-note code {
  background: var(--sun); padding: 0.15rem 0.5rem; border-radius: 8px;
  border: 1.5px solid var(--ink-soft); font-weight: 700; color: var(--ink);
}

/* ---------- hero CTAs ---------- */
.cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none; font-weight: 800; font-size: 1.05rem;
  border-radius: 999px; padding: 0.7rem 1.5rem;
  border: 2.5px solid var(--ink-soft); cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--sticker-shadow); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: var(--card-shadow); }
.btn-ghost:hover { color: var(--red); }
.card .btn { margin-top: 0.9rem; font-size: 0.95rem; padding: 0.5rem 1.1rem; }

/* ---------- data page ---------- */
.page-back { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); }
.page-back:hover { color: var(--red); }
.inv-note {
  background: var(--sun); border: 2.5px solid var(--ink-soft);
  border-radius: var(--radius); box-shadow: 5px 5px 0 var(--amber);
  padding: 1rem 1.3rem; margin-top: 1.25rem; font-style: italic;
}

/* ---------- sections ---------- */
section.block { padding: 2.5rem 0 2.75rem; position: relative; }
section.block + section.block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cpath d='M0 10 L5 0 L10 10 L15 0 L20 10 Z' fill='%23DC0404' fill-opacity='0.85'/%3E%3C/svg%3E");
  background-size: 20px 10px; background-repeat: repeat-x;
}
section.block h2 {
  font-size: 1.65rem; margin: 0 0 0.5rem; color: var(--ink);
  display: flex; align-items: center; gap: 0.6rem;
}
section.block h2::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0 L18 9 L9 18 L0 9 Z' fill='%23DC0404'/%3E%3Cpath d='M9 5 L13 9 L9 13 L5 9 Z' fill='%23FFA11B'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 680px; }

/* steps — sticker cards with big numbered medallions */
.steps {
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.5rem; padding: 0; list-style: none;
}
.steps li {
  background: var(--paper); border: 2.5px solid var(--ink-soft);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  box-shadow: var(--card-shadow); position: relative;
}
.steps li:nth-child(even) { transform: rotate(0.6deg); }
.steps li:nth-child(odd) { transform: rotate(-0.6deg); }
.steps li:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 6px 7px 0 var(--coral); }
.steps .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--amber); color: var(--ink); font-weight: 800; font-size: 1.1rem;
  border: 2.5px solid var(--ink-soft); box-shadow: 2.5px 2.5px 0 var(--red);
  margin-bottom: 0.6rem;
}
.steps h3 { margin: 0.25rem 0 0.4rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* data cards */
.cols { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.25rem; }
.card {
  background: var(--paper); border: 2.5px solid var(--ink-soft);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--card-shadow);
}
.card h3 { margin-top: 0; }
.card ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.card li { margin-bottom: 0.4rem; }
.card li::marker { color: var(--red); }
.never { border-color: var(--leaf); box-shadow: 4px 4px 0 rgba(46, 125, 70, 0.35); }
.never h3 { color: var(--leaf); }
.never li::marker { content: "✕ "; color: var(--leaf); }
.fine { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

.list-plain { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.8rem; }
.list-plain li {
  background: var(--paper); border: 2.5px solid var(--ink-soft);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; box-shadow: var(--card-shadow);
}
.list-plain strong { color: var(--red-dark); }

.kid-trust {
  font-size: 1.12rem; font-style: italic; background: var(--sun);
  border: 2.5px solid var(--ink-soft); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--amber);
  padding: 1.1rem 1.4rem; margin: 1.25rem 0;
}

.prereq {
  background: var(--sun); border: 2.5px solid var(--ink-soft);
  border-radius: var(--radius); box-shadow: 5px 5px 0 var(--amber);
  padding: 1rem 1.3rem; margin-top: 1.4rem;
}
.prereq h3 {
  margin: 0 0 0.35rem; font-size: 1rem; color: var(--red-dark);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.prereq p { margin: 0; }

/* faq — folk accordions */
details.faq-item {
  background: var(--paper); border: 2.5px solid var(--ink-soft);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
  box-shadow: var(--card-shadow);
}
details.faq-item[open] { box-shadow: 4px 4px 0 var(--coral); }
details.faq-item summary { cursor: pointer; font-weight: 800; color: var(--red-dark); }
details.faq-item summary::marker { color: var(--amber); }
details.faq-item p { margin: 0.6rem 0 0; color: var(--ink); }

/* help */
.help-lines { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.25rem; }
.help-card {
  background: var(--paper); border: 3px solid var(--red); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; text-align: center; box-shadow: var(--sticker-shadow);
}
.help-card .who { font-weight: 700; margin-bottom: 0.35rem; }
.help-card .num { font-size: 1.7rem; font-weight: 800; letter-spacing: 0.02em; color: var(--red); }
.help-card .num a { color: var(--red); text-decoration: none; }
.help-note { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

/* footer */
footer.site-footer { padding: 0 0 3rem; color: var(--muted); font-size: 0.9rem; }
footer.site-footer .inner { padding-top: 1.5rem; }
footer.site-footer p { margin: 0.3rem 0; }

@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .hero { padding: 2.2rem 0 2rem; }
  .steps li:nth-child(even), .steps li:nth-child(odd) { transform: none; }
}
