/* =========================================================
   МастерПРО — Тёплый локальный сервис
   Mobile-first design system v3.0
   Палитра: бежевый фон, терракот, мята
   ========================================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Custom Properties (design tokens) ---------- */
:root {
  /* Brand palette */
  --color-bg: #FAF7F2;             /* мягкий беж — основной фон */
  --color-surface: #FFFFFF;        /* карточки, поверхности */
  --color-surface-alt: #F5EFE6;    /* приглушённая поверхность */
  --color-primary: #E07856;        /* терракот */
  --color-primary-hover: #C75F3F;
  --color-primary-soft: #FCE9DE;   /* очень светлый терракот */
  --color-accent: #6BA68E;         /* мята */
  --color-accent-hover: #558C76;
  --color-accent-soft: #E3F0EA;

  /* Text */
  --color-text: #2A2520;           /* тёплый чёрный */
  --color-text-secondary: #6B6359;
  --color-text-muted: #9B9289;

  /* Lines */
  --color-border: #ECE4D9;
  --color-border-strong: #D9CDB8;

  /* Status */
  --color-success: #6BA68E;
  --color-warning: #D9A441;
  --color-danger: #C44536;
  --color-danger-soft: #FBE3DE;

  /* Shadows — мягкие, тёплые */
  --shadow-sm: 0 2px 6px rgba(224, 120, 86, 0.06);
  --shadow-md: 0 4px 16px rgba(224, 120, 86, 0.08);
  --shadow-lg: 0 12px 32px rgba(224, 120, 86, 0.12);
  --shadow-xl: 0 24px 56px rgba(224, 120, 86, 0.16);
  --shadow-inset: inset 0 1px 2px rgba(42, 37, 32, 0.04);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;       /* кнопки */
  --radius-lg: 16px;    /* карточки */
  --radius-xl: 24px;    /* большие блоки */
  --radius-pill: 9999px;

  /* Typography */
  --font-display: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 760px;
  --header-height: 72px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Tap target */
  --tap-min: 44px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-hover); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

/* Headings — Manrope */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }

p { line-height: 1.65; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; color: var(--color-bg); }

/* ---------- Layout ---------- */
.page {
  flex: 1;
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
}
@media (min-width: 1024px) {
  .container, .container-narrow { padding: 0 32px; }
}

/* ---------- Section ---------- */
.section {
  padding: 48px 0;
}
.section h2 {
  margin-bottom: 28px;
  text-align: left;
}
.section-tight { padding: 32px 0; }
.section-warm {
  background: var(--color-surface-alt);
  border-radius: var(--radius-xl);
  padding: 48px 24px;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .section { padding: 64px 0; }
  .section-warm { padding: 64px 40px; margin: 48px 0; }
}

/* ============================================================
   HEADER — sticky, warm
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--color-text); }
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand-tagline {
  display: none;
  margin-left: 4px;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
@media (min-width: 1024px) {
  .brand-tagline { display: inline; }
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}
.nav a:hover { color: var(--color-primary); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav a:hover::after { transform: scaleX(1); }

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}
.header-phone svg { color: var(--color-primary); }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: var(--radius);
  color: var(--color-text);
}
.burger:hover { background: var(--color-surface-alt); }
.burger svg { width: 26px; height: 26px; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-phone { display: inline-flex; }
  .burger { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 16px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap-min);
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 500;
}
.mobile-nav a:hover { background: var(--color-surface-alt); }
.mobile-nav a + a { margin-top: 4px; }
.mobile-nav svg { color: var(--color-primary); flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FAF7F2 0%, #F5EFE6 100%);
  padding: 40px 0 56px;
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(107, 166, 142, 0.25);
}
.hero h1 {
  margin-bottom: 20px;
  color: var(--color-text);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust-item svg { color: var(--color-accent); flex-shrink: 0; }

.hero-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--color-surface-alt);
}
.hero-photo img,
.hero-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  max-width: calc(100% - 40px);
}
.hero-photo-tag .avatars {
  display: flex;
}
.hero-photo-tag .avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid #fff;
  margin-right: -10px;
}
.hero-photo-tag .avatars span:nth-child(2) { background: var(--color-accent); }
.hero-photo-tag .avatars span:nth-child(3) { background: var(--color-warning); }
.hero-photo-tag-text strong { display: block; color: var(--color-text); }

@media (min-width: 768px) {
  .hero { padding: 56px 0 80px; }
  .hero-photo-tag { left: 28px; bottom: 28px; }
}
@media (min-width: 1024px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-outline:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
}

.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-danger:hover { background: #A3362A; color: #fff; }

.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover { background: #fff; color: var(--color-primary-hover); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  margin: 0;
}
.card-body { color: var(--color-text-secondary); }
.card-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.card-row + .card-row { border-top: 1px solid var(--color-border); }

/* ============================================================
   CATEGORY CARDS (public)
   ============================================================ */
.categories {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .categories { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .categories { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (min-width: 1280px) {
  .categories { grid-template-columns: repeat(4, 1fr); }
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.cat-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.cat-card-photo img,
.cat-card-photo svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.cat-card:hover .cat-card-photo img,
.cat-card:hover .cat-card-photo svg {
  transform: scale(1.05);
}
.cat-card-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.cat-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--color-text);
}
.cat-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  flex: 1;
}
.cat-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}
.cat-card:hover .cat-card-cta { color: var(--color-primary-hover); gap: 10px; }

/* ============================================================
   STEPS (как это работает)
   ============================================================ */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.step {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--color-border);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 16px;
}
.step-icon svg { width: 28px; height: 28px; }

/* ============================================================
   ADVANTAGES (почему МастерПРО)
   ============================================================ */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.feature {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: 14px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--color-text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface-alt);
  flex-shrink: 0;
}
.testimonial-avatar svg { width: 100%; height: 100%; }
.testimonial-meta { flex: 1; min-width: 0; }
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}
.testimonial-loc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.testimonial-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-warning);
  font-size: 0.95rem;
}
.testimonial-text {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.testimonial-text::before {
  content: '«';
  color: var(--color-primary);
  font-size: 1.4em;
  font-weight: 700;
  margin-right: 2px;
}
.testimonial-text::after {
  content: '»';
  color: var(--color-primary);
  font-size: 1.4em;
  font-weight: 700;
  margin-left: 2px;
}

/* ============================================================
   CTA blocks
   ============================================================ */
.cta-block {
  position: relative;
  background: linear-gradient(135deg, #E07856 0%, #C75F3F 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-block::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.cta-block h2 {
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.cta-block p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block .btn {
  position: relative;
}

.cta-block-warm {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.cta-block-warm h2 { color: var(--color-text); }
.cta-block-warm p { color: var(--color-text-secondary); }

@media (min-width: 768px) {
  .cta-block { padding: 56px 48px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: auto;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 0 24px; }
}
@media (min-width: 1024px) {
  .footer-inner { padding: 0 32px; }
}
.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-about { font-size: 0.95rem; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 24px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; padding: 24px 24px 0; }
}
@media (min-width: 1024px) {
  .footer-bottom { padding: 24px 32px 0; }
}

/* ============================================================
   FLASH / ALERTS
   ============================================================ */
.alerts {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 0 16px;
  display: grid;
  gap: 10px;
}
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
}
.alert-success { background: var(--color-accent-soft); border-color: rgba(107, 166, 142, 0.3); color: var(--color-accent-hover); }
.alert-danger { background: var(--color-danger-soft); border-color: rgba(196, 69, 54, 0.3); color: #8E2F26; }
.alert-warning { background: rgba(217, 164, 65, 0.12); border-color: rgba(217, 164, 65, 0.35); color: #8A6520; }
.alert-info { background: var(--color-primary-soft); border-color: rgba(224, 120, 86, 0.3); color: var(--color-primary-hover); }

/* ============================================================
   FORM FIELDS (used by order form, master register, admin/operator)
   ============================================================ */
.form-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.form-actions .btn-full { justify-content: center; }
.form-actions .btn + .btn { margin-top: 0; }
.form-actions form + form,
.form-actions a + a { margin-left: 0; }

.field {
  margin-bottom: 18px;
}
.field-label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 6px;
}
.input,
.textarea,
.select,
select {
  width: 100%;
  min-height: var(--tap-min);
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus,
.textarea:focus,
.select:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(224, 120, 86, 0.15);
  background: var(--color-surface);
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); }
.field-error, .input.field-error, .textarea.field-error {
  border-color: var(--color-danger);
}
.field-error:focus { box-shadow: 0 0 0 4px rgba(196, 69, 54, 0.15); }

.errors {
  list-style: none;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--color-danger);
}
.errors li { padding: 2px 0; }
.errors li::before { content: '• '; color: var(--color-danger); }

.form-control { /* alias used by some templates */
  composes: input;
}
.form-error { /* alias */
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 4px;
}
.form-group { /* alias */
  margin-bottom: 18px;
}
.form-label { /* alias */
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* Checkbox */
.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-primary); flex-shrink: 0; }
.checkbox a { color: var(--color-primary); text-decoration: underline; }

/* ============================================================
   ORDER FORM — wizard
   ============================================================ */
.wizard {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wizard-header {
  padding: 24px 20px 0;
}
.wizard-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.wizard-sub {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 24px;
  overflow-x: auto;
}
.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.wizard-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.85rem;
}
.wizard-step.is-active { color: var(--color-text); font-weight: 600; }
.wizard-step.is-active .num { background: var(--color-primary); color: #fff; }
.wizard-step.is-done .num { background: var(--color-accent); color: #fff; }
.wizard-step-divider {
  flex: 1;
  min-width: 16px;
  height: 1px;
  background: var(--color-border-strong);
}

.wizard-body {
  padding: 0 20px 24px;
}
.wizard-step-panel { display: none; }
.wizard-step-panel.is-active { display: block; animation: fade-in 250ms ease; }

.wizard-footer {
  padding: 16px 20px;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 12px;
}
.wizard-footer .btn { flex: 1; min-width: 0; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Category picker in wizard */
.cat-pick {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cat-pick { grid-template-columns: repeat(2, 1fr); } }

.cat-pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cat-pick-card:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.cat-pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pick-card input:checked + .cat-pick-photo-wrap { box-shadow: inset 0 0 0 4px var(--color-primary); }
.cat-pick-card:has(input:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 120, 86, 0.18);
}
.cat-pick-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-alt);
  transition: box-shadow var(--transition);
}
.cat-pick-photo-wrap svg,
.cat-pick-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-pick-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.cat-pick-card:has(input:checked) .cat-pick-check {
  background: var(--color-primary);
  color: #fff;
}
.cat-pick-body {
  padding: 16px 18px;
}
.cat-pick-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.cat-pick-price {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Photo preview */
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.photo-preview-thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.photo-preview-thumb .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Sticky sidebar (desktop) */
.wizard-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .wizard-layout { grid-template-columns: 1fr 320px; gap: 32px; }
}

.order-summary {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: none;
}
@media (min-width: 1024px) { .order-summary { display: block; } }
.order-summary h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.order-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-bottom: 1px dashed var(--color-border);
  gap: 12px;
}
.order-summary-item:last-of-type { border-bottom: none; }
.order-summary-item strong { color: var(--color-text); font-weight: 500; }
.order-summary-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.order-summary-total strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
}

/* Sticky mobile footer */
@media (max-width: 767px) {
  .wizard-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid var(--color-border);
  }
}

/* ============================================================
   ORDER STATUS — timeline
   ============================================================ */
.order-status-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
}
.order-status-card h2 { margin-bottom: 16px; }

.status-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.status-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 18px;
  width: 2px;
  background: var(--color-border);
}
.status-timeline li {
  position: relative;
  padding: 0 0 22px 56px;
}
.status-timeline li:last-child { padding-bottom: 0; }
.status-timeline .marker {
  position: absolute;
  top: 0; left: 4px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}
.status-timeline .marker svg { width: 16px; height: 16px; }
.status-timeline li.is-done .marker {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.status-timeline li.is-active .marker {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(224, 120, 86, 0.18);
}
.status-timeline .label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}
.status-timeline .label.is-pending { color: var(--color-text-muted); }
.status-timeline .when {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.status-timeline .detail {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.status-timeline .detail strong { color: var(--color-text); }

.telegram-prompt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-accent-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 166, 142, 0.3);
  margin: 20px 0;
}
.telegram-prompt svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.telegram-prompt-text strong { display: block; color: var(--color-text); font-weight: 600; margin-bottom: 2px; }
.telegram-prompt-text { font-size: 0.95rem; color: var(--color-text-secondary); }

/* ============================================================
   BADGES, PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
}
.badge-pending { background: rgba(217, 164, 65, 0.15); color: #8A6520; }
.badge-active { background: rgba(224, 120, 86, 0.15); color: var(--color-primary-hover); }
.badge-done { background: var(--color-accent-soft); color: var(--color-accent-hover); }
.badge-cancel { background: var(--color-danger-soft); color: #8E2F26; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
}

/* ============================================================
   ORDER DETAIL (used in status page)
   ============================================================ */
.order-detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .order-detail-grid { grid-template-columns: repeat(2, 1fr); }
}
.order-detail-item label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.order-detail-item span {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
  word-break: break-word;
}
.order-detail-item .price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}

.stars { color: var(--color-warning); letter-spacing: 2px; }
.stars-muted { color: var(--color-border-strong); }

/* ============================================================
   BREADCRUMBS / BACK LINK
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--color-text-secondary);
  font-weight: 500;
}
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { color: var(--color-text-muted); }
.breadcrumbs span:not(.sep) { color: var(--color-text); font-weight: 500; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--color-primary); }

.text-center { text-align: center; }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.small { font-size: 0.875rem; }
.w-100 { width: 100%; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-3 { margin-top: 12px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */
.sticky-cta-mobile {
  display: block;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .sticky-cta-mobile { display: none; }
}

/* ============================================================
   PRICE display
   ============================================================ */
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
}
.price-lg { font-size: 2rem; }

/* ============================================================
   TIMELINE (legacy / used in admin)
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-left: 2px solid var(--color-border);
  margin-left: 8px;
  font-size: 0.95rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  top: 18px; left: -7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-surface);
}
.timeline-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* ============================================================
   GRID (legacy support for admin/operator)
   ============================================================ */
.grid {
  display: grid;
  gap: 16px;
}
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-cols-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   TOOLBAR, TABS, TABLES (admin/operator)
   ============================================================ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  justify-content: space-between;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs a {
  padding: 12px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a:hover { color: var(--color-text); }
.tabs a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: var(--color-surface-alt);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
tr:last-child td { border-bottom: none; }

/* ============================================================
   METRIC / STATS (admin/operator dashboards)
   ============================================================ */
.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.metric {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--color-border);
}
.metric-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ============================================================
   PROFILE / ACCEPT CARDS (master/operator)
   ============================================================ */
.accept-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accept-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.accept-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.accept-card-info { font-size: 0.9rem; color: var(--color-text); }

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--color-border);
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.profile-name { font-weight: 600; }
.profile-meta { font-size: 0.85rem; color: var(--color-text-secondary); }
.profile-info { font-size: 0.95rem; }

/* ============================================================
   EMPTY, DIVIDER, MISC
   ============================================================ */
.empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-strong);
}
.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.empty-icon svg { width: 32px; height: 32px; }
.empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.empty-text {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 24px 0;
  border: none;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
}
.category { /* used as wrapper in templates */ }

.split {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ready-toggle { display: inline-flex; align-items: center; gap: 10px; }

.muted { color: var(--color-text-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes animate-fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: animate-fade-in-up 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-fade-in-up.delay-1 { animation-delay: 100ms; }
.animate-fade-in-up.delay-2 { animation-delay: 200ms; }
.animate-fade-in-up.delay-3 { animation-delay: 300ms; }
.animate-fade-in-up.delay-4 { animation-delay: 400ms; }
.animate-fade-in-up.delay-5 { animation-delay: 500ms; }
.animate-fade-in-up.delay-6 { animation-delay: 600ms; }
.animate-fade-in-up.delay-7 { animation-delay: 700ms; }
.animate-fade-in-up.delay-8 { animation-delay: 800ms; }

/* ============================================================
   PUBLIC ICON SPRITE (used via <use href="#icon-..."/>)
   ============================================================ */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — extra fine-tuning
   ============================================================ */
@media (max-width: 479px) {
  .hero { padding: 32px 0 48px; }
  .wizard-body { padding: 0 16px 24px; }
  .wizard-header { padding: 20px 16px 0; }
  .footer { padding: 40px 0 24px; }
  .card { padding: 20px; }
}

@media (min-width: 480px) {
  .container, .container-narrow { padding: 0 20px; }
}