/* Нямко — сайт. Стиль «Повітря і скло», як у застосунку. Шрифти локальні (без запитів до Google). */

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/Unbounded-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #EEF4F3;
  --blob-blue: #C9E6F7;
  --blob-pink: #F7CFE0;
  --blob-mint: #D7F2E2;
  --text: #17251D;
  --text-2: #2F4337;
  --caption: #3D5A47;
  --accent-from: #D7F2E2;
  --accent-to: #A7DDBE;
  --accent-ink: #0F2E1C;
  --link: #22603F;
  --alert-bg: rgba(232, 121, 140, 0.18);
  --alert-ink: #8E1B2B;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 20px 44px rgba(23, 37, 29, 0.10);
  --radius: 28px;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, var(--blob-blue) 0, rgba(201, 230, 247, 0) 34%),
    radial-gradient(circle at 96% 18%, var(--blob-pink) 0, rgba(247, 207, 224, 0) 32%),
    radial-gradient(circle at 18% 62%, var(--blob-mint) 0, rgba(215, 242, 226, 0) 34%),
    radial-gradient(circle at 92% 88%, var(--blob-blue) 0, rgba(201, 230, 247, 0) 30%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #2E7D52; outline-offset: 3px; border-radius: 8px; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.7rem, 6vw, 2.7rem); }
h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  z-index: 10;
}
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.wrap--prose { max-width: 780px; }

/* Header */
.site-header { padding: 18px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { background: rgba(255, 255, 255, 0.85); }
.nav a[aria-current='page'] { background: linear-gradient(180deg, var(--accent-from), var(--accent-to)); color: var(--accent-ink); }

main { padding: 16px 0 40px; }

/* Glass card */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
@media (min-width: 640px) { .card { padding: 32px; } }

/* Hero */
.hero { display: grid; gap: 24px; align-items: center; padding: 16px 0 8px; }
.hero__lead { font-size: 1.12rem; color: var(--text-2); max-width: 36em; }
.hero__art { display: flex; justify-content: center; }
.plate {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #FFFFFF 0, #FFFFFF 52%, #E8EEF0 53%, #F7FAFA 66%, rgba(255, 255, 255, 0.6) 67%);
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}
.plate img { position: absolute; width: 30%; }
.plate .p1 { left: 18%; top: 20%; }
.plate .p2 { right: 16%; top: 22%; }
.plate .p3 { left: 35%; top: 48%; }
.plate .p4 { left: 17%; bottom: 18%; width: 22%; }
.plate .p5 { right: 17%; bottom: 18%; width: 22%; }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.3fr 1fr; padding-top: 32px; }
}

/* Buttons and badges */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-from), var(--accent-to));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 26px rgba(23, 37, 29, 0.14), 0 2px 6px rgba(23, 37, 29, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn:hover { filter: brightness(1.03); text-decoration: none; }
.btn--clear { background: rgba(255, 255, 255, 0.6); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; padding: 0; list-style: none; }
.badge {
  display: inline-flex;
  flex-direction: column;
  min-width: 160px;
  padding: 10px 18px;
  border-radius: 16px;
  background: var(--text);
  color: #FFFFFF;
  line-height: 1.25;
}
.badge small { font-size: 0.75rem; opacity: 0.85; }
.badge strong { font-size: 1.05rem; font-weight: 600; }

/* Sections */
.section { margin-top: 40px; }
.section__intro { color: var(--text-2); max-width: 40em; }
.features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature { display: flex; flex-direction: column; gap: 4px; }
.feature img { width: 56px; height: 56px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-2); }
.feature ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--text-2); }

.note { border-left: 6px solid #E8798C; }
.note strong { color: var(--alert-ink); }

.split { display: grid; gap: 16px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Legal documents */
.doc h1 { margin-bottom: 0.8em; }
.doc h2 { margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc mark {
  background: #FFF3B8;
  color: var(--text);
  padding: 0 4px;
  border-radius: 6px;
}
.doc-meta { color: var(--caption); font-size: 0.95rem; }

/* Footer */
.site-footer { padding: 24px 0 40px; color: var(--caption); font-size: 0.95rem; }
.site-footer .card { display: grid; gap: 16px; }
@media (min-width: 720px) { .site-footer .card { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.95rem; margin-bottom: 0.4em; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.2em 0; }
.site-footer p { margin: 0 0 0.4em; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: filter 0.15s ease, background-color 0.15s ease; }
}
