/* Общее для страниц maxbotgpt.ru: палитры ботов, шапка, кнопки, подвал.
   Палитра задаётся классом у <body>: p-max (по умолчанию), p-tg, p-vk. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root, .p-max {
  --a: #6a5cff; --a1: #8b7bff; --a2: #4f6ef7; --a3: #2f4fd6; --a-rgb: 106,92,255;
  --a-ink: #4338ca; --soft: #efeeff; --soft2: #e2dfff; --bubble: #ece9ff;
}
.p-tg {
  --a: #2AABEE; --a1: #37b4f2; --a2: #1a8fd2; --a3: #0f6fb0; --a-rgb: 42,171,238;
  --a-ink: #0f6fb0; --soft: #eaf6fd; --soft2: #d6eefb; --bubble: #effdde;
}
.p-vk {
  --a: #0077FF; --a1: #3d95ff; --a2: #0060d6; --a3: #00449e; --a-rgb: 0,119,255;
  --a-ink: #0056c2; --soft: #e9f2ff; --soft2: #d4e5ff; --bubble: #dcebff;
}
:root {
  --ink: #0d1b2a; --muted: #5c6f84; --line: #e4ebf2; --bg: #f4f7fb;
  --head: "Unbounded", "Golos Text", system-ui, sans-serif;
  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 40l14-14 14 14'/%3E%3Ccircle cx='110' cy='30' r='10'/%3E%3Cpath d='M95 110h26M108 97v26'/%3E%3Crect x='22' y='96' width='24' height='18' rx='5'/%3E%3Cpath d='M60 70q10-14 20 0t20 0'/%3E%3Cpath d='M140 80l6 12 13 2-9 9 2 13-12-6-12 6 2-13-9-9 13-2z'/%3E%3C/g%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* градиент собирается на body, где уже действует класс палитры */
body { --grad: linear-gradient(150deg, var(--a1), var(--a) 35%, var(--a2) 70%, var(--a3)); }
body { font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer; border-radius: 14px; padding: 14px 24px; font: inherit; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-a { background: var(--a); color: #fff; box-shadow: 0 8px 20px rgba(var(--a-rgb), .35); }
.btn-a:hover { background: var(--a2); }
.btn-white { background: #fff; color: var(--a-ink); box-shadow: 0 10px 30px rgba(6,30,70,.22); }
.btn-outline { color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: var(--soft); color: var(--a-ink); }
.btn-ghost:hover { background: var(--soft2); }
.btn-sm { padding: 9px 16px; border-radius: 12px; font-size: .9rem; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1rem; color: inherit; text-decoration: none; }
.logo-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--a1), var(--a2)); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(var(--a-rgb), .3); }
.logo-ava svg { width: 62%; height: 62%; }

/* шапка внутренних страниц: светлая, прилипает к верху */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.site-head .head-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.site-foot { background: var(--ink); color: #9fb1c4; padding: 44px 0; font-size: .9rem; margin-top: 96px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px 40px; }
.site-foot .logo { color: #fff; margin-bottom: 10px; }
.site-foot h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-foot a { color: #c9d6e3; text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media print {
  .site-head, .site-foot { display: none; }
  body { background: #fff; }
}
