/* =========================
   Design tokens (base)
   ========================= */
:root{
  /* Layout */
  --container: 1200px;
  --pad-x: 16px;

  /* Colors */
  --bg: #ffffff;
  --text: #123d6a;
  --muted: #475569;
  --border: #e2e8f0;

  --primary: #1f6feb;       /* основной синий */
  --accent: #ff8a00;        /* CTA оранжевый */
  --accent-hover: #e97c00;

  --surface: #f8fafc;       /* светлый фон секций */

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;

  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-48: 48px;

  --lh-tight: 1.2;
  --lh-base: 1.55;

  /* UI */
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);

  /* Focus */
  --focus: 0 0 0 3px rgba(31, 111, 235, 0.25);
}

/* =========================
   CSS reset (light)
   ========================= */
*,
*::before,
*::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-base);
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; }

/* Container helper */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* =========================
   Typography
   ========================= */
h1, h2, h3{
  margin: 0 0 12px;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

h1{ font-size: var(--fs-48); font-weight: 700; }
h2{ font-size: var(--fs-32); font-weight: 700; }
h3{ font-size: var(--fs-24); font-weight: 600; }

p{ margin: 0 0 12px; }

.text-muted{ color: var(--muted); }

/* Links */
.link{
  color: var(--primary);
  text-decoration: none;
}
.link:hover{ text-decoration: underline; }

/* =========================
   Buttons (base)
   ========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 0 18px;

  border-radius: var(--radius-sm);
  border: 1px solid transparent;

  font: 600 var(--fs-16)/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}

.btn--primary{
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover{ background: var(--accent-hover); }

.btn--secondary{
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn--secondary:hover{ background: #f1f5f9; }

/* =========================
   Inputs / forms
   ========================= */
.input,
select,
textarea{
  width: 100%;
  font: 500 var(--fs-16)/1.2 var(--font-sans);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;

  padding: 12px 14px;
}

textarea{ min-height: 120px; resize: vertical; }

.input:focus,
select:focus,
textarea:focus{
  outline: none;
  box-shadow: var(--focus);
  border-color: rgba(31, 111, 235, 0.55);
}

/* Form helper */
.form-row{ display: grid; gap: 12px; }
.form-actions{ display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.checkbox{
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-14);
  color: var(--muted);
}
.checkbox input{ margin-top: 3px; }

/* =========================
   Cards / sections
   ========================= */
.section{ padding: 56px 0; }
.section--alt{ background: var(--surface); }

.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

/* =========================
   Responsive typography
   ========================= */
@media (max-width: 1024px){
  h1{ font-size: 36px; }
  h2{ font-size: 28px; }
}

@media (max-width: 420px){
  h1{ font-size: 30px; }
  h2{ font-size: 24px; }
  h3{ font-size: 20px; }
}
