/* ============================================================
   КРУЖОК — базовый слой (токены, типографика, кнопки, поля, лого)
   Совместим с admin.css (использует --coral, --ink-2, --card, --r-*).
   Палитра синхронизирована с лендингом «Кружок».
   ============================================================ */
:root {
  /* поверхности */
  --bg: #fbf6f0;
  --bg-2: #f3ebe2;
  --card: #ffffff;
  --line: #ece2d7;
  --line-2: #ddd0c2;

  /* текст */
  --ink: #1d1916;
  --ink-2: #5d554e;
  --muted: #897e74;
  --ink-bg: #1c1815;

  /* акцент (коралловый) */
  --coral: #f2542c;
  --coral-2: #ff7a45;
  --coral-700: #d8431e;
  --coral-tint: #ffeee7;
  --coral-tint-2: #fff4ef;

  /* янтарь / промо */
  --amber: #f4a51f;
  --amber-tint: #fdf0d4;

  /* радиусы */
  --r: 14px;
  --r-lg: 18px;
  --r-pill: 100px;

  /* тени */
  --shadow-sm: 0 4px 16px rgba(40, 25, 12, 0.06);
  --shadow: 0 18px 50px rgba(40, 25, 12, 0.1);
  --shadow-lg: 0 30px 80px rgba(40, 25, 12, 0.16);

  /* анимация */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  min-width: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
svg {
  display: block;
}
img {
  max-width: 100%;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- бренд ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral-2), var(--coral));
  box-shadow: 0 4px 12px rgba(242, 84, 44, 0.4);
  position: relative;
  flex: none;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 2.5px solid #fff;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--coral-2), var(--coral));
  color: #fff;
  box-shadow: 0 10px 24px rgba(242, 84, 44, 0.32);
}
.btn-primary:not(:disabled):hover {
  box-shadow: 0 14px 30px rgba(242, 84, 44, 0.42);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #2a2420;
  transform: translateY(-1px);
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 14px;
}

/* ---------- поля форм (.field) ---------- */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
}
.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  border-radius: 13px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder {
  color: #b3a99f;
}
.field input:focus,
.field select:focus {
  border-color: var(--coral);
  background: #fff;
  box-shadow: 0 0 0 4px var(--coral-tint);
}
.field .err {
  display: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #d03318;
  margin-top: 6px;
}
.field.invalid input,
.field.invalid textarea {
  border-color: #e0432a;
  background: #fff4f1;
}
.field.invalid .err {
  display: block;
}

/* ---------- чипы ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
