/* ==================== ARgonauts — Личный кабинет (web) ====================
   Цвета/шрифты/радиусы сняты 1:1 с макета Figma «лк».
   Заголовки — фирменный a_FuturaRound (как в приложении), body — системный
   гротеск (вместо Tilda Sans из макета: чтобы не тянуть внешний CDN —
   важно для РФ-аудитории, см. заметки проекта про DPI). */

@font-face {
  font-family: 'AFuturaRound';
  src: url('assets/fonts/afuturaround.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AFuturaRound';
  src: url('assets/fonts/afuturaroundbold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #edf7ff;
  --card: #ffffff;
  --field: #edf7ff;
  --ink-900: #002441;   /* навигация, тёмный текст */
  --ink-700: #075ea5;   /* заголовки, основной синий */
  --ink-600: #00538a;   /* ссылки в футере */
  --blue: #0887ee;      /* акцентная синяя кнопка / чекбокс */
  --blue-d: #0671c9;
  --pink-1: #ed609d;
  --pink-2: #ee6fa6;
  --pink-ink: #e3589a;
  --green: #81b86c;     /* галочка «что входит» */
  --green-dot: #2ecc4a; /* точка «подписка активна» */
  --muted: #8aa0b3;

  --r-card: 20px;
  --r-pill: 999px;
  --shadow-card: 0 18px 40px rgba(7, 94, 165, 0.08);
  --shadow-pill: 0 8px 18px rgba(7, 94, 165, 0.10);

  --font-display: 'AFuturaRound', 'Nunito', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-700);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-main { flex: 1 0 auto; padding: 40px 0 64px; }
[hidden] { display: none !important; }

/* ==================== ШАПКА ==================== */
.site-header { padding: 22px 0 8px; }
.header-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }

.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand-logo {
  width: 45px; height: 47px; border-radius: 8px; overflow: hidden;
  background: #ffffff; box-shadow: var(--shadow-pill); flex: 0 0 auto;
  display: flex; align-items: flex-end; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand-name b { color: var(--ink-700); font-weight: 700; }
.brand-name i { color: var(--pink-1); font-style: normal; font-weight: 700; }
.brand-name-dark b { color: var(--ink-900); }

.nav-pill {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border-radius: var(--r-pill);
  padding: 9px 20px; box-shadow: var(--shadow-pill);
  flex: 0 1 auto; min-width: 0;
}
.nav-pill a { font-weight: 700; font-size: 12.5px; color: var(--ink-900); white-space: nowrap; transition: color .15s; }
.nav-pill a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--r-pill); padding: 9px 15px;
  font-weight: 700; font-size: 12.5px; white-space: nowrap;
  box-shadow: var(--shadow-pill); transition: transform .12s, filter .15s;
}
.pill:hover { transform: translateY(-1px); filter: brightness(1.03); }
.pill svg { display: block; }
.pill-ghost { background: #fff; color: var(--ink-900); }
.pill-pink { background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); color: #fff; }
.pill-blue { background: var(--blue); color: #fff; }

/* ==================== КНОПКИ ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-pill); padding: 13px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  transition: transform .12s, filter .15s, box-shadow .15s; line-height: 1;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.btn-block { width: 100%; }
.btn-pink { background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); color: #fff; box-shadow: 0 10px 22px rgba(237, 96, 157, .28); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(8, 135, 238, .25); }
.btn-icon svg { margin-right: 2px; }
.btn-outline-pink { background: #fff; color: var(--pink-ink); border: 2px solid var(--pink-1); }
.btn-outline-blue { background: #fff; color: var(--blue); border: 2px solid var(--blue); }

/* ==================== КАРТОЧКИ / АВТОРИЗАЦИЯ ==================== */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }

.auth-wrap { display: flex; justify-content: center; padding: 24px 0 8px; }
.auth-card { width: 100%; max-width: 452px; padding: 30px 34px 40px; }
.auth-card-wide { max-width: 452px; }

.card-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 5vw, 40px); line-height: 1.02; color: var(--ink-700);
  text-align: center; margin: 4px 0 26px;
}
.card-subtitle { text-align: center; color: var(--ink-700); font-size: 14px; margin: -14px 0 20px; line-height: 1.4; }

.field { margin-bottom: 12px; }
.field-label { display: block; font-size: 13px; color: var(--ink-700); margin: 0 0 6px 6px; font-family: var(--font-body); }
.field input, .select {
  width: 100%; height: 46px; border: none; outline: none;
  background: var(--field); border-radius: var(--r-pill);
  padding: 0 22px; font-size: 15px; color: var(--ink-700); font-family: var(--font-body);
}
.field input::placeholder { color: var(--ink-700); opacity: .85; }
.field input:focus, .select:focus { box-shadow: 0 0 0 2px rgba(8, 135, 238, .35) inset; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23075ea5' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }

.field-row { display: flex; gap: 12px; margin-bottom: 12px; }
.field-row .btn-blue { flex: 0 0 auto; min-width: 180px; height: 46px; }
.field-grow { flex: 1 1 auto; margin-bottom: 0; }

.form-error { color: #d33b6b; font-size: 13px; margin: 2px 0 12px; text-align: center; min-height: 0; }
.form-ok { color: #2a9d4f; }

.auth-links { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.auth-links-center { justify-content: center; }
.auth-links a { color: var(--ink-700); font-size: 14px; text-decoration: underline; }
.auth-links a:hover { color: var(--blue); }

/* ---- согласия ---- */
.consents { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent .checkbox {
  width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  border: 2px solid var(--blue); background: #fff; flex: 0 0 auto;
  position: relative; transition: background .12s;
}
.consent input:checked + .checkbox { background: var(--blue); }
.consent input:checked + .checkbox::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.consent input:focus-visible + .checkbox { box-shadow: 0 0 0 3px rgba(8,135,238,.3); }
.consent-text { font-size: 12.5px; line-height: 1.45; color: var(--ink-700); }
.consent-text a { text-decoration: underline; color: var(--ink-600); }

/* ==================== ЛИЧНЫЙ КАБИНЕТ ==================== */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.account-card { padding: 26px 28px; }

.user-head { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--field);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden;
}
.avatar svg { width: 34px; height: 34px; color: var(--blue); }
.user-name { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--ink-700); margin: 0; line-height: 1.1; }
.user-email { color: var(--muted); font-size: 14px; margin: 4px 0 0; word-break: break-all; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 6px; }
.btn-row .btn { padding: 12px 22px; font-size: 14px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink-700); margin: 0; }
.btn-add {
  border: 2px solid var(--blue); background: #fff; color: var(--blue);
  border-radius: var(--r-pill); padding: 8px 16px; font-weight: 700; font-size: 13px;
  font-family: var(--font-display); transition: background .12s, color .12s;
}
.btn-add:hover { background: var(--blue); color: #fff; }

.children-list { display: flex; flex-direction: column; gap: 16px; }
.child-card { background: var(--field); border-radius: var(--r-card); padding: 20px 22px; }
.child-head { display: flex; align-items: center; gap: 12px; }
.child-head .child-ico { width: 26px; height: 26px; color: var(--ink-700); flex: 0 0 auto; }
.child-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink-700); margin: 0; line-height: 1.1; }
.child-facts { list-style: none; padding: 0; margin: 14px 0 18px; }
.child-facts li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-700); margin-bottom: 6px; }
.child-facts li::before { content: "•"; position: absolute; left: 4px; color: var(--ink-700); }
.child-facts b { font-weight: 700; }
.child-card .btn-row { margin: 0; }
.child-card .btn { padding: 11px 26px; }

/* ---- подписка ---- */
.sub-card { display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 520px; }
.sub-status { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--ink-900); margin: 14px 0 18px; }
.sub-status .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(138,160,179,.18); }
.sub-status.is-active .dot { background: var(--green-dot); box-shadow: 0 0 0 4px rgba(46,204,74,.18); }
.sub-card .btn-pink { align-self: flex-start; }
.sub-incl-title { margin-top: 30px; }
.incl-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 16px; max-width: 470px; }
.incl-list li { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-700); line-height: 1.25; }
.incl-list .check { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.incl-list .check svg { width: 20px; height: 20px; }
.argosha { width: 360px; max-width: 80%; margin: 18px 0 -26px auto; pointer-events: none; }

/* ==================== ФУТЕР ==================== */
.site-footer { flex: 0 0 auto; padding: 8px 0 28px; }
.footer-card { background: #fff; border-radius: 32px; box-shadow: var(--shadow-card); padding: 30px 32px 26px; max-width: 1200px; margin: 0 auto; width: calc(100% - 40px); }
.footer-top { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brandcol { gap: 14px; max-width: 230px; }
.footer-label { font-size: 12px; color: var(--ink-900); margin: 0 0 4px; }
.footer-link-b { font-weight: 700; font-size: 12px; color: var(--ink-900); }
.footer-link-b:hover { color: var(--blue); }
.footer-email { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-900); }

.partner { display: flex; align-items: center; gap: 10px; background: var(--field); border-radius: var(--r-pill); padding: 8px 16px; }
.partner img { height: 26px; width: auto; flex: 0 0 auto; }
.partner span { font-size: 8.5px; line-height: 1.2; color: var(--ink-700); }

.social-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--field); border-radius: var(--r-pill); padding: 7px 8px 7px 16px; font-weight: 700; font-size: 12px; color: var(--ink-900); width: max-content; }
.social-badge img { width: 26px; height: 26px; }

.footer-actions { gap: 12px; }
.footer-actions .btn { height: 46px; font-size: 14px; }

.footer-divider { height: 1px; background: rgba(7,94,165,.3); margin: 24px 0 16px; }
.footer-bottom { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.footer-legal-left { display: flex; flex-direction: column; gap: 8px; }
.footer-dev, .footer-company { font-size: 11px; color: var(--ink-600); margin: 0; line-height: 1.4; }
.footer-dev a { text-decoration: underline; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; max-width: 760px; justify-content: flex-end; }
.footer-legal-links a { font-size: 11px; color: var(--ink-600); text-decoration: underline; }
.footer-legal-links a:hover { color: var(--blue); }

/* ==================== МОДАЛКИ / ТОСТ ==================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,36,65,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { width: 100%; max-width: 420px; padding: 28px 28px 30px; position: relative; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink-700); text-align: center; margin: 0 0 18px; }
.modal-close { position: absolute; top: 14px; right: 16px; border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); }
.modal-close:hover { color: var(--ink-700); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink-900); color: #fff; padding: 14px 22px; border-radius: 14px; font-size: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.25); z-index: 60; max-width: 90vw; text-align: center; }
.toast.is-error { background: #c8385f; }

/* ==================== АДАПТИВ ==================== */
/* Навигацию (ссылки на лендинг) прячем раньше, чтобы кнопки-действия
   никогда не сваливались на вторую строку на ноутбуках/при масштабе 125%. */
@media (max-width: 1024px) {
  .nav-pill { display: none; }
}
@media (max-width: 980px) {
  .account-grid { grid-template-columns: 1fr; }
  .sub-card { min-height: 0; }
  .argosha { margin: 18px auto -26px; }
  .footer-top { gap: 22px; }
}
@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; }
  .header-actions { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; }
  .header-actions .pill { flex: 1 1 auto; justify-content: center; }
  .field-row { flex-direction: column; }
  .field-row .btn-blue { min-width: 0; width: 100%; }
  .footer-legal-links { justify-content: flex-start; }
  .auth-card { padding: 26px 22px 32px; }
}
