/* ФИНУМ — дизайн-система из презентации:
   фон кремовый #F5F2EE, акцент фиолетовый #51437E, бронза #A48770,
   заголовки 60/36/30 px, градиент #51437E → #A48770 */

:root {
  --bg: #F5F2EE;
  --bg-tint: #EFEAE3;
  --ink: #1A1A1A;
  --muted: #6B645C;
  --purple: #51437E;
  --purple-dark: #3E3329;
  --bronze: #A48770;
  --white: #FFFFFF;
  --gradient: linear-gradient(120deg, #51437E 0%, #8C7CBE 55%, #A48770 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(61, 51, 41, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 520px; }

a { color: var(--purple); }

h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.1; font-weight: 800; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 3.5vw, 36px); line-height: 1.2; font-weight: 800; margin: 0 0 24px; color: var(--purple); }
h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.h3 { font-size: 24px; margin-top: 0; }

.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 850px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 242, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(81, 67, 126, 0.15);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: 2px; text-decoration: none; color: var(--purple); }
.logo-dot { color: var(--bronze); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--purple); }
.auth-box { display: flex; gap: 10px; align-items: center; }
.inline-form { display: inline; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--accent { background: var(--purple); color: var(--white); }
.btn--accent:hover { background: #443766; }
.btn--ghost { background: transparent; color: var(--purple); border: 2px solid rgba(81, 67, 126, .4); }
.btn--lg { padding: 14px 30px; font-size: 17px; }

/* Hero */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 90px 0 100px;
}
.hero h1 { color: var(--white); max-width: 950px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 4px; font-size: 14px; font-weight: 700;
  color: rgba(255, 255, 255, 0.85); margin: 0 0 18px;
}
.lead--hero { color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero .btn--accent { background: var(--white); color: var(--purple); }
.hero .btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }

/* Sections & cards */
.section { padding: 70px 0; }
.section--tint { background: var(--bg-tint); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards--5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border-top: 4px solid var(--purple);
}
.card--pad h3 { color: var(--purple); }
.card--accent { background: var(--purple); color: var(--white); border-top-color: var(--bronze); }
.card--accent h3, .card--accent strong { color: var(--white); }
.card--accent ul { color: rgba(255, 255, 255, .92); }
.cards--5 .card { text-align: center; font-weight: 700; color: var(--purple); border-top-color: var(--bronze); }
.card ul { margin: 0 0 12px; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.rate { font-weight: 800; color: var(--bronze); margin: 12px 0 0; }
.card--accent .rate { color: #E7C9A9; }
.quote { font-size: 20px; font-weight: 700; margin-top: 0; }


/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form--grid { max-width: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; }
.req { color: var(--bronze); }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 2px solid #DDD6CD; border-radius: 10px;
  font: inherit; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--purple);
}
.field--error input, .field--error textarea, .field--error select { border-color: #B3423A; }
.field-error { color: #B3423A; font-size: 14px; margin: 0; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.section--apply { background: var(--gradient); color: var(--white); }
.section--apply h2 { color: var(--white); }
.section--apply .lead { color: rgba(255, 255, 255, .9); }
.section--apply .muted { color: rgba(255, 255, 255, .8); }
.section--apply .btn--accent { background: var(--white); color: var(--purple); }
.section--apply .field input, .section--apply .field textarea, .section--apply .field select {
  border-color: transparent;
}

/* Flash */
.flash { max-width: 1180px; margin: 18px auto 0; padding: 14px 20px; border-radius: 10px; font-weight: 600; }
.flash--ok { background: #E4F0E4; color: #245B2A; border: 1px solid #B9D8BC; }
.flash--err { background: #F7E4E2; color: #8C2F27; border: 1px solid #E5B7B2; }

/* Cabinet */
.cabinet-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cabinet-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E3DCD3; vertical-align: top; }
.table th { color: var(--purple); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge--ok { background: #E4F0E4; color: #245B2A; }
.badge--muted { background: #ECE7E0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--purple-dark); color: rgba(255, 255, 255, .85); padding: 44px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo--footer { color: var(--white); }
.site-footer .muted { color: rgba(255, 255, 255, .65); }
.site-footer a { color: #E7C9A9; }
