/* ИИ-помощник воспитателя — теплая «садиковская» палитра, шрифт Nunito (OFL) с нашего сервера */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/nunito-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/nunito-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/nunito-cyrillic-700.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/nunito-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/nunito-cyrillic-800.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/nunito-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #fff8ee; --cream-2: #fdeedb; --white: #fff;
  --text: #3b2f2a; --muted: #75655c; --line: #f0dcc4;
  --coral: #e8734a; --coral-dark: #cc5d36; --sun: #ffcf5c; --leaf: #6aa84f; --sky: #cfe8f2; --berry: #d9506b;
  --r: 22px; --r-sm: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--text); font: 17px/1.55 "Nunito", "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--coral-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0; }
h2 { font-size: 32px; margin-bottom: 12px; }
h3 { font-size: 19px; }
section { scroll-margin-top: 76px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 238, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 18px; margin-right: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; }
.nav a:hover { color: var(--coral-dark); }

/* кнопки */
.btn { display: inline-block; font: inherit; font-weight: 800; color: #fff; background: var(--coral); border: 0; border-radius: 999px; padding: 13px 26px; cursor: pointer; text-decoration: none; text-align: center; box-shadow: 0 4px 0 var(--coral-dark); transition: transform .1s, box-shadow .1s, background .1s; }
.btn:hover { background: var(--coral-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { padding: 9px 18px; font-size: 15px; box-shadow: 0 3px 0 var(--coral-dark); }
.btn-big { padding: 16px 34px; font-size: 19px; }
.btn-light { background: var(--white); color: var(--text); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.btn-light:hover { background: var(--cream-2); }

/* первый экран */
.hero { padding: 56px 0 64px; background: radial-gradient(circle at 85% 20%, #ffe7b8 0, transparent 40%), radial-gradient(circle at 10% 90%, #ffe0d2 0, transparent 35%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-block; background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.hero h1 { font-size: 50px; margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 700; font-size: 15px; }
.ticks li::before { content: ""; display: inline-block; width: 18px; height: 18px; margin: 0 7px -3px 0; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.hero-art img { display: block; margin: 0 auto; }
.hero-photo img { width: 100%; height: auto; border-radius: 28px; border: 6px solid var(--white); box-shadow: 0 18px 40px rgba(120, 70, 30, .16); transform: rotate(1.2deg); }

/* фото (созданы нейросетью — строка в подвале) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.gallery figure { margin: 0; }
.gallery img, .split-photo { display: block; width: 100%; height: auto; border-radius: var(--r); border: 5px solid var(--white); box-shadow: 0 10px 26px rgba(120, 70, 30, .12); }
.gallery figcaption { margin-top: 8px; font-weight: 800; color: var(--muted); font-size: 15px; text-align: center; }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.split-photo { position: sticky; top: 90px; }

/* секции */
.sec { padding: 64px 0; }
.sec-tint { background: var(--cream-2); }
.sec-lead { color: var(--muted); margin: 0 0 26px; font-size: 18px; }
.sec h2 + .steps, .sec h2 + .cards { margin-top: 26px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border-radius: var(--r); padding: 26px 22px; border: 2px solid var(--line); }
.step .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 20px; color: var(--text); margin-bottom: 12px; }
.step:nth-child(1) .num { background: var(--sun); }
.step:nth-child(2) .num { background: var(--sky); }
.step:nth-child(3) .num { background: #cfe8c0; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

.inside { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.inside li { background: var(--white); border-radius: var(--r-sm); padding: 14px 18px; color: var(--muted); border-left: 6px solid var(--sun); }
.inside li:nth-child(3n+2) { border-left-color: var(--leaf); }
.inside li:nth-child(3n) { border-left-color: var(--coral); }
.inside b { display: block; color: var(--text); font-size: 17px; }

.example { background: var(--white); border-radius: var(--r); padding: 26px; border: 2px dashed var(--line); max-width: 860px; }
.example p { margin: 10px 0; }
.ex-step { font-weight: 800; font-style: italic; margin-top: 18px !important; }
.example table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 12px; }
.example th, .example td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.ex-meta th { width: 36%; background: var(--cream); }
.ex-phys tr:first-child th { background: var(--cream); }
.kids { font-style: italic; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-i { background: var(--white); border-radius: var(--r); padding: 22px 20px; border: 2px solid var(--line); }
.card-i h3 { margin-bottom: 8px; }
.card-i p { margin: 0; color: var(--muted); font-size: 16px; }
.honest { margin: 22px 0 0; color: var(--muted); }

.price { position: relative; max-width: 460px; background: var(--white); border-radius: var(--r); border: 3px solid var(--sun); padding: 30px 28px; }
.badge { position: absolute; top: -14px; right: 22px; background: var(--berry); color: #fff; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 4px 14px; }
.price-sum { font-size: 44px; font-weight: 800; margin: 0; }
.price-sum span { font-size: 19px; color: var(--muted); font-weight: 700; }
.price-free { font-weight: 700; margin: 6px 0; }
.price-note { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

/* форма */
.panel { background: var(--white); border-radius: var(--r); padding: 24px; border: 2px solid var(--line); margin-bottom: 16px; }
.field { display: block; margin: 0 0 16px; border: 0; padding: 0; }
.field > span, legend { display: block; font-weight: 800; margin-bottom: 6px; padding: 0; }
select, input[type=text], input[type=email] { width: 100%; font: inherit; padding: 13px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--cream); color: var(--text); }
select:focus, input:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--coral); }
.radio { display: inline-flex; align-items: center; gap: 8px; margin: 4px 18px 4px 0; }
.radio input { width: 20px; height: 20px; accent-color: var(--coral); }
.extra { margin: 4px 0 18px; border: 2px dashed var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.extra summary { cursor: pointer; font-weight: 800; color: var(--coral-dark); }
.extra[open] summary { margin-bottom: 12px; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.error { color: #b42318; font-weight: 700; margin: 0 0 12px; }
.warn { color: #8a5a00; background: #fff1cc; border-radius: var(--r-sm); padding: 10px 14px; }
.wait { text-align: center; padding: 36px 20px; }
.wait-title { font-weight: 800; font-size: 20px; margin: 16px 0 4px; }
.wait-sub { color: var(--muted); margin: 0; }
.spinner { width: 48px; height: 48px; margin: 0 auto; border: 5px solid #ffe7b8; border-top-color: var(--coral); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.actions { display: flex; gap: 12px; margin: 0 0 16px; }

/* готовый конспект */
.doc h1 { font-size: 24px; margin: 0 0 12px; }
.doc h1 .topic { display: block; }
.doc h2 { font-size: 21px; margin: 22px 0 8px; color: var(--coral-dark); }
.doc h3 { font-size: 18px; margin: 16px 0 6px; }
.doc h4 { font-size: 17px; margin: 14px 0 6px; font-style: italic; }
.doc ol, .doc ul { padding-left: 22px; margin: 6px 0 10px; }
.doc li { margin: 3px 0; }
.doc .action { font-style: italic; color: var(--muted); }
.doc .speech { margin: 6px 0; }
.doc .qa { margin: 8px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc table.meta th { width: 38%; background: var(--cream); }
.doc table.phys thead th { background: var(--cream); }

/* вопросы */
.qa { background: var(--white); border-radius: var(--r-sm); border: 2px solid var(--line); padding: 14px 18px; margin-bottom: 10px; }
.qa summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.qa p { margin: 10px 0 0; color: var(--muted); }

.foot { background: #3b2f2a; color: #f6e7d6; padding: 28px 0; font-size: 15px; }
.foot p { margin: 4px 0; }

/* планшет и телефон */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 28px 0 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { max-width: 280px; margin: 0 auto; }
  .hero-photo { max-width: 100%; }
  .hero-photo img { transform: none; border-width: 4px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .split-photo { position: static; }
  .hero h1 { font-size: 33px; }
  .lead { font-size: 17px; }
  .btn-big { width: 100%; }
  h2 { font-size: 26px; }
  .sec { padding: 44px 0; }
  .steps, .inside, .cards { grid-template-columns: 1fr; }
  .brand span { font-size: 15px; }
  .top-in { height: 58px; gap: 10px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .example { padding: 18px 14px; }
  .ex-meta th { width: 42%; }
  .panel { padding: 18px 16px; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
}
.btn-sm { white-space: nowrap; }

/* экран «бесплатные закончились», согласие, баннер cookie */
.paywall h3 { font-size: 22px; margin-bottom: 8px; }
.paywall > p { color: var(--muted); margin: 0 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--coral); flex: none; }
.ok { font-weight: 800; color: var(--leaf); }
.free-left { font-weight: 700; }
.foot a { color: #f6e7d6; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin: 0 auto; background: var(--white); border: 2px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(60, 40, 20, .18); padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.cookie p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; } }

/* политика и согласие */
.legal { padding-top: 24px; padding-bottom: 48px; }
.legal h1 { font-size: 30px; margin: 8px 0 6px; }
.legal h2 { font-size: 21px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal-date, .legal-op { color: var(--muted); }

/* цена и оферта */
.price-list { margin: 4px 0 12px; padding-left: 20px; font-weight: 600; }
.price-note a { color: inherit; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.pay-note { font-weight: 700; margin-bottom: 16px; }
#payForm > p:first-child { color: var(--muted); margin: 0 0 16px; }
#restoreForm > p:first-child { color: var(--muted); margin: 16px 0; }
#restoreLinkWrap { margin-top: 12px; }
