/* ============================================================
   udonobr.ru — единый стиль сайта
   Подключение: <link rel="stylesheet" href="/css/unified.css">
   Темы: <div class="page" data-theme="opeka|olimp">
   ============================================================ */

/* ---------- 01. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { content: ""; }
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
  border-radius: 8px;
}

/* ---------- 02. Общие токены ---------- */
:root {
  --radius: 18px; --radius-sm: 12px; --radius-lg: 22px;
  --speed: 0.2s ease;

  --shadow:      0 10px 26px rgba(18, 58, 95, 0.06);
  --shadow-sm:   0 6px 16px rgba(18, 58, 95, 0.06);
  --shadow-lg:   0 14px 36px rgba(18, 58, 95, 0.08);
  --shadow-soft: 0 8px 22px rgba(18, 58, 95, 0.05);

  --font-ui:     'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-news:   'Nunito', 'Quicksand', 'Varela Round', 'Segoe UI', system-ui, Arial, sans-serif;
  --font-alt:    'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-quote:  Georgia, "Times New Roman", Times, serif;

  --brand:        #ACD3F8;
  --brand-soft:   #EAF3FB;
  --brand-line:   #D9E7F5;
  --navy:         #123A5F;
  --navy-deep:    #0E2F4D;
  --blue:         #2D6FA8;
  --blue-bright:  #4A90D9;
  --teal:         #2F7F73;
  --warm-amber:   #FFC96B;
  --warm-honey:   #FFE8A3;
  --warm-coral:   #FF9E80;
  --warm-terra:   #D98A5B;
  --warm-peach:   #FFE1C4;
  --warm-apricot: #FFC98A;
  --warm-rose:    #F7A3A3;
  --warm-sand:    #FFF6EA;

  --ink:    #203247;
  --muted:  #637A91;
  --card:   #FFFFFF;
  --bg:     #F6FAFE;
  --line:   #E5E7EA;

  --accent:      #6366f1;
  --accent-soft: #eef2ff;
}

/* ---------- 03. Темы ---------- */
[data-theme="olimp"] {
  --radius: 22px; --radius-sm: 14px; --radius-lg: 22px;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 6px 16px rgba(15, 23, 42, 0.06);
  --font-ui: var(--font-alt);
  --bg: #f6f8fb; --card: #FFFFFF;
  --ink: #0f172a; --text: #1f2937; --muted: #64748b; --line: #e5e7eb;
}

[data-theme="opeka"] {
  --radius: 22px; --radius-sm: 14px; --radius-lg: 22px;
  --shadow: 0 14px 36px rgba(18, 58, 95, 0.08);
  --shadow-sm: 0 8px 22px rgba(18, 58, 95, 0.05);
  --shadow-lg: 0 14px 36px rgba(18, 58, 95, 0.10);
  --shadow-soft: 0 8px 22px rgba(18, 58, 95, 0.05);
  --font-ui: var(--font-system);
  --bg: #F7FAFD; --ink: #203247;
}

/* ---------- 04. Layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 18px; }

/* ---------- 05. Typography ---------- */
.page {
  font-family: var(--font-ui);
  font-size: 16px; line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
[data-theme="opeka"] {
  background:
    radial-gradient(circle at 8% 0%, rgba(172,211,248,0.24), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(255,201,138,0.22), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(47,127,115,0.08), transparent 30%),
    linear-gradient(180deg, #FBFDFF 0%, #F6FAFE 52%, #FFF8F0 100%);
}
.page h1, .page h2, .page h3 {
  margin: 0 0 10px;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.page h1 { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; font-size: clamp(18px, 4vw, 24px); line-height: 1.18; max-width: 980px; }
.page h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: clamp(20px, 3vw, 22px); line-height: 1.25; }
.page h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; color: var(--navy); }
.page p  { margin: 0 0 10px; }
.page ul, .page ol { margin: 0 0 10px 20px; padding: 0; }
.page li { margin-bottom: 4px; }
.page a { color: var(--navy); transition: color var(--speed); text-underline-offset: 3px; }
.page a:hover { color: var(--blue); text-decoration: underline; }
.page :focus-visible { outline: 3px solid rgba(45, 111, 168, 0.35); outline-offset: 2px; border-radius: 8px; box-shadow: none; }

.small { font-size: 14px; color: var(--muted); }
.money { font-weight: 850; color: var(--teal); }

/* ---------- 06. Icons ---------- */
.ic {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 24px; height: 24px; }
.emoji { font-size: 1.05em; line-height: 1; }

/* ---------- 07. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  margin: 4px 8px 4px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(18, 58, 95, 0.16);
  transition: transform var(--speed), box-shadow var(--speed), filter var(--speed),
              background-color var(--speed), border-color var(--speed), color var(--speed);
  text-decoration: none;
}
.btn:hover {
  color: #FFFFFF; text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(18, 58, 95, 0.20);
  filter: saturate(1.05);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn .ic { width: 18px; height: 18px; }

.btn--alt {
  background: #FFFFFF;
  color: var(--navy);
  border-color: var(--brand-line);
  box-shadow: 0 8px 18px rgba(18, 58, 95, 0.06);
}
.btn--alt:hover { background: #FFF9F2; border-color: #F0D2B2; color: var(--blue); }

.btn--warm {
  background: linear-gradient(135deg, #FFD27A 0%, #FF9E80 100%);
  color: #5A301F;
  border-color: rgba(217, 138, 91, 0.22);
  box-shadow: 0 10px 24px rgba(255, 158, 128, 0.24);
}
.btn--warm:hover { color: #4A2718; box-shadow: 0 14px 28px rgba(255, 158, 128, 0.28); }

[data-theme="olimp"] .btn {
  background: #eef2ff; color: #3730a3;
  border-color: rgba(99, 102, 241, 0.30);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
[data-theme="olimp"] .btn:hover { background: #e0e7ff; color: #312e81; }

.btn--download { background: #ecfdf5 !important; color: #065f46 !important; border-color: rgba(5, 150, 105, 0.30) !important; }
.btn--download:hover { background: #d1fae5 !important; color: #064e3b !important; }
.btn--archive { background: #f5f3ff !important; color: #5b21b6 !important; border-color: rgba(124, 58, 237, 0.30) !important; }
.btn--archive:hover { background: #ede9fe !important; color: #4c1d95 !important; }
.btn--folder { background: #fefce8 !important; color: #854d0e !important; border-color: rgba(202, 138, 4, 0.30) !important; }
.btn--folder:hover { background: #fef9c3 !important; color: #713f12 !important; }
.btn--web { background: #cffafe !important; color: #155e75 !important; border-color: rgba(8, 145, 178, 0.30) !important; }
.btn--web:hover { background: #a5f3fc !important; color: #0e7490 !important; }

.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- 08. Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFEFF 100%);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 16px 0;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--warm-amber), var(--warm-coral), var(--teal), var(--brand));
  opacity: 0.92;
}
[data-theme="olimp"] .card {
  background: #FFFFFF; border-color: var(--line); box-shadow: var(--shadow); border-radius: 22px;
}
[data-theme="olimp"] .card::before { display: none; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 14px 0; }

.card--mini {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 100%);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 14px 14px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.card--mini:hover { transform: translateY(-2px); border-color: #F0D2B2; box-shadow: 0 14px 28px rgba(18, 58, 95, 0.08); }
.card--mini::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--warm-amber), var(--warm-coral)); opacity: 0.82;
}
.card--mini:nth-child(3n+1)::before { background: linear-gradient(90deg, var(--brand), #7FB3E8); }
.card--mini:nth-child(3n)::before   { background: linear-gradient(90deg, var(--warm-rose), var(--warm-terra)); }

.icon-wrap {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--warm-honey), var(--warm-peach));
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62), 0 8px 18px rgba(217,138,91,0.12);
}
.card--mini:nth-child(3n+1) .icon-wrap { background: linear-gradient(135deg, #DCEEFF, #BFE0FF); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62), 0 8px 18px rgba(45,111,168,0.10); }
.card--mini:nth-child(3n) .icon-wrap   { background: linear-gradient(135deg, #FFE0E0, var(--warm-rose)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62), 0 8px 18px rgba(247,163,163,0.14); }

.head-ic {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 13px;
  background: linear-gradient(135deg, var(--warm-honey), #DCEEFF);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65), 0 8px 18px rgba(18,58,95,0.08);
  flex: 0 0 auto;
}

/* ---------- 09. Callouts ---------- */
.callout {
  padding: 12px 14px; margin: 12px 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #EEF7FF 0%, #FFF9F0 100%);
  border: 1px solid #D9E7F5;
  border-left: 4px solid var(--brand);
  color: #1E3A58;
}
.callout--warn {
  background: linear-gradient(90deg, #FFF9EA 0%, #FFFDF7 100%);
  border-color: #F0DFB5; border-left-color: var(--warm-amber); color: #5C461D;
}
.callout--warm {
  background: linear-gradient(90deg, #FFF6EA 0%, #FFFDF8 100%);
  border-color: #F4D6B3; border-left-color: var(--warm-terra); color: #5C3A22;
}

/* ---------- 10. Tables ---------- */
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--brand-line); border-radius: var(--radius-sm); background: #FFFFFF; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #FFFFFF; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--brand-line); }
.table th { background: linear-gradient(180deg, #F5FAFF 0%, #FFF4E7 100%); color: var(--navy); font-weight: 850; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FFF9F2; }

/* ---------- 11. Accordion ---------- */
.accordion { border: 1px solid var(--brand-line); border-radius: 16px; background: #FFFFFF; margin: 12px 0; overflow: hidden; box-shadow: var(--shadow-soft); }
.accordion > summary {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 14px 42px 14px 16px;
  font-weight: 850; color: var(--navy);
  background: linear-gradient(180deg, #FFFDF8 0%, #F4F9FE 100%);
  transition: background var(--speed), color var(--speed);
}
.accordion > summary::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--warm-terra); border-bottom: 2px solid var(--warm-terra);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--speed);
}
.accordion[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion > summary:hover { background: #FFF4E8; color: var(--blue); }
.accordion__body { padding: 14px 16px 16px; border-top: 1px solid var(--brand-line); background: #FFFFFF; }
.sum-ic {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--warm-honey), #DCEEFF);
  color: var(--navy); flex: 0 0 auto;
}

/* ---------- 12. Steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0 0 10px 0; padding: 0; }
.steps li { position: relative; padding: 0 0 10px 34px; margin-bottom: 8px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--warm-amber), var(--warm-coral));
  color: #5A301F; font-weight: 900; font-size: 12px;
}

/* ---------- 13. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(172,211,248,0.42), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(255,201,138,0.34), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255,158,128,0.14), transparent 34%),
    linear-gradient(135deg, #FFFFFF 0%, #F8FCFF 46%, #FFF4E8 100%);
  border-bottom: 1px solid var(--brand-line);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 300px; height: 300px; right: -100px; top: -130px; background: radial-gradient(circle, rgba(255,232,163,0.48), transparent 68%); }
.hero::after  { width: 240px; height: 240px; left: -90px; bottom: -140px; background: radial-gradient(circle, rgba(47,127,115,0.10), transparent 70%); }
.hero .container { position: relative; z-index: 1; padding-top: 30px; padding-bottom: 24px; }

.hero__art { display: flex; justify-content: center; align-items: center; width: 100%; margin: 10px 0 12px; }
.hero__svg { display: block; width: min(100%, 310px); height: auto; max-height: 116px; aspect-ratio: 640 / 240; border-radius: 20px; box-shadow: 0 10px 24px rgba(18,58,95,0.10); }

.hero__pills { display: block; width: 100%; margin: 10px auto 14px; text-align: center; white-space: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: rgba(18,58,95,0.20) transparent; }
.hero__pills::-webkit-scrollbar { height: 6px; }
.hero__pills::-webkit-scrollbar-track { background: transparent; }
.hero__pills::-webkit-scrollbar-thumb { background: rgba(18,58,95,0.18); border-radius: 999px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  margin: 0 4px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,201,138,0.62);
  color: var(--navy); font-weight: 750; font-size: 14px; line-height: 1.2;
  white-space: nowrap; vertical-align: middle;
  box-shadow: 0 8px 18px rgba(18,58,95,0.06);
}
.pill .ic { color: var(--warm-terra); }

/* ---------- 14. Navbar ---------- */
.navbar { position: static; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--brand-line); box-shadow: none; }
.navbar .container { padding-top: 16px; padding-bottom: 8px; }
.navbar__links {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap;
  scrollbar-width: thin; scrollbar-color: rgba(18,58,95,0.18) transparent;
  -webkit-overflow-scrolling: touch;
}
.navbar__links li { flex: 0 0 auto; }
.navbar__links a {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 32px; padding: 5px 9px;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF, #FFF7ED);
  color: var(--navy); font-weight: 750; font-size: 12.5px; line-height: 1.15;
  white-space: nowrap;
  transition: transform var(--speed), box-shadow var(--speed), background-color var(--speed), border-color var(--speed);
}
.navbar__links a:hover { background: #FFFFFF; border-color: #F1D2B0; box-shadow: 0 6px 14px rgba(18,58,95,0.08); transform: translateY(-1px); text-decoration: none; color: var(--blue); }
.navbar__links .emoji { font-size: 13px; line-height: 1; }
.navbar__links .ic { width: 14px; height: 14px; }
.navbar__links::-webkit-scrollbar { height: 5px; }
.navbar__links::-webkit-scrollbar-track { background: transparent; }
.navbar__links::-webkit-scrollbar-thumb { background: rgba(18,58,95,0.16); border-radius: 999px; }

/* ---------- 15. Menu-cards (олимпиада) ---------- */
.menu-cards { position: relative; overflow: hidden; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%); box-shadow: var(--shadow); }
.menu-cards__list { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.menu-cards__item { flex: 1 1 0; min-width: 0; display: flex; }
.menu-cards__link {
  --item-accent: var(--accent); --item-soft: var(--accent-soft);
  position: relative; flex: 1 1 auto; width: 100%; min-height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 10px 20px;
  border: 1px solid var(--line); border-radius: 18px;
  background: #FFFFFF; color: var(--ink);
  font-size: clamp(12px, 1.25vw, 15px); font-weight: 650; line-height: 1.2;
  text-align: center; text-decoration: none !important;
  white-space: normal; overflow-wrap: anywhere; word-break: break-word; hyphens: auto;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.menu-cards__link::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--item-accent); box-shadow: 0 0 0 4px var(--item-soft); }
.menu-cards__link:hover { transform: translateY(-2px); border-color: var(--item-accent); background: var(--item-soft); box-shadow: var(--shadow-sm); }
.menu-cards__link.is-active { background: var(--item-soft); border-color: var(--item-accent); }
.menu-cards__link.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 3px; border-radius: 999px; background: var(--item-accent); opacity: 0.9; }
.menu-cards__link--orange { --item-accent: #ea580c; --item-soft: #fff7ed; }
.menu-cards__link--green  { --item-accent: #059669; --item-soft: #ecfdf5; }
.menu-cards__link--red    { --item-accent: #dc2626; --item-soft: #fef2f2; }
.menu-cards__link--yellow { --item-accent: #ca8a04; --item-soft: #fefce8; }

/* ---------- 16. File-row (документы) ---------- */
.file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "type name action"; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #FFFFFF; box-shadow: 0 2px 8px rgba(15,23,42,0.04); transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed); }
.file-row:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: var(--shadow-sm); }
.file-row__type { grid-area: type; width: 40px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.file-row__type svg { width: 100%; height: 100%; display: block; }
.file-row__info { grid-area: name; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-row__name { font-size: clamp(14px, 1.5vw, 16px); font-weight: 650; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; word-break: break-word; }
.file-row__meta { font-size: 12.5px; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.file-row__actions { grid-area: action; display: flex; align-items: center; justify-content: flex-end; }
.file-row__actions .btn { margin: 0; }

/* ---------- 17. Contacts & Chips ---------- */
.contact-list { display: grid; gap: 8px; margin-top: 8px; }
.contact-row { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.contact-row .ic { margin-top: 2px; color: var(--warm-terra); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: clamp(13px, 1.35vw, 15px); font-weight: 650; line-height: 1.2; box-shadow: 0 2px 8px rgba(15,23,42,0.04); transition: transform var(--speed), background-color var(--speed), border-color var(--speed); }
.chip:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--accent-soft); }
.chip--mail  { color: #1d4ed8; }
.chip--phone { color: #047857; }

/* ---------- 18. Hotline ---------- */
.hotline { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; width: 100%; padding: 24px; border: 1px solid rgba(37, 99, 235, 0.14); border-radius: var(--radius); background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 48%, #f0fdf4 100%); box-shadow: var(--shadow); }
.hotline__media { flex: 0 1 360px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid rgba(37, 99, 235, 0.16); border-radius: 18px; background: #ffffff; box-shadow: 0 8px 22px rgba(15,23,42,0.07); }
.hotline__media img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; border-radius: 12px; }
.hotline__body { flex: 1 1 320px; min-width: 0; }
.hotline__phone { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 18px; border: 1px solid rgba(14, 116, 144, 0.22); border-radius: 999px; background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 52%, #f0fdf4 100%); color: #155e75; font-size: clamp(15px, 2vw, 21px); font-weight: 800; line-height: 1.2; text-align: center; box-shadow: 0 6px 16px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.9); transition: transform var(--speed), box-shadow var(--speed), background-color var(--speed); }
.hotline__phone:hover { transform: translateY(-1px); }
.hotline__phone .ic { color: #ca8a04; }

/* ---------- 19. Footer ---------- */
.footer { border-top: 1px solid var(--brand-line); background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F0 100%); margin-top: 24px; padding: 8px 0 18px; color: var(--muted); font-size: 14px; }
.footer .container { padding-top: 16px; }
.footer p, .footer li, .footer strong, .footer .emoji, .footer .w.small { color: var(--muted); }
.footer a { color: var(--navy); }
.footer a:hover { color: var(--blue); }
.bottom-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-weight: 750; }
.bottom-nav a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bottom-nav__sep { color: var(--muted); user-select: none; }

/* ---------- 20. Alert-card ---------- */
.alert-card { background: linear-gradient(135deg, var(--navy), #2D6FA8); color: #FFFFFF; border-radius: var(--radius); padding: 18px; margin: 14px 0; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.18); }
.alert-card h3, .alert-card p { color: #FFFFFF; }
.alert-card .btn--alt { background: rgba(255,255,255,0.12); color: #FFFFFF; border-color: rgba(255,255,255,0.28); }
.alert-card .btn--alt:hover { background: rgba(255,255,255,0.20); color: #FFFFFF; }

/* ---------- 21. Child-cards / Story / Quote (Опека) ---------- */
.child-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin: 14px 0; }
.child-card { position: relative; overflow: hidden; display: grid; gap: 12px; background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 100%); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-soft); transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed); }
.child-card:hover { transform: translateY(-2px); border-color: #F0D2B2; box-shadow: 0 14px 28px rgba(18, 58, 95, 0.08); }
.photo-placeholder { display: grid; place-items: center; min-height: 120px; border: 1px dashed #9CC8F2; border-radius: 14px; background: linear-gradient(145deg, #EAF3FB, #FFFFFF 55%, #DFF0FA); color: var(--navy); font-weight: 850; text-align: center; padding: 10px; }
.photo-placeholder .ic { width: 38px; height: 38px; margin-bottom: 6px; color: #5B9BD1; }
.child-name { font-size: 18px; font-weight: 900; color: var(--navy-deep); margin: 0 0 8px; }
.facts { display: grid; gap: 6px; font-size: 14px; margin-bottom: 10px; }
.fact { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.fact span:first-child { color: var(--muted); font-weight: 750; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: linear-gradient(135deg, var(--warm-honey), #DCEEFF); color: var(--navy); font-size: 12px; font-weight: 850; white-space: nowrap; }
.story-card { background: linear-gradient(145deg, #FFFFFF, #F7FBFF); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); padding: 16px; margin: 12px 0; box-shadow: var(--shadow-soft); }
.quote { margin: 12px 0; padding: 12px 14px; border-left: 4px solid var(--teal); background: #F3FAF8; border-radius: 10px; font-style: italic; color: #24514A; }

/* ---------- 22. Gifted-card (цитата на главной олимпиады) ---------- */
.gifted-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px; align-items: center;
  width: 100%; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow);
}
.gifted-card::before { content: "\201C"; position: absolute; top: -18px; left: 18px; font-family: var(--font-quote); font-size: 120px; line-height: 1; color: rgba(99, 102, 241, 0.08); pointer-events: none; }
.gifted-media { width: 100%; display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #ffffff, #f8fafc); box-shadow: var(--shadow-sm); }
.gifted-media img { display: block; width: 100%; height: auto; border-radius: 12px; background: #ffffff; }
.gifted-quote { position: relative; z-index: 1; margin: 0; }
.gifted-quote p { margin: 0 0 14px; font-family: var(--font-quote); font-size: clamp(18px, 2.1vw, 24px); line-height: 1.55; font-style: italic; color: #111827; overflow-wrap: break-word; }
.gifted-quote cite { display: block; text-align: right; font-style: normal; font-weight: 700; font-size: clamp(16px, 1.8vw, 20px); color: #374151; }

/* ---------- 23. Doc-group (для Олимп_Всероссийская_документы) ---------- */
.doc-group { width: 100%; margin-top: 22px; }
.doc-group__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: clamp(18px, 2vw, 22px); line-height: 1.25; color: var(--ink); }
.doc-group__title::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.doc-stack { display: grid; gap: 12px; width: 100%; }

/* ---------- 24. Year-card (для страницы «Поддержка») ---------- */
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; width: 100%; }
.year-card { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 16px 12px; border: 1px solid var(--line); border-radius: 18px; background: #FFFFFF; box-shadow: 0 2px 8px rgba(15,23,42,0.04); transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed); }
.year-card:hover { transform: translateY(-2px); border-color: #fde68a; box-shadow: var(--shadow-sm); }
.year-card__val { font-size: clamp(20px, 2.4vw, 26px); font-weight: 850; line-height: 1; color: var(--ink); }
.year-card__tag { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- 25. Responsive ---------- */
@media (max-width: 860px) {
  .gifted-card { grid-template-columns: 1fr; padding: 18px; }
  .gifted-quote cite { text-align: left; }
  .contact-list li { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 14px; }
  .hero .container { padding-top: 22px; padding-bottom: 18px; }
  .card { padding: 16px; border-radius: 18px; }
  .grid { grid-template-columns: 1fr; }

  .navbar .container { padding-left: 10px; padding-right: 10px; }
  .navbar__links { gap: 4px; }
  .navbar__links a { min-height: 30px; padding: 4px 7px; font-size: 11.5px; gap: 3px; }
  .navbar__links .emoji { font-size: 12px; }
  .navbar__links .ic { width: 13px; height: 13px; }

  .btn { width: 100%; margin-right: 0; }
  .action-row .btn { width: 100%; margin-right: 0; }

  .hero__svg { width: min(100%, 280px); max-height: 104px; border-radius: 18px; }
  .hero__pills { margin: 8px auto 12px; }
  .pill { margin: 0 3px; padding: 7px 10px; font-size: 13px; gap: 6px; }

  .table { font-size: 13.5px; }
  .table th, .table td { padding: 8px 9px; }

  .file-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "type name" "action action"; gap: 12px; padding: 14px; }
  .file-row__actions { justify-content: stretch; }
  .file-row__actions .btn { width: 100%; justify-content: center; }

  .menu-cards { padding: 8px; border-radius: 18px; }
  .menu-cards__list { gap: 7px; }
  .menu-cards__link { min-height: 66px; padding: 10px 6px 18px; border-radius: 14px; font-size: clamp(11px, 3.1vw, 13px); gap: 6px; }

  .hotline { padding: 18px; border-radius: 18px; }
  .hotline__media { flex-basis: 100%; padding: 8px; border-radius: 14px; }
  .hotline__media img { max-height: 240px; }

  .fact { grid-template-columns: 1fr; gap: 2px; }
  .years { grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); }
}

@media (max-width: 420px) {
  .menu-cards__list { gap: 5px; }
  .menu-cards__link { min-height: 62px; padding: 9px 4px 16px; font-size: 10.5px; line-height: 1.15; }
  .file-row__type { width: 34px; height: 42px; }
  .file-row { padding: 12px; }
  .file-row__actions .btn { padding: 9px 14px; font-size: 13px; }
  .btn { padding: 9px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}