:root {
  --bg: #fdf3f8;
  --surface: #ffffff;
  --ink: #472b3e;
  --muted: #9d7a90;
  --line: #f4dbe8;
  --accent: #ec4899;
  --accent-hover: #db2777;
  --sky: #7dd3fc;
  --sky-soft: #e0f2fe;
  --pink-soft: #fce7f3;
  --grad: linear-gradient(135deg, #f9a8d4 0%, #7dd3fc 100%);
  --radius: 22px;
  --shadow: 0 2px 6px rgba(236, 72, 153, .06), 0 16px 40px rgba(190, 70, 140, .10);
  --shadow-soft: 0 1px 3px rgba(236, 72, 153, .05), 0 8px 24px rgba(190, 70, 140, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, #fce7f3 0%, transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, #e0f2fe 0%, transparent 55%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 243, 248, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand span { -webkit-text-fill-color: #ec4899; }

.header-admin {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  transition: .18s;
}
.header-admin:hover { color: var(--ink); border-color: #f0c4dd; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 52px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #db2777;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  font-weight: 800;
  background: linear-gradient(90deg, #db2777, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ---------- Сетка карточек ---------- */
.catalog {
  padding: 16px 0 84px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 900px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .catalog__grid { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease;
  border: 1px solid rgba(236, 72, 153, .08);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft), 0 26px 52px rgba(190, 70, 140, .16); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3d9e7 center/cover no-repeat;
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, .16), rgba(125, 211, 252, .14));
  pointer-events: none;
}

.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.card__title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }

.card__text { color: var(--muted); font-size: 15px; margin: 0 0 20px; flex: 1; }

.card__footer { display: flex; align-items: center; justify-content: space-between; }

.card__price { font-size: 14px; color: var(--muted); }
.card__price strong { color: #db2777; font-size: 18px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .18s;
}

.btn--primary {
  background: linear-gradient(90deg, #ec4899, #f472b6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(236, 72, 153, .3);
}
.btn--primary:hover { filter: brightness(1.04); box-shadow: 0 10px 26px rgba(236, 72, 153, .38); }

.btn--ghost { background: rgba(255,255,255,.7); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #f0c4dd; background: #fff; }

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

/* ---------- Страница продукта ---------- */
.page-hero {
  padding: 60px 0 42px;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 42px;
  align-items: center;
}

@media (max-width: 800px) {
  .page-hero__grid { grid-template-columns: 1fr; }
}

.page-hero__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  background: #f3d9e7 center/cover no-repeat;
  box-shadow: var(--shadow);
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(236, 72, 153, .16), rgba(125, 211, 252, .14));
  pointer-events: none;
}

.page-hero h1 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.03em; font-weight: 800; margin: 0 0 14px; }
.page-hero p { color: var(--muted); font-size: 17px; margin: 0; }

.products { padding: 24px 0 84px; }

.products__head { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 20px; }

.product-list { display: flex; flex-direction: column; gap: 16px; }

.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid rgba(236, 72, 153, .08);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}

.product-card__main { flex: 1; }

.product-card__title { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.product-card__desc { color: var(--muted); font-size: 15px; margin: 0; }

.product-card__price { font-size: 20px; font-weight: 800; white-space: nowrap; color: #db2777; }

@media (max-width: 600px) {
  .product-card { flex-direction: column; align-items: stretch; }
  .product-card__price { text-align: left; }
}

/* ---------- Форма оплаты ---------- */
.checkout { padding: 0 0 96px; }

.checkout__card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 520px;
}

.checkout h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.checkout__price { color: var(--muted); margin: 0 0 20px; }
.checkout__price strong { color: #db2777; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: #f472b6; box-shadow: 0 0 0 3px rgba(236, 72, 153, .16); }

.checkout__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.checkout__agree input { margin-top: 3px; accent-color: #ec4899; }

.alert {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  margin: 16px 0;
}
.alert--error { background: #fdecec; color: #9f1d1d; }
.alert--info { background: #eef4ff; color: #1d4ed8; }

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Пустые состояния ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty h2 { color: var(--ink); font-size: 24px; margin: 0 0 8px; }
