/* ============================================================
   CARD TECHNOLOGY — main.css
   Общие стили, переменные, типографика, кнопки
   ============================================================ */

/* ─── ПЕРЕМЕННЫЕ ─── */
:root {
  --red:        #FF0000;
  --red-dark:   #CC0000;
  --red-dim:    rgba(255,0,0,.08);
  --green:      #16a34a;
  --green-dim:  #edfaf0;
  --ink:        #222222;
  --ink2:       #333333;
  --muted:      #6b6b6b;
  --border:     #e8e8e8;
  --surface:    #f9f9f9;
  --white:      #ffffff;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.14);

  --container: 1160px;
  --gap:        24px;
}

/* ─── СБРОС ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
main {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 60vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── КОНТЕЙНЕР ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .container { padding: 0 20px; }
}

/* ─── ТИПОГРАФИКА ─── */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: clamp(16px, 2vw, 20px); }

/* ─── КНОПКИ ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  -webkit-appearance: none;
}
.btn:hover  { background: var(--red-dark); }
.btn:active { transform: scale(.98); }

.btn--block { display: flex; width: 100%; }

.btn--outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}
.btn--outline:hover { background: var(--red-dim); }

.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover { background: var(--ink2); }

.btn__arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}

/* ─── СЕКЦИИ ─── */
.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }
.section--gray { background: var(--surface); }

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section__tag::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--red);
}

/* ─── ХЛЕБНЫЕ КРОШКИ ─── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); transition: color .15s; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs__sep { color: var(--border); }
.breadcrumbs__current { color: var(--ink); font-weight: 600; }

/* ─── УТИЛИТЫ ─── */
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ─── АДАПТИВ ХЕЛПЕРЫ ─── */
.hide-mobile  { display: block; }
.show-mobile  { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
  .section { padding: 40px 0; }
}

/* ─── ВНУТРЕННИЙ ОТСТУП КОНТЕНТА ─── */
.main--padded {
  padding: 25px;
}

/* ─── ЗАГОЛОВОК СТРАНИЦЫ ─── */
.page-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: normal;
}

