/* Головна сторінка-вітрина. Кольори й кнопка в дусі застосунку (css/core.css, css/studio.css). */
:root {
  --ink: #0b2236;
  --muted: #4a5a68;
  --deep: #0b4f78;
  --water-a: #3fa9c9;
  --water-b: #0d5a80;
  --sand: #fdfaf3;
  --foam: #dff2f7;
  --cta: #ff8a3c;
  --cta-edge: #d9631a;
  --line: #e9dfc8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px; line-height: 1.45; overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 20px; }

/* Кнопка */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 34px;
  border-radius: 32px; background: var(--cta); color: #fff; font-weight: 800; font-size: 21px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; box-shadow: 0 5px 0 var(--cta-edge), 0 14px 28px rgba(6, 46, 70, .32);
  transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--cta-edge), 0 16px 30px rgba(6, 46, 70, .34); }
.cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cta-edge), 0 6px 14px rgba(6, 46, 70, .3); }
.cta:focus-visible, .enter:focus-visible, .foot a:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }

/* 1. Перший екран */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden;
  background: linear-gradient(var(--water-a), var(--water-b));
}
.hero-tank { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hero-over {
  position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between;
  text-align: center; color: #fff;
  background:
    linear-gradient(to bottom, rgba(6, 50, 80, .78) 0, rgba(6, 50, 80, .45) 17%, rgba(6, 50, 80, 0) 32%),
    linear-gradient(to top, rgba(6, 46, 70, .7) 0, rgba(6, 46, 70, .35) 20%, rgba(6, 46, 70, 0) 34%);
}
.hero-top { padding: calc(max(14px, env(safe-area-inset-top)) + 44px) 20px 0; }
.hero h1 {
  font-size: clamp(31px, 9vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.01em;
  text-wrap: balance; text-shadow: 0 2px 14px rgba(4, 36, 58, .55);
}
.hero-sub {
  margin-top: 10px; font-size: clamp(15px, 4.1vw, 22px); font-weight: 600; text-wrap: balance;
  text-shadow: 0 1px 8px rgba(4, 36, 58, .7);
}
.enter {
  position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); pointer-events: auto;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* Логотип у тому ж рядку, що й «Увійти»: ліворуч, висота як у кнопки. */
.logo {
  position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); pointer-events: auto;
  display: inline-flex; align-items: center; min-height: 44px;
}
.logo img { display: block; height: 40px; width: auto; }
.hero-bottom { padding: 0 20px calc(max(14px, env(safe-area-inset-bottom)) + 46px); display: grid; justify-items: center; gap: 12px; }
.hero-bottom .cta { pointer-events: auto; width: min(360px, 100%); }
.hero-note { font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(4, 36, 58, .8); }
.tap-hint {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; margin-bottom: 4px;
  background: rgba(6, 46, 70, .42); border: 1px solid rgba(255, 255, 255, .28); font-size: 15px; font-weight: 600;
  transition: opacity .6s ease, transform .6s ease;
}
.tap-hint.gone { opacity: 0; transform: translateY(6px); }
.tap-finger { display: inline-block; animation: tap 1.6s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Хвилі між блоками */
.wave, .wave-sep { display: block; width: 100%; height: 36px; }
.wave { position: absolute; left: 0; bottom: -1px; pointer-events: none; }
.wave path { fill: var(--sand); }
.wave-sep { margin-bottom: -1px; }
.to-foam { background: var(--sand); } .to-foam path { fill: var(--foam); }
.to-deep { background: var(--foam); } .to-deep path { fill: var(--deep); }
.to-sand { background: var(--deep); } .to-sand path { fill: var(--sand); }

/* Блоки */
.sec { padding: 44px 0 52px; }
.sand { background: var(--sand); }
.foam { background: var(--foam); padding-bottom: 30px; }
.deep { background: var(--deep); color: #fff; }
h2 { font-size: clamp(28px, 7.4vw, 44px); line-height: 1.1; font-weight: 800; text-align: center; margin-bottom: 28px; letter-spacing: -.01em; }

/* 2. Як це працює */
.steps { display: grid; gap: 22px; }
.steps li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pic { width: 148px; height: 148px; }
.steps p { font-size: 20px; font-weight: 700; line-height: 1.25; max-width: 16em; text-wrap: balance; }
.steps b {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 8px; border-radius: 50%;
  background: var(--deep); color: #fff; font-size: 17px; vertical-align: 2px;
}
.swim { animation: swim 3.6s ease-in-out infinite; transform-origin: 80px 82px; }
@keyframes swim { 0%, 100% { transform: translate(-4px, 2px) rotate(-3deg); } 50% { transform: translate(6px, -3px) rotate(3deg); } }

/* 3. Що далі */
.cards { display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 14px; align-items: start;
  background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 3px 0 #c5e1ea, 0 8px 22px rgba(11, 60, 80, .08);
}
.ico { grid-row: span 2; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font-size: 30px; line-height: 1; }
.i-food { background: #ffe3cc; } .i-gran { background: #f6dcec; } .i-sea { background: #cfeaf3; } .i-hi { background: #fff0bf; }
.card h3 { font-size: 20px; line-height: 1.2; font-weight: 800; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 17px; text-wrap: pretty; }

.posts {
  display: flex; gap: 14px; margin: 22px -20px 0; padding: 6px 20px 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.posts::-webkit-scrollbar { display: none; }
.post {
  flex: 0 0 78%; max-width: 320px; scroll-snap-align: center; background: #fff; border-radius: 18px; padding: 10px 10px 14px;
  box-shadow: 0 3px 0 #c5e1ea, 0 10px 24px rgba(11, 60, 80, .12);
}
.post img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--foam); }
.post figcaption { padding: 10px 4px 0; font-size: 15px; line-height: 1.35; color: var(--muted); }
.post figcaption b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }

/* 4. Спокійно для батьків */
.safe { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.safe li { text-wrap: pretty; position: relative; padding-left: 44px; font-size: 18px; font-weight: 600; line-height: 1.35; min-height: 30px; }
.safe li::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: #7fe0b0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M8.5 15.5l4.5 4.5 8.5-9.5' fill='none' stroke='%230b4f78' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 5. Ціна */
.price {
  max-width: 440px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 26px 22px 28px; text-align: center;
  box-shadow: 0 4px 0 var(--line), 0 12px 32px rgba(11, 60, 80, .1); display: grid; gap: 16px; justify-items: center;
}
.price p span { display: block; font-size: 16px; font-weight: 600; color: var(--muted); }
.price p b { display: block; font-size: clamp(20px, 5.6vw, 26px); line-height: 1.15; font-weight: 800; }
.price p b span { display: inline; font-size: inherit; font-weight: inherit; color: inherit; }
.price-free b { color: #1d8f58; }
.price-more { padding-top: 16px; border-top: 2px dashed var(--line); width: 100%; }
.price .price-note { font-size: 16px; color: var(--muted); margin-top: -8px; }
.price .cta { width: 100%; margin-top: 4px; }

/* 6. Підвал */
.foot { background: var(--ink); color: #c9d8e2; padding: 30px 0 calc(34px + env(safe-area-inset-bottom)); font-size: 15px; text-align: center; }
.foot-name { margin-bottom: 10px; }
.foot-name img { display: inline-block; height: 48px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin-bottom: 8px; }
.foot-links a, .foot-row a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.foot-fop { margin-top: 8px; opacity: .75; }
[hidden] { display: none !important; }

/* Липка кнопка на телефоні */
.sticky {
  position: fixed; left: 16px; right: 16px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 4px); z-index: 20;
  min-height: 60px; opacity: 0; transform: translateY(120%); pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.sticky.on { opacity: 1; transform: none; pointer-events: auto; }
.sticky.on:active { transform: translateY(4px); }

/* Поява блоків (тільки якщо працює скрипт) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Низькі екрани (360×640 і телефон боком) */
@media (max-height: 700px) {
  .hero-top { padding-top: calc(max(10px, env(safe-area-inset-top)) + 40px); }
  .hero h1 { font-size: clamp(27px, 8vw, 48px); }
  .hero-sub { margin-top: 6px; }
  .hero-bottom { gap: 8px; padding-bottom: calc(max(10px, env(safe-area-inset-bottom)) + 40px); }
  .cta { min-height: 58px; }
}

/* Планшет і комп'ютер */
@media (min-width: 720px) {
  body { font-size: 19px; }
  .wave, .wave-sep { height: 64px; }
  .sec { padding: 64px 0 76px; }
  h2 { margin-bottom: 40px; }
  .hero-top { padding-top: calc(max(14px, env(safe-area-inset-top)) + 34px); }
  .hero-bottom { padding-bottom: 84px; }
  .enter { top: 18px; right: 22px; font-size: 16px; }
  .logo { top: 16px; left: 22px; }
  .logo img { height: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pic { width: 200px; height: 200px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .card { padding: 22px; }
  .posts { margin: 34px 0 0; padding: 6px 0 10px; overflow: visible; justify-content: center; gap: 22px; }
  .post { flex: 1 1 0; max-width: 320px; }
  .post:nth-child(1) { rotate: -2deg; } .post:nth-child(3) { rotate: 2deg; }
  .safe { grid-template-columns: 1fr 1fr; gap: 20px 36px; max-width: 880px; }
  .sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tap-finger, .swim { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cta, .sticky, .tap-hint { transition: none; }
}

/* Навчання: вступ */
.lead { max-width: 34em; margin: -10px auto 24px; text-align: center; font-size: 19px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
#learn { padding-bottom: 8px; }

/* Талісман Абу: картка на головній і сторінка /abu */
.abu-card { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin: 18px 0 0; padding: 16px 18px; border-radius: 22px; background: #fff; color: var(--muted); text-decoration: none; font-size: 17px; line-height: 1.4; box-shadow: 0 2px 10px rgba(11, 34, 54, .08); }
.abu-card img { width: 120px; height: auto; }
.abu-card b { display: block; color: var(--ink); font-size: 21px; font-weight: 800; margin-bottom: 2px; }
.abu-hero { background: linear-gradient(var(--water-a), var(--water-b)); color: #fff; text-align: center; padding: 22px 0 56px; }
.abu-hero .logo img { height: 40px; width: auto; }
.abu-hero h1 { font-size: clamp(34px, 9vw, 56px); line-height: 1.05; font-weight: 800; margin: 6px 0 10px; }
.abu-hero p { max-width: 30em; margin: 0 auto; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.abu-hero .abu-pic { width: min(300px, 70%); height: auto; margin: 18px auto 0; display: block; filter: drop-shadow(0 12px 18px rgba(4, 36, 58, .35)); }
.abu-sheet { display: block; width: min(560px, 100%); margin: 0 auto 22px; border-radius: 14px; background: #fff; box-shadow: 0 6px 22px rgba(11, 34, 54, .16); }
.abu-go { display: grid; gap: 12px; justify-items: center; }
.abu-go .cta { width: min(360px, 100%); }
.abu-go .second { color: var(--deep); font-weight: 700; font-size: 18px; }
.abu-peek { position: absolute; right: 0; bottom: 0; width: 96px; height: auto; pointer-events: none; }
@media (min-width: 760px) { .abu-card { grid-template-columns: 170px 1fr; max-width: 720px; margin: 26px auto 0; padding: 20px 26px; } .abu-card img { width: 170px; } }

.abu-steps { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
.abu-fact { grid-template-columns: 96px 1fr; column-gap: 14px; align-items: center; }
.abu-fact img { grid-row: span 2; width: 96px; height: auto; max-height: 110px; object-fit: contain; }
@media (min-width: 760px) { .abu-steps { grid-template-columns: repeat(3, 1fr); } .abu-hero p { font-size: 22px; } #who .cards { grid-template-columns: repeat(3, 1fr); } .abu-fact { grid-template-columns: 1fr; justify-items: center; text-align: center; } .abu-fact img { grid-row: auto; width: 130px; max-height: 130px; margin-bottom: 8px; } }
.abu-go .cta { box-sizing: border-box; max-width: 100%; }
