:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --success: #10b981;
  --error: #ef4444;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.header__logo {
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo img { width: 32px; height: 32px; border-radius: 6px; }

.header__nav { display: flex; gap: 24px; }

.header__nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.header__nav a:hover { color: var(--accent); }

.hero {
  text-align: center;
  padding: 32px 0 56px;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.filter:hover { color: var(--text-primary); border-color: var(--accent); }
.filter.active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, 0.3);
}

.card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__category {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card__short {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
}

.card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  gap: 16px;
}

.card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.btn {
  background: var(--text-primary);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; }

.btn--primary { background: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

.btn--ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }

.detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.detail__back {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail__back:hover { color: var(--accent); }

.detail__category {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.detail__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.detail__short {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.detail__section { margin-bottom: 32px; }
.detail__section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.detail__list { list-style: none; padding: 0; }
.detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 15px;
}
.detail__list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
}

.detail__sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 24px;
  align-self: start;
}

.detail__price-block {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.detail__price-block .label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.detail__price-block .price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.detail__meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.detail__meta-row { display: flex; justify-content: space-between; font-size: 14px; }
.detail__meta-row .label { color: var(--text-secondary); }
.detail__meta-row .value { color: var(--text-primary); font-weight: 600; }

.checkout {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.checkout__service {
  background: rgba(99, 102, 241, 0.06);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.checkout__service-title { font-weight: 700; margin-bottom: 4px; }
.checkout__service-price { color: var(--accent); font-weight: 700; font-size: 18px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}
.field textarea { min-height: 100px; resize: vertical; }

.field .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.field.error input, .field.error textarea { border-color: var(--error); }
.field-error {
  display: none;
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
}
.field.error .field-error { display: block; }

.checkout__legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}
.checkout__legal a { color: var(--accent); }

.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: none;
  font-size: 14px;
}
.alert--error { background: rgba(239, 68, 68, 0.1); color: var(--error); }
.alert.show { display: block; }

.status-page {
  max-width: 520px;
  margin: 80px auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 36px;
}
.status-icon--success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-icon--error   { background: rgba(239, 68, 68, 0.15);  color: var(--error); }

.status-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.status-page p { color: var(--text-secondary); margin-bottom: 24px; font-size: 16px; }

.status-page .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 760px) {
  .container { padding: 20px 16px 60px; }
  .header { flex-direction: column; gap: 12px; }
  .detail { grid-template-columns: 1fr; }
  .detail__sidebar { position: static; }
  .checkout { padding: 24px; }
  .status-page { padding: 36px 20px; }
}

/* ── Подвал магазина (единый) ── */
.shop-footer{background:#0f172a;color:#cbd5e1;margin-top:64px}
.shop-footer__inner{max-width:1100px;margin:0 auto;padding:48px 24px 32px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px}
.shop-footer__logo{font-size:1.4rem;font-weight:800;color:#fff;text-decoration:none;letter-spacing:-.02em}
.shop-footer__logo span{color:var(--accent)}
.shop-footer__brand p{margin-top:12px;font-size:.9rem;color:#94a3b8;max-width:280px;line-height:1.6}
.shop-footer h4{color:#fff;font-size:.95rem;font-weight:700;margin-bottom:14px}
.shop-footer__col a{display:block;color:#94a3b8;text-decoration:none;font-size:.9rem;padding:5px 0;transition:color .2s}
.shop-footer__col a:hover{color:#fff}
.shop-footer__bottom{max-width:1100px;margin:0 auto;padding:20px 24px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.85rem;color:#64748b;flex-wrap:wrap}
.shop-footer__bottom a{color:#94a3b8;text-decoration:none}
.shop-footer__bottom a:hover{color:#fff}
@media(max-width:768px){.shop-footer__inner{grid-template-columns:1fr 1fr;gap:24px}}

/* ── Обогащённая страница услуги (service.html) ── */
.svc-hero{position:relative;height:220px;border-radius:var(--radius-xl);overflow:hidden;background:linear-gradient(135deg,#6366f1,#8b5cf6);display:flex;align-items:center;justify-content:center;margin-bottom:32px;box-shadow:var(--shadow)}
.svc-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.svc-hero__emoji{font-size:80px;line-height:1;filter:drop-shadow(0 6px 16px rgba(0,0,0,.25))}
.svc-usp{background:linear-gradient(135deg,rgba(99,102,241,.08),rgba(139,92,246,.08));border-left:4px solid var(--accent);border-radius:var(--radius);padding:16px 18px;margin-bottom:24px;color:var(--text-primary);font-weight:500}
.svc-faq{display:flex;flex-direction:column;gap:12px}
.svc-faq__item{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px 18px;box-shadow:var(--shadow-sm)}
.svc-faq__item h4{color:var(--text-primary);font-size:.98rem;font-weight:600;margin-bottom:6px}
.svc-faq__item p{color:var(--text-secondary);font-size:.92rem;margin:0;line-height:1.6}
.svc-block{margin-top:44px}
.svc-block h3{font-size:1.25rem;font-weight:700;color:var(--text-primary);margin-bottom:18px}
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.svc-card{display:flex;flex-direction:column;gap:8px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;text-decoration:none;transition:all .2s}
.svc-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--accent)}
.svc-card__title{font-size:1rem;font-weight:600;color:var(--text-primary);line-height:1.4;flex:1}
.svc-card__price{font-size:1.05rem;font-weight:800;color:var(--accent)}
.svc-card__cat{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--accent)}
.svc-card__more{font-size:.85rem;font-weight:600;color:var(--text-secondary)}
@media(max-width:768px){.svc-grid{grid-template-columns:1fr}.svc-hero{height:150px}.svc-hero__emoji{font-size:60px}}
