/* =========================================================================
   Шаблон сайта детского развивающего центра — сайт и личные кабинеты
   Настроение: кремовый, персиковый, пудрово-голубой, шалфей;
   матовое стекло, мягкие объёмные формы, светящиеся кнопки.
   ========================================================================= */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #f6efe9;
  --bg-2: #f1e6de;
  --panel: rgba(255, 252, 249, .72);
  --card: #fffcf9;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 253, 251, .86);
  --glass-line: rgba(255, 255, 255, .85);
  --ink: #3f302b;
  --ink-2: #6f5c55;
  --muted: #a3918a;
  --line: #f0e3da;

  --primary: #d4957c;
  --primary-2: #e9b9a4;
  --primary-d: #b06d55;
  --primary-soft: #f9e8df;

  /* имена цветов остались прежними — сами оттенки стали спокойнее */
  --purple: #ece6f3;  --purple-a: #9a88bd;   /* лаванда */
  --pink: #f9e4da;    --pink-a: #d68f76;     /* персик */
  --yellow: #f5ecda;  --yellow-a: #c19c5c;   /* песок */
  --blue: #e3ebf4;    --blue-a: #7d9bbf;     /* пудрово-голубой */
  --green: #e3ede6;   --green-a: #7ea38b;    /* шалфей */

  --success: #6e9f80;
  --danger: #c9705f;

  --r-xl: 40px;
  --r-lg: 30px;
  --r: 24px;
  --r-sm: 16px;

  --shadow: 0 24px 50px -28px rgba(140, 90, 70, .38), 0 4px 14px -6px rgba(140, 90, 70, .10);
  --shadow-soft: 0 12px 28px -16px rgba(140, 90, 70, .35);
  --inner: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(176, 109, 85, .05);
  --glow: 0 12px 30px -10px rgba(212, 149, 124, .75), 0 0 22px -4px rgba(240, 180, 150, .55);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative; overflow-x: hidden;
}
/* мягкие «пятна» света на фоне, как на референсах */
body::before {
  content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 8% 6%, rgba(244, 205, 186, .75), transparent 60%),
    radial-gradient(34vmax 30vmax at 96% 12%, rgba(205, 220, 238, .75), transparent 62%),
    radial-gradient(40vmax 34vmax at 85% 92%, rgba(244, 214, 200, .7), transparent 60%),
    radial-gradient(30vmax 28vmax at 10% 88%, rgba(214, 232, 222, .7), transparent 62%),
    linear-gradient(170deg, #f8f2ed, #f2e7df);
}

img { max-width: 100%; display: block; }
a { color: var(--primary-d); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { margin: 0 0 .45em; line-height: 1.18; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: 32px; }
h2 { font-size: 27px; }
h3 { font-size: 18.5px; letter-spacing: -.01em; }
h4 { font-size: 15.5px; letter-spacing: 0; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.pre { white-space: pre-line; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nowrap { white-space: nowrap; }
.mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .02em; }
.ok-text { color: var(--success); font-weight: 700; }
.danger-text, .pink-text { color: var(--danger); font-weight: 700; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 650 15px/1.2 var(--font); color: #fff; white-space: nowrap; letter-spacing: .005em;
  background: linear-gradient(135deg, #ebbaa4 0%, var(--primary) 55%, #c98468 100%);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.04);
  box-shadow: 0 16px 34px -10px rgba(212, 149, 124, .85), 0 0 30px -2px rgba(240, 180, 150, .7),
              inset 0 1px 0 rgba(255,255,255,.5); }
.btn:active { transform: translateY(0); }
.btn-light, .btn-glass {
  color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-soft), var(--inner);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-light:hover, .btn-glass:hover { color: var(--primary-d); box-shadow: var(--shadow), var(--inner); }
.btn-pink { background: linear-gradient(135deg, #f1c4b2, var(--pink-a)); }
.btn-green { background: linear-gradient(135deg, #b9d3c1, var(--green-a));
  box-shadow: 0 12px 26px -12px rgba(110, 160, 128, .85), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-blue { background: linear-gradient(135deg, #bcd0e6, var(--blue-a));
  box-shadow: 0 12px 26px -12px rgba(110, 145, 190, .85), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-soft { color: var(--primary-d); background: var(--primary-soft); box-shadow: none; }
.btn-soft:hover { color: var(--primary-d); background: #f5dcd0; box-shadow: none; filter: none; }
.btn-danger-soft { color: var(--danger); background: #f9e5e0; box-shadow: none; }
.btn-danger-soft:hover { color: var(--danger); background: #f4d6cf; box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-round { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-d); font: inherit; font-weight: 650; cursor: pointer; }
.link-btn:hover { color: var(--primary); }

/* ---------- Карточки (матовое стекло) ---------- */
.card {
  background: var(--glass-strong); border-radius: var(--r); padding: 24px;
  border: 1px solid var(--glass-line); box-shadow: var(--shadow), var(--inner);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.card.glass { background: var(--glass); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.pill-link { font-size: 13px; font-weight: 650; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.8); color: var(--ink-2); border: 1px solid var(--line); }
.pill-link:hover { color: var(--primary-d); border-color: var(--primary-2); }

.tint-purple { background: linear-gradient(160deg, rgba(255,255,255,.85), var(--purple)); }
.tint-pink   { background: linear-gradient(160deg, rgba(255,255,255,.85), var(--pink)); }
.tint-yellow { background: linear-gradient(160deg, rgba(255,255,255,.85), var(--yellow)); }
.tint-blue   { background: linear-gradient(160deg, rgba(255,255,255,.85), var(--blue)); }
.tint-green  { background: linear-gradient(160deg, rgba(255,255,255,.85), var(--green)); }

/* Значок в мягкой «таблетке» — спокойный цвет, лёгкое свечение */
.icon-tile {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none;
  color: var(--primary-d); background: linear-gradient(160deg, #fff, var(--primary-soft));
  box-shadow: 0 10px 20px -12px rgba(176, 109, 85, .55), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(176,109,85,.06);
}
.icon-tile .icon { width: 23px; height: 23px; stroke-width: 1.8; }
.icon-tile.purple { color: var(--purple-a); background: linear-gradient(160deg, #fff, var(--purple)); }
.icon-tile.pink   { color: var(--pink-a);   background: linear-gradient(160deg, #fff, var(--pink)); }
.icon-tile.yellow { color: var(--yellow-a); background: linear-gradient(160deg, #fff, var(--yellow)); }
.icon-tile.blue   { color: var(--blue-a);   background: linear-gradient(160deg, #fff, var(--blue)); }
.icon-tile.green  { color: var(--green-a);  background: linear-gradient(160deg, #fff, var(--green)); }
.icon-tile.lg { width: 60px; height: 60px; border-radius: 20px; }
.icon-tile.lg .icon { width: 28px; height: 28px; }

.stat { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), var(--inner); }
.stat .label { margin-top: 14px; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.stat .value { font-size: 30px; font-weight: 300; line-height: 1.15; letter-spacing: -.02em; }
.stat .hint { font-size: 13px; color: var(--muted); }
.stat .hint.up { color: var(--success); font-weight: 650; }
.stat .hint.down { color: var(--danger); font-weight: 650; }
a.stat { display: block; color: inherit; }
a.stat:hover { color: inherit; }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.grid-side-main { grid-template-columns: 320px minmax(0, 1fr); }
.stack { display: grid; gap: 22px; align-content: start; }

/* ---------- Бейджи и чипы ---------- */
.badge {
  display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 999px; background: linear-gradient(135deg, #eab09a, #cf866b); color: #fff;
  font-size: 11.5px; font-weight: 750; box-shadow: 0 4px 12px -3px rgba(207, 134, 107, .8);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; background: var(--primary-soft); color: var(--primary-d);
  white-space: nowrap;
}
.chip.purple { background: var(--purple); color: #7a68a0; }
.chip.pink   { background: var(--pink);   color: #b06d55; }
.chip.yellow { background: var(--yellow); color: #9c7a3c; }
.chip.blue   { background: var(--blue);   color: #5b7ba2; }
.chip.green  { background: var(--green);  color: #5b8469; }
.chip.gray   { background: #f1ebe7; color: var(--muted); }
.chip.new    { background: linear-gradient(135deg, #eab09a, #cf866b); color: #fff; }
.chip.ok     { background: var(--green); color: #4e7a5d; }
.chip.warn   { background: #f9e3dc; color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Аватары ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 650; color: #fff; font-size: 15px;
  background: linear-gradient(140deg, #efc6b4, var(--primary));
  box-shadow: 0 6px 14px -6px rgba(176, 109, 85, .6), inset 0 1px 0 rgba(255,255,255,.4);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.avatar.lg { width: 96px; height: 96px; font-size: 30px; }
.avatar.xl { width: 128px; height: 128px; font-size: 40px; border: 5px solid #fff; }
.avatar.pink   { background: linear-gradient(140deg, #f3cdbd, var(--pink-a)); }
.avatar.yellow { background: linear-gradient(140deg, #ecd9b4, var(--yellow-a)); }
.avatar.blue   { background: linear-gradient(140deg, #c9d8ea, var(--blue-a)); }
.avatar.green  { background: linear-gradient(140deg, #c7dccd, var(--green-a)); }
.avatar.purple { background: linear-gradient(140deg, #d6cde6, var(--purple-a)); }
.avatar.square { border-radius: 18px; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 650; font-size: 13.5px; color: var(--ink-2); }
.field .hint, .hint { font-size: 12.5px; color: var(--muted); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field input[type="password"], .field input[type="date"], .field input[type="month"], .field input[type="search"],
.field select, .field textarea, select.input {
  width: 100%; max-width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.9); font: 500 15px/1.4 var(--font); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  border-color: var(--primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(233, 185, 164, .25);
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.file-drop {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; flex-wrap: wrap;
  border: 1.5px dashed #ead3c7; background: rgba(255,255,255,.6);
}
.file-drop input[type="file"], .image-box input[type="file"] { font: 500 13px var(--font); color: var(--muted); max-width: 100%; width: 100%; }
input[type="file"]::file-selector-button {
  border: 0; border-radius: 999px; padding: 8px 14px; margin-right: 10px; cursor: pointer;
  background: var(--primary-soft); color: var(--primary-d); font: 650 13px var(--font);
}

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; font-size: 28px; color: #eadfd8; transition: color .1s; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #e2b06a; }
.stars { color: #e2b06a; letter-spacing: 2px; }
.stars .off { color: #ece2db; }

/* ---------- Уведомления ---------- */
.flashes { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 10px;
  max-width: min(440px, calc(100vw - 36px)); }
.flash {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 18px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 600; font-size: 14.5px; animation: flash-in .35s var(--ease);
}
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none;
  background: var(--primary); box-shadow: 0 0 10px var(--primary-2); }
.flash.success::before { background: var(--green-a); box-shadow: 0 0 10px #b9d3c1; }
.flash.error::before { background: var(--danger); box-shadow: 0 0 10px #eab09a; }
.flash button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 18px; line-height: 1; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================================
   Личные кабинеты
   ========================================================================= */
.app {
  display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px;
  max-width: 1480px; margin: 0 auto; padding: 24px; min-height: 100vh;
}

.sidebar {
  position: sticky; top: 24px; align-self: start; height: calc(100vh - 48px);
  display: flex; flex-direction: column; padding: 24px 16px 18px;
  border-radius: var(--r-lg); overflow-y: auto; scrollbar-width: thin;
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), var(--inner);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; color: var(--ink); }
.sidebar-brand img { width: 40px; height: 40px; }
.sidebar-brand b { font-weight: 650; font-size: 15.5px; line-height: 1.1; display: block; }
.sidebar-brand small { color: var(--muted); font-size: 12px; }
.sidebar-profile { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 16px;
  border-radius: 20px; background: rgba(255,255,255,.6); border: 1px solid var(--glass-line); }
.sidebar-profile .avatar { width: 46px; height: 46px; }
.sidebar-profile .hello { font-size: 15px; font-weight: 650; line-height: 1.25; }
.sidebar-profile .role { font-size: 12.5px; color: var(--muted); }

.nav { display: grid; gap: 2px; }
.nav-title { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s, box-shadow .2s;
}
.nav a .icon { color: var(--muted); transition: color .2s; }
.nav a:hover { background: rgba(255,255,255,.75); color: var(--ink); }
.nav a:hover .icon { color: var(--primary-d); }
.nav a.active {
  color: #fff; background: linear-gradient(135deg, #ebbaa4, var(--primary) 60%, #c98468);
  box-shadow: var(--glow);
}
.nav a.active .icon { color: #fff; }
.nav a .badge { margin-left: auto; }
.nav a.active .badge { background: #fff; color: var(--primary-d); box-shadow: none; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 10px; }

.side-promo {
  margin-top: auto; padding: 18px 16px; border-radius: 22px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.9), #f6dfd4);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-soft);
}
.side-promo::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  right: -40px; top: -50px; background: radial-gradient(circle at 35% 35%, #fff, #e9c2b1); opacity: .8; }
.side-promo > * { position: relative; }
.side-promo h4 { margin-bottom: 4px; }
.side-promo p { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.45; }

.main {
  min-width: 0; padding: 26px 30px 34px; border-radius: var(--r-lg);
  background: rgba(255, 252, 249, .55); border: 1px solid var(--glass-line);
  box-shadow: 0 30px 60px -36px rgba(140, 90, 70, .35), var(--inner);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.topbar h1 { margin: 0; font-size: 30px; font-weight: 300; letter-spacing: -.03em; }
.topbar .spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.8); width: min(320px, 34vw); color: var(--muted);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-soft);
}
.search input { border: 0; outline: 0; background: none; font: 500 14.5px var(--font); color: var(--ink); width: 100%; }
.round-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.85); color: var(--ink-2); border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-soft), var(--inner); cursor: pointer; transition: color .2s, transform .2s;
}
.round-btn:hover { color: var(--primary-d); transform: translateY(-1px); }
.round-btn .badge { position: absolute; top: -4px; right: -4px; }
.round-btn.filled { background: linear-gradient(135deg, #ebbaa4, var(--primary)); color: #fff; border: 0; box-shadow: var(--glow); }
.round-btn.filled:hover { color: #fff; }
.burger { display: none; }
.cake-btn { color: var(--pink-a); }

/* Приветственный баннер */
.hero-banner {
  position: relative; display: flex; align-items: center; gap: 26px; min-height: 180px;
  padding: 30px 34px; margin-bottom: 24px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(120deg, #fbefe8 0%, #f5ddd2 45%, #e6ecf3 100%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow), var(--inner);
}
.hero-banner::before, .hero-banner::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-banner::before { width: 420px; height: 420px; right: -120px; top: -230px;
  background: radial-gradient(circle at 40% 60%, rgba(255,255,255,.9), rgba(255,255,255,0) 65%); }
.hero-banner::after { width: 260px; height: 260px; right: 60px; bottom: -170px;
  background: radial-gradient(circle at 50% 30%, #f2cdbd, rgba(242,205,189,0) 70%); }
.hero-banner .text { flex: 1; position: relative; z-index: 1; }
.hero-banner h2 { font-size: 28px; font-weight: 300; margin-bottom: 6px; letter-spacing: -.03em; }
.hero-banner h2 .serif { font-size: 1.15em; color: var(--primary-d); }
.hero-banner p { color: var(--ink-2); margin-bottom: 18px; max-width: 560px; }
.hero-banner .orb { width: 150px; height: 150px; flex: none; position: relative; z-index: 1; }
.orb { border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0%, #fbe7dd 30%, #e9b9a4 70%, #d4957c 100%);
  box-shadow: 0 30px 50px -20px rgba(176, 109, 85, .55), inset -10px -14px 30px rgba(176, 109, 85, .25),
              inset 8px 10px 20px rgba(255,255,255,.8); }
.orb.blue { background: radial-gradient(circle at 32% 28%, #fff 0%, #e9f0f7 30%, #bccfe4 70%, #8fa9c8 100%);
  box-shadow: 0 30px 50px -20px rgba(110, 140, 180, .5), inset -10px -14px 30px rgba(90, 120, 160, .2),
              inset 8px 10px 20px rgba(255,255,255,.8); }
.orb.sage { background: radial-gradient(circle at 32% 28%, #fff 0%, #ecf3ee 30%, #c3d9ca 70%, #8fb19b 100%);
  box-shadow: 0 30px 50px -20px rgba(110, 150, 120, .5), inset -10px -14px 30px rgba(90, 130, 100, .2),
              inset 8px 10px 20px rgba(255,255,255,.8); }
.hero-banner .orb-sm { position: absolute; width: 46px; height: 46px; right: 210px; top: 26px; z-index: 1; }

/* Нижний баннер */
.bottom-banner {
  display: flex; align-items: center; gap: 22px; padding: 20px 26px; border-radius: var(--r-lg);
  margin-top: 24px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #e8eef5, #f6e3da); border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), var(--inner);
}
.bottom-banner .orb { width: 64px; height: 64px; flex: none; }
.bottom-banner h3 { margin: 0; font-size: 20px; font-weight: 600; }
.bottom-banner p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.bottom-banner .btn { margin-left: auto; }

/* Списки */
.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit;
}
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }
a.list-item:hover { color: inherit; }
a.list-item:hover .play { transform: translateX(3px); color: var(--primary-d); }
.list-item .title { font-weight: 650; }
.list-item .sub { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 52px; height: 52px; border-radius: 16px; flex: none; object-fit: cover; }
.play {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.9); color: var(--muted); border: 1px solid var(--line);
  transition: transform .25s var(--ease), color .2s;
}
.list-item.unread { background: linear-gradient(90deg, #fbeee7, transparent); border-radius: 16px;
  padding-left: 12px; padding-right: 12px; }

.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty .orb { width: 70px; height: 70px; margin: 0 auto 14px; }
.empty .title { font-weight: 650; color: var(--ink-2); margin-bottom: 4px; }

/* Фото и сведения ребёнка */
.photo-frame {
  width: 100%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, #fbeee7, #efc8b8); font-size: 54px; font-weight: 300; color: #fff;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.blue { background: linear-gradient(160deg, #eef3f8, #bccfe4); }

.info-block { padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.75); border: 1px solid var(--line); }
.info-block h4 { display: flex; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: 14.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Успехи (лента) */
.timeline { display: grid; gap: 12px; }
.ach {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px;
  background: rgba(255,255,255,.78); border: 1px solid var(--line);
}
.ach .title { font-weight: 650; }
.ach .meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 2px 0 6px; }
.ach p { margin: 0; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }

/* Задания */
.task {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start;
  padding: 18px; border-radius: 22px; background: rgba(255,255,255,.8); border: 1px solid var(--line);
}
.task.done { background: linear-gradient(160deg, rgba(255,255,255,.85), #edf4ef); }
.task.fresh { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(233,185,164,.18); }
.task .mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px dashed #e3c9bc; color: #d8b5a5; background: #fff; }
.task.done .mark { border: 0; color: #fff; background: linear-gradient(135deg, #b9d3c1, var(--green-a));
  box-shadow: 0 8px 18px -8px rgba(110,160,128,.9); }
.task h4 { margin: 0 0 4px; font-size: 16px; }
.task .meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.task .body { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }
.teacher-note { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--blue);
  font-size: 14px; color: #4f6a8a; display: flex; gap: 10px; }
.teacher-note b { display: block; color: #3e5878; font-size: 12.5px; margin-bottom: 2px; }
.progress { height: 8px; border-radius: 999px; background: #f1e6df; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #b9d3c1, var(--green-a)); }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--green-a) calc(var(--p) * 1%), #efe5de 0);
  box-shadow: var(--shadow-soft); }
.ring > div { width: 92px; height: 92px; border-radius: 50%; background: #fffaf7; display: grid; place-items: center;
  text-align: center; line-height: 1.1; box-shadow: inset 0 2px 6px rgba(176,109,85,.12); }
.ring b { font-size: 26px; font-weight: 300; display: block; }
.ring small { font-size: 11.5px; color: var(--muted); }

/* График (столбики) */
.bars { display: flex; align-items: flex-end; gap: 16px; height: 180px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%;
  justify-content: flex-end; min-width: 0; }
.bar { width: 100%; max-width: 40px; border-radius: 14px 14px 8px 8px; min-height: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.bar.purple { background: linear-gradient(180deg, #ddd4ea, var(--purple-a)); }
.bar.pink   { background: linear-gradient(180deg, #f5d6c9, var(--pink-a)); }
.bar.yellow { background: linear-gradient(180deg, #f1e3c4, var(--yellow-a)); }
.bar.blue   { background: linear-gradient(180deg, #d3e0ee, var(--blue-a)); }
.bar.green  { background: linear-gradient(180deg, #d3e5d8, var(--green-a)); }
.bar-val { font-weight: 650; font-size: 13.5px; }
.bar-labels { display: flex; gap: 16px; padding: 8px 6px 0; }
.bar-labels span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Переписка */
.chat { position: relative; display: grid; gap: 14px; max-height: 60vh; overflow-y: auto; padding: 4px 6px 4px 2px; }
.msg { max-width: 78%; display: grid; gap: 4px; }
.msg .bubble { padding: 14px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 8px 18px -14px rgba(140,90,70,.4); }
.msg .subject { font-weight: 700; margin-bottom: 4px; display: block; }
.msg .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; padding: 0 8px; flex-wrap: wrap; }
.msg.mine { justify-self: end; }
/* свои сообщения — светлый персик и тёмный текст цвета какао (контраст выше 9:1) */
.msg.mine .bubble { background: linear-gradient(135deg, #fcebe3, #f5d6c8); color: var(--ink); border: 1px solid #efcdbd;
  border-bottom-right-radius: 8px; box-shadow: 0 12px 24px -16px rgba(176,109,85,.7); }
.msg.mine .subject { color: #8a4b37; }
.msg .bubble a { color: var(--primary-d); text-decoration: underline; }
.msg.mine .meta { justify-content: flex-end; }
.msg.theirs .bubble { border-bottom-left-radius: 8px; }
.msg.broadcast .bubble { background: linear-gradient(160deg, #fff, var(--blue)); border-color: #d6e2ee; }
.msg.unread .bubble { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(233,185,164,.22); }

/* Каналы переписки */
.channels { display: grid; gap: 8px; }
.channel { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; color: inherit;
  border: 1px solid transparent; transition: background .2s, border-color .2s; }
.channel:hover { background: rgba(255,255,255,.7); color: inherit; }
.channel.active { background: #fff; border-color: var(--primary-2); box-shadow: var(--shadow-soft); }
.channel .title { font-weight: 650; font-size: 14.5px; line-height: 1.25; }
.channel .sub { font-size: 12.5px; color: var(--muted); }

/* Таблица */
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 0 14px;
  text-transform: uppercase; letter-spacing: .05em; }
.table td { background: rgba(255,255,255,.85); padding: 12px 14px; vertical-align: middle; }
.table td:first-child { border-radius: 16px 0 0 16px; }
.table td:last-child { border-radius: 0 16px 16px 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #fff; }
.table tfoot td { background: var(--primary-soft); font-weight: 700; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: -8px -4px; padding: 0 4px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  font-weight: 650; font-size: 14px; background: rgba(255,255,255,.75); color: var(--ink-2); border: 1px solid var(--glass-line); }
.tab.active { background: linear-gradient(135deg, #ebbaa4, var(--primary)); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.tab:hover { color: var(--primary-d); }
.tab.active:hover { color: #fff; }
.tab .badge { margin-left: 4px; }

.group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.group-head h3 { margin: 0; }

.kid-tile {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.8);
  border: 1px solid var(--line); color: inherit; transition: border-color .2s, box-shadow .2s;
}
.kid-tile:hover { border-color: var(--primary-2); color: inherit; box-shadow: var(--shadow-soft); }
.kid-tile .name { font-weight: 650; }
.kid-tile.disabled { opacity: .55; cursor: not-allowed; }

.review-admin.pending { border-color: #eed2c5; box-shadow: 0 0 0 4px rgba(233,185,164,.18), var(--shadow); }
.reply-box { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--primary-soft); }
.reply-box .who { font-weight: 700; color: var(--primary-d); display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* Вход */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; position: relative; }
.auth-card { width: min(480px, 100%); padding: 38px 36px; border-radius: var(--r-xl); }
.auth-card .logo { justify-content: center; margin-bottom: 22px; }
.auth-orbs .orb { position: fixed; z-index: -1; }

/* =========================================================================
   Главная страница
   ========================================================================= */
.site { max-width: 1260px; margin: 0 auto; padding: 18px 20px 0; }

.site-header {
  position: sticky; top: 14px; z-index: 50; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: rgba(255, 252, 249, .7); border: 1px solid var(--glass-line); box-shadow: var(--shadow), var(--inner);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo img { width: 44px; height: 44px; }
.logo .name { font-weight: 700; font-size: 17.5px; line-height: 1.05; letter-spacing: -.02em; }
.logo .name small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.site-nav { display: flex; gap: 2px; margin: 0 auto; }
.site-nav a { padding: 8px 11px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.site-nav a:hover { background: rgba(255,255,255,.85); color: var(--primary-d); }
.header-cta { flex: none; }

.section { padding: 96px 0 0; scroll-margin-top: 96px; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head h2, .display { font-size: 44px; font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.section-head h2 .serif, .display .serif { font-size: 1.12em; color: var(--primary-d); }
.section-head p { color: var(--ink-2); margin: 0; font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.75); color: var(--primary-d); font-weight: 650; font-size: 12.5px; margin-bottom: 16px;
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-soft); letter-spacing: .03em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 10px var(--primary-2); }

/* Первый экран */
.hero {
  position: relative; margin-top: 22px; padding: 64px 56px; border-radius: 48px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 600px;
  background: linear-gradient(125deg, rgba(255,251,248,.9) 0%, rgba(250,232,223,.85) 55%, rgba(226,235,244,.85) 100%);
  border: 1px solid var(--glass-line); box-shadow: 0 40px 80px -46px rgba(140, 90, 70, .55), var(--inner);
}
.hero-wave { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; z-index: 0; pointer-events: none; }
.hero-text { position: relative; z-index: 2; }
.hero h1 { font-size: 58px; line-height: 1.04; font-weight: 300; letter-spacing: -.045em; margin-bottom: 22px; }
.hero h1 .serif { display: inline; font-size: 1.12em; color: var(--primary-d); letter-spacing: -.01em; }
.hero .lead { font-size: 18px; color: var(--ink-2); margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; z-index: 2; justify-self: center; width: min(360px, 100%); margin: 10px 40px; }
.hero-photo {
  width: 100%; aspect-ratio: 57 / 74; object-fit: cover; object-position: center top; border-radius: 150px 150px 34px 34px;
  border: 8px solid rgba(255,255,255,.7); box-shadow: 0 40px 70px -34px rgba(140, 90, 70, .7);
}
/* Логотип на первом экране: круг из матового стекла с мягким свечением */
.hero-visual.with-logo { width: min(420px, 100%); }
.hero-logo {
  position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding: 12% 11%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.98), rgba(255,250,246,.82) 45%, rgba(246,222,210,.7) 100%);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 46px 80px -40px rgba(176, 109, 85, .65), inset 0 2px 0 #fff, inset 0 -18px 40px rgba(233, 185, 164, .28),
              0 0 0 14px rgba(255,255,255,.35), 0 0 70px -10px rgba(240, 190, 165, .6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hero-logo::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(196, 126, 99, .28); }
.hero-art, .brand-logo { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 8px 16px rgba(176, 109, 85, .18)); }
.hero-visual.with-logo .float-card.one { left: -120px; top: 44%; bottom: auto; }
.hero-visual.with-logo .float-card.two { right: -70px; top: 4%; }
.hero-visual.with-logo .orb.o1 { right: -40px; bottom: 6%; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 20px;
  background: rgba(255, 253, 251, .78); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13.5px; line-height: 1.3;
  animation: drift 7s ease-in-out infinite;
}
.float-card b { display: block; font-size: 15px; }
/* плашки стоят по краям рамки и не закрывают лицо и руки на фото */
.float-card.one { left: -150px; top: 7%; }
.float-card.two { right: -96px; top: -2%; animation-delay: -3.5s; }
.hero .orb.o1 { position: absolute; width: 80px; height: 80px; right: -84px; bottom: 30%; z-index: 3; animation: drift 9s ease-in-out infinite; }
.hero .orb.o2 { position: absolute; width: 46px; height: 46px; left: 2%; bottom: -10px; z-index: 3; animation: drift 8s ease-in-out infinite -2s; }
@keyframes drift { 50% { transform: translateY(-12px); } }

.facts { margin-top: 22px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r);
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow), var(--inner); }
.fact .value { font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.fact .label { font-size: 13.5px; color: var(--ink-2); }

.feature { padding: 28px; }
.feature h3 { margin-top: 18px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15px; }
.feature-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; margin-bottom: 4px; }

/* Направления */
.program-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.program-card .pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(160deg, #fbeee7, #e9c2b1); }
/* фото вписывается в карточку целиком (лица и руки не обрезаются), по бокам — его размытая копия */
.program-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.program-card .pic img.backdrop { object-fit: cover; filter: blur(18px) saturate(.9) brightness(1.08); transform: scale(1.15); opacity: .85; }
.program-card .pic img.photo { object-fit: contain; z-index: 0; filter: drop-shadow(0 10px 22px rgba(120, 70, 50, .25)); }
.program-card:hover .pic img.photo { transform: scale(1.03); }
.program-card .pic .orb { position: absolute; inset: 0; margin: auto; width: 110px; height: 110px; }
.program-card .pic::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,250,246,.55)); }
.program-card .age { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; background: rgba(255,255,255,.82); color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.program-card .body { padding: 20px 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.program-card h3 { margin: 0 0 6px; }
.program-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* Галерея */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px;
  grid-auto-flow: dense; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); }
.mosaic figure:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure { background: #f3e2d9; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
/* фото целиком, без обрезки лиц; пустые поля заполняет его размытая копия */
.mosaic img.backdrop { object-fit: cover; filter: blur(18px) saturate(.9) brightness(1.08); transform: scale(1.15); opacity: .85; }
.mosaic img.photo { object-fit: contain; filter: drop-shadow(0 10px 22px rgba(120, 70, 50, .25)); }
.mosaic figure:hover img.photo { transform: scale(1.03); }
/* подпись — полоской под фото, чтобы не закрывать лица и руки */
.mosaic figure { display: flex; flex-direction: column; background: rgba(255, 252, 249, .9); }
.mosaic .shot { position: relative; flex: 1; overflow: hidden; }
.mosaic figcaption { position: static; margin: 0; padding: 10px 16px; border-radius: 0; background: none !important;
  backdrop-filter: none !important; width: auto !important; max-width: none !important; flex: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* Группы */
.groups-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.group-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.group-card .top { display: flex; align-items: center; gap: 14px; }
.group-card .emoji { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; flex: none;
  background: linear-gradient(160deg, #fff, var(--primary-soft)); box-shadow: var(--shadow-soft), var(--inner); }
.group-card .emoji.purple { background: linear-gradient(160deg, #fff, var(--purple)); }
.group-card .emoji.pink { background: linear-gradient(160deg, #fff, var(--pink)); }
.group-card .emoji.yellow { background: linear-gradient(160deg, #fff, var(--yellow)); }
.group-card .emoji.blue { background: linear-gradient(160deg, #fff, var(--blue)); }
.group-card .emoji.green { background: linear-gradient(160deg, #fff, var(--green)); }
.group-card h3 { margin: 0; }
.group-card .age { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.group-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.group-card .foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }

/* Личный кабинет — блок на главной */
.cabinet-promo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center;
  padding: 48px; border-radius: 48px; position: relative; overflow: hidden;
  background: linear-gradient(130deg, #e5ecf4 0%, #f5e5dd 60%, #fbefe8 100%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow), var(--inner); }
.cabinet-promo .display { font-size: 40px; }
.cabinet-promo .lead { color: var(--ink-2); margin-bottom: 24px; }
.cabinet-promo .orb { position: absolute; }
.mini-feature { display: flex; gap: 14px; padding: 18px; border-radius: 22px; background: rgba(255,255,255,.7);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mini-feature h4 { margin: 0 0 4px; }
.mini-feature p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li .icon { color: var(--green-a); margin-top: 2px; }

.price { display: flex; flex-direction: column; padding: 32px 28px; }
.price .amount { font-size: 32px; font-weight: 300; margin: 6px 0 2px; letter-spacing: -.03em; }
.price .per { color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.price .checklist { margin-bottom: 24px; flex: 1; }
.price.featured { background: linear-gradient(150deg, #f3d3c5 0%, #e5b19c 60%, #d99b83 100%); color: #fff;
  border-color: rgba(255,255,255,.5); box-shadow: 0 40px 70px -36px rgba(176, 109, 85, .9), var(--inner); }
.price.featured h3, .price.featured .per, .price.featured .checklist li, .price.featured .amount { color: #fff; }
.price.featured .checklist .icon { color: #fff; }
.price.featured .btn-light { color: var(--primary-d); }

.review { display: flex; flex-direction: column; gap: 12px; }
.review .body { color: var(--ink-2); white-space: pre-line; }
.review .body::before { content: "“"; display: block; font-family: var(--serif); font-size: 56px; line-height: .6;
  color: var(--primary-2); margin-bottom: 4px; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .who b { display: block; }

.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq details { background: var(--glass-strong); border-radius: 22px; padding: 0 24px; border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-soft), var(--inner); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 650; font-size: 16.5px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-d); font-size: 20px; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

.enroll {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 52px;
  border-radius: 48px; position: relative; overflow: hidden;
  background: linear-gradient(130deg, #f7e1d6 0%, #eec3b1 50%, #dfe7f1 100%);
  border: 1px solid var(--glass-line); box-shadow: 0 40px 80px -46px rgba(140, 90, 70, .6), var(--inner);
}
.enroll .display { font-size: 44px; }
.enroll .lead { color: var(--ink-2); font-size: 17px; }
.enroll .card { position: relative; z-index: 1; }
.enroll .orb { position: absolute; }

.contacts .item { display: flex; gap: 14px; align-items: center; }
.contacts .item b { display: block; }
.map-card { position: relative; min-height: 320px; padding: 0; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #fff, #f3e2d9 55%, #e3ebf4); }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--ink-2); }
.map-fallback .orb { width: 60px; height: 60px; margin: 0 auto 10px; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.12); }

.site-footer {
  margin-top: 96px; padding: 40px 44px 26px; border-radius: 48px 48px 0 0; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(255,251,248,.85), rgba(244,225,215,.9) 60%, rgba(226,235,244,.9));
  border: 1px solid var(--glass-line); border-bottom: 0;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px;
}
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--primary-d); }
.site-footer h4 { margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(176,109,85,.15); padding-top: 18px;
  font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--primary-d);
  background: linear-gradient(160deg, #fff, #f6dfd4); box-shadow: 0 10px 22px -10px rgba(212,149,124,.8), var(--inner); }
.social a:hover { color: #fff; background: linear-gradient(135deg, #ebbaa4, var(--primary)); }

.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.error-page .code { font-size: 96px; font-weight: 200; color: var(--primary-d); line-height: 1; letter-spacing: -.05em; }

/* =========================================================================
   Новости, статьи, «Сведения об ОО»
   ========================================================================= */
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.news-card:hover { color: inherit; }
.news-card .cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(160deg, #fbeee7, #e9c2b1); display: grid; place-items: center; }
.news-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.news-card .cover img.backdrop { object-fit: cover; filter: blur(18px) saturate(.9) brightness(1.08); transform: scale(1.15); opacity: .85; }
.news-card .cover img.photo { object-fit: contain; filter: drop-shadow(0 10px 22px rgba(120, 70, 50, .25)); }
.news-card:hover .cover img.photo { transform: scale(1.03); }
.news-card .media-flag { z-index: 1; }
.news-card .cover .orb { width: 90px; height: 90px; }
.media-flag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 10px; border-radius: 999px; background: rgba(63, 48, 43, .6); color: #fff; font-size: 12.5px; font-weight: 650;
  backdrop-filter: blur(6px); }
.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body .chip { align-self: flex-start; }
.news-body h3 { margin: 0; }
.news-body .excerpt { color: var(--ink-2); font-size: 14.5px; margin: 0; flex: 1; }
.news-body .more { font-weight: 650; color: var(--primary-d); display: inline-flex; gap: 6px; align-items: center; }

.article { padding: 36px; }
.article h1 { font-size: 36px; font-weight: 300; letter-spacing: -.03em; }
.rich { color: var(--ink-2); font-size: 16.5px; }
.rich h3 { color: var(--ink); margin: 24px 0 8px; font-size: 18px; }
.rich ul { padding-left: 22px; margin: 0 0 1em; }
.rich li { margin-bottom: 6px; }
.rich li::marker { color: var(--primary); }
.rich b { color: var(--ink); }
.rich p { margin-bottom: 12px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 22px; }
/* фото новости показывается целиком в своих пропорциях; поля заполняет его размытая копия */
.gallery a { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; display: block; background: #f3e2d9; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s var(--ease); }
.gallery img.backdrop { object-fit: cover; filter: blur(22px) saturate(.9) brightness(1.08); transform: scale(1.15); opacity: .85; }
.gallery img.photo { object-fit: contain; filter: drop-shadow(0 12px 26px rgba(120, 70, 50, .25)); }
.gallery a:hover img.photo { transform: scale(1.02); }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single a { aspect-ratio: auto; height: min(560px, 70vh); }
.video { width: 100%; max-height: 560px; border-radius: 22px; background: #2b211e; margin-top: 16px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(50, 36, 32, .82); display: grid; place-items: center; padding: 30px;
  backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 18px; }
.lightbox .round-btn { position: absolute; top: 20px; right: 20px; }

.sveden-nav { display: grid; gap: 2px; padding: 14px; align-self: start; position: sticky; top: 100px; }
.sveden-nav a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px;
  color: var(--ink-2); font-weight: 600; font-size: 14px; line-height: 1.35; }
.sveden-nav a .icon { margin-top: 1px; color: var(--primary); }
.sveden-nav a:hover { background: rgba(255,255,255,.8); color: var(--primary-d); }
.sveden-nav a.active { background: linear-gradient(135deg, #ebbaa4, var(--primary)); color: #fff; box-shadow: var(--glow); }
.sveden-nav a.active .icon { color: #fff; }
.sveden-tile { color: inherit; align-items: center; }
.sveden-tile:hover { color: inherit; }
.docs { display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.85);
  border: 1px solid var(--line); color: inherit; }
.doc:hover { border-color: var(--primary-2); color: inherit; }
.doc b { display: block; overflow-wrap: anywhere; }
.doc .icon:last-child { color: var(--primary); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #2b211e; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item form { position: absolute; top: 8px; right: 8px; }
.media-item .kind { position: absolute; left: 8px; bottom: 8px; }

/* =========================================================================
   Панель: фильтры, выгрузка, дни рождения, учётные записи, оплата
   ========================================================================= */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 16px 18px; }
.filters .field { min-width: 170px; }
.filters .field.grow { flex: 1; min-width: 200px; }
.filters-actions { display: flex; gap: 8px; }
.export-buttons { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.muted-row td { opacity: .6; }

.alphabet { display: flex; flex-wrap: wrap; gap: 6px; }
.alphabet a { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.8); color: var(--ink-2); font-weight: 650; font-size: 14px; border: 1px solid var(--line); }
.alphabet a.active { background: linear-gradient(135deg, #ebbaa4, var(--primary)); color: #fff; border-color: transparent; }

.kid-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0; }

.birthday-card { background: linear-gradient(150deg, rgba(255,255,255,.92), #fbe6dc); border-color: #f2d6c9; }
.bday { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px; border-radius: 20px;
  background: rgba(255,255,255,.88); color: inherit; border: 1px solid #f2dcd1; }
.bday:hover { color: inherit; border-color: var(--primary-2); }
.bday.today { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(233,185,164,.25); }
.bday .title { font-weight: 650; }
.bday-when { position: absolute; top: -10px; left: 14px; padding: 2px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, #eab09a, #cf866b); box-shadow: 0 4px 12px -4px rgba(207,134,107,.8); }
.bday-emoji { font-size: 26px; margin-left: auto; }
.birthday-alert { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 22px; border-radius: 22px;
  background: linear-gradient(120deg, #fdf0ea, #f7ddd1); border: 1px solid #f2d6c9; box-shadow: var(--shadow-soft); }
.birthday-alert .grow { font-size: 14.5px; }

.cred-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 14px; border-radius: 16px; background: var(--primary-soft); }
.cred-box > div { display: grid; gap: 2px; min-width: 0; }
.cred-box b { overflow-wrap: anywhere; }
.secret { filter: blur(5px); cursor: pointer; transition: filter .2s; user-select: none; }
.secret.shown { filter: none; user-select: text; }

.pick-list { display: grid; gap: 8px; max-height: 460px; overflow-y: auto; padding: 2px; }
.pick-list .kid-tile { cursor: pointer; }
.pick-list .kid-tile .grow { display: grid; }
.pick-list input:checked + .grow b { color: var(--primary-d); }
.pick-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.pick-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.add-slot { justify-content: center; border-style: dashed; color: var(--primary-d); font-weight: 650; background: rgba(255,255,255,.55); }

.cred-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.cred-card { background: #fff; border: 1.5px dashed #e6c7b8; border-radius: 22px; padding: 16px 18px; break-inside: avoid; page-break-inside: avoid; }
.cred-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--primary-d); margin-bottom: 8px; }
.cred-brand img { width: 22px; height: 22px; }
.cred-name { font-weight: 700; font-size: 17px; }
.temp-password { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 22px;
  border-radius: 22px; background: linear-gradient(120deg, #fbf3e6, #f5e7cf); border: 1px solid #efdcb9; }
.temp-password .grow { font-size: 14.5px; }

.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.debt { color: var(--danger); font-weight: 700; }
.money.ok { color: var(--success); font-weight: 700; }
.pay-form { display: grid; grid-template-columns: repeat(3, minmax(96px, 1fr)); gap: 8px 10px; align-items: end; min-width: 330px; }
.pay-form .field input { padding: 8px 12px; font-size: 14px; }
.pay-form .field label { white-space: nowrap; color: var(--muted); font-weight: 600; }
.pay-form .field.wide { grid-column: span 2; }
.pay-form .btn { height: 38px; }
.pay-row td { vertical-align: top; }
.month-switch { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.85); border: 1px solid var(--glass-line); box-shadow: var(--shadow-soft); }
.month-switch b { padding: 0 10px; font-weight: 650; min-width: 140px; text-align: center; }
.month-switch a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.month-switch a:hover { background: var(--primary-soft); color: var(--primary-d); }

/* ----- Редактор главной страницы ----- */
.home-editor { display: grid; gap: 14px; }
.home-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-section > summary::-webkit-details-marker { display: none; }
.home-section > summary h3 { margin: 0; flex: 1 1 170px; }
.home-section > summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-d); font-size: 20px; transition: transform .3s var(--ease); }
.home-section[open] > summary::after { transform: rotate(45deg); }
.item-rows { display: grid; gap: 12px; }
.item-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.7);
  border: 1px solid var(--line); }
.item-fields { flex: 1; min-width: 0; display: grid; gap: 10px; }
.item-tools { display: grid; gap: 6px; }
.item-tools .btn-round { width: 34px; height: 34px; font-weight: 700; }
.image-box { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding: 12px; border-radius: 16px;
  background: rgba(255,255,255,.8); border: 1.5px dashed var(--line); }
.image-box img { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; flex: none; }
.image-box .grow { flex: 1 1 200px; min-width: 0; }

/* Плавное появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.lift { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -30px rgba(140, 90, 70, .5), var(--inner); }

/* ---------- Демо-режим: плавающая кнопка заказа и контакты разработчика ---------- */
.order-float-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; justify-items: end; gap: 8px; max-width: calc(100% - 24px); }
.order-float { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font: 700 15.5px/1.2 var(--font); color: #fff !important; background: linear-gradient(135deg, #ebbaa4, var(--primary) 55%, #c98468);
  box-shadow: var(--glow), 0 0 0 4px rgba(255,255,255,.8); animation: order-pulse 3s ease-in-out infinite; }
.order-float:hover { filter: brightness(1.05); }
@keyframes order-pulse { 50% { box-shadow: var(--glow), 0 0 0 9px rgba(255,255,255,.35); } }
.dev-contacts { padding: 10px 16px; border-radius: 18px; background: var(--glass-strong); color: var(--ink); display: grid; gap: 2px;
  text-align: right; box-shadow: var(--shadow-soft); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); }
.dev-contacts b { font-size: 14px; }
.dev-contacts-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; font-size: 14px; }
.dev-contacts-list a { font-weight: 700; white-space: nowrap; }

/* =========================================================================
   Адаптивность
   ========================================================================= */
.grid > *, .form-row > *, .field, .item-fields { min-width: 0; }
.list-item .title, .cred-box b, .card h3, .info-block, .msg .bubble { overflow-wrap: anywhere; }

@media (max-width: 1240px) {
  .site-nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column;
    background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: 26px; padding: 12px;
    box-shadow: var(--shadow); display: none; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .site-nav a { padding: 11px 14px; }
  .site-header.open .site-nav { display: flex; }
  .site-header .burger { display: grid; }
  .site-header .header-cta { margin-left: auto; }
}

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 54px 40px; }
  .hero h1 { font-size: 48px; }
  .float-card.one { left: -110px; }
  .float-card.two { right: -40px; }
}

@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; top: 0; width: 286px; height: 100vh; z-index: 80; border-radius: 0 30px 30px 0;
    transform: translateX(-105%); transition: transform .3s var(--ease); background: var(--glass-strong); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(63, 48, 43, .28); z-index: 70;
    backdrop-filter: blur(2px); }
  .burger { display: grid; }
  .main { padding: 20px 16px 26px; border-radius: 26px; }
  .grid-main-side, .grid-side-main { grid-template-columns: minmax(0, 1fr) !important; }
  .grid-3, .split, .enroll, .cabinet-promo { grid-template-columns: minmax(0, 1fr); }
  .search { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 44px 30px 54px; min-height: 0; }
  .hero-visual { width: min(320px, 80%); margin: 0 auto; }
  .float-card.one { left: -100px; }
  .float-card.two { right: -30px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
  .section { padding-top: 72px; }
  .section-head h2, .display { font-size: 36px; }
  .enroll, .cabinet-promo { padding: 34px 26px; }
  .hero-banner .orb { width: 110px; height: 110px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-2, .grid-4, .grid-5, .groups-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4.keep-2, .grid-5.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: minmax(0, 1fr) !important; }
  .site { padding: 10px 12px 0; }
  .site-header { gap: 8px; padding: 8px 8px 8px 12px; top: 8px; }
  .logo img { width: 38px; height: 38px; }
  .logo .name { font-size: 15px; }
  .logo .name small { display: none; }
  .site-header .round-btn, .header-cta .btn { width: 42px; height: 42px; padding: 0; }
  .header-cta .btn-text { display: none; }
  .hero { padding: 30px 20px 40px; border-radius: 34px; gap: 28px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16px; }
  .float-card { position: static; margin-top: 12px; animation: none; }
  .hero .orb.o1 { width: 60px; height: 60px; }
  .section-head h2, .display, .enroll .display, .cabinet-promo .display { font-size: 30px; }
  .enroll, .cabinet-promo { padding: 26px 18px; border-radius: 34px; }
  .mosaic { grid-auto-rows: 150px; gap: 10px; }
  .mosaic figure { border-radius: 18px; }
  .topbar { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
  .topbar h1 { order: 10; flex: 1 0 100%; font-size: 25px; overflow-wrap: anywhere; }
  .topbar .round-btn { width: 42px; height: 42px; }
  .hero-banner { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .hero-banner .orb, .hero-banner .orb-sm { display: none; }
  .hero-banner h2 { font-size: 23px; }
  .bottom-banner { flex-wrap: wrap; }
  .bottom-banner .btn { margin-left: 0; }
  .msg { max-width: 100%; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td, .table tfoot { display: block; width: 100%; }
  .table tr { margin-bottom: 10px; background: rgba(255,255,255,.85); border-radius: 18px; padding: 6px 0; }
  .table td { border-radius: 0 !important; padding: 6px 14px; background: none; overflow-wrap: anywhere; }
  .table .num { text-align: left; }
  .card { padding: 18px; }
  .card.program-card, .card.news-card, .card.map-card { padding: 0; }
  .mosaic figure:last-child:nth-child(even) { grid-column: span 2; }
  .auth-card { padding: 28px 20px; }
  .list-item { flex-wrap: wrap; }
  .list-item > .grow { flex: 1 1 150px; }
  .card.row, .row.wrap, .ach, .bday, .kid-tile { flex-wrap: wrap; }
  .ach > .grow, .kid-tile > .grow, .bday > .grow { flex: 1 1 150px; min-width: 0; }
  .task { grid-template-columns: auto minmax(0, 1fr); }
  .task > :last-child { grid-column: 1 / -1; }
  .tab { padding: 8px 12px; font-size: 13px; }
  .stat .value { font-size: 24px; }
  .fact { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .fact .value { font-size: 18px; overflow-wrap: anywhere; }
  .filters .field, .filters .field.grow { flex: 1 1 100%; min-width: 100%; }
  .cred-box { grid-template-columns: minmax(0, 1fr); }
  .item-row { flex-direction: column; }
  .item-tools { display: flex; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .pay-form { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .order-float-wrap { left: 10px; right: 10px; bottom: 10px; justify-items: stretch; gap: 6px; max-width: none; }
  .order-float { justify-content: center; padding: 13px 18px; font-size: 15px; }
  .dev-contacts { text-align: center; }
  .dev-contacts-list { justify-content: center; }
}

@media (max-width: 400px) {
  .site-header [data-a11y-on] { display: none; }
  .grid-4.keep-2, .grid-5.keep-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff !important; }
  body::before { display: none; }
  .sidebar, .topbar, .no-print, .flashes, .a11y-panel, .temp-password, .order-float-wrap { display: none !important; }
  .app { display: block; padding: 0; }
  .main { box-shadow: none; padding: 0; background: #fff; border: 0; }
  .cred-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cred-card { border-color: #999; }
}

/* =========================================================================
   Мягкий отклик кнопок: наведение — ярче и со свечением,
   нажатие — кнопка плавно «вдавливается» и меняет оттенок в палитре дизайна
   ========================================================================= */
.btn, .round-btn, .tab, .pill-link, .alphabet a, .link-btn, .nav a, .channel, .sveden-nav a, .month-switch a,
.social a, .order-float, .faq summary, .play {
  position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease),
              background .45s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.faq summary { overflow: visible; }

/* Основная персиковая кнопка */
.btn { background-size: 160% 160%; background-position: 0% 50%; }
.btn:hover { filter: brightness(1.08) saturate(1.06); background-position: 60% 50%; }
.btn:active, .btn.is-pressed {
  transform: translateY(1px) scale(.97); filter: brightness(1);
  background: linear-gradient(135deg, #f2c8b8 0%, #d98f86 55%, #c7797a 100%);   /* персик → пыльная роза */
  box-shadow: 0 6px 16px -8px rgba(199, 121, 122, .8), inset 0 2px 8px rgba(120, 60, 50, .18);
}
.btn-green:active, .btn-green.is-pressed { background: linear-gradient(135deg, #cfe3d6, #6f9a7e); }
.btn-blue:active, .btn-blue.is-pressed { background: linear-gradient(135deg, #d3e0ee, #6e8db3); }

/* Светлые «стеклянные» кнопки */
.btn-light:hover, .btn-glass:hover { filter: none; background: #fff; color: var(--primary-d);
  box-shadow: 0 16px 34px -14px rgba(212, 149, 124, .6), 0 0 0 3px rgba(233, 185, 164, .25), var(--inner); }
.btn-light:active, .btn-glass:active, .btn-light.is-pressed, .btn-glass.is-pressed {
  background: linear-gradient(160deg, #fbeee7, #f3d6c8); color: var(--primary-d);
  box-shadow: inset 0 2px 8px rgba(176, 109, 85, .18); }

/* Мягкие кнопки */
.btn-soft:hover { background: #f6ddd1; filter: none; box-shadow: 0 10px 22px -14px rgba(212, 149, 124, .8); }
.btn-soft:active, .btn-soft.is-pressed { background: #e9c3b2; color: #93553f; box-shadow: inset 0 2px 6px rgba(176,109,85,.2); }
.btn-danger-soft:hover { filter: none; background: #f6d9d1; }
.btn-danger-soft:active { background: #ecc0b5; }

/* Круглые кнопки, вкладки, пункты меню */
.round-btn:hover { background: #fff; color: var(--primary-d);
  box-shadow: 0 12px 26px -12px rgba(212, 149, 124, .7), 0 0 0 3px rgba(233, 185, 164, .25); }
.round-btn:active { transform: scale(.93); background: var(--primary-soft); box-shadow: inset 0 2px 6px rgba(176,109,85,.2); }
.round-btn.filled:hover { filter: brightness(1.08); }
.round-btn.filled:active { background: linear-gradient(135deg, #f2c8b8, #c7797a); }

.tab:hover { background: #fff; box-shadow: 0 8px 18px -10px rgba(212, 149, 124, .7); }
.tab:active { transform: scale(.96); background: var(--primary-soft); }
.tab.active:hover { filter: brightness(1.07); }
.tab.active:active { background: linear-gradient(135deg, #f2c8b8, #c7797a); }

.nav a:active { transform: scale(.98); background: var(--primary-soft); color: var(--primary-d); }
.nav a.active:hover { filter: brightness(1.06); }
.nav a.active:active { background: linear-gradient(135deg, #f2c8b8, #c7797a); color: #fff; }

.pill-link:active, .alphabet a:active, .month-switch a:active, .channel:active, .sveden-nav a:active {
  transform: scale(.96); background: var(--primary-soft); }
.alphabet a:hover { border-color: var(--primary-2); color: var(--primary-d); box-shadow: 0 6px 14px -8px rgba(212,149,124,.7); }
.social a:active { transform: scale(.93); background: linear-gradient(135deg, #f2c8b8, #c7797a); color: #fff; }
.order-float:active { transform: scale(.97); background: linear-gradient(135deg, #f2c8b8, #c7797a); }
.link-btn:active { color: #93553f; }

/* Мягкая «волна» от места касания (добавляет app.js) */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); opacity: .55;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%);
  animation: ripple .7s var(--ease) forwards; }
.btn-light .ripple, .btn-glass .ripple, .btn-soft .ripple, .round-btn:not(.filled) .ripple, .tab:not(.active) .ripple,
.pill-link .ripple, .alphabet a:not(.active) .ripple, .channel .ripple, .nav a:not(.active) .ripple, .month-switch a .ripple {
  background: radial-gradient(circle, rgba(233, 185, 164, .7), rgba(233, 185, 164, 0) 70%); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* Чекбоксы и радиокнопки тоже откликаются мягко */
.check input, .rating-input label { transition: transform .25s var(--ease); }
.check input:active { transform: scale(.88); }
.rating-input label:active { transform: scale(.85); }

/* Плашки у логотипа первого экрана на средних экранах — внутри блока и не поверх текста */
@media (max-width: 1180px) and (min-width: 641px) {
  .hero-visual.with-logo .float-card.one { left: -30px; top: 0; bottom: auto; }
  .hero-visual.with-logo .float-card.two { right: -10px; top: 16%; bottom: auto; }
  .hero-visual.with-logo .orb.o1 { right: -30px; bottom: 30%; }
}

/* ---------- юридические документы, согласия, cookie, демо-версия (152-ФЗ) ---------- */
.site-footer .footer-legal ul { font-weight: 600; font-size: 14px; }
@media (max-width: 1100px) { .site-footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .site-footer { grid-template-columns: minmax(0, 1fr); } }

.consent-check { font-size: 13px; line-height: 1.45; }
.consent-check a { text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner {
  position: fixed; left: 22px; bottom: 22px; z-index: 90; max-width: 440px;
  background: var(--card); color: var(--ink-2); border-radius: var(--r); padding: 18px 20px;
  box-shadow: 0 24px 50px -22px rgba(120, 76, 56, .45); border: 1px solid var(--line); font-size: 14px; line-height: 1.5;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
@media print { .cookie-banner { display: none !important; } }

.demo-strip {
  position: relative; z-index: 70; padding: 9px 18px; text-align: center; font-size: 13.5px; line-height: 1.45;
  color: #6b4f0e; background: #fff3c4; border-bottom: 1px solid #f2dd8f;
}
.demo-note {
  font-size: 13px; line-height: 1.45; color: #6b4f0e; background: #fff3c4; border: 1px dashed #e7c66b;
  border-radius: 14px; padding: 9px 12px;
}
fieldset.demo-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
fieldset[disabled] input, fieldset[disabled] textarea, fieldset[disabled] select,
form.demo-disabled input, form.demo-disabled textarea, form.demo-disabled select { cursor: not-allowed; opacity: .75; }
fieldset[disabled] .btn, form.demo-disabled .btn, .btn[disabled] { cursor: not-allowed; opacity: .55; transform: none; filter: grayscale(.3); }

.placeholder { background: #fff3c4; color: #6b4f0e; padding: 0 4px; border-radius: 4px; }
.legal-page { max-width: 920px; margin: 0 auto; }
.legal-page h1 { font-size: 32px; margin: 6px 0 18px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 10px; }
.legal-page p, .legal-page li { line-height: 1.7; color: var(--ink-2); }
.legal-page ul { padding-left: 22px; }
.legal-crumbs { font-size: 13.5px; color: var(--muted); }
.legal-alert { background: #fff3c4; border: 1px dashed #e7c66b; color: #6b4f0e; border-radius: 14px;
  padding: 10px 14px; margin-bottom: 18px; font-size: 14px; line-height: 1.5; }
.legal-table { overflow-x: auto; margin: 10px 0 18px; }
.legal-table table { border-collapse: collapse; min-width: 720px; width: 100%; font-size: 13.5px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.legal-table th { background: var(--primary-soft); color: var(--ink); }
.legal-nav { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-nav a { text-decoration: underline; }
@media (max-width: 640px) { .legal-page h1 { font-size: 25px; } }

.demo-logins { display: grid; gap: 10px; }
.demo-logins form { margin: 0; }
